Closed Bug 1959370 Opened 10 months ago Closed 8 months ago

Add an ability to disable and enable security checks per user context for testing

Categories

(Core :: Security: PSM, task, P2)

task
Points:
5

Tracking

()

RESOLVED FIXED
140 Branch
Tracking Status
firefox140 --- fixed

People

(Reporter: Sasha, Assigned: Sasha)

References

Details

(Whiteboard: [webdriver:m16])

Attachments

(1 file)

For WebDriver Classic and BiDi we use now SetDisableAllSecurityChecksAndLetAttackersInterceptMyData to disable security checks during the session, if it's requested by a client.
Now we have a new requirement to be able to control this also on user context level: disable these checks for a specific user context.
Our suggestion would be to add an optional userContext argument to SetDisableAllSecurityChecksAndLetAttackersInterceptMyData method to build a list of user contexts and validate against it before checking the global flag mDisableAllSecurityCheck.

Update after the spec has changed:
We also need to be able to enable security checks per user context (even if they are disabled globally). Also we have to be able to reset the state per user context and fallback to the global state. For example, the security checks are disabled globaly and enabled for a certain user context. After session ends, we have to make sure that state for this user context is reset and now they are disabled as it's globally.

Blocks: 1959372
Assignee: nobody → aborovova
Status: NEW → ASSIGNED
Attachment #9485325 - Attachment description: Bug 1959370 - Add an ability to disable security checks per user context for testing. → Bug 1959370 - Add an ability to disable and enable security checks per user context for testing.
Summary: Add an ability to disable security checks per user context for testing → Add an ability to disable and enable security checks per user context for testing
Attachment #9485325 - Attachment description: Bug 1959370 - Add an ability to disable and enable security checks per user context for testing. → Bug 1959370 - Add an ability to disable security checks per user context for testing.
Attachment #9485325 - Attachment description: Bug 1959370 - Add an ability to disable security checks per user context for testing. → Bug 1959370 - Add an ability to disable and enable security checks per user context for testing.
Pushed by aborovova@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/dfe517acdb50 Add an ability to disable and enable security checks per user context for testing. r=keeler
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
QA Whiteboard: [qa-triage-done-c141/b140]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: