Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.
This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.
Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
-
NewsFox-pm
- Moongazer

- Posts: 10
- Joined: 2025-10-28, 14:58
Post
by NewsFox-pm » 2026-04-07, 07:26
I'm getting the following error message:
Code: Select all
SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More] DocumentUtils.jsm:44:41
DocumentUtils.jsm#L44
P.S. Not sure if this is the right place so feel free to move the topic to the right one.
-
vannilla
- Moon Magic practitioner

- Posts: 2549
- Joined: 2018-05-05, 13:29
Post
by vannilla » 2026-04-07, 12:13
The indicated line is correct, it should not throw any syntax error. I'm not getting anything, in fact.
At best, people can bikeshed if it's worth writing it like that or use a for statement.
Do you have some kind of particular setup?
-
NewsFox-pm
- Moongazer

- Posts: 10
- Joined: 2025-10-28, 14:58
Post
by NewsFox-pm » 2026-04-07, 14:34
Just 4 add-ons (FEBE, NewsFox, Pale Moon Commander, uBlock Origin) and the Browser Console opening on start.
The error is shown at random intervals during normal use or while debugging the new NewsFox build. I'm guessing it need's an XPath filter use in order to be shown but might be way off.
-
vannilla
- Moon Magic practitioner

- Posts: 2549
- Joined: 2018-05-05, 13:29
Post
by vannilla » 2026-04-07, 17:03
Apparently this error happens only with strict mode enabled according to some documentation I found, i.e. the 'use strict' string appears somewhere in the Javascript code.
The browser internals are not really written with strict mode in mind, so enabling it globally would of course cause this kind of error.
It's definitely the fault of one of your enabled extensions, since they inject in the global scope.
-
NewsFox-pm
- Moongazer

- Posts: 10
- Joined: 2025-10-28, 14:58
Post
by NewsFox-pm » 2026-04-08, 09:04
uBlock0@raymondhill.net uses the "use strict" string in a lot of places, the rest of the add-ons don't use it.