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
..