Implement WindowOrWorkerGlobalScope.origin

The test document_domain_setter.html now fails, but AFAIK the origin
comparison can never be true (document.origin is the unprefixed domain,
while the loaded iframe is from www1.…), and that test fails in all
major browsers because of security exceptions anyway.
This commit is contained in:
Anthony Ramine 2018-04-27 11:29:47 +02:00
parent 88a0265c00
commit 73b5bf201f
7 changed files with 18 additions and 21 deletions

View file

@ -0,0 +1,4 @@
[document_domain_setter.html]
[same-origin-domain iframe]
expected: FAIL

View file

@ -4973,9 +4973,6 @@
[Window interface: attribute onmessageerror]
expected: FAIL
[Window interface: attribute origin]
expected: FAIL
[Window interface: operation createImageBitmap(ImageBitmapSource, ImageBitmapOptions)]
expected: FAIL
@ -5075,9 +5072,6 @@
[Window interface: window must inherit property "onmessageerror" with the proper type]
expected: FAIL
[Window interface: window must inherit property "origin" with the proper type]
expected: FAIL
[Window interface: window must inherit property "createImageBitmap(ImageBitmapSource, ImageBitmapOptions)" with the proper type]
expected: FAIL

View file

@ -1,11 +0,0 @@
[self-origin.any.worker.html]
type: testharness
[self.origin should be correct]
expected: FAIL
[self-origin.any.html]
type: testharness
[self.origin should be correct]
expected: FAIL

View file

@ -260,7 +260,7 @@
expected: FAIL
[WorkerGlobalScope interface: attribute origin]
expected: FAIL
expected: TIMEOUT
[WorkerGlobalScope interface: operation createImageBitmap(ImageBitmapSource, ImageBitmapOptions)]
expected: FAIL