gecko-dev/netwerk/protocol/viewsource
Nika Layzell 15316f5e45 Bug 1670530 - Part 2: Consistently update supported interfaces in nsViewSourceChannel, r=necko-reviewers,valentin
Previously, the updates in OnStartRequest were not updating some of the
interface fields, including `nsIHttpChannelInternal`, which caused the wrong
channel object to be queried for Cross-Origin-Opener-Policy status during
process switches after a redirect, and crashes.

In the `browser_application_panel_viewsource-service-worker.js` test case, the
http channel was being intercepted by a service worker, but the non-intercepted
channel was being queried. As the non-intercepted channel had not observed
`OnStartRequest`, the query failed.

Differential Revision: https://phabricator.services.mozilla.com/D98619
2020-12-03 17:08:15 +00:00
..
moz.build Bug 1654103: Standardize on Black for Python code in `mozilla-central`. 2020-10-26 18:34:53 +00:00
nsIViewSourceChannel.idl Bug 1670530 - Part 1: Don't process multipart content when doing a view-source load, r=mattwoodrow,necko-reviewers,valentin 2020-12-03 17:03:45 +00:00
nsViewSourceChannel.cpp Bug 1670530 - Part 2: Consistently update supported interfaces in nsViewSourceChannel, r=necko-reviewers,valentin 2020-12-03 17:08:15 +00:00
nsViewSourceChannel.h Bug 1670530 - Part 2: Consistently update supported interfaces in nsViewSourceChannel, r=necko-reviewers,valentin 2020-12-03 17:08:15 +00:00
nsViewSourceHandler.cpp
nsViewSourceHandler.h