Use xpc::InitGlobalObjectOptions more
Categories
(Core :: DOM: Core & HTML, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox120 | --- | fixed |
People
(Reporter: tschuster, Assigned: tschuster)
References
(Blocks 1 open bug)
Details
(Whiteboard: [sp3])
Attachments
(3 files)
We already use xpc::InitGlobalObjectOptions in two places to set-up some common RealmOption options. However we have a lot more places that create realms (globals) that could probably benefit from using this shared helper.
I don't really like having all these boolean parameters, but I don't have a good solution for it right now. One partial idea I had was to pass the ShouldResistFingerprinting function as a pointer to reduce the amount of code duplication and number of parameters?
Assignee | ||
Comment 1•1 year ago
|
||
Assignee | ||
Comment 2•1 year ago
|
||
This introduces two slight changes of behavior:
- Workers with a system principal are now always treated as secure context, without looking at the mIsSecureContext flag.
- We now also discard sources for all types of workers with a system principal
Depends on D190281
Assignee | ||
Comment 3•1 year ago
|
||
Comment 5•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a123f5f76df9
https://hg.mozilla.org/mozilla-central/rev/851710cba0db
https://hg.mozilla.org/mozilla-central/rev/71a693e4a4d9
https://hg.mozilla.org/mozilla-central/rev/99a4d6fcfc2f
Updated•1 year ago
|
Updated•1 year ago
|
Description
•