Closed Bug 1567058 Opened 5 years ago Closed 7 days ago

Chapter 1: CSP: Write web-platform tests stressing javascript: navigations

Categories

(Core :: DOM: Security, task, P3)

task

Tracking

()

RESOLVED FIXED

People

(Reporter: ckerschb, Assigned: mbrodesser-Igalia)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [domsecurity-backlog1], [wptsync upstream])

Attachments

(6 files, 1 obsolete file)

As a follow up to Bug 1555043 and also the discussions within github [1] we should write some more CSP web-platform tests to compliment testing/web-platform/tests/content-security-policy/navigation and stress javascript: navigations.

[1] https://github.com/whatwg/html/issues/4651#issuecomment-495050351

Assignee: nobody → ckerschb
Status: NEW → ASSIGNED
Type: defect → task
Priority: -- → P3
Whiteboard: [domsecurity-active]

Putting this one back in the backlog, we have some higher priority work to finish...

Assignee: ckerschb → nobody
Status: ASSIGNED → NEW
Whiteboard: [domsecurity-active] → [domsecurity-backlog1]
Severity: normal normal → S3 S3
Blocks: 1915629
Assignee: nobody → mbrodesser
Attachment #9433995 - Attachment description: WIP: Bug 1567058: part 1) Transform <to-javascript-parent-initiated-parent-csp.html> to promised-based test → Bug 1567058: part 1) Transform <to-javascript-parent-initiated-parent-csp.html> to promised-based test. r=freddyb
Attachment #9433996 - Attachment description: WIP: Bug 1567058: part 2) Start adding tests for when the parent global has CSP and the target global hasn't or when both are equal → Bug 1567058: part 2) Add tests for when the parent global has CSP and the target global hasn't. r=freddyb

Preparation to add more tests. Those tests will have to use promises to
in order to not interfere each other.

Attachment #9433996 - Attachment description: Bug 1567058: part 2) Add tests for when the parent global has CSP and the target global hasn't. r=freddyb → WIP: Bug 1567058: part 2) Add tests for when the parent global has CSP and the target global hasn't. r=freddyb
Attachment #9434537 - Attachment description: WIP: Bug 1567058: part 5) Start adding more tests → WIP: Bug 1567058: part 5) Start adding more tests to <to-javascript-parent-initiated-child-csp.html>
Attachment #9433996 - Attachment description: WIP: Bug 1567058: part 2) Add tests for when the parent global has CSP and the target global hasn't. r=freddyb → Bug 1567058: part 2) Add tests for when the parent global has CSP and the target global hasn't. r=freddyb
Attachment #9434534 - Attachment description: WIP: Bug 1567058: part 3) Simplify <to-javascript-parent-initiated-child-csp.html> → Bug 1567058: part 3) Simplify <to-javascript-parent-initiated-child-csp.html>. r=freddyb
Attachment #9434536 - Attachment description: WIP: Bug 1567058: part 4) Transform <to-javascript-parent-initiated-child-csp.html> to promise-test → Bug 1567058: part 4) Transform <to-javascript-parent-initiated-child-csp.html> to promise-test. r=freddyb
Attachment #9434537 - Attachment description: WIP: Bug 1567058: part 5) Start adding more tests to <to-javascript-parent-initiated-child-csp.html> → Bug 1567058: part 6) Add missing tests to <to-javascript-parent-initiated-child-csp.html>. r=freddyb
Keywords: leave-open
Pushed by mbrodesser@igalia.com: https://hg.mozilla.org/integration/autoland/rev/3d9eb6589469 part 1) Transform <to-javascript-parent-initiated-parent-csp.html> to promised-based test. r=freddyb https://hg.mozilla.org/integration/autoland/rev/30e5049bce41 part 2) Add tests for when the parent global has CSP and the target global hasn't. r=freddyb https://hg.mozilla.org/integration/autoland/rev/5298fa9f2347 part 3) Simplify <to-javascript-parent-initiated-child-csp.html>. r=freddyb https://hg.mozilla.org/integration/autoland/rev/0052fa7b2896 part 4) Transform <to-javascript-parent-initiated-child-csp.html> to promise-test. r=freddyb https://hg.mozilla.org/integration/autoland/rev/17fa09f9fa7f part 5) Factor some code from <to-javascript-parent-initiated-parent-csp.html> out. r=freddyb https://hg.mozilla.org/integration/autoland/rev/c8ab9251d233 part 6) Add missing tests to <to-javascript-parent-initiated-child-csp.html>. r=freddyb
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/49217 for changes under testing/web-platform/tests
Whiteboard: [domsecurity-backlog1] → [domsecurity-backlog1], [wptsync upstream]
Upstream PR merged by moz-wptsync-bot
Attachment #9437741 - Attachment description: WIP: Bug 1567058: part 7) Start adding tests for when both parent and child have a CSP → Bug 1567058: part 7) Add WPTs for `javascript:` URL navigations which check the order of the parent CSP and child CSP. r=freddyb
Blocks: 1933142
Summary: CSP: Write web-platform tests stressing javascript: navigations → Chapter 1: CSP: Write web-platform tests stressing javascript: navigations
Status: NEW → RESOLVED
Closed: 7 days ago
Keywords: leave-open
Resolution: --- → FIXED

Comment on attachment 9437741 [details]
Bug 1567058: part 7) Add WPTs for javascript: URL navigations which check the order of the parent CSP and child CSP. r=freddyb

Revision D229010 was moved to bug 1933142. Setting attachment 9437741 [details] to obsolete.

Attachment #9437741 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: