mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
script: Fix check for document root when targeting CSP events (#37474)
The check was incorrect, where it was never matching and always discarding the element. Instead, we should check the owner document, which is the shadow-including root of the node. Part of #4577 --------- Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
parent
576c7445b8
commit
f2d0be1b9a
9 changed files with 15 additions and 34 deletions
|
@ -1,7 +0,0 @@
|
|||
[script-sample-no-opt-in.html]
|
||||
expected: TIMEOUT
|
||||
[JavaScript URLs in iframes should not have a sample.]
|
||||
expected: TIMEOUT
|
||||
|
||||
[Inline event handlers should not have a sample.]
|
||||
expected: TIMEOUT
|
|
@ -1,7 +1,3 @@
|
|||
[script-sample.html]
|
||||
expected: TIMEOUT
|
||||
[JavaScript URLs in iframes should have a sample.]
|
||||
expected: TIMEOUT
|
||||
|
||||
[Inline event handlers should have a sample.]
|
||||
expected: TIMEOUT
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
[style-sample-no-opt-in.html]
|
||||
expected: TIMEOUT
|
||||
[Inline style attributes should not have a sample.]
|
||||
expected: TIMEOUT
|
|
@ -1,4 +0,0 @@
|
|||
[style-sample.html]
|
||||
expected: TIMEOUT
|
||||
[Inline style attributes should have a sample.]
|
||||
expected: TIMEOUT
|
|
@ -8,6 +8,3 @@
|
|||
|
||||
[Correct targeting inside shadow tree (inline handler).]
|
||||
expected: TIMEOUT
|
||||
|
||||
[Elements created in this document, but pushed into a same-origin frame trigger on that frame's document, not on this frame's document.]
|
||||
expected: TIMEOUT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue