Skip to content

Disabling JavaScript by default causes persistent issues with (next.js?) pages in Firefox #3652

@turbodude

Description

@turbodude

Prerequisites

  • I verified that this is not a filter list issue. Report any issues with filter lists or broken website functionality in the uAssets issue tracker.
  • This is NOT a YouTube, Facebook or Twitch report. These sites MUST be reported by clicking their respective links.
  • This is not a support issue or a question. For support, questions, or help, visit /r/uBlockOrigin.
  • I performed a cursory search of the issue tracker to avoid opening a duplicate issue.
  • The issue is not present after disabling uBO in the browser.
  • I checked the documentation to understand that the issue I am reporting is not normal behavior.

I tried to reproduce the issue when...

  • uBO is the only extension.
  • uBO uses default lists and settings.
  • using a new, unmodified browser profile.

Description

I've been using the extension with javascript disabled by default for a good few years and have been OK with enabling JS only where I want.
However, recently I began encountering pages that would be permanently broken not only after I have enabled javascript, but even when the Ublock origin is disabled. The only way to fix the issue that worked for me is browser refresh.

Common feature of broken pages seems to be next.js as in the console I see error messages related to it

Content-Security-Policy: The page’s settings blocked an inline script (script-src-elem) from being executed because it violates the following directive: “script-src http: https:”
Error: Promised response from onMessage listener went out of scope ExtensionMessagingService.js:89:34
Uncaught Error: Connection closed.
    t NextJS
951-4b5defba5d8295f4.js:1:130754
Uncaught (in promise) Error: Connection closed.
    t NextJS

A specific URL where the issue occurs.

https://www.cliply.space/

Steps to Reproduce

  1. Check "Disable Javascript"
  2. Try opening the URL

Expected behavior

The page starts working after javascript is enabled on it through the extension and it is refreshed

Actual behavior

Blank page or only some fragments get rendered

uBO version

1.64.0

Browser name and version

Firefox 139.0.1

Operating System and version

Windows 11 23H2 22631.5335

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixedissue has been addressed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions