Closed Bug 1582577 Opened 5 months ago Closed 5 months ago

Refactor a data: loadProcessScript from DevTools

Categories

(DevTools :: General, defect)

defect
Not set

Tracking

(firefox71 fixed)

RESOLVED FIXED
Firefox 71
Tracking Status
firefox71 --- fixed

People

(Reporter: tjr, Assigned: tjr)

References

Details

Attachments

(1 file)

We'd like to turn this call into a proper script rather than a data: URL. That way we can disallow data URLs.

Component: Security → General
Product: Firefox → DevTools

Does this actually get loaded in the parent process?

Alex, I think this is something you might be able to help with.

Flags: needinfo?(poirot.alex)

I actually hit that when looking at bug 1580168, which has to tweak this process script.
I dot not have access to the bug it is blocking, but if that is urgent, yes, we can use a resource of chrome script.
https://searchfox.org/mozilla-central/source/devtools/server/startup would be a good folter to host such script, we already have "frame.js", which is a frame script.

Flags: needinfo?(poirot.alex)

Tom, Would you mind if I land your patch?
I would like to do some modification to this file and don't want to bitrot your patch...

Flags: needinfo?(tom)

I queued it; it's fine to land, yes.

Flags: needinfo?(tom)
Pushed by tritter@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c642c18c31ba
Refactor a data: loadProcessScript from DevTools r=ochameau
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 71
Duplicate of this bug: 1580231
You need to log in before you can comment on or make changes to this bug.