Closed Bug 2072964 Opened 2 months ago Closed 1 month ago

[firefox-devtools-mcp] Restrict commands to use navigables from a dedicated container

Categories

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

enhancement
Points:
3

Tracking

(firefox160 fixed)

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

(Blocks 1 open bug)

Details

(Whiteboard: [webdriver:m22] )

Attachments

(3 external files)

Follow up to Bug 2067104. Once we start creating/using a dedicated user context/container for a given WebDriver session, the commands used in scope of this session should not be allowed to reach any browsing context which doesn't belong to this user context.

Might become a meta if we want to progressively enforce this, but from the user's point of view, the experience should be consistent (eg do not allow to navigate, but not to execute script, etc...).

Points: --- → 13
Priority: -- → P2
Whiteboard: [webdriver:m22]
Blocks: 2081128
Blocks: 2081129
Points: 13 → 3
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED

The scope of this bug was restricted to:

  • add the restriction around browsing contexts (via an update to the _getNavigable helper)
  • add a helper to check the user context shared across modules

Additional modifications - restrict browser commands and update global behavior - have been moved to Bug 2081128 and Bug 2081129 respectively.

Summary: Restrict commands to the dedicated user context for the session → [firefox-devtools-mcp] Restrict commands to use navigables from a dedicated container
Pushed by jdescottes@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/cd720b544931 https://hg.mozilla.org/integration/autoland/rev/45e5dd27f204 [bidi] Use a shared helper to resolve user context ids in BiDi modules r=webdriver-reviewers,Sasha https://github.com/mozilla-firefox/firefox/commit/48441653d19c https://hg.mozilla.org/integration/autoland/rev/9bdff5249412 [bidi] Restrict browsing context access to a single container r=webdriver-reviewers,Sasha https://github.com/mozilla-firefox/firefox/commit/a00b1f5c545d https://hg.mozilla.org/integration/autoland/rev/36bf59ac917e [wdspec] Add tests for WebDriver BiDi sessions restricted to a single container r=webdriver-reviewers,Sasha
Pushed by agoloman@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/d809a3834f25 https://hg.mozilla.org/integration/autoland/rev/1a27ac2fe419 Revert "Bug 2072964 - [wdspec] Add tests for WebDriver BiDi sessions restricted to a single container r=webdriver-reviewers,Sasha" for causing wd failures @container_isolation.py.

Backed out for causing wd failures @container_isolation.py.

Flags: needinfo?(jdescottes)

Ah yes, need to skip all the new tests on android because we don't support user contexts there.

Flags: needinfo?(jdescottes)
Pushed by jdescottes@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/35f0f3f5a6f8 https://hg.mozilla.org/integration/autoland/rev/8e81d108e476 [bidi] Use a shared helper to resolve user context ids in BiDi modules r=webdriver-reviewers,Sasha https://github.com/mozilla-firefox/firefox/commit/66831c33f409 https://hg.mozilla.org/integration/autoland/rev/686192d822b6 [bidi] Restrict browsing context access to a single container r=webdriver-reviewers,Sasha https://github.com/mozilla-firefox/firefox/commit/680e45225760 https://hg.mozilla.org/integration/autoland/rev/f53fb54d8ee9 [wdspec] Add tests for WebDriver BiDi sessions restricted to a single container r=webdriver-reviewers,Sasha
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: