Closed
Bug 1475255
Opened 8 years ago
Closed 8 years ago
Escaping question mark in content_scripts doesn't work
Categories
(WebExtensions :: Compatibility, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1475263
People
(Reporter: tablerocker, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0
Build ID: 20180704003137
Steps to reproduce:
When writing a Webextension, try to match a literal question mark (not arbitrary character) in manifest.json globs.
https://developer.mozilla.org/en-US/Add-ons/WebExtensions/manifest.json/content_scripts#globs
Single escaping is invalid, double escaping is valid but doesn't work.
Example manifest.json excerpt:
{
"matches": ["<all_urls>"],
"include_globs": [
"*.user.css",
"*.user.styl",
"*.user.css\\?*",
"*.user.styl\\?*"
],
"run_at": "document_idle",
"all_frames": false,
"js": ["content/install-hook-usercss.js"]
}
Actual results:
https://dl.dropboxusercontent.com/s/rku9ag7nlgca2fn/test.user.css?dl=0
is not matched by "*.user.css\\?*"
"*.user.css?*" works but has different, unwanted meaning.
Expected results:
https://dl.dropboxusercontent.com/s/rku9ag7nlgca2fn/test.user.css?dl=0
should be matched by "*.user.css\\?*"
| Reporter | ||
Updated•8 years ago
|
Summary: Escaping question mark in content_scripts globs doesn't work → Escaping question mark in content_scripts doesn't work
| Reporter | ||
Updated•8 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Updated•8 years ago
|
Component: Untriaged → Compatibility
Product: Firefox → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•