The browse-code/files section is disappearing in Firefox Nightly #4402
sideshowbarker posted onGitHub
Browser version: current Firefox Nightly, 90.0a1 (2021-05-25) (64-bit) on macOS.
Open https://github.com/sindresorhus/refined-github or any other GitHub repo URL in Firefox Nightly, with Refined GitHub enabled; observe that the entire browser-code/files section disappears, and instead just the README section is shown:
Open devtools in Firefox Nightly and switch to the Inspector tab; observe that, in the
div
previous adjacent sibling of thereadme-toc
element, there’s this descendantdiv
:<div class="js-details-container Details">
Observe that in the styles panel, that
div
element has the following associated stylesheet rule:.rgh-files-hidden .files, .rgh-files-hidden #files ~ .Details { display: none; }
…like this:
Toggle off the Refined GitHub add-on, and observe that the browse-code/files section reappears — and that in the Inspector, that
<div class="js-details-container Details">
element no longer has that CSS stylesheet rule<br>.rgh-files-hidden .files, .rgh-files-hidden #files ~ .Details { display: none; }
associated with it.Switch to the Console tab in devtools in Firefox Nightly and, logged there, observe the following:
Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”). moz-extension:1:5003 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://github.githubassets.com/assets/optimizely-c839a608.js. (Reason: CORS request did not succeed). None of the “sha512” hashes in the integrity attribute match the content of the subresource. refined-github ℹ️ latest-tag-button → The token seems to be incorrect or expired. Update it in the options. index.tsx:53:10 ℹ️ repo-age → The token seems to be incorrect or expired. Update it in the options. index.tsx:53:10 ℹ️ bugs-tab → The token seems to be incorrect or expired. Update it in the options. index.tsx:53:10
(I don’t have any idea of those console messages are related at all…)