Closed Bug 1788657 Opened 2 years ago Closed 5 months ago

Implement "script.realmCreated" event

Categories

(Remote Protocol :: WebDriver BiDi, task, P2)

task
Points:
5

Tracking

(firefox119 fixed)

RESOLVED FIXED
119 Branch
Tracking Status
firefox119 --- fixed

People

(Reporter: whimboo, Assigned: Sasha)

References

(Blocks 2 open bugs, )

Details

(Whiteboard: [webdriver:m8][wptsync upstream][webdriver:relnote])

Attachments

(3 files)

This event is needed for clients to handle newly created realms.

Blocks: 1766240
Blocks: 1788757
No longer blocks: 1766240

With the implementation in this bug we should emit this event internally for the default window realm and any sandbox that is created by the script module. Then the root script module can pick-up the event and forward it to the client if a subscription is active.

The only thing that is problematic right now is that the script module only gets instantiated when any command from this module gets run, or a an event gets subscribed to. We filed bug 1788760 to have a method to automatically instantiate specific modules when a new message handler instance gets created. But that's not blocking us here.

Depends on: 1788760
See Also: → 1788760
No longer depends on: 1788760
Blocks: 1788894

We will discuss this bug in detail next week.

Priority: -- → P2
Whiteboard: [webdriver:triage]

This bug should cover the low-level bits for default window and sandbox realms. Once the event is subscribed for all browsing contexts the event should be enabled and the content module should emit this event.

Points: --- → 5
Whiteboard: [webdriver:triage] → [webdriver:backlog]
No longer blocks: 1788894
Depends on: 1788894
Assignee: nobody → aborovova
Status: NEW → ASSIGNED
Whiteboard: [webdriver:backlog] → [webdriver:m8]
Pushed by aborovova@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/eed7841ab9a1
[bidi] Do not return sandbox name in realm info when it equals `null`. r=webdriver-reviewers,whimboo
https://hg.mozilla.org/integration/autoland/rev/a8d1fa5d0a66
[bidi] Implement "script.realmCreated" event. r=webdriver-reviewers,whimboo
https://hg.mozilla.org/integration/autoland/rev/d6ecc636ef35
[wdspec] Add tests for "script.realmCreated" event. r=webdriver-reviewers,whimboo
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/42152 for changes under testing/web-platform/tests
Whiteboard: [webdriver:m8] → [webdriver:m8], [wptsync upstream]
Upstream PR merged by moz-wptsync-bot
Whiteboard: [webdriver:m8], [wptsync upstream] → [webdriver:m8][wptsync upstream][webdriver:relnote]
You need to log in before you can comment on or make changes to this bug.