Cannot register webRequest event from extension page in debug mode
Categories
(WebExtensions :: Request Handling, defect)
Tracking
(firefox75 fixed, firefox76 fixed)
People
(Reporter: robwu, Assigned: robwu)
References
Details
Attachments
(1 file)
47 bytes,
text/x-phabricator-request
|
jcristau
:
approval-mozilla-beta+
|
Details | Review |
I ran an extension in debug mode that relied on a webRequest listener in an extension page, and was surprised to see that the webRequest listener was not triggered in debug mode.
When I opened the global JavaScript console, I found the following errors:
can't access property "module", this.persistent is null ExtensionCommon.jsm:2195
can't access property "setUserInput", handler is undefined ExtensionParent.jsm:1186
can't access property "removeListener", handler is undefined ExtensionParent.jsm:1204
can't access property "removeListener", handler is undefined ExtensionParent.jsm:1204
The first error shows the source of my observed bugs. The this.persistent
object is cleared before it is dereferenced: https://searchfox.org/mozilla-central/rev/f1f75f0a2d995241fbc454edfab4be1064c544e1/toolkit/components/extensions/ExtensionCommon.jsm#2187,2195
Assignee | ||
Comment 1•5 years ago
|
||
And remove an unused "ext"/"extension parameter from an existing test.
Assignee | ||
Updated•5 years ago
|
Comment 3•5 years ago
|
||
bugherder |
Comment 4•5 years ago
|
||
Comment on attachment 9134878 [details]
Bug 1624062 - Support webRequest listeners from extension pages in debug mode
let's get this on beta as well per https://bugzilla.mozilla.org/show_bug.cgi?id=1621935#c10
Comment 5•5 years ago
|
||
bugherder uplift |
Description
•