Skip to content

Features broken on source tree views and blob views #10183

Closed as not planned
Closed as not planned

Description

@KnockoffFeline

Description

Some JS features either appear and suddenly disappear after the page finishes loading or straight up not get patched in at all on source tree views and blob views.

Workaround: Disable and re-enable the extension in about:addons for at least some features to activate properly (extend-repo-tabs won't patch frex.).

My console log as follows:

Content-Security-Policy: Ignoring “https://github.githubassets.com” within script-src: ‘strict-dynamic’ specified refined-github
Error reading query stream: TypeError: can't access property "mutations", t is undefined
    Xs https://github.githubassets.com/assets/index-CX1F2KEH.js:2
    e https://github.githubassets.com/assets/index-CX1F2KEH.js:11
index-CX1F2KEH.js:11:92453
Fingerprinting Protection is altering screen.availWidth and screen.availHeight. These values may not match your actual screen dimensions. This protection helps prevent websites building a fingerprint that can be used to track users. Learn more: https://support.mozilla.org/kb/firefox-protection-against-fingerprinting sticky-sidebar.js:76:9
Ignoring unsupported entryTypes: layout-shift. setup-DO_q36d6.js:1:50024
Ignoring unsupported entryTypes: longtask. main-C5RScT63.js:6:20137
Content-Security-Policy: The page’s settings blocked the loading of a resource (default-src) at https://github.com/refined-github/refined-github because it violates the following directive: “default-src 'none'” NetUtil.sys.mjs:142:15

How to replicate the issue + URL

The issue occurs on the following example URLs:

https://github.com/refined-github/refined-github
https://github.com/refined-github/refined-github/blob/main/source/features/html-preview-link.tsx

Extension version

26.10

Browser(s) used

Windows 11/Firefox Developer Edition v.158.0b5; Android 13/Fennec F-Droid (Firefox fork) v.157

Token ⚠️

  • I set a token in the options page. I understand that some features require a token to work.

Activity

  1. fregante commented on Oct 11, 2026

    @fregante
    Member

    It would be helpful to see which features you expect to appear on that page, and maybe a screenshot. It seems to work fine for me. On mobile however a number of features are disabled because there just isn't enough space to add them without causing content shift.

  2. added
    firefox
    on Oct 11, 2026
  3. KnockoffFeline commented on Oct 11, 2026

    @KnockoffFeline
    Author

    On mobile however a number of features are disabled

    Yeah, fair.

    which features you expect to appear

    • extend-repo-tabs on both views
    • clean-repo-sidebar and file-age-color on repos' main code pages
    Image
    • rgh-feature-descriptions on feature source files
    Image
  4. fregante commented on Oct 11, 2026

    @fregante
    Member

    I can see that the stylesheet was injected (top-right issue/pr/repo links) but I don't see any JS features at all.

    Are you sure your browser is allowing the extension to run at all? It seems that anti-fingerprinting is enabled, judging but the logs.

  5. KnockoffFeline commented on Oct 11, 2026

    @KnockoffFeline
    Author

    your browser is allowing the extension to run at all

    Yes, it does. The JS features only break on the pages I mentioned. They work everywhere else (issue/PR lists, commit history, commit diff etc.). Disabling anti-fingerprinting doesn't fix this.

    Image
  6. fregante commented on Oct 11, 2026

    @fregante
    Member

    Ok that's curious. I have two guesses:

    • CSP or whatever is blocking the content script execution on those pages
    • some feature that runs on those pages is totally incompatible with Firefox and breaks the whole content script
      • this should not happen because every feature is still loaded on every page + is run via async function, it cannot stop the execution of other features

    The weirdest part is that there are no console errors.

    Maybe try enabling logging in Refined GitHub's Options -> Debugging section. You should see a list of features running on those pages.

  7. KnockoffFeline commented on Oct 11, 2026

    @KnockoffFeline
    Author
    Console logs on rgh-feature-descriptions.tsx:

    rgh-feature-descriptions

    Content-Security-Policy: Ignoring “https://github.githubassets.com” within script-src: ‘strict-dynamic’ specified rgh-feature-descriptions.tsx
    ↩️ Skipping align-issue-labels feature-manager.js:165:9
    ↩️ Skipping pr-first-commit-title feature-manager.js:168:8
    ↩️ Skipping close-as-unplanned feature-manager.js:168:8
    ✅ releases-tab feature-manager.js:227:9
    ✅ hide-navigation-hover-highlight feature-manager.js:227:9
    ✅ selection-in-new-tab feature-manager.js:227:9
    ✅ copy-on-y feature-manager.js:227:9
    ✅ profile-hotkey feature-manager.js:227:9
    ✅ close-out-of-view-modals feature-manager.js:227:9
    ✅ improve-shortcut-help feature-manager.js:227:9
    ✅ shorten-links feature-manager.js:227:9
    ✅ linkify-code feature-manager.js:227:9
    ✅ linkify-branch-references feature-manager.js:227:9
    ✅ new-tab-links 3 feature-manager.js:227:9
    ✅ last-update-sort feature-manager.js:227:9
    ✅ esc-to-deselect-line feature-manager.js:227:9
    ✅ parse-backticks feature-manager.js:227:9
    ✅ hide-user-forks feature-manager.js:227:9
    ✅ show-whitespace feature-manager.js:227:9
    ✅ reload-failed-proxied-images feature-manager.js:227:9
    ✅ linkify-user-location feature-manager.js:227:9
    ✅ easy-toggle-commit-messages feature-manager.js:227:9
    ✅ archive-forks-link feature-manager.js:227:9
    ✅ repo-avatars feature-manager.js:227:9
    ✅ small-user-avatars feature-manager.js:227:9
    ✅ repo-header-info feature-manager.js:227:9
    ✅ visit-tag feature-manager.js:227:9
    ✅ click-outside-modal feature-manager.js:227:9
    ✅ unread-anywhere feature-manager.js:227:9
    ✅ extensible-nav feature-manager.js:227:9
    ✅ extend-repo-tabs feature-manager.js:227:9
    ✅ quick-file-edit feature-manager.js:227:9
    ✅ extensible-nav feature-manager.js:227:9
    ✅ list-prs-for-file feature-manager.js:227:9
    ✅ previous-version feature-manager.js:227:9
    ✅ releases-tab feature-manager.js:227:9
    ✅ bugs-tab feature-manager.js:227:9
    🌏 query GetPreviousCommitForFile($resource: URI!, $filePath: String!) {
    	resource(url: $resource) {
    		... on Commit {
    			history(path: $filePath, first: 2) {
    				nodes {
    					oid
    				}
    			}
    		}
    	}
    }
    api.js:295:6
    🌏 query CountIssues($query: String!) {
    	search(query: $query, type: ISSUE_ADVANCED, first: 1) {
    		issueCount
    	}
    }
    api.js:295:6
    Error reading query stream: TypeError: can't access property "mutations", t is undefined
        Xs https://github.githubassets.com/assets/index-CX1F2KEH.js:2
        e https://github.githubassets.com/assets/index-CX1F2KEH.js:11
    index-CX1F2KEH.js:11:92453
    Ignoring unsupported entryTypes: layout-shift. setup-DO_q36d6.js:1:50024
    ↩️ Skipping align-issue-labels feature-manager.js:165:9
    ✅ releases-tab feature-manager.js:227:9
    ✅ hide-navigation-hover-highlight feature-manager.js:227:9
    ✅ selection-in-new-tab feature-manager.js:227:9
    ✅ copy-on-y feature-manager.js:227:9
    ✅ profile-hotkey feature-manager.js:227:9
    ✅ close-out-of-view-modals feature-manager.js:227:9
    ✅ improve-shortcut-help feature-manager.js:227:9
    ✅ shorten-links feature-manager.js:227:9
    ✅ linkify-code feature-manager.js:227:9
    ✅ linkify-branch-references feature-manager.js:227:9
    ✅ new-tab-links 3 feature-manager.js:227:9
    ✅ last-update-sort feature-manager.js:227:9
    ✅ esc-to-deselect-line feature-manager.js:227:9
    ✅ parse-backticks feature-manager.js:227:9
    ✅ hide-user-forks feature-manager.js:227:9
    ✅ show-whitespace feature-manager.js:227:9
    ✅ reload-failed-proxied-images feature-manager.js:227:9
    ✅ linkify-user-location feature-manager.js:227:9
    ✅ easy-toggle-commit-messages feature-manager.js:227:9
    ✅ archive-forks-link feature-manager.js:227:9
    ✅ repo-avatars feature-manager.js:227:9
    ✅ small-user-avatars feature-manager.js:227:9
    ✅ repo-header-info feature-manager.js:227:9
    ✅ visit-tag feature-manager.js:227:9
    ✅ click-outside-modal feature-manager.js:227:9
    ✅ unread-anywhere feature-manager.js:227:9
    ✅ extensible-nav feature-manager.js:227:9
    ✅ extend-repo-tabs feature-manager.js:227:9
    ✅ quick-file-edit feature-manager.js:227:9
    ✅ extensible-nav feature-manager.js:227:9
    improve-shortcut-help → Selector not found on page: div[class^="ShortcutsDialog"][class*="ColumnsContainer"] selector-observer.js:79:12
    shorten-links → Selector not found on page: .comment-body a[href]:not(.rgh-linkified-code),
    .react-issue-comment .markdown-body a[href]:not(.rgh-linkified-code),
    .react-issue-body .markdown-body a[href]:not(.rgh-linkified-code),
    [data-testid="review-thread"] .markdown-body a[href]:not(.rgh-linkified-code) selector-observer.js:79:12
    linkify-branch-references → Selector not found on page: [data-hydro-view*="pull-request-hovercard-hover"] ~ .d-flex.mt-2 selector-observer.js:79:12
    new-tab-links → Selector not found on page: div[data-testid="repository-and-template-picker-dialog"] a selector-observer.js:79:12
    parse-backticks → Selector not found on page: [class*='PageLayout-Pane'] .f4.my-3,
    .extended-commit-description-container,
    .TimelineItem-body pre,
    span[class^="LinkedPullRequests-module__PrTitle"],
    span[id$="--label"],
    bdi[class*="pr-sticky-title"],
    .Box-body h1,
    .Box-row .mb-1 a,
    react-app[app-name="repos-pulse"] a.markdown-title,
    .js-socket-channel[data-url*="/header_partial"] h3,
    .js-wiki-sidebar-toggle-display a,
    #wiki-wrapper .gh-header-title,
    .repo-list [itemprop="description"],
    .repos-list-description,
    .search-title a,
    .notification-thread-subscription [id^="subscription_link_"],
    a[class^="DashboardListView-module__ItemTitle"],
    .js-feed-item-component h3 > .Link--primary selector-observer.js:79:12
    hide-user-forks → Selector not found on page: a[href*="?tab=repositories"]:is([href^="/"], [href^="https://github.com/"]):not([href*="&type="], .issues-reset-query),
    a[href*="/repositories"]:is([href^="/orgs/"], [href^="https://github.com/orgs/"]):not([href*="&type="], .issues-reset-query) selector-observer.js:79:12
    linkify-user-location → Selector not found on page: [itemprop="homeLocation"] svg.octicon-location,
    .pagehead .has-location svg.octicon-location,
    [aria-label="User location"] svg.octicon-location,
    [aria-label="Organization Hovercard"] svg.octicon-location selector-observer.js:79:12
    archive-forks-link → Selector not found on page: #js-repo-pjax-container > .flash-warn:first-of-type selector-observer.js:79:12
    rgh-options-link → Selector not found on page: a[name="user-content-options-page-link"] selector-observer.js:79:12
    repo-avatars → Selector not found on page: .loaded nav[data-component="Breadcrumbs"] a[href="/refined-github"] selector-observer.js:79:12
    small-user-avatars → Selector not found on page: .js-issue-row [data-hovercard-type="user"],
    .notification-thread-subscription [data-hovercard-type="user"],
    :is([data-testid="created-at"], [data-testid="closed-at"]) a[data-hovercard-url*="/users"],
    [aria-label^="Filter by author "],
    [data-testid="author-filter-link"][data-hovercard-type="user"] selector-observer.js:79:12
    small-user-avatars → Selector not found on page: .user-mention:not(.opened-by > *, .commit-author) selector-observer.js:79:12
    repo-header-info → Selector not found on page: .loaded .GlobalNav nav[data-component="Breadcrumbs"] ol selector-observer.js:79:12
    visit-tag → Selector not found on page: :is(#ref-picker-repos-header-ref-selector-wide, #ref-picker-repos-header-ref-selector, [data-hotkey="w"]):has(.octicon-tag) selector-observer.js:79:12
    rgh-token-user → Selector not found on page: div[aria-labelledby="global-nav-user-menu-header"] > div[role="heading"] selector-observer.js:79:12
    unread-anywhere → Selector not found on page: .loaded a[class*="notificationIndicator"]:not(.rgh-unread-anywhere-wrapper *) selector-observer.js:79:12
    ✅ releases-tab feature-manager.js:227:9
    ✅ list-prs-for-file feature-manager.js:227:9
    ✅ bugs-tab feature-manager.js:227:9
    ✅ previous-version feature-manager.js:227:9
    quick-file-edit → Selector not found on page: .react-directory-filename-column > :is(svg, img):is(.color-fg-muted, .octicon-file-symlink-file) selector-observer.js:79:12
    quick-file-edit → Selector not found on page: [role="treeitem"]:not([aria-expanded]) .PRIVATE_TreeView-item-visual > svg selector-observer.js:79:12
    extensible-nav → Selector not found on page: .loaded nav[aria-label="Repository"] selector-observer.js:79:12
    Ignoring unsupported entryTypes: longtask. main-C5RScT63.js:6:20137
    improve-shortcut-help → Selector not found on page: div[class^="ShortcutsDialog"][class*="ColumnsContainer"] selector-observer.js:79:12
    linkify-code → Selector not found on page: .blob-code-inner:not(deferred-diff-lines.awaiting-highlight *),
    :is(.snippet-clipboard-content, .highlight) > pre.notranslate,
    .markdown-body code:not(a code, pre code),
    .diff-text-inner,
    .react-file-line selector-observer.js:79:12
    linkify-branch-references → Selector not found on page: [data-hydro-view*="pull-request-hovercard-hover"] ~ .d-flex.mt-2 selector-observer.js:79:12
    last-update-sort → Selector not found on page: 
    	a:is(
    		[href*="/issues"],
    		[href*="/pulls"],
    		[href*="/projects"],
    		[href*="/labels/"]
    	):not(
    		[href^="/pulls"],
    		[href^="/issues"],
    
    		[href*="/issues/labels"],
    		[href*="/issues/views"],
    		[href*="sort%3A"],
    		[href*="page="],
    		.issues-reset-query,
    		.pagination *,
    		.table-list-header-toggle *
    	)
    selector-observer.js:79:12
    show-whitespace → Selector not found on page: :is(.blob-code-inner:not(deferred-diff-lines.awaiting-highlight *), :is(.snippet-clipboard-content, .highlight) > pre.notranslate, .markdown-body code:not(a code, pre code), .diff-text-inner, .react-file-line):not(.blob-code-hunk) selector-observer.js:79:12
    rgh-feature-descriptions → Selector not found on page: #repos-sticky-header selector-observer.js:79:12
    archive-forks-link → Selector not found on page: #js-repo-pjax-container > .flash-warn:first-of-type selector-observer.js:79:12
    rgh-options-link → Selector not found on page: a[name="user-content-options-page-link"] selector-observer.js:79:12
    repo-avatars → Selector not found on page: .loaded nav[data-component="Breadcrumbs"] a[href="/refined-github"] selector-observer.js:79:12
    repo-header-info → Selector not found on page: .loaded .GlobalNav nav[data-component="Breadcrumbs"] ol selector-observer.js:79:12
    visit-tag → Selector not found on page: :is(#ref-picker-repos-header-ref-selector-wide, #ref-picker-repos-header-ref-selector, [data-hotkey="w"]):has(.octicon-tag) selector-observer.js:79:12
    quick-file-edit → Selector not found on page: .react-directory-filename-column > :is(svg, img):is(.color-fg-muted, .octicon-file-symlink-file) selector-observer.js:79:12
    quick-file-edit → Selector not found on page: [role="treeitem"]:not([aria-expanded]) .PRIVATE_TreeView-item-visual > svg selector-observer.js:79:12
    list-prs-for-file → Selector not found on page: [data-testid="more-file-actions-button-nav-menu-wide"],
    [data-testid="more-file-actions-button-nav-menu-narrow"],
    [data-hotkey="Mod+s"] selector-observer.js:79:12
    previous-version → Selector not found on page: a:has([data-component="leadingVisual"] svg.octicon-history) selector-observer.js:79:12
    Security Error: Content at https://github.com/refined-github/refined-github/blob/main/source/features/rgh-feature-descriptions.tsx may not load or link to file:///.
    Content-Security-Policy: The page’s settings blocked the loading of a resource (default-src) at https://github.com/refined-github/refined-github/blob/main/source/features/rgh-feature-descriptions.tsx because it violates the following directive: “default-src 'none'” NetUtil.sys.mjs:142:15
    

    In the meantime, I just found a gnarly workaround. Disabling and re-enabling the extension reactivates at least some features on the pages where they suddenly disappeared. I've updated the description with this.

  8. fregante commented on Oct 11, 2026

    @fregante
    Member

    I'm gonna have to claim "works on my computer" and "beta software is not support" unfortunately. I tried it on Firefox 158.0b5 (plain old macOS) and all the feature works, including the very visible extensible-nav

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfirefoxmobile

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions