Closed
Bug 1491388
Opened 6 years ago
Closed 6 years ago
Ensure a newly registered userScript doesn't use a revoked blob url because of a js code string shared with an unregistered userScript
Categories
(WebExtensions :: General, enhancement, P1)
WebExtensions
General
Tracking
(firefox64 verified)
VERIFIED
FIXED
mozilla64
Tracking | Status | |
---|---|---|
firefox64 | --- | verified |
People
(Reporter: rpl, Assigned: rpl)
References
Details
Attachments
(2 files)
This issue is a follow up for Bug 1437861:
when a js code string is shared between multiple registered userScripts, the resulting blob url is also shared between all these userScripts (when they are registered from the same extension context).
We should ensure that a newly registered user script doesn't use a revoked blob url for a js code string shared with an unregistered userScript, and apply changes to the userScript tests to ensure that this behavior doesn't regress.
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Comment 2•6 years ago
|
||
Comment on attachment 9009196 [details]
Bug 1491388 - Clear userScripts revoked urls and refresh sharedData contentScripts on register/unregister. r?mixedpuppy!
Shane Caraveo (:mixedpuppy) has approved the revision.
Attachment #9009196 -
Flags: review+
Updated•6 years ago
|
Attachment #9009196 -
Attachment description: Bug 1491388 - Clear userScripts revoked urls from the map keyed by their computed hash. r?mixedpuppy! → Bug 1491388 - Clear userScripts revoked urls and refresh sharedData contentScripts on register/unregister. r?mixedpuppy!
Pushed by luca.greco@alcacoop.it:
https://hg.mozilla.org/integration/autoland/rev/f8e1ccdf01a5
Clear userScripts revoked urls and refresh sharedData contentScripts on register/unregister. r=mixedpuppy
Comment 4•6 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
Assignee | ||
Comment 5•6 years ago
|
||
STR to QA verify this bug:
- install the test extension from Bug 1437861 comment 44 and register a userScript with the same js code string for two or more times
- open a new tab that should trigger the registered userScript
- Expected behavior on fixed version:
the last registered script is matched and run as expected
- Actual behavior on the non-fixed version:
the registered script doesn't run because the blob url has been revoked when we have registered the same js code more than once
Comment 6•6 years ago
|
||
Verified as fixed following the steps from https://bugzilla.mozilla.org/show_bug.cgi?id=1491388#c5 .
I will attach a before\after postfix screenshot.
Status: RESOLVED → VERIFIED
Comment 7•6 years ago
|
||
Updated•6 years ago
|
Attachment #9010933 -
Attachment description: before-after.png → Before\after fix screenshot.
Updated•6 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•