Steps to reproduce
- Add the following header to a script:
// ==UserScript==
// @name testname
// @description testdesc
// @include about:preferences
// ==/UserScript==
- Set
pref("userChromeJS.persistent_domcontent_callback", true);.
- Navigate to
about:preferences#home
- Restart the browser with Clear startup cache & Restart Firefox.
Expected behavior
The script is executed.
Observable behavior
The script is not executed.
Workarounds
Both @include about:preferences#home and @include * work. But the first requires the full list of possible anchors, and the second one requires explicit if (such as: if (R.UniStrings.FFSettingsUrls.some((url) => document.location.href.startsWith(url))), where FFSettingsUrls: ['about:settings', 'about:preferences']).
I tried to fix this in \chrome\utils\boot.sys.mjs, but since there are lots of regexps there, I'd better create a ticket instead ))
Additional
Maybe, URL wildcards are suitable. Something like @include about:preferences*.
Environment
Ver 0.10.0
Steps to reproduce
pref("userChromeJS.persistent_domcontent_callback", true);.about:preferences#homeExpected behavior
The script is executed.
Observable behavior
The script is not executed.
Workarounds
Both
@include about:preferences#homeand@include *work. But the first requires the full list of possible anchors, and the second one requires explicitif(such as:if (R.UniStrings.FFSettingsUrls.some((url) => document.location.href.startsWith(url))), whereFFSettingsUrls: ['about:settings', 'about:preferences']).I tried to fix this in
\chrome\utils\boot.sys.mjs, but since there are lots of regexps there, I'd better create a ticket instead ))Additional
Maybe, URL wildcards are suitable. Something like
@include about:preferences*.Environment
Ver 0.10.0