Closed
Bug 1388889
Opened 6 years ago
Closed 6 years ago
sandboxed requests are not viewable in webrequest to do origin check
Categories
(WebExtensions :: Request Handling, enhancement, P1)
Tracking
(firefox57 fixed)
RESOLVED
FIXED
mozilla57
Tracking | Status | |
---|---|---|
firefox57 | --- | fixed |
People
(Reporter: mixedpuppy, Assigned: mixedpuppy)
Details
Attachments
(1 file, 1 obsolete file)
The origin check in ext-webrequest prevents viewing sandboxed requests due to origin being moz-nullprincipal. Ad blockers need to be able to see these requests.
Assignee | ||
Comment 1•6 years ago
|
||
Also, if the test lands with bug 1305237, it [test_ext_webrequest_frameId.html] will need to be updated.
Assignee | ||
Comment 2•6 years ago
|
||
for later.
Comment hidden (mozreview-request) |
Assignee | ||
Updated•6 years ago
|
Attachment #8895560 -
Attachment is obsolete: true
Comment 4•6 years ago
|
||
mozreview-review |
Comment on attachment 8895603 [details] Bug 1388889 fix null principal handling for webrequest, https://reviewboard.mozilla.org/r/166814/#review172992 ::: toolkit/components/extensions/ext-webRequest.js:34 (Diff revision 1) > return; > } > // and the origin that is loading the resource. > const origin = data.documentUrl; > const own = origin && origin.startsWith(context.extension.getURL()); > - if (origin && !own && !hosts.matches(Services.io.newURI(origin))) { > + const nullPrincipal = origin && origin.startsWith("moz-nullprincipal:"); We should check `principal.isNullPrincipal` here. `moz-nullprincipal:` origins are an unreliable implementation detail.
Attachment #8895603 -
Flags: review?(kmaglione+bmo)
Comment hidden (mozreview-request) |
Comment 6•6 years ago
|
||
mozreview-review |
Comment on attachment 8895603 [details] Bug 1388889 fix null principal handling for webrequest, https://reviewboard.mozilla.org/r/166814/#review175518
Attachment #8895603 -
Flags: review?(kmaglione+bmo) → review+
Comment hidden (mozreview-request) |
Assignee | ||
Updated•6 years ago
|
Comment hidden (mozreview-request) |
Assignee | ||
Comment 9•6 years ago
|
||
Slightly reworked the test patch to loose the dependency.
No longer depends on: 1305237
Comment 10•6 years ago
|
||
Pushed by mixedpuppy@gmail.com: https://hg.mozilla.org/integration/autoland/rev/59352665f357 fix null principal handling for webrequest, r=kmag
Comment 11•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/59352665f357
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox57:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Updated•5 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•