improve spec compliance of discarding BCs

do not handle compositor input events when BC is being discarded

prevent firing of timers for discarded BCs

return null for opener is BC has been discarded

bundle discard BC steps into window method

return null in window.opener, if BC has already been discarded

move the window closed check pre-event to script-thread
This commit is contained in:
Gregory Terzian 2019-09-05 16:12:52 +08:00
parent 4fe8238b14
commit 45ec250b0a
7 changed files with 133 additions and 53 deletions

View file

@ -1,7 +1,3 @@
[close-method.window.html]
[window.close() affects name targeting immediately]
expected: FAIL
[window.close() queues a task to discard, but window.closed knows immediately]
expected: FAIL

View file

@ -1,20 +1,20 @@
[nested-context-navigations-iframe.html]
expected: CRASH
expected: TIMEOUT
[Test that iframe navigations are not observable by the parent, even after history navigations by the parent]
expected: TIMEOUT
expected: FAIL
[Test that crossorigin iframe navigations are not observable by the parent, even after history navigations by the parent]
expected: NOTRUN
expected: FAIL
[Test that iframe refreshes are not observable by the parent]
expected: NOTRUN
expected: TIMEOUT
[Test that crossorigin iframe navigations are not observable by the parent]
expected: NOTRUN
expected: FAIL
[Test that crossorigin iframe refreshes are not observable by the parent]
expected: NOTRUN
[Test that iframe navigations are not observable by the parent]
expected: NOTRUN
expected: FAIL

View file

@ -1,29 +1,17 @@
[dedicated-worker-import-csp.html]
expected: CRASH
expected: OK
[DedicatedWorker: CSP for ES Modules]
expected: FAIL
[worker-src 'self' directive should disallow cross origin static import.]
expected: FAIL
[worker-src * directive should allow cross origin static import.]
expected: FAIL
[script-src 'self' directive should disallow cross origin static import.]
expected: FAIL
[script-src * directive should allow cross origin static import.]
expected: FAIL
[worker-src * directive should override script-src 'self' directive and allow cross origin static import.]
expected: FAIL
[worker-src 'self' directive should override script-src * directive and disallow cross origin static import.]
expected: FAIL
[script-src 'self' directive should disallow cross origin dynamic import.]
expected: FAIL
[script-src * directive should allow cross origin dynamic import.]
expected: FAIL