Closed
Bug 1321615
Opened 8 years ago
Closed 8 years ago
(Re-)add tests for webrequest modifications of top level loads
Categories
(WebExtensions :: Request Handling, defect, P1)
Tracking
(firefox53 fixed)
RESOLVED
FIXED
mozilla53
Tracking | Status | |
---|---|---|
firefox53 | --- | fixed |
People
(Reporter: aswan, Assigned: mixedpuppy)
Details
Attachments
(1 file)
58 bytes,
text/x-review-board-request
|
Details |
Bug 1314492 was a large refactoring of the webrequest tests. But it also inadvertently dropped test coverage for blocking webrequest listeners that modify top level loads (or more specifically, loads without a loading principal).
Note that this is similar to but not the same as bug 1318800 which was just about passive listeners.
Comment hidden (mozreview-request) |
Reporter | ||
Updated•8 years ago
|
Attachment #8816241 -
Flags: review?(aswan) → review?(kmaglione+bmo)
Comment 2•8 years ago
|
||
mozreview-review |
Comment on attachment 8816241 [details]
Bug 1321615 fix tests for header modification in toplevel loads,
https://reviewboard.mozilla.org/r/97040/#review97264
Attachment #8816241 -
Flags: review?(kmaglione+bmo) → review+
Pushed by mixedpuppy@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/4c343bdb6e2a
fix tests for header modification in toplevel loads, r=kmag
Comment 4•8 years ago
|
||
Assignee | ||
Comment 5•8 years ago
|
||
Comment hidden (mozreview-request) |
Assignee | ||
Comment 7•8 years ago
|
||
The curious thing about this failure is that it fails in a way that doesn't make sense. We test for a valid array, then use array.find which throws undefined (log below).
I was unable to repro on try in comment 5, so I'm going to try re-landing this. There has been some flux in the webrequest code, so the cause may have been addressed.
INFO - TEST-PASS | browser/components/extensions/test/browser/browser_ext_webRequest.js | valid responseHeaders array -
INFO - Console message: [JavaScript Error: "headers.find(...) is undefined" {file: "moz-extension://9ccd484f-f7c2-48e0-b1af-863a1bb49c89/%7B9857a585-a039-4142-86cd-0140d50ab68a%7D.js" line: 128}]
INFO - checkHeaders@moz-extension://9ccd484f-f7c2-48e0-b1af-863a1bb49c89/%7B9857a585-a039-4142-86cd-0140d50ab68a%7D.js:128:19
Pushed by mixedpuppy@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/3fa1db0853db
fix tests for header modification in toplevel loads, r=kmag
Comment 9•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox53:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla53
Reporter | ||
Updated•8 years ago
|
Attachment #8816241 -
Flags: review?(aswan)
Updated•6 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•