Tab crash when view-source: request is modified by webRequest.StreamFilter.write()
Categories
(WebExtensions :: Request Handling, defect)
Tracking
(Not tracked)
People
(Reporter: aaron.j.papp, Unassigned)
References
Details
Attachments
(1 file)
37.08 KB,
application/x-zip-compressed
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0
Steps to reproduce:
I can reproduce by following these steps:
- Go to about:debugging#/runtime/this-firefox
- User "Load temporary Add-on..." to load the sample extension attached.
- Paste view-source:https://www.example.com/ in the address bar and press Enter
When webRequest.StreamFilter.write() is used in a browser.webRequest.onHeadersReceived listener to modify response content, view-source: requests crash the tab.
Actual results:
The tab crashes.
Expected results:
The tab shouldn't crash; also, one of the following:
- The response is successfully modified.
- The response is not modified and a catch-able error is thrown.
Or alternatively, have some way to filter out or discern view-source: requests in webRequest handlers or the details object passed to the handler.
Comment 1•4 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Comment 2•4 years ago
|
||
Hello,
I’ve managed to reproduce the issue only on the latest Release (84.0.2/20210105180113) under Windows 10 x64 and Ubuntu 16.04 LTS. The latest Nightly and Beta are unaffected by this.
As mentioned in the report, the tab crashes as soon as view-source:https://www.example.com/
is input in the address bar and the Enter key is pressed.
Comment 3•4 years ago
|
||
view-source:
crash was fixed by bug 1678734
There is a feature request to help with detecting view-source requests at bug 1683646
Updated•4 years ago
|
Description
•