Closed Bug 1747059 Opened 2 years ago Closed 2 years ago

[Shadow Realms] Expose Web APIs

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: Ms2ger, Assigned: mgaudet)

References

(Blocks 1 open bug)

Details

Attachments

(6 files, 1 obsolete file)

Severity: -- → S3
Priority: -- → P3
Depends on: 1769322

This is required to interact with Gecko's ProtoHandleGetter type.

I wish it wasn't, but trying to fix the codegen to just root things properly
ate too much of my time.

(Patch largely written by peterv; I just made some compilation tweaks)

Depends on D146349

Depends on D146350

Assignee: nobody → mgaudet
Status: NEW → ASSIGNED
Blocks: 1771524

Comment on attachment 9276517 [details]
WIP: Bug 1747059 - Enable running shadow realm WPT tests

Revision D146351 was moved to bug 1771524. Setting attachment 9276517 [details] to obsolete.

Attachment #9276517 - Attachment is obsolete: true
Attachment #9276515 - Attachment description: WIP: Bug 1747059 - Gecko support for ShadowRealms → Bug 1747059 - Gecko support for ShadowRealms r?peterv!,smaug!
Attachment #9276516 - Attachment description: WIP: Bug 1747059 - Ensure ShadowRealmsGlobalScope has an ordinary object prototype. → Bug 1747059 - Ensure ShadowRealmsGlobalScope has an ordinary object prototype. r?edgar
Attachment #9276514 - Attachment description: WIP: Bug 1747059 - Add GetRealmObjectPrototypeHandle → Bug 1747059 - Add GetRealmObjectPrototypeHandle r?jandem
Pushed by mgaudet@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e06192e664fd
Use AllowIfExists in nsJSUtils::IsScriptable r=smaug
https://hg.mozilla.org/integration/autoland/rev/8115813e77a5
Add ShadowRealm module loader support to ScriptLoader r=yulia
https://hg.mozilla.org/integration/autoland/rev/aad38abc7139
Add GetRealmObjectPrototypeHandle r=jonco
https://hg.mozilla.org/integration/autoland/rev/f7b049ef3b8c
Gecko support for ShadowRealms r=peterv,smaug
https://hg.mozilla.org/integration/autoland/rev/40a257fb4788
Ensure ShadowRealmsGlobalScope has an ordinary object prototype. r=edgar
https://hg.mozilla.org/integration/autoland/rev/ed7aad37f2cf
Correctly select microtask queue when enquing a job in a ShadowRealm in a worker. r=smaug

Backed out along with Bug 1767525 for causing hazard failures on ShadowRealmGlobalScope.cpp

Function '_ZN7mozilla3dom20NewShadowRealmGlobalEP9JSContextRN2JS12RealmOptionsEP12JSPrincipalsNS3_6HandleIP8JSObjectEE$JSObject* mozilla::dom::NewShadowRealmGlobal(JSContext*, JS::RealmOptions*, JSPrincipals*, JS::Handle<JSObject*>)' has unrooted '<returnvalue>' of type 'JSObject*' live across GC call 'nsCOMPtr<T>::~nsCOMPtr() [with T = nsIGlobalObject] [[complete_dtor]]' at dom/script/ShadowRealmGlobalScope.cpp:53
Flags: needinfo?(mgaudet)
Pushed by mgaudet@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d7216dbfe77c
Use AllowIfExists in nsJSUtils::IsScriptable r=smaug
https://hg.mozilla.org/integration/autoland/rev/e5989730d306
Add ShadowRealm module loader support to ScriptLoader r=yulia
https://hg.mozilla.org/integration/autoland/rev/0bff2200929e
Add GetRealmObjectPrototypeHandle r=jonco
https://hg.mozilla.org/integration/autoland/rev/0a045042fc65
Gecko support for ShadowRealms r=peterv,smaug
https://hg.mozilla.org/integration/autoland/rev/21466a3860e7
Ensure ShadowRealmsGlobalScope has an ordinary object prototype. r=edgar
https://hg.mozilla.org/integration/autoland/rev/d78c028ad053
Correctly select microtask queue when enquing a job in a ShadowRealm in a worker. r=smaug
Flags: needinfo?(mgaudet)
Regressions: 1797707
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: