Use nsIHttpChannelInternal setResponseOverride for local script override
Categories
(DevTools :: Debugger, task)
Tracking
(firefox130 fixed)
Tracking | Status | |
---|---|---|
firefox130 | --- | fixed |
People
(Reporter: jdescottes, Assigned: jdescottes)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
At the moment, local script override relies on redirecting channels to a data URI.
With nsIHttpChannelInternal's setOverrideResponse, we can provide a response body which will be treated as if it was served from the network.
Thanks to this, we can use it for more than scripts, and we should be able to override html, stylesheets, etc...
Assignee | ||
Comment 1•4 months ago
|
||
Depends on D217027
Assignee | ||
Comment 2•4 months ago
|
||
Depends on D217028
Assignee | ||
Comment 3•4 months ago
|
||
Depends on D217029
Assignee | ||
Comment 4•4 months ago
|
||
Recently I often ran into websites with CSP directives for script which forbid data: usage, making the current local override feature unusable. So it might be worth switching to the new approach on that sole basis.
Updated•4 months ago
|
Comment 7•4 months ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c43270a35465
https://hg.mozilla.org/mozilla-central/rev/03568d5fac4b
https://hg.mozilla.org/mozilla-central/rev/3bde83aa76ea
Description
•