Changeset 257572 in webkit


Ignore:
Timestamp:
Feb 27, 2020 10:08:19 AM (4 years ago)
Author:
commit-queue@webkit.org
Message:

Add referrerpolicy attribute support for images
https://bugs.webkit.org/show_bug.cgi?id=207901

Patch by Rob Buis <rbuis@igalia.com> on 2020-02-27
Reviewed by Darin Adler.

LayoutTests/imported/w3c:

Update improved test results.

  • web-platform-tests/html/dom/idlharness.https-expected.txt:
  • web-platform-tests/html/dom/interfaces-expected.txt:
  • web-platform-tests/html/dom/reflection-embedded-expected.txt:
  • web-platform-tests/html/semantics/embedded-content/the-img-element/original-referrer-policy-applied.sub-expected.txt:

Source/WebCore:

This patch adds 'referrerpolicy' attribute support for img elements.
If set, the value is restricted to the ReferrerPolicy enum, and
if valid it is used for the script fetch.
If not set or invalid, the current behavior is kept.

Tests: http/tests/referrer-policy-img/no-referrer-when-downgrade/cross-origin-http-http.html

http/tests/referrer-policy-img/no-referrer-when-downgrade/cross-origin-http.https.html
http/tests/referrer-policy-img/no-referrer-when-downgrade/same-origin.html
http/tests/referrer-policy-img/no-referrer/cross-origin-http-http.html
http/tests/referrer-policy-img/no-referrer/cross-origin-http.https.html
http/tests/referrer-policy-img/no-referrer/same-origin.html
http/tests/referrer-policy-img/origin-when-cross-origin/cross-origin-http-http.html
http/tests/referrer-policy-img/origin-when-cross-origin/cross-origin-http.https.html
http/tests/referrer-policy-img/origin-when-cross-origin/same-origin.html
http/tests/referrer-policy-img/origin/cross-origin-http-http.html
http/tests/referrer-policy-img/origin/cross-origin-http.https.html
http/tests/referrer-policy-img/origin/same-origin.html
http/tests/referrer-policy-img/same-origin/cross-origin-http-http.html
http/tests/referrer-policy-img/same-origin/cross-origin-http.https.html
http/tests/referrer-policy-img/same-origin/same-origin.html
http/tests/referrer-policy-img/strict-origin-when-cross-origin/cross-origin-http-http.html
http/tests/referrer-policy-img/strict-origin-when-cross-origin/cross-origin-http.https.html
http/tests/referrer-policy-img/strict-origin-when-cross-origin/same-origin.html
http/tests/referrer-policy-img/strict-origin/cross-origin-http-http.html
http/tests/referrer-policy-img/strict-origin/cross-origin-http.https.html
http/tests/referrer-policy-img/strict-origin/same-origin.html
http/tests/referrer-policy-img/unsafe-url/cross-origin-http-http.html
http/tests/referrer-policy-img/unsafe-url/cross-origin-http.https.html
http/tests/referrer-policy-img/unsafe-url/same-origin.html

  • html/HTMLImageElement.cpp:

(WebCore::HTMLImageElement::setReferrerPolicyForBindings):
(WebCore::HTMLImageElement::referrerPolicyForBindings const):
(WebCore::HTMLImageElement::referrerPolicy const):

  • html/HTMLImageElement.h:
  • html/HTMLImageElement.idl:
  • loader/ImageLoader.cpp:

(WebCore::ImageLoader::updateFromElement):

LayoutTests:

Add tests for images with various referrerpolicy attribute values.

  • http/tests/referrer-policy-img/no-referrer-when-downgrade/cross-origin-http-http-expected.txt: Added.
  • http/tests/referrer-policy-img/no-referrer-when-downgrade/cross-origin-http-http.html: Added.
  • http/tests/referrer-policy-img/no-referrer-when-downgrade/cross-origin-http.https-expected.txt: Added.
  • http/tests/referrer-policy-img/no-referrer-when-downgrade/cross-origin-http.https.html: Added.
  • http/tests/referrer-policy-img/no-referrer-when-downgrade/same-origin-expected.txt: Added.
  • http/tests/referrer-policy-img/no-referrer-when-downgrade/same-origin.html: Added.
  • http/tests/referrer-policy-img/no-referrer/cross-origin-http-http-expected.txt: Added.
  • http/tests/referrer-policy-img/no-referrer/cross-origin-http-http.html: Added.
  • http/tests/referrer-policy-img/no-referrer/cross-origin-http.https-expected.txt: Added.
  • http/tests/referrer-policy-img/no-referrer/cross-origin-http.https.html: Added.
  • http/tests/referrer-policy-img/no-referrer/same-origin-expected.txt: Added.
  • http/tests/referrer-policy-img/no-referrer/same-origin.html: Added.
  • http/tests/referrer-policy-img/origin-when-cross-origin/cross-origin-http-http-expected.txt: Added.
  • http/tests/referrer-policy-img/origin-when-cross-origin/cross-origin-http-http.html: Added.
  • http/tests/referrer-policy-img/origin-when-cross-origin/cross-origin-http.https-expected.txt: Added.
  • http/tests/referrer-policy-img/origin-when-cross-origin/cross-origin-http.https.html: Added.
  • http/tests/referrer-policy-img/origin-when-cross-origin/same-origin-expected.txt: Added.
  • http/tests/referrer-policy-img/origin-when-cross-origin/same-origin.html: Added.
  • http/tests/referrer-policy-img/origin/cross-origin-http-http-expected.txt: Added.
  • http/tests/referrer-policy-img/origin/cross-origin-http-http.html: Added.
  • http/tests/referrer-policy-img/origin/cross-origin-http.https-expected.txt: Added.
  • http/tests/referrer-policy-img/origin/cross-origin-http.https.html: Added.
  • http/tests/referrer-policy-img/origin/same-origin-expected.txt: Added.
  • http/tests/referrer-policy-img/origin/same-origin.html: Added.
  • http/tests/referrer-policy-img/same-origin/cross-origin-http-http-expected.txt: Added.
  • http/tests/referrer-policy-img/same-origin/cross-origin-http-http.html: Added.
  • http/tests/referrer-policy-img/same-origin/cross-origin-http.https-expected.txt: Added.
  • http/tests/referrer-policy-img/same-origin/cross-origin-http.https.html: Added.
  • http/tests/referrer-policy-img/same-origin/same-origin-expected.txt: Added.
  • http/tests/referrer-policy-img/same-origin/same-origin.html: Added.
  • http/tests/referrer-policy-img/strict-origin-when-cross-origin/cross-origin-http-http-expected.txt: Added.
  • http/tests/referrer-policy-img/strict-origin-when-cross-origin/cross-origin-http-http.html: Added.
  • http/tests/referrer-policy-img/strict-origin-when-cross-origin/cross-origin-http.https-expected.txt: Added.
  • http/tests/referrer-policy-img/strict-origin-when-cross-origin/cross-origin-http.https.html: Added.
  • http/tests/referrer-policy-img/strict-origin-when-cross-origin/same-origin-expected.txt: Added.
  • http/tests/referrer-policy-img/strict-origin-when-cross-origin/same-origin.html: Added.
  • http/tests/referrer-policy-img/strict-origin/cross-origin-http-http-expected.txt: Added.
  • http/tests/referrer-policy-img/strict-origin/cross-origin-http-http.html: Added.
  • http/tests/referrer-policy-img/strict-origin/cross-origin-http.https-expected.txt: Added.
  • http/tests/referrer-policy-img/strict-origin/cross-origin-http.https.html: Added.
  • http/tests/referrer-policy-img/strict-origin/same-origin-expected.txt: Added.
  • http/tests/referrer-policy-img/strict-origin/same-origin.html: Added.
  • http/tests/referrer-policy-img/unsafe-url/cross-origin-http-http-expected.txt: Added.
  • http/tests/referrer-policy-img/unsafe-url/cross-origin-http-http.html: Added.
  • http/tests/referrer-policy-img/unsafe-url/cross-origin-http.https-expected.txt: Added.
  • http/tests/referrer-policy-img/unsafe-url/cross-origin-http.https.html: Added.
  • http/tests/referrer-policy-img/unsafe-url/same-origin-expected.txt: Added.
  • http/tests/referrer-policy-img/unsafe-url/same-origin.html: Added.
  • http/tests/referrer-policy-script/unsafe-url/cross-origin-http-http.html:
  • http/tests/referrer-policy/resources/image.php: Added.
  • platform/gtk/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt:
  • platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt:
  • platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt:
  • platform/ios/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt:
  • platform/mac-wk1/TestExpectations:
  • platform/mac-wk1/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt:
  • platform/mac-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt:
  • platform/win/TestExpectations:
  • platform/wpe/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt:
  • platform/wpe/imported/w3c/web-platform-tests/html/dom/interfaces-expected.txt:
  • platform/wpe/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt:
Location:
trunk
Files:
58 added
23 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r257556 r257572  
     12020-02-27  Rob Buis  <rbuis@igalia.com>
     2
     3        Add referrerpolicy attribute support for images
     4        https://bugs.webkit.org/show_bug.cgi?id=207901
     5
     6        Reviewed by Darin Adler.
     7
     8        Add tests for images with various referrerpolicy attribute values.
     9
     10        * http/tests/referrer-policy-img/no-referrer-when-downgrade/cross-origin-http-http-expected.txt: Added.
     11        * http/tests/referrer-policy-img/no-referrer-when-downgrade/cross-origin-http-http.html: Added.
     12        * http/tests/referrer-policy-img/no-referrer-when-downgrade/cross-origin-http.https-expected.txt: Added.
     13        * http/tests/referrer-policy-img/no-referrer-when-downgrade/cross-origin-http.https.html: Added.
     14        * http/tests/referrer-policy-img/no-referrer-when-downgrade/same-origin-expected.txt: Added.
     15        * http/tests/referrer-policy-img/no-referrer-when-downgrade/same-origin.html: Added.
     16        * http/tests/referrer-policy-img/no-referrer/cross-origin-http-http-expected.txt: Added.
     17        * http/tests/referrer-policy-img/no-referrer/cross-origin-http-http.html: Added.
     18        * http/tests/referrer-policy-img/no-referrer/cross-origin-http.https-expected.txt: Added.
     19        * http/tests/referrer-policy-img/no-referrer/cross-origin-http.https.html: Added.
     20        * http/tests/referrer-policy-img/no-referrer/same-origin-expected.txt: Added.
     21        * http/tests/referrer-policy-img/no-referrer/same-origin.html: Added.
     22        * http/tests/referrer-policy-img/origin-when-cross-origin/cross-origin-http-http-expected.txt: Added.
     23        * http/tests/referrer-policy-img/origin-when-cross-origin/cross-origin-http-http.html: Added.
     24        * http/tests/referrer-policy-img/origin-when-cross-origin/cross-origin-http.https-expected.txt: Added.
     25        * http/tests/referrer-policy-img/origin-when-cross-origin/cross-origin-http.https.html: Added.
     26        * http/tests/referrer-policy-img/origin-when-cross-origin/same-origin-expected.txt: Added.
     27        * http/tests/referrer-policy-img/origin-when-cross-origin/same-origin.html: Added.
     28        * http/tests/referrer-policy-img/origin/cross-origin-http-http-expected.txt: Added.
     29        * http/tests/referrer-policy-img/origin/cross-origin-http-http.html: Added.
     30        * http/tests/referrer-policy-img/origin/cross-origin-http.https-expected.txt: Added.
     31        * http/tests/referrer-policy-img/origin/cross-origin-http.https.html: Added.
     32        * http/tests/referrer-policy-img/origin/same-origin-expected.txt: Added.
     33        * http/tests/referrer-policy-img/origin/same-origin.html: Added.
     34        * http/tests/referrer-policy-img/same-origin/cross-origin-http-http-expected.txt: Added.
     35        * http/tests/referrer-policy-img/same-origin/cross-origin-http-http.html: Added.
     36        * http/tests/referrer-policy-img/same-origin/cross-origin-http.https-expected.txt: Added.
     37        * http/tests/referrer-policy-img/same-origin/cross-origin-http.https.html: Added.
     38        * http/tests/referrer-policy-img/same-origin/same-origin-expected.txt: Added.
     39        * http/tests/referrer-policy-img/same-origin/same-origin.html: Added.
     40        * http/tests/referrer-policy-img/strict-origin-when-cross-origin/cross-origin-http-http-expected.txt: Added.
     41        * http/tests/referrer-policy-img/strict-origin-when-cross-origin/cross-origin-http-http.html: Added.
     42        * http/tests/referrer-policy-img/strict-origin-when-cross-origin/cross-origin-http.https-expected.txt: Added.
     43        * http/tests/referrer-policy-img/strict-origin-when-cross-origin/cross-origin-http.https.html: Added.
     44        * http/tests/referrer-policy-img/strict-origin-when-cross-origin/same-origin-expected.txt: Added.
     45        * http/tests/referrer-policy-img/strict-origin-when-cross-origin/same-origin.html: Added.
     46        * http/tests/referrer-policy-img/strict-origin/cross-origin-http-http-expected.txt: Added.
     47        * http/tests/referrer-policy-img/strict-origin/cross-origin-http-http.html: Added.
     48        * http/tests/referrer-policy-img/strict-origin/cross-origin-http.https-expected.txt: Added.
     49        * http/tests/referrer-policy-img/strict-origin/cross-origin-http.https.html: Added.
     50        * http/tests/referrer-policy-img/strict-origin/same-origin-expected.txt: Added.
     51        * http/tests/referrer-policy-img/strict-origin/same-origin.html: Added.
     52        * http/tests/referrer-policy-img/unsafe-url/cross-origin-http-http-expected.txt: Added.
     53        * http/tests/referrer-policy-img/unsafe-url/cross-origin-http-http.html: Added.
     54        * http/tests/referrer-policy-img/unsafe-url/cross-origin-http.https-expected.txt: Added.
     55        * http/tests/referrer-policy-img/unsafe-url/cross-origin-http.https.html: Added.
     56        * http/tests/referrer-policy-img/unsafe-url/same-origin-expected.txt: Added.
     57        * http/tests/referrer-policy-img/unsafe-url/same-origin.html: Added.
     58        * http/tests/referrer-policy-script/unsafe-url/cross-origin-http-http.html:
     59        * http/tests/referrer-policy/resources/image.php: Added.
     60        * platform/gtk/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt:
     61        * platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt:
     62        * platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt:
     63        * platform/ios/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt:
     64        * platform/mac-wk1/TestExpectations:
     65        * platform/mac-wk1/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt:
     66        * platform/mac-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt:
     67        * platform/win/TestExpectations:
     68        * platform/wpe/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt:
     69        * platform/wpe/imported/w3c/web-platform-tests/html/dom/interfaces-expected.txt:
     70        * platform/wpe/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt:
     71
    1722020-02-26  Nikos Mouchtaris  <nmouchtaris@apple.com>
    273
  • trunk/LayoutTests/http/tests/referrer-policy-script/unsafe-url/cross-origin-http-http.html

    r250413 r257572  
    88description("Tests the behavior of unsafe-url referrer policy when cross origin.");
    99jsTestIsAsync = true;
     10
     11if (window.internals)
     12    internals.setResourceLoadStatisticsEnabled(true);
    1013
    1114function checkReferrer(value) {
  • trunk/LayoutTests/imported/w3c/ChangeLog

    r257556 r257572  
     12020-02-27  Rob Buis  <rbuis@igalia.com>
     2
     3        Add referrerpolicy attribute support for images
     4        https://bugs.webkit.org/show_bug.cgi?id=207901
     5
     6        Reviewed by Darin Adler.
     7
     8        Update improved test results.
     9
     10        * web-platform-tests/html/dom/idlharness.https-expected.txt:
     11        * web-platform-tests/html/dom/interfaces-expected.txt:
     12        * web-platform-tests/html/dom/reflection-embedded-expected.txt:
     13        * web-platform-tests/html/semantics/embedded-content/the-img-element/original-referrer-policy-applied.sub-expected.txt:
     14
    1152020-02-26  Nikos Mouchtaris  <nmouchtaris@apple.com>
    216
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt

    r253497 r257572  
    757757PASS HTMLImageElement interface: attribute complete
    758758PASS HTMLImageElement interface: attribute currentSrc
    759 FAIL HTMLImageElement interface: attribute referrerPolicy assert_true: The prototype object must have a property "referrerPolicy" expected true got false
     759PASS HTMLImageElement interface: attribute referrerPolicy
    760760PASS HTMLImageElement interface: attribute decoding
    761761PASS HTMLImageElement interface: operation decode()
     
    782782PASS HTMLImageElement interface: document.createElement("img") must inherit property "complete" with the proper type
    783783PASS HTMLImageElement interface: document.createElement("img") must inherit property "currentSrc" with the proper type
    784 FAIL HTMLImageElement interface: document.createElement("img") must inherit property "referrerPolicy" with the proper type assert_inherits: property "referrerPolicy" not found in prototype chain
     784PASS HTMLImageElement interface: document.createElement("img") must inherit property "referrerPolicy" with the proper type
    785785PASS HTMLImageElement interface: document.createElement("img") must inherit property "decoding" with the proper type
    786786PASS HTMLImageElement interface: document.createElement("img") must inherit property "decode()" with the proper type
     
    807807PASS HTMLImageElement interface: new Image() must inherit property "complete" with the proper type
    808808PASS HTMLImageElement interface: new Image() must inherit property "currentSrc" with the proper type
    809 FAIL HTMLImageElement interface: new Image() must inherit property "referrerPolicy" with the proper type assert_inherits: property "referrerPolicy" not found in prototype chain
     809PASS HTMLImageElement interface: new Image() must inherit property "referrerPolicy" with the proper type
    810810PASS HTMLImageElement interface: new Image() must inherit property "decoding" with the proper type
    811811PASS HTMLImageElement interface: new Image() must inherit property "decode()" with the proper type
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/interfaces-expected.txt

    r243762 r257572  
    12171217PASS HTMLImageElement interface: attribute complete
    12181218PASS HTMLImageElement interface: attribute currentSrc
    1219 FAIL HTMLImageElement interface: attribute referrerPolicy assert_true: The prototype object must have a property "referrerPolicy" expected true got false
     1219PASS HTMLImageElement interface: attribute referrerPolicy
    12201220PASS HTMLImageElement interface: operation decode()
    12211221PASS HTMLImageElement interface: attribute name
     
    12411241PASS HTMLImageElement interface: document.createElement("img") must inherit property "complete" with the proper type
    12421242PASS HTMLImageElement interface: document.createElement("img") must inherit property "currentSrc" with the proper type
    1243 FAIL HTMLImageElement interface: document.createElement("img") must inherit property "referrerPolicy" with the proper type assert_inherits: property "referrerPolicy" not found in prototype chain
     1243PASS HTMLImageElement interface: document.createElement("img") must inherit property "referrerPolicy" with the proper type
    12441244PASS HTMLImageElement interface: document.createElement("img") must inherit property "decode()" with the proper type
    12451245PASS HTMLImageElement interface: document.createElement("img") must inherit property "name" with the proper type
     
    12651265PASS HTMLImageElement interface: new Image() must inherit property "complete" with the proper type
    12661266PASS HTMLImageElement interface: new Image() must inherit property "currentSrc" with the proper type
    1267 FAIL HTMLImageElement interface: new Image() must inherit property "referrerPolicy" with the proper type assert_inherits: property "referrerPolicy" not found in prototype chain
     1267PASS HTMLImageElement interface: new Image() must inherit property "referrerPolicy" with the proper type
    12681268PASS HTMLImageElement interface: new Image() must inherit property "decode()" with the proper type
    12691269PASS HTMLImageElement interface: new Image() must inherit property "name" with the proper type
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt

    r253791 r257572  
    965965PASS img.height: IDL set to 2147483648
    966966PASS img.height: IDL set to 4294967295
    967 FAIL img.referrerPolicy: typeof IDL attribute assert_equals: expected "string" but got "undefined"
    968 FAIL img.referrerPolicy: IDL get with DOM attribute unset assert_equals: expected (string) "" but got (undefined) undefined
    969 FAIL img.referrerPolicy: setAttribute() to "" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    970 FAIL img.referrerPolicy: setAttribute() to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " assert_equals: IDL get expected (string) "" but got (undefined) undefined
    971 FAIL img.referrerPolicy: setAttribute() to undefined assert_equals: IDL get expected (string) "" but got (undefined) undefined
    972 FAIL img.referrerPolicy: setAttribute() to 7 assert_equals: IDL get expected (string) "" but got (undefined) undefined
    973 FAIL img.referrerPolicy: setAttribute() to 1.5 assert_equals: IDL get expected (string) "" but got (undefined) undefined
    974 FAIL img.referrerPolicy: setAttribute() to "5%" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    975 FAIL img.referrerPolicy: setAttribute() to "+100" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    976 FAIL img.referrerPolicy: setAttribute() to ".5" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    977 FAIL img.referrerPolicy: setAttribute() to true assert_equals: IDL get expected (string) "" but got (undefined) undefined
    978 FAIL img.referrerPolicy: setAttribute() to false assert_equals: IDL get expected (string) "" but got (undefined) undefined
    979 FAIL img.referrerPolicy: setAttribute() to object "[object Object]" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    980 FAIL img.referrerPolicy: setAttribute() to NaN assert_equals: IDL get expected (string) "" but got (undefined) undefined
    981 FAIL img.referrerPolicy: setAttribute() to Infinity assert_equals: IDL get expected (string) "" but got (undefined) undefined
    982 FAIL img.referrerPolicy: setAttribute() to -Infinity assert_equals: IDL get expected (string) "" but got (undefined) undefined
    983 FAIL img.referrerPolicy: setAttribute() to "\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    984 FAIL img.referrerPolicy: setAttribute() to null assert_equals: IDL get expected (string) "" but got (undefined) undefined
    985 FAIL img.referrerPolicy: setAttribute() to object "test-toString" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    986 FAIL img.referrerPolicy: setAttribute() to object "test-valueOf" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    987 FAIL img.referrerPolicy: setAttribute() to "no-referrer" assert_equals: IDL get expected (string) "no-referrer" but got (undefined) undefined
    988 FAIL img.referrerPolicy: setAttribute() to "xno-referrer" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    989 FAIL img.referrerPolicy: setAttribute() to "no-referrer\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    990 FAIL img.referrerPolicy: setAttribute() to "o-referrer" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    991 FAIL img.referrerPolicy: setAttribute() to "NO-REFERRER" assert_equals: IDL get expected (string) "no-referrer" but got (undefined) undefined
    992 FAIL img.referrerPolicy: setAttribute() to "no-referrer-when-downgrade" assert_equals: IDL get expected (string) "no-referrer-when-downgrade" but got (undefined) undefined
    993 FAIL img.referrerPolicy: setAttribute() to "xno-referrer-when-downgrade" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    994 FAIL img.referrerPolicy: setAttribute() to "no-referrer-when-downgrade\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    995 FAIL img.referrerPolicy: setAttribute() to "o-referrer-when-downgrade" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    996 FAIL img.referrerPolicy: setAttribute() to "NO-REFERRER-WHEN-DOWNGRADE" assert_equals: IDL get expected (string) "no-referrer-when-downgrade" but got (undefined) undefined
    997 FAIL img.referrerPolicy: setAttribute() to "same-origin" assert_equals: IDL get expected (string) "same-origin" but got (undefined) undefined
    998 FAIL img.referrerPolicy: setAttribute() to "xsame-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    999 FAIL img.referrerPolicy: setAttribute() to "same-origin\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1000 FAIL img.referrerPolicy: setAttribute() to "ame-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1001 FAIL img.referrerPolicy: setAttribute() to "SAME-ORIGIN" assert_equals: IDL get expected (string) "same-origin" but got (undefined) undefined
    1002 FAIL img.referrerPolicy: setAttribute() to "ſame-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1003 FAIL img.referrerPolicy: setAttribute() to "origin" assert_equals: IDL get expected (string) "origin" but got (undefined) undefined
    1004 FAIL img.referrerPolicy: setAttribute() to "xorigin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1005 FAIL img.referrerPolicy: setAttribute() to "origin\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1006 FAIL img.referrerPolicy: setAttribute() to "rigin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1007 FAIL img.referrerPolicy: setAttribute() to "ORIGIN" assert_equals: IDL get expected (string) "origin" but got (undefined) undefined
    1008 FAIL img.referrerPolicy: setAttribute() to "strict-origin" assert_equals: IDL get expected (string) "strict-origin" but got (undefined) undefined
    1009 FAIL img.referrerPolicy: setAttribute() to "xstrict-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1010 FAIL img.referrerPolicy: setAttribute() to "strict-origin\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1011 FAIL img.referrerPolicy: setAttribute() to "trict-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1012 FAIL img.referrerPolicy: setAttribute() to "STRICT-ORIGIN" assert_equals: IDL get expected (string) "strict-origin" but got (undefined) undefined
    1013 FAIL img.referrerPolicy: setAttribute() to "ſtrict-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1014 FAIL img.referrerPolicy: setAttribute() to "origin-when-cross-origin" assert_equals: IDL get expected (string) "origin-when-cross-origin" but got (undefined) undefined
    1015 FAIL img.referrerPolicy: setAttribute() to "xorigin-when-cross-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1016 FAIL img.referrerPolicy: setAttribute() to "origin-when-cross-origin\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1017 FAIL img.referrerPolicy: setAttribute() to "rigin-when-cross-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1018 FAIL img.referrerPolicy: setAttribute() to "ORIGIN-WHEN-CROSS-ORIGIN" assert_equals: IDL get expected (string) "origin-when-cross-origin" but got (undefined) undefined
    1019 FAIL img.referrerPolicy: setAttribute() to "origin-when-croſſ-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1020 FAIL img.referrerPolicy: setAttribute() to "strict-origin-when-cross-origin" assert_equals: IDL get expected (string) "strict-origin-when-cross-origin" but got (undefined) undefined
    1021 FAIL img.referrerPolicy: setAttribute() to "xstrict-origin-when-cross-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1022 FAIL img.referrerPolicy: setAttribute() to "strict-origin-when-cross-origin\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1023 FAIL img.referrerPolicy: setAttribute() to "trict-origin-when-cross-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1024 FAIL img.referrerPolicy: setAttribute() to "STRICT-ORIGIN-WHEN-CROSS-ORIGIN" assert_equals: IDL get expected (string) "strict-origin-when-cross-origin" but got (undefined) undefined
    1025 FAIL img.referrerPolicy: setAttribute() to "ſtrict-origin-when-croſſ-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1026 FAIL img.referrerPolicy: setAttribute() to "unsafe-url" assert_equals: IDL get expected (string) "unsafe-url" but got (undefined) undefined
    1027 FAIL img.referrerPolicy: setAttribute() to "xunsafe-url" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1028 FAIL img.referrerPolicy: setAttribute() to "unsafe-url\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1029 FAIL img.referrerPolicy: setAttribute() to "nsafe-url" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1030 FAIL img.referrerPolicy: setAttribute() to "UNSAFE-URL" assert_equals: IDL get expected (string) "unsafe-url" but got (undefined) undefined
    1031 FAIL img.referrerPolicy: setAttribute() to "unſafe-url" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1032 FAIL img.referrerPolicy: IDL set to "" assert_equals: getAttribute() expected "" but got "unſafe-url"
    1033 FAIL img.referrerPolicy: IDL set to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " assert_equals: getAttribute() expected " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " but got "unſafe-url"
    1034 FAIL img.referrerPolicy: IDL set to undefined assert_equals: getAttribute() expected "undefined" but got "unſafe-url"
    1035 FAIL img.referrerPolicy: IDL set to 7 assert_equals: getAttribute() expected "7" but got "unſafe-url"
    1036 FAIL img.referrerPolicy: IDL set to 1.5 assert_equals: getAttribute() expected "1.5" but got "unſafe-url"
    1037 FAIL img.referrerPolicy: IDL set to "5%" assert_equals: getAttribute() expected "5%" but got "unſafe-url"
    1038 FAIL img.referrerPolicy: IDL set to "+100" assert_equals: getAttribute() expected "+100" but got "unſafe-url"
    1039 FAIL img.referrerPolicy: IDL set to ".5" assert_equals: getAttribute() expected ".5" but got "unſafe-url"
    1040 FAIL img.referrerPolicy: IDL set to true assert_equals: getAttribute() expected "true" but got "unſafe-url"
    1041 FAIL img.referrerPolicy: IDL set to false assert_equals: getAttribute() expected "false" but got "unſafe-url"
    1042 FAIL img.referrerPolicy: IDL set to object "[object Object]" assert_equals: getAttribute() expected "[object Object]" but got "unſafe-url"
    1043 FAIL img.referrerPolicy: IDL set to NaN assert_equals: getAttribute() expected "NaN" but got "unſafe-url"
    1044 FAIL img.referrerPolicy: IDL set to Infinity assert_equals: getAttribute() expected "Infinity" but got "unſafe-url"
    1045 FAIL img.referrerPolicy: IDL set to -Infinity assert_equals: getAttribute() expected "-Infinity" but got "unſafe-url"
    1046 FAIL img.referrerPolicy: IDL set to "\0" assert_equals: getAttribute() expected "\0" but got "unſafe-url"
    1047 FAIL img.referrerPolicy: IDL set to null assert_equals: IDL get expected (string) "" but got (object) null
    1048 FAIL img.referrerPolicy: IDL set to object "test-toString" assert_equals: getAttribute() expected "test-toString" but got "unſafe-url"
    1049 FAIL img.referrerPolicy: IDL set to object "test-valueOf" assert_equals: getAttribute() expected "test-valueOf" but got "unſafe-url"
    1050 FAIL img.referrerPolicy: IDL set to "no-referrer" assert_equals: getAttribute() expected "no-referrer" but got "unſafe-url"
    1051 FAIL img.referrerPolicy: IDL set to "xno-referrer" assert_equals: getAttribute() expected "xno-referrer" but got "unſafe-url"
    1052 FAIL img.referrerPolicy: IDL set to "no-referrer\0" assert_equals: getAttribute() expected "no-referrer\0" but got "unſafe-url"
    1053 FAIL img.referrerPolicy: IDL set to "o-referrer" assert_equals: getAttribute() expected "o-referrer" but got "unſafe-url"
    1054 FAIL img.referrerPolicy: IDL set to "NO-REFERRER" assert_equals: getAttribute() expected "NO-REFERRER" but got "unſafe-url"
    1055 FAIL img.referrerPolicy: IDL set to "no-referrer-when-downgrade" assert_equals: getAttribute() expected "no-referrer-when-downgrade" but got "unſafe-url"
    1056 FAIL img.referrerPolicy: IDL set to "xno-referrer-when-downgrade" assert_equals: getAttribute() expected "xno-referrer-when-downgrade" but got "unſafe-url"
    1057 FAIL img.referrerPolicy: IDL set to "no-referrer-when-downgrade\0" assert_equals: getAttribute() expected "no-referrer-when-downgrade\0" but got "unſafe-url"
    1058 FAIL img.referrerPolicy: IDL set to "o-referrer-when-downgrade" assert_equals: getAttribute() expected "o-referrer-when-downgrade" but got "unſafe-url"
    1059 FAIL img.referrerPolicy: IDL set to "NO-REFERRER-WHEN-DOWNGRADE" assert_equals: getAttribute() expected "NO-REFERRER-WHEN-DOWNGRADE" but got "unſafe-url"
    1060 FAIL img.referrerPolicy: IDL set to "same-origin" assert_equals: getAttribute() expected "same-origin" but got "unſafe-url"
    1061 FAIL img.referrerPolicy: IDL set to "xsame-origin" assert_equals: getAttribute() expected "xsame-origin" but got "unſafe-url"
    1062 FAIL img.referrerPolicy: IDL set to "same-origin\0" assert_equals: getAttribute() expected "same-origin\0" but got "unſafe-url"
    1063 FAIL img.referrerPolicy: IDL set to "ame-origin" assert_equals: getAttribute() expected "ame-origin" but got "unſafe-url"
    1064 FAIL img.referrerPolicy: IDL set to "SAME-ORIGIN" assert_equals: getAttribute() expected "SAME-ORIGIN" but got "unſafe-url"
    1065 FAIL img.referrerPolicy: IDL set to "ſame-origin" assert_equals: getAttribute() expected "ſame-origin" but got "unſafe-url"
    1066 FAIL img.referrerPolicy: IDL set to "origin" assert_equals: getAttribute() expected "origin" but got "unſafe-url"
    1067 FAIL img.referrerPolicy: IDL set to "xorigin" assert_equals: getAttribute() expected "xorigin" but got "unſafe-url"
    1068 FAIL img.referrerPolicy: IDL set to "origin\0" assert_equals: getAttribute() expected "origin\0" but got "unſafe-url"
    1069 FAIL img.referrerPolicy: IDL set to "rigin" assert_equals: getAttribute() expected "rigin" but got "unſafe-url"
    1070 FAIL img.referrerPolicy: IDL set to "ORIGIN" assert_equals: getAttribute() expected "ORIGIN" but got "unſafe-url"
    1071 FAIL img.referrerPolicy: IDL set to "strict-origin" assert_equals: getAttribute() expected "strict-origin" but got "unſafe-url"
    1072 FAIL img.referrerPolicy: IDL set to "xstrict-origin" assert_equals: getAttribute() expected "xstrict-origin" but got "unſafe-url"
    1073 FAIL img.referrerPolicy: IDL set to "strict-origin\0" assert_equals: getAttribute() expected "strict-origin\0" but got "unſafe-url"
    1074 FAIL img.referrerPolicy: IDL set to "trict-origin" assert_equals: getAttribute() expected "trict-origin" but got "unſafe-url"
    1075 FAIL img.referrerPolicy: IDL set to "STRICT-ORIGIN" assert_equals: getAttribute() expected "STRICT-ORIGIN" but got "unſafe-url"
    1076 FAIL img.referrerPolicy: IDL set to "ſtrict-origin" assert_equals: getAttribute() expected "ſtrict-origin" but got "unſafe-url"
    1077 FAIL img.referrerPolicy: IDL set to "origin-when-cross-origin" assert_equals: getAttribute() expected "origin-when-cross-origin" but got "unſafe-url"
    1078 FAIL img.referrerPolicy: IDL set to "xorigin-when-cross-origin" assert_equals: getAttribute() expected "xorigin-when-cross-origin" but got "unſafe-url"
    1079 FAIL img.referrerPolicy: IDL set to "origin-when-cross-origin\0" assert_equals: getAttribute() expected "origin-when-cross-origin\0" but got "unſafe-url"
    1080 FAIL img.referrerPolicy: IDL set to "rigin-when-cross-origin" assert_equals: getAttribute() expected "rigin-when-cross-origin" but got "unſafe-url"
    1081 FAIL img.referrerPolicy: IDL set to "ORIGIN-WHEN-CROSS-ORIGIN" assert_equals: getAttribute() expected "ORIGIN-WHEN-CROSS-ORIGIN" but got "unſafe-url"
    1082 FAIL img.referrerPolicy: IDL set to "origin-when-croſſ-origin" assert_equals: getAttribute() expected "origin-when-croſſ-origin" but got "unſafe-url"
    1083 FAIL img.referrerPolicy: IDL set to "strict-origin-when-cross-origin" assert_equals: getAttribute() expected "strict-origin-when-cross-origin" but got "unſafe-url"
    1084 FAIL img.referrerPolicy: IDL set to "xstrict-origin-when-cross-origin" assert_equals: getAttribute() expected "xstrict-origin-when-cross-origin" but got "unſafe-url"
    1085 FAIL img.referrerPolicy: IDL set to "strict-origin-when-cross-origin\0" assert_equals: getAttribute() expected "strict-origin-when-cross-origin\0" but got "unſafe-url"
    1086 FAIL img.referrerPolicy: IDL set to "trict-origin-when-cross-origin" assert_equals: getAttribute() expected "trict-origin-when-cross-origin" but got "unſafe-url"
    1087 FAIL img.referrerPolicy: IDL set to "STRICT-ORIGIN-WHEN-CROSS-ORIGIN" assert_equals: getAttribute() expected "STRICT-ORIGIN-WHEN-CROSS-ORIGIN" but got "unſafe-url"
    1088 FAIL img.referrerPolicy: IDL set to "ſtrict-origin-when-croſſ-origin" assert_equals: getAttribute() expected "ſtrict-origin-when-croſſ-origin" but got "unſafe-url"
    1089 FAIL img.referrerPolicy: IDL set to "unsafe-url" assert_equals: getAttribute() expected "unsafe-url" but got "unſafe-url"
    1090 FAIL img.referrerPolicy: IDL set to "xunsafe-url" assert_equals: getAttribute() expected "xunsafe-url" but got "unſafe-url"
    1091 FAIL img.referrerPolicy: IDL set to "unsafe-url\0" assert_equals: getAttribute() expected "unsafe-url\0" but got "unſafe-url"
    1092 FAIL img.referrerPolicy: IDL set to "nsafe-url" assert_equals: getAttribute() expected "nsafe-url" but got "unſafe-url"
    1093 FAIL img.referrerPolicy: IDL set to "UNSAFE-URL" assert_equals: getAttribute() expected "UNSAFE-URL" but got "unſafe-url"
    1094 FAIL img.referrerPolicy: IDL set to "unſafe-url" assert_equals: IDL get expected "" but got "unſafe-url"
     967PASS img.referrerPolicy: typeof IDL attribute
     968PASS img.referrerPolicy: IDL get with DOM attribute unset
     969PASS img.referrerPolicy: setAttribute() to ""
     970PASS img.referrerPolicy: setAttribute() to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo "
     971PASS img.referrerPolicy: setAttribute() to undefined
     972PASS img.referrerPolicy: setAttribute() to 7
     973PASS img.referrerPolicy: setAttribute() to 1.5
     974PASS img.referrerPolicy: setAttribute() to "5%"
     975PASS img.referrerPolicy: setAttribute() to "+100"
     976PASS img.referrerPolicy: setAttribute() to ".5"
     977PASS img.referrerPolicy: setAttribute() to true
     978PASS img.referrerPolicy: setAttribute() to false
     979PASS img.referrerPolicy: setAttribute() to object "[object Object]"
     980PASS img.referrerPolicy: setAttribute() to NaN
     981PASS img.referrerPolicy: setAttribute() to Infinity
     982PASS img.referrerPolicy: setAttribute() to -Infinity
     983PASS img.referrerPolicy: setAttribute() to "\0"
     984PASS img.referrerPolicy: setAttribute() to null
     985PASS img.referrerPolicy: setAttribute() to object "test-toString"
     986PASS img.referrerPolicy: setAttribute() to object "test-valueOf"
     987PASS img.referrerPolicy: setAttribute() to "no-referrer"
     988PASS img.referrerPolicy: setAttribute() to "xno-referrer"
     989PASS img.referrerPolicy: setAttribute() to "no-referrer\0"
     990PASS img.referrerPolicy: setAttribute() to "o-referrer"
     991PASS img.referrerPolicy: setAttribute() to "NO-REFERRER"
     992PASS img.referrerPolicy: setAttribute() to "no-referrer-when-downgrade"
     993PASS img.referrerPolicy: setAttribute() to "xno-referrer-when-downgrade"
     994PASS img.referrerPolicy: setAttribute() to "no-referrer-when-downgrade\0"
     995PASS img.referrerPolicy: setAttribute() to "o-referrer-when-downgrade"
     996PASS img.referrerPolicy: setAttribute() to "NO-REFERRER-WHEN-DOWNGRADE"
     997PASS img.referrerPolicy: setAttribute() to "same-origin"
     998PASS img.referrerPolicy: setAttribute() to "xsame-origin"
     999PASS img.referrerPolicy: setAttribute() to "same-origin\0"
     1000PASS img.referrerPolicy: setAttribute() to "ame-origin"
     1001PASS img.referrerPolicy: setAttribute() to "SAME-ORIGIN"
     1002PASS img.referrerPolicy: setAttribute() to "ſame-origin"
     1003PASS img.referrerPolicy: setAttribute() to "origin"
     1004PASS img.referrerPolicy: setAttribute() to "xorigin"
     1005PASS img.referrerPolicy: setAttribute() to "origin\0"
     1006PASS img.referrerPolicy: setAttribute() to "rigin"
     1007PASS img.referrerPolicy: setAttribute() to "ORIGIN"
     1008PASS img.referrerPolicy: setAttribute() to "strict-origin"
     1009PASS img.referrerPolicy: setAttribute() to "xstrict-origin"
     1010PASS img.referrerPolicy: setAttribute() to "strict-origin\0"
     1011PASS img.referrerPolicy: setAttribute() to "trict-origin"
     1012PASS img.referrerPolicy: setAttribute() to "STRICT-ORIGIN"
     1013PASS img.referrerPolicy: setAttribute() to "ſtrict-origin"
     1014PASS img.referrerPolicy: setAttribute() to "origin-when-cross-origin"
     1015PASS img.referrerPolicy: setAttribute() to "xorigin-when-cross-origin"
     1016PASS img.referrerPolicy: setAttribute() to "origin-when-cross-origin\0"
     1017PASS img.referrerPolicy: setAttribute() to "rigin-when-cross-origin"
     1018PASS img.referrerPolicy: setAttribute() to "ORIGIN-WHEN-CROSS-ORIGIN"
     1019PASS img.referrerPolicy: setAttribute() to "origin-when-croſſ-origin"
     1020PASS img.referrerPolicy: setAttribute() to "strict-origin-when-cross-origin"
     1021PASS img.referrerPolicy: setAttribute() to "xstrict-origin-when-cross-origin"
     1022PASS img.referrerPolicy: setAttribute() to "strict-origin-when-cross-origin\0"
     1023PASS img.referrerPolicy: setAttribute() to "trict-origin-when-cross-origin"
     1024PASS img.referrerPolicy: setAttribute() to "STRICT-ORIGIN-WHEN-CROSS-ORIGIN"
     1025PASS img.referrerPolicy: setAttribute() to "ſtrict-origin-when-croſſ-origin"
     1026PASS img.referrerPolicy: setAttribute() to "unsafe-url"
     1027PASS img.referrerPolicy: setAttribute() to "xunsafe-url"
     1028PASS img.referrerPolicy: setAttribute() to "unsafe-url\0"
     1029PASS img.referrerPolicy: setAttribute() to "nsafe-url"
     1030PASS img.referrerPolicy: setAttribute() to "UNSAFE-URL"
     1031PASS img.referrerPolicy: setAttribute() to "unſafe-url"
     1032PASS img.referrerPolicy: IDL set to ""
     1033PASS img.referrerPolicy: IDL set to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo "
     1034PASS img.referrerPolicy: IDL set to undefined
     1035PASS img.referrerPolicy: IDL set to 7
     1036PASS img.referrerPolicy: IDL set to 1.5
     1037PASS img.referrerPolicy: IDL set to "5%"
     1038PASS img.referrerPolicy: IDL set to "+100"
     1039PASS img.referrerPolicy: IDL set to ".5"
     1040PASS img.referrerPolicy: IDL set to true
     1041PASS img.referrerPolicy: IDL set to false
     1042PASS img.referrerPolicy: IDL set to object "[object Object]"
     1043PASS img.referrerPolicy: IDL set to NaN
     1044PASS img.referrerPolicy: IDL set to Infinity
     1045PASS img.referrerPolicy: IDL set to -Infinity
     1046PASS img.referrerPolicy: IDL set to "\0"
     1047PASS img.referrerPolicy: IDL set to null
     1048PASS img.referrerPolicy: IDL set to object "test-toString"
     1049PASS img.referrerPolicy: IDL set to object "test-valueOf"
     1050PASS img.referrerPolicy: IDL set to "no-referrer"
     1051PASS img.referrerPolicy: IDL set to "xno-referrer"
     1052PASS img.referrerPolicy: IDL set to "no-referrer\0"
     1053PASS img.referrerPolicy: IDL set to "o-referrer"
     1054PASS img.referrerPolicy: IDL set to "NO-REFERRER"
     1055PASS img.referrerPolicy: IDL set to "no-referrer-when-downgrade"
     1056PASS img.referrerPolicy: IDL set to "xno-referrer-when-downgrade"
     1057PASS img.referrerPolicy: IDL set to "no-referrer-when-downgrade\0"
     1058PASS img.referrerPolicy: IDL set to "o-referrer-when-downgrade"
     1059PASS img.referrerPolicy: IDL set to "NO-REFERRER-WHEN-DOWNGRADE"
     1060PASS img.referrerPolicy: IDL set to "same-origin"
     1061PASS img.referrerPolicy: IDL set to "xsame-origin"
     1062PASS img.referrerPolicy: IDL set to "same-origin\0"
     1063PASS img.referrerPolicy: IDL set to "ame-origin"
     1064PASS img.referrerPolicy: IDL set to "SAME-ORIGIN"
     1065PASS img.referrerPolicy: IDL set to "ſame-origin"
     1066PASS img.referrerPolicy: IDL set to "origin"
     1067PASS img.referrerPolicy: IDL set to "xorigin"
     1068PASS img.referrerPolicy: IDL set to "origin\0"
     1069PASS img.referrerPolicy: IDL set to "rigin"
     1070PASS img.referrerPolicy: IDL set to "ORIGIN"
     1071PASS img.referrerPolicy: IDL set to "strict-origin"
     1072PASS img.referrerPolicy: IDL set to "xstrict-origin"
     1073PASS img.referrerPolicy: IDL set to "strict-origin\0"
     1074PASS img.referrerPolicy: IDL set to "trict-origin"
     1075PASS img.referrerPolicy: IDL set to "STRICT-ORIGIN"
     1076PASS img.referrerPolicy: IDL set to "ſtrict-origin"
     1077PASS img.referrerPolicy: IDL set to "origin-when-cross-origin"
     1078PASS img.referrerPolicy: IDL set to "xorigin-when-cross-origin"
     1079PASS img.referrerPolicy: IDL set to "origin-when-cross-origin\0"
     1080PASS img.referrerPolicy: IDL set to "rigin-when-cross-origin"
     1081PASS img.referrerPolicy: IDL set to "ORIGIN-WHEN-CROSS-ORIGIN"
     1082PASS img.referrerPolicy: IDL set to "origin-when-croſſ-origin"
     1083PASS img.referrerPolicy: IDL set to "strict-origin-when-cross-origin"
     1084PASS img.referrerPolicy: IDL set to "xstrict-origin-when-cross-origin"
     1085PASS img.referrerPolicy: IDL set to "strict-origin-when-cross-origin\0"
     1086PASS img.referrerPolicy: IDL set to "trict-origin-when-cross-origin"
     1087PASS img.referrerPolicy: IDL set to "STRICT-ORIGIN-WHEN-CROSS-ORIGIN"
     1088PASS img.referrerPolicy: IDL set to "ſtrict-origin-when-croſſ-origin"
     1089PASS img.referrerPolicy: IDL set to "unsafe-url"
     1090PASS img.referrerPolicy: IDL set to "xunsafe-url"
     1091PASS img.referrerPolicy: IDL set to "unsafe-url\0"
     1092PASS img.referrerPolicy: IDL set to "nsafe-url"
     1093PASS img.referrerPolicy: IDL set to "UNSAFE-URL"
     1094PASS img.referrerPolicy: IDL set to "unſafe-url"
    10951095PASS img.decoding: typeof IDL attribute
    10961096FAIL img.decoding: IDL get with DOM attribute unset assert_equals: expected "auto" but got ""
  • trunk/LayoutTests/imported/w3c/web-platform-tests/html/semantics/embedded-content/the-img-element/original-referrer-policy-applied.sub-expected.txt

    r256916 r257572  
    22
    33PASS Test that when deferred iframe is loaded, it uses the referrer-policy specified at parse time.
    4 FAIL Test that when deferred img is loaded, it uses the referrer-policy specified at parse time. assert_unreached: The image load should not fail, by sending the wrong referer header. Reached unreachable code
     4PASS Test that when deferred img is loaded, it uses the referrer-policy specified at parse time.
    55
  • trunk/LayoutTests/platform/gtk/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt

    r254486 r257572  
    889889PASS HTMLImageElement interface: attribute complete
    890890PASS HTMLImageElement interface: attribute currentSrc
    891 FAIL HTMLImageElement interface: attribute referrerPolicy assert_true: The prototype object must have a property "referrerPolicy" expected true got false
     891PASS HTMLImageElement interface: attribute referrerPolicy
    892892PASS HTMLImageElement interface: attribute decoding
    893893PASS HTMLImageElement interface: operation decode()
     
    914914PASS HTMLImageElement interface: document.createElement("img") must inherit property "complete" with the proper type
    915915PASS HTMLImageElement interface: document.createElement("img") must inherit property "currentSrc" with the proper type
    916 FAIL HTMLImageElement interface: document.createElement("img") must inherit property "referrerPolicy" with the proper type assert_inherits: property "referrerPolicy" not found in prototype chain
     916PASS HTMLImageElement interface: document.createElement("img") must inherit property "referrerPolicy" with the proper type
    917917PASS HTMLImageElement interface: document.createElement("img") must inherit property "decoding" with the proper type
    918918PASS HTMLImageElement interface: document.createElement("img") must inherit property "decode()" with the proper type
     
    939939PASS HTMLImageElement interface: new Image() must inherit property "complete" with the proper type
    940940PASS HTMLImageElement interface: new Image() must inherit property "currentSrc" with the proper type
    941 FAIL HTMLImageElement interface: new Image() must inherit property "referrerPolicy" with the proper type assert_inherits: property "referrerPolicy" not found in prototype chain
     941PASS HTMLImageElement interface: new Image() must inherit property "referrerPolicy" with the proper type
    942942PASS HTMLImageElement interface: new Image() must inherit property "decoding" with the proper type
    943943PASS HTMLImageElement interface: new Image() must inherit property "decode()" with the proper type
  • trunk/LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt

    r254053 r257572  
    889889PASS HTMLImageElement interface: attribute complete
    890890PASS HTMLImageElement interface: attribute currentSrc
    891 FAIL HTMLImageElement interface: attribute referrerPolicy assert_true: The prototype object must have a property "referrerPolicy" expected true got false
     891PASS HTMLImageElement interface: attribute referrerPolicy
    892892PASS HTMLImageElement interface: attribute decoding
    893893PASS HTMLImageElement interface: operation decode()
     
    914914PASS HTMLImageElement interface: document.createElement("img") must inherit property "complete" with the proper type
    915915PASS HTMLImageElement interface: document.createElement("img") must inherit property "currentSrc" with the proper type
    916 FAIL HTMLImageElement interface: document.createElement("img") must inherit property "referrerPolicy" with the proper type assert_inherits: property "referrerPolicy" not found in prototype chain
     916PASS HTMLImageElement interface: document.createElement("img") must inherit property "referrerPolicy" with the proper type
    917917PASS HTMLImageElement interface: document.createElement("img") must inherit property "decoding" with the proper type
    918918PASS HTMLImageElement interface: document.createElement("img") must inherit property "decode()" with the proper type
     
    939939PASS HTMLImageElement interface: new Image() must inherit property "complete" with the proper type
    940940PASS HTMLImageElement interface: new Image() must inherit property "currentSrc" with the proper type
    941 FAIL HTMLImageElement interface: new Image() must inherit property "referrerPolicy" with the proper type assert_inherits: property "referrerPolicy" not found in prototype chain
     941PASS HTMLImageElement interface: new Image() must inherit property "referrerPolicy" with the proper type
    942942PASS HTMLImageElement interface: new Image() must inherit property "decoding" with the proper type
    943943PASS HTMLImageElement interface: new Image() must inherit property "decode()" with the proper type
  • trunk/LayoutTests/platform/ios-wk2/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt

    r253793 r257572  
    965965PASS img.height: IDL set to 2147483648
    966966PASS img.height: IDL set to 4294967295
    967 FAIL img.referrerPolicy: typeof IDL attribute assert_equals: expected "string" but got "undefined"
    968 FAIL img.referrerPolicy: IDL get with DOM attribute unset assert_equals: expected (string) "" but got (undefined) undefined
    969 FAIL img.referrerPolicy: setAttribute() to "" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    970 FAIL img.referrerPolicy: setAttribute() to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " assert_equals: IDL get expected (string) "" but got (undefined) undefined
    971 FAIL img.referrerPolicy: setAttribute() to undefined assert_equals: IDL get expected (string) "" but got (undefined) undefined
    972 FAIL img.referrerPolicy: setAttribute() to 7 assert_equals: IDL get expected (string) "" but got (undefined) undefined
    973 FAIL img.referrerPolicy: setAttribute() to 1.5 assert_equals: IDL get expected (string) "" but got (undefined) undefined
    974 FAIL img.referrerPolicy: setAttribute() to "5%" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    975 FAIL img.referrerPolicy: setAttribute() to "+100" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    976 FAIL img.referrerPolicy: setAttribute() to ".5" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    977 FAIL img.referrerPolicy: setAttribute() to true assert_equals: IDL get expected (string) "" but got (undefined) undefined
    978 FAIL img.referrerPolicy: setAttribute() to false assert_equals: IDL get expected (string) "" but got (undefined) undefined
    979 FAIL img.referrerPolicy: setAttribute() to object "[object Object]" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    980 FAIL img.referrerPolicy: setAttribute() to NaN assert_equals: IDL get expected (string) "" but got (undefined) undefined
    981 FAIL img.referrerPolicy: setAttribute() to Infinity assert_equals: IDL get expected (string) "" but got (undefined) undefined
    982 FAIL img.referrerPolicy: setAttribute() to -Infinity assert_equals: IDL get expected (string) "" but got (undefined) undefined
    983 FAIL img.referrerPolicy: setAttribute() to "\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    984 FAIL img.referrerPolicy: setAttribute() to null assert_equals: IDL get expected (string) "" but got (undefined) undefined
    985 FAIL img.referrerPolicy: setAttribute() to object "test-toString" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    986 FAIL img.referrerPolicy: setAttribute() to object "test-valueOf" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    987 FAIL img.referrerPolicy: setAttribute() to "no-referrer" assert_equals: IDL get expected (string) "no-referrer" but got (undefined) undefined
    988 FAIL img.referrerPolicy: setAttribute() to "xno-referrer" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    989 FAIL img.referrerPolicy: setAttribute() to "no-referrer\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    990 FAIL img.referrerPolicy: setAttribute() to "o-referrer" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    991 FAIL img.referrerPolicy: setAttribute() to "NO-REFERRER" assert_equals: IDL get expected (string) "no-referrer" but got (undefined) undefined
    992 FAIL img.referrerPolicy: setAttribute() to "no-referrer-when-downgrade" assert_equals: IDL get expected (string) "no-referrer-when-downgrade" but got (undefined) undefined
    993 FAIL img.referrerPolicy: setAttribute() to "xno-referrer-when-downgrade" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    994 FAIL img.referrerPolicy: setAttribute() to "no-referrer-when-downgrade\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    995 FAIL img.referrerPolicy: setAttribute() to "o-referrer-when-downgrade" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    996 FAIL img.referrerPolicy: setAttribute() to "NO-REFERRER-WHEN-DOWNGRADE" assert_equals: IDL get expected (string) "no-referrer-when-downgrade" but got (undefined) undefined
    997 FAIL img.referrerPolicy: setAttribute() to "same-origin" assert_equals: IDL get expected (string) "same-origin" but got (undefined) undefined
    998 FAIL img.referrerPolicy: setAttribute() to "xsame-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    999 FAIL img.referrerPolicy: setAttribute() to "same-origin\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1000 FAIL img.referrerPolicy: setAttribute() to "ame-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1001 FAIL img.referrerPolicy: setAttribute() to "SAME-ORIGIN" assert_equals: IDL get expected (string) "same-origin" but got (undefined) undefined
    1002 FAIL img.referrerPolicy: setAttribute() to "ſame-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1003 FAIL img.referrerPolicy: setAttribute() to "origin" assert_equals: IDL get expected (string) "origin" but got (undefined) undefined
    1004 FAIL img.referrerPolicy: setAttribute() to "xorigin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1005 FAIL img.referrerPolicy: setAttribute() to "origin\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1006 FAIL img.referrerPolicy: setAttribute() to "rigin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1007 FAIL img.referrerPolicy: setAttribute() to "ORIGIN" assert_equals: IDL get expected (string) "origin" but got (undefined) undefined
    1008 FAIL img.referrerPolicy: setAttribute() to "strict-origin" assert_equals: IDL get expected (string) "strict-origin" but got (undefined) undefined
    1009 FAIL img.referrerPolicy: setAttribute() to "xstrict-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1010 FAIL img.referrerPolicy: setAttribute() to "strict-origin\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1011 FAIL img.referrerPolicy: setAttribute() to "trict-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1012 FAIL img.referrerPolicy: setAttribute() to "STRICT-ORIGIN" assert_equals: IDL get expected (string) "strict-origin" but got (undefined) undefined
    1013 FAIL img.referrerPolicy: setAttribute() to "ſtrict-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1014 FAIL img.referrerPolicy: setAttribute() to "origin-when-cross-origin" assert_equals: IDL get expected (string) "origin-when-cross-origin" but got (undefined) undefined
    1015 FAIL img.referrerPolicy: setAttribute() to "xorigin-when-cross-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1016 FAIL img.referrerPolicy: setAttribute() to "origin-when-cross-origin\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1017 FAIL img.referrerPolicy: setAttribute() to "rigin-when-cross-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1018 FAIL img.referrerPolicy: setAttribute() to "ORIGIN-WHEN-CROSS-ORIGIN" assert_equals: IDL get expected (string) "origin-when-cross-origin" but got (undefined) undefined
    1019 FAIL img.referrerPolicy: setAttribute() to "origin-when-croſſ-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1020 FAIL img.referrerPolicy: setAttribute() to "strict-origin-when-cross-origin" assert_equals: IDL get expected (string) "strict-origin-when-cross-origin" but got (undefined) undefined
    1021 FAIL img.referrerPolicy: setAttribute() to "xstrict-origin-when-cross-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1022 FAIL img.referrerPolicy: setAttribute() to "strict-origin-when-cross-origin\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1023 FAIL img.referrerPolicy: setAttribute() to "trict-origin-when-cross-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1024 FAIL img.referrerPolicy: setAttribute() to "STRICT-ORIGIN-WHEN-CROSS-ORIGIN" assert_equals: IDL get expected (string) "strict-origin-when-cross-origin" but got (undefined) undefined
    1025 FAIL img.referrerPolicy: setAttribute() to "ſtrict-origin-when-croſſ-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1026 FAIL img.referrerPolicy: setAttribute() to "unsafe-url" assert_equals: IDL get expected (string) "unsafe-url" but got (undefined) undefined
    1027 FAIL img.referrerPolicy: setAttribute() to "xunsafe-url" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1028 FAIL img.referrerPolicy: setAttribute() to "unsafe-url\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1029 FAIL img.referrerPolicy: setAttribute() to "nsafe-url" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1030 FAIL img.referrerPolicy: setAttribute() to "UNSAFE-URL" assert_equals: IDL get expected (string) "unsafe-url" but got (undefined) undefined
    1031 FAIL img.referrerPolicy: setAttribute() to "unſafe-url" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1032 FAIL img.referrerPolicy: IDL set to "" assert_equals: getAttribute() expected "" but got "unſafe-url"
    1033 FAIL img.referrerPolicy: IDL set to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " assert_equals: getAttribute() expected " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " but got "unſafe-url"
    1034 FAIL img.referrerPolicy: IDL set to undefined assert_equals: getAttribute() expected "undefined" but got "unſafe-url"
    1035 FAIL img.referrerPolicy: IDL set to 7 assert_equals: getAttribute() expected "7" but got "unſafe-url"
    1036 FAIL img.referrerPolicy: IDL set to 1.5 assert_equals: getAttribute() expected "1.5" but got "unſafe-url"
    1037 FAIL img.referrerPolicy: IDL set to "5%" assert_equals: getAttribute() expected "5%" but got "unſafe-url"
    1038 FAIL img.referrerPolicy: IDL set to "+100" assert_equals: getAttribute() expected "+100" but got "unſafe-url"
    1039 FAIL img.referrerPolicy: IDL set to ".5" assert_equals: getAttribute() expected ".5" but got "unſafe-url"
    1040 FAIL img.referrerPolicy: IDL set to true assert_equals: getAttribute() expected "true" but got "unſafe-url"
    1041 FAIL img.referrerPolicy: IDL set to false assert_equals: getAttribute() expected "false" but got "unſafe-url"
    1042 FAIL img.referrerPolicy: IDL set to object "[object Object]" assert_equals: getAttribute() expected "[object Object]" but got "unſafe-url"
    1043 FAIL img.referrerPolicy: IDL set to NaN assert_equals: getAttribute() expected "NaN" but got "unſafe-url"
    1044 FAIL img.referrerPolicy: IDL set to Infinity assert_equals: getAttribute() expected "Infinity" but got "unſafe-url"
    1045 FAIL img.referrerPolicy: IDL set to -Infinity assert_equals: getAttribute() expected "-Infinity" but got "unſafe-url"
    1046 FAIL img.referrerPolicy: IDL set to "\0" assert_equals: getAttribute() expected "\0" but got "unſafe-url"
    1047 FAIL img.referrerPolicy: IDL set to null assert_equals: IDL get expected (string) "" but got (object) null
    1048 FAIL img.referrerPolicy: IDL set to object "test-toString" assert_equals: getAttribute() expected "test-toString" but got "unſafe-url"
    1049 FAIL img.referrerPolicy: IDL set to object "test-valueOf" assert_equals: getAttribute() expected "test-valueOf" but got "unſafe-url"
    1050 FAIL img.referrerPolicy: IDL set to "no-referrer" assert_equals: getAttribute() expected "no-referrer" but got "unſafe-url"
    1051 FAIL img.referrerPolicy: IDL set to "xno-referrer" assert_equals: getAttribute() expected "xno-referrer" but got "unſafe-url"
    1052 FAIL img.referrerPolicy: IDL set to "no-referrer\0" assert_equals: getAttribute() expected "no-referrer\0" but got "unſafe-url"
    1053 FAIL img.referrerPolicy: IDL set to "o-referrer" assert_equals: getAttribute() expected "o-referrer" but got "unſafe-url"
    1054 FAIL img.referrerPolicy: IDL set to "NO-REFERRER" assert_equals: getAttribute() expected "NO-REFERRER" but got "unſafe-url"
    1055 FAIL img.referrerPolicy: IDL set to "no-referrer-when-downgrade" assert_equals: getAttribute() expected "no-referrer-when-downgrade" but got "unſafe-url"
    1056 FAIL img.referrerPolicy: IDL set to "xno-referrer-when-downgrade" assert_equals: getAttribute() expected "xno-referrer-when-downgrade" but got "unſafe-url"
    1057 FAIL img.referrerPolicy: IDL set to "no-referrer-when-downgrade\0" assert_equals: getAttribute() expected "no-referrer-when-downgrade\0" but got "unſafe-url"
    1058 FAIL img.referrerPolicy: IDL set to "o-referrer-when-downgrade" assert_equals: getAttribute() expected "o-referrer-when-downgrade" but got "unſafe-url"
    1059 FAIL img.referrerPolicy: IDL set to "NO-REFERRER-WHEN-DOWNGRADE" assert_equals: getAttribute() expected "NO-REFERRER-WHEN-DOWNGRADE" but got "unſafe-url"
    1060 FAIL img.referrerPolicy: IDL set to "same-origin" assert_equals: getAttribute() expected "same-origin" but got "unſafe-url"
    1061 FAIL img.referrerPolicy: IDL set to "xsame-origin" assert_equals: getAttribute() expected "xsame-origin" but got "unſafe-url"
    1062 FAIL img.referrerPolicy: IDL set to "same-origin\0" assert_equals: getAttribute() expected "same-origin\0" but got "unſafe-url"
    1063 FAIL img.referrerPolicy: IDL set to "ame-origin" assert_equals: getAttribute() expected "ame-origin" but got "unſafe-url"
    1064 FAIL img.referrerPolicy: IDL set to "SAME-ORIGIN" assert_equals: getAttribute() expected "SAME-ORIGIN" but got "unſafe-url"
    1065 FAIL img.referrerPolicy: IDL set to "ſame-origin" assert_equals: getAttribute() expected "ſame-origin" but got "unſafe-url"
    1066 FAIL img.referrerPolicy: IDL set to "origin" assert_equals: getAttribute() expected "origin" but got "unſafe-url"
    1067 FAIL img.referrerPolicy: IDL set to "xorigin" assert_equals: getAttribute() expected "xorigin" but got "unſafe-url"
    1068 FAIL img.referrerPolicy: IDL set to "origin\0" assert_equals: getAttribute() expected "origin\0" but got "unſafe-url"
    1069 FAIL img.referrerPolicy: IDL set to "rigin" assert_equals: getAttribute() expected "rigin" but got "unſafe-url"
    1070 FAIL img.referrerPolicy: IDL set to "ORIGIN" assert_equals: getAttribute() expected "ORIGIN" but got "unſafe-url"
    1071 FAIL img.referrerPolicy: IDL set to "strict-origin" assert_equals: getAttribute() expected "strict-origin" but got "unſafe-url"
    1072 FAIL img.referrerPolicy: IDL set to "xstrict-origin" assert_equals: getAttribute() expected "xstrict-origin" but got "unſafe-url"
    1073 FAIL img.referrerPolicy: IDL set to "strict-origin\0" assert_equals: getAttribute() expected "strict-origin\0" but got "unſafe-url"
    1074 FAIL img.referrerPolicy: IDL set to "trict-origin" assert_equals: getAttribute() expected "trict-origin" but got "unſafe-url"
    1075 FAIL img.referrerPolicy: IDL set to "STRICT-ORIGIN" assert_equals: getAttribute() expected "STRICT-ORIGIN" but got "unſafe-url"
    1076 FAIL img.referrerPolicy: IDL set to "ſtrict-origin" assert_equals: getAttribute() expected "ſtrict-origin" but got "unſafe-url"
    1077 FAIL img.referrerPolicy: IDL set to "origin-when-cross-origin" assert_equals: getAttribute() expected "origin-when-cross-origin" but got "unſafe-url"
    1078 FAIL img.referrerPolicy: IDL set to "xorigin-when-cross-origin" assert_equals: getAttribute() expected "xorigin-when-cross-origin" but got "unſafe-url"
    1079 FAIL img.referrerPolicy: IDL set to "origin-when-cross-origin\0" assert_equals: getAttribute() expected "origin-when-cross-origin\0" but got "unſafe-url"
    1080 FAIL img.referrerPolicy: IDL set to "rigin-when-cross-origin" assert_equals: getAttribute() expected "rigin-when-cross-origin" but got "unſafe-url"
    1081 FAIL img.referrerPolicy: IDL set to "ORIGIN-WHEN-CROSS-ORIGIN" assert_equals: getAttribute() expected "ORIGIN-WHEN-CROSS-ORIGIN" but got "unſafe-url"
    1082 FAIL img.referrerPolicy: IDL set to "origin-when-croſſ-origin" assert_equals: getAttribute() expected "origin-when-croſſ-origin" but got "unſafe-url"
    1083 FAIL img.referrerPolicy: IDL set to "strict-origin-when-cross-origin" assert_equals: getAttribute() expected "strict-origin-when-cross-origin" but got "unſafe-url"
    1084 FAIL img.referrerPolicy: IDL set to "xstrict-origin-when-cross-origin" assert_equals: getAttribute() expected "xstrict-origin-when-cross-origin" but got "unſafe-url"
    1085 FAIL img.referrerPolicy: IDL set to "strict-origin-when-cross-origin\0" assert_equals: getAttribute() expected "strict-origin-when-cross-origin\0" but got "unſafe-url"
    1086 FAIL img.referrerPolicy: IDL set to "trict-origin-when-cross-origin" assert_equals: getAttribute() expected "trict-origin-when-cross-origin" but got "unſafe-url"
    1087 FAIL img.referrerPolicy: IDL set to "STRICT-ORIGIN-WHEN-CROSS-ORIGIN" assert_equals: getAttribute() expected "STRICT-ORIGIN-WHEN-CROSS-ORIGIN" but got "unſafe-url"
    1088 FAIL img.referrerPolicy: IDL set to "ſtrict-origin-when-croſſ-origin" assert_equals: getAttribute() expected "ſtrict-origin-when-croſſ-origin" but got "unſafe-url"
    1089 FAIL img.referrerPolicy: IDL set to "unsafe-url" assert_equals: getAttribute() expected "unsafe-url" but got "unſafe-url"
    1090 FAIL img.referrerPolicy: IDL set to "xunsafe-url" assert_equals: getAttribute() expected "xunsafe-url" but got "unſafe-url"
    1091 FAIL img.referrerPolicy: IDL set to "unsafe-url\0" assert_equals: getAttribute() expected "unsafe-url\0" but got "unſafe-url"
    1092 FAIL img.referrerPolicy: IDL set to "nsafe-url" assert_equals: getAttribute() expected "nsafe-url" but got "unſafe-url"
    1093 FAIL img.referrerPolicy: IDL set to "UNSAFE-URL" assert_equals: getAttribute() expected "UNSAFE-URL" but got "unſafe-url"
    1094 FAIL img.referrerPolicy: IDL set to "unſafe-url" assert_equals: IDL get expected "" but got "unſafe-url"
     967PASS img.referrerPolicy: typeof IDL attribute
     968PASS img.referrerPolicy: IDL get with DOM attribute unset
     969PASS img.referrerPolicy: setAttribute() to ""
     970PASS img.referrerPolicy: setAttribute() to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo "
     971PASS img.referrerPolicy: setAttribute() to undefined
     972PASS img.referrerPolicy: setAttribute() to 7
     973PASS img.referrerPolicy: setAttribute() to 1.5
     974PASS img.referrerPolicy: setAttribute() to "5%"
     975PASS img.referrerPolicy: setAttribute() to "+100"
     976PASS img.referrerPolicy: setAttribute() to ".5"
     977PASS img.referrerPolicy: setAttribute() to true
     978PASS img.referrerPolicy: setAttribute() to false
     979PASS img.referrerPolicy: setAttribute() to object "[object Object]"
     980PASS img.referrerPolicy: setAttribute() to NaN
     981PASS img.referrerPolicy: setAttribute() to Infinity
     982PASS img.referrerPolicy: setAttribute() to -Infinity
     983PASS img.referrerPolicy: setAttribute() to "\0"
     984PASS img.referrerPolicy: setAttribute() to null
     985PASS img.referrerPolicy: setAttribute() to object "test-toString"
     986PASS img.referrerPolicy: setAttribute() to object "test-valueOf"
     987PASS img.referrerPolicy: setAttribute() to "no-referrer"
     988PASS img.referrerPolicy: setAttribute() to "xno-referrer"
     989PASS img.referrerPolicy: setAttribute() to "no-referrer\0"
     990PASS img.referrerPolicy: setAttribute() to "o-referrer"
     991PASS img.referrerPolicy: setAttribute() to "NO-REFERRER"
     992PASS img.referrerPolicy: setAttribute() to "no-referrer-when-downgrade"
     993PASS img.referrerPolicy: setAttribute() to "xno-referrer-when-downgrade"
     994PASS img.referrerPolicy: setAttribute() to "no-referrer-when-downgrade\0"
     995PASS img.referrerPolicy: setAttribute() to "o-referrer-when-downgrade"
     996PASS img.referrerPolicy: setAttribute() to "NO-REFERRER-WHEN-DOWNGRADE"
     997PASS img.referrerPolicy: setAttribute() to "same-origin"
     998PASS img.referrerPolicy: setAttribute() to "xsame-origin"
     999PASS img.referrerPolicy: setAttribute() to "same-origin\0"
     1000PASS img.referrerPolicy: setAttribute() to "ame-origin"
     1001PASS img.referrerPolicy: setAttribute() to "SAME-ORIGIN"
     1002PASS img.referrerPolicy: setAttribute() to "ſame-origin"
     1003PASS img.referrerPolicy: setAttribute() to "origin"
     1004PASS img.referrerPolicy: setAttribute() to "xorigin"
     1005PASS img.referrerPolicy: setAttribute() to "origin\0"
     1006PASS img.referrerPolicy: setAttribute() to "rigin"
     1007PASS img.referrerPolicy: setAttribute() to "ORIGIN"
     1008PASS img.referrerPolicy: setAttribute() to "strict-origin"
     1009PASS img.referrerPolicy: setAttribute() to "xstrict-origin"
     1010PASS img.referrerPolicy: setAttribute() to "strict-origin\0"
     1011PASS img.referrerPolicy: setAttribute() to "trict-origin"
     1012PASS img.referrerPolicy: setAttribute() to "STRICT-ORIGIN"
     1013PASS img.referrerPolicy: setAttribute() to "ſtrict-origin"
     1014PASS img.referrerPolicy: setAttribute() to "origin-when-cross-origin"
     1015PASS img.referrerPolicy: setAttribute() to "xorigin-when-cross-origin"
     1016PASS img.referrerPolicy: setAttribute() to "origin-when-cross-origin\0"
     1017PASS img.referrerPolicy: setAttribute() to "rigin-when-cross-origin"
     1018PASS img.referrerPolicy: setAttribute() to "ORIGIN-WHEN-CROSS-ORIGIN"
     1019PASS img.referrerPolicy: setAttribute() to "origin-when-croſſ-origin"
     1020PASS img.referrerPolicy: setAttribute() to "strict-origin-when-cross-origin"
     1021PASS img.referrerPolicy: setAttribute() to "xstrict-origin-when-cross-origin"
     1022PASS img.referrerPolicy: setAttribute() to "strict-origin-when-cross-origin\0"
     1023PASS img.referrerPolicy: setAttribute() to "trict-origin-when-cross-origin"
     1024PASS img.referrerPolicy: setAttribute() to "STRICT-ORIGIN-WHEN-CROSS-ORIGIN"
     1025PASS img.referrerPolicy: setAttribute() to "ſtrict-origin-when-croſſ-origin"
     1026PASS img.referrerPolicy: setAttribute() to "unsafe-url"
     1027PASS img.referrerPolicy: setAttribute() to "xunsafe-url"
     1028PASS img.referrerPolicy: setAttribute() to "unsafe-url\0"
     1029PASS img.referrerPolicy: setAttribute() to "nsafe-url"
     1030PASS img.referrerPolicy: setAttribute() to "UNSAFE-URL"
     1031PASS img.referrerPolicy: setAttribute() to "unſafe-url"
     1032PASS img.referrerPolicy: IDL set to ""
     1033PASS img.referrerPolicy: IDL set to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo "
     1034PASS img.referrerPolicy: IDL set to undefined
     1035PASS img.referrerPolicy: IDL set to 7
     1036PASS img.referrerPolicy: IDL set to 1.5
     1037PASS img.referrerPolicy: IDL set to "5%"
     1038PASS img.referrerPolicy: IDL set to "+100"
     1039PASS img.referrerPolicy: IDL set to ".5"
     1040PASS img.referrerPolicy: IDL set to true
     1041PASS img.referrerPolicy: IDL set to false
     1042PASS img.referrerPolicy: IDL set to object "[object Object]"
     1043PASS img.referrerPolicy: IDL set to NaN
     1044PASS img.referrerPolicy: IDL set to Infinity
     1045PASS img.referrerPolicy: IDL set to -Infinity
     1046PASS img.referrerPolicy: IDL set to "\0"
     1047PASS img.referrerPolicy: IDL set to null
     1048PASS img.referrerPolicy: IDL set to object "test-toString"
     1049PASS img.referrerPolicy: IDL set to object "test-valueOf"
     1050PASS img.referrerPolicy: IDL set to "no-referrer"
     1051PASS img.referrerPolicy: IDL set to "xno-referrer"
     1052PASS img.referrerPolicy: IDL set to "no-referrer\0"
     1053PASS img.referrerPolicy: IDL set to "o-referrer"
     1054PASS img.referrerPolicy: IDL set to "NO-REFERRER"
     1055PASS img.referrerPolicy: IDL set to "no-referrer-when-downgrade"
     1056PASS img.referrerPolicy: IDL set to "xno-referrer-when-downgrade"
     1057PASS img.referrerPolicy: IDL set to "no-referrer-when-downgrade\0"
     1058PASS img.referrerPolicy: IDL set to "o-referrer-when-downgrade"
     1059PASS img.referrerPolicy: IDL set to "NO-REFERRER-WHEN-DOWNGRADE"
     1060PASS img.referrerPolicy: IDL set to "same-origin"
     1061PASS img.referrerPolicy: IDL set to "xsame-origin"
     1062PASS img.referrerPolicy: IDL set to "same-origin\0"
     1063PASS img.referrerPolicy: IDL set to "ame-origin"
     1064PASS img.referrerPolicy: IDL set to "SAME-ORIGIN"
     1065PASS img.referrerPolicy: IDL set to "ſame-origin"
     1066PASS img.referrerPolicy: IDL set to "origin"
     1067PASS img.referrerPolicy: IDL set to "xorigin"
     1068PASS img.referrerPolicy: IDL set to "origin\0"
     1069PASS img.referrerPolicy: IDL set to "rigin"
     1070PASS img.referrerPolicy: IDL set to "ORIGIN"
     1071PASS img.referrerPolicy: IDL set to "strict-origin"
     1072PASS img.referrerPolicy: IDL set to "xstrict-origin"
     1073PASS img.referrerPolicy: IDL set to "strict-origin\0"
     1074PASS img.referrerPolicy: IDL set to "trict-origin"
     1075PASS img.referrerPolicy: IDL set to "STRICT-ORIGIN"
     1076PASS img.referrerPolicy: IDL set to "ſtrict-origin"
     1077PASS img.referrerPolicy: IDL set to "origin-when-cross-origin"
     1078PASS img.referrerPolicy: IDL set to "xorigin-when-cross-origin"
     1079PASS img.referrerPolicy: IDL set to "origin-when-cross-origin\0"
     1080PASS img.referrerPolicy: IDL set to "rigin-when-cross-origin"
     1081PASS img.referrerPolicy: IDL set to "ORIGIN-WHEN-CROSS-ORIGIN"
     1082PASS img.referrerPolicy: IDL set to "origin-when-croſſ-origin"
     1083PASS img.referrerPolicy: IDL set to "strict-origin-when-cross-origin"
     1084PASS img.referrerPolicy: IDL set to "xstrict-origin-when-cross-origin"
     1085PASS img.referrerPolicy: IDL set to "strict-origin-when-cross-origin\0"
     1086PASS img.referrerPolicy: IDL set to "trict-origin-when-cross-origin"
     1087PASS img.referrerPolicy: IDL set to "STRICT-ORIGIN-WHEN-CROSS-ORIGIN"
     1088PASS img.referrerPolicy: IDL set to "ſtrict-origin-when-croſſ-origin"
     1089PASS img.referrerPolicy: IDL set to "unsafe-url"
     1090PASS img.referrerPolicy: IDL set to "xunsafe-url"
     1091PASS img.referrerPolicy: IDL set to "unsafe-url\0"
     1092PASS img.referrerPolicy: IDL set to "nsafe-url"
     1093PASS img.referrerPolicy: IDL set to "UNSAFE-URL"
     1094PASS img.referrerPolicy: IDL set to "unſafe-url"
    10951095PASS img.decoding: typeof IDL attribute
    10961096FAIL img.decoding: IDL get with DOM attribute unset assert_equals: expected "auto" but got ""
  • trunk/LayoutTests/platform/ios/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt

    r242534 r257572  
    520520PASS img.height: IDL set to 2147483648
    521521PASS img.height: IDL set to 4294967295
    522 FAIL img.referrerPolicy: typeof IDL attribute assert_equals: expected "string" but got "undefined"
    523 FAIL img.referrerPolicy: IDL get with DOM attribute unset assert_equals: expected (string) "" but got (undefined) undefined
    524 FAIL img.referrerPolicy: setAttribute() to "" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    525 FAIL img.referrerPolicy: setAttribute() to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " assert_equals: IDL get expected (string) "" but got (undefined) undefined
    526 FAIL img.referrerPolicy: setAttribute() to undefined assert_equals: IDL get expected (string) "" but got (undefined) undefined
    527 FAIL img.referrerPolicy: setAttribute() to 7 assert_equals: IDL get expected (string) "" but got (undefined) undefined
    528 FAIL img.referrerPolicy: setAttribute() to 1.5 assert_equals: IDL get expected (string) "" but got (undefined) undefined
    529 FAIL img.referrerPolicy: setAttribute() to true assert_equals: IDL get expected (string) "" but got (undefined) undefined
    530 FAIL img.referrerPolicy: setAttribute() to false assert_equals: IDL get expected (string) "" but got (undefined) undefined
    531 FAIL img.referrerPolicy: setAttribute() to object "[object Object]" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    532 FAIL img.referrerPolicy: setAttribute() to NaN assert_equals: IDL get expected (string) "" but got (undefined) undefined
    533 FAIL img.referrerPolicy: setAttribute() to Infinity assert_equals: IDL get expected (string) "" but got (undefined) undefined
    534 FAIL img.referrerPolicy: setAttribute() to -Infinity assert_equals: IDL get expected (string) "" but got (undefined) undefined
    535 FAIL img.referrerPolicy: setAttribute() to "\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    536 FAIL img.referrerPolicy: setAttribute() to null assert_equals: IDL get expected (string) "" but got (undefined) undefined
    537 FAIL img.referrerPolicy: setAttribute() to object "test-toString" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    538 FAIL img.referrerPolicy: setAttribute() to object "test-valueOf" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    539 FAIL img.referrerPolicy: setAttribute() to "no-referrer" assert_equals: IDL get expected (string) "no-referrer" but got (undefined) undefined
    540 FAIL img.referrerPolicy: setAttribute() to "xno-referrer" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    541 FAIL img.referrerPolicy: setAttribute() to "no-referrer\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    542 FAIL img.referrerPolicy: setAttribute() to "o-referrer" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    543 FAIL img.referrerPolicy: setAttribute() to "NO-REFERRER" assert_equals: IDL get expected (string) "no-referrer" but got (undefined) undefined
    544 FAIL img.referrerPolicy: setAttribute() to "no-referrer-when-downgrade" assert_equals: IDL get expected (string) "no-referrer-when-downgrade" but got (undefined) undefined
    545 FAIL img.referrerPolicy: setAttribute() to "xno-referrer-when-downgrade" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    546 FAIL img.referrerPolicy: setAttribute() to "no-referrer-when-downgrade\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    547 FAIL img.referrerPolicy: setAttribute() to "o-referrer-when-downgrade" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    548 FAIL img.referrerPolicy: setAttribute() to "NO-REFERRER-WHEN-DOWNGRADE" assert_equals: IDL get expected (string) "no-referrer-when-downgrade" but got (undefined) undefined
    549 FAIL img.referrerPolicy: setAttribute() to "same-origin" assert_equals: IDL get expected (string) "same-origin" but got (undefined) undefined
    550 FAIL img.referrerPolicy: setAttribute() to "xsame-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    551 FAIL img.referrerPolicy: setAttribute() to "same-origin\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    552 FAIL img.referrerPolicy: setAttribute() to "ame-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    553 FAIL img.referrerPolicy: setAttribute() to "SAME-ORIGIN" assert_equals: IDL get expected (string) "same-origin" but got (undefined) undefined
    554 FAIL img.referrerPolicy: setAttribute() to "origin" assert_equals: IDL get expected (string) "origin" but got (undefined) undefined
    555 FAIL img.referrerPolicy: setAttribute() to "xorigin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    556 FAIL img.referrerPolicy: setAttribute() to "origin\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    557 FAIL img.referrerPolicy: setAttribute() to "rigin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    558 FAIL img.referrerPolicy: setAttribute() to "ORIGIN" assert_equals: IDL get expected (string) "origin" but got (undefined) undefined
    559 FAIL img.referrerPolicy: setAttribute() to "strict-origin" assert_equals: IDL get expected (string) "strict-origin" but got (undefined) undefined
    560 FAIL img.referrerPolicy: setAttribute() to "xstrict-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    561 FAIL img.referrerPolicy: setAttribute() to "strict-origin\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    562 FAIL img.referrerPolicy: setAttribute() to "trict-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    563 FAIL img.referrerPolicy: setAttribute() to "STRICT-ORIGIN" assert_equals: IDL get expected (string) "strict-origin" but got (undefined) undefined
    564 FAIL img.referrerPolicy: setAttribute() to "origin-when-cross-origin" assert_equals: IDL get expected (string) "origin-when-cross-origin" but got (undefined) undefined
    565 FAIL img.referrerPolicy: setAttribute() to "xorigin-when-cross-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    566 FAIL img.referrerPolicy: setAttribute() to "origin-when-cross-origin\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    567 FAIL img.referrerPolicy: setAttribute() to "rigin-when-cross-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    568 FAIL img.referrerPolicy: setAttribute() to "ORIGIN-WHEN-CROSS-ORIGIN" assert_equals: IDL get expected (string) "origin-when-cross-origin" but got (undefined) undefined
    569 FAIL img.referrerPolicy: setAttribute() to "strict-origin-when-cross-origin" assert_equals: IDL get expected (string) "strict-origin-when-cross-origin" but got (undefined) undefined
    570 FAIL img.referrerPolicy: setAttribute() to "xstrict-origin-when-cross-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    571 FAIL img.referrerPolicy: setAttribute() to "strict-origin-when-cross-origin\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    572 FAIL img.referrerPolicy: setAttribute() to "trict-origin-when-cross-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    573 FAIL img.referrerPolicy: setAttribute() to "STRICT-ORIGIN-WHEN-CROSS-ORIGIN" assert_equals: IDL get expected (string) "strict-origin-when-cross-origin" but got (undefined) undefined
    574 FAIL img.referrerPolicy: setAttribute() to "unsafe-url" assert_equals: IDL get expected (string) "unsafe-url" but got (undefined) undefined
    575 FAIL img.referrerPolicy: setAttribute() to "xunsafe-url" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    576 FAIL img.referrerPolicy: setAttribute() to "unsafe-url\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    577 FAIL img.referrerPolicy: setAttribute() to "nsafe-url" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    578 FAIL img.referrerPolicy: setAttribute() to "UNSAFE-URL" assert_equals: IDL get expected (string) "unsafe-url" but got (undefined) undefined
    579 FAIL img.referrerPolicy: IDL set to "" assert_equals: getAttribute() expected "" but got "UNSAFE-URL"
    580 FAIL img.referrerPolicy: IDL set to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " assert_equals: getAttribute() expected " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " but got "UNSAFE-URL"
    581 FAIL img.referrerPolicy: IDL set to undefined assert_equals: getAttribute() expected "undefined" but got "UNSAFE-URL"
    582 FAIL img.referrerPolicy: IDL set to 7 assert_equals: getAttribute() expected "7" but got "UNSAFE-URL"
    583 FAIL img.referrerPolicy: IDL set to 1.5 assert_equals: getAttribute() expected "1.5" but got "UNSAFE-URL"
    584 FAIL img.referrerPolicy: IDL set to true assert_equals: getAttribute() expected "true" but got "UNSAFE-URL"
    585 FAIL img.referrerPolicy: IDL set to false assert_equals: getAttribute() expected "false" but got "UNSAFE-URL"
    586 FAIL img.referrerPolicy: IDL set to object "[object Object]" assert_equals: getAttribute() expected "[object Object]" but got "UNSAFE-URL"
    587 FAIL img.referrerPolicy: IDL set to NaN assert_equals: getAttribute() expected "NaN" but got "UNSAFE-URL"
    588 FAIL img.referrerPolicy: IDL set to Infinity assert_equals: getAttribute() expected "Infinity" but got "UNSAFE-URL"
    589 FAIL img.referrerPolicy: IDL set to -Infinity assert_equals: getAttribute() expected "-Infinity" but got "UNSAFE-URL"
    590 FAIL img.referrerPolicy: IDL set to "\0" assert_equals: getAttribute() expected "\0" but got "UNSAFE-URL"
    591 FAIL img.referrerPolicy: IDL set to null assert_equals: IDL get expected (string) "" but got (object) null
    592 FAIL img.referrerPolicy: IDL set to object "test-toString" assert_equals: getAttribute() expected "test-toString" but got "UNSAFE-URL"
    593 FAIL img.referrerPolicy: IDL set to object "test-valueOf" assert_equals: getAttribute() expected "test-valueOf" but got "UNSAFE-URL"
    594 FAIL img.referrerPolicy: IDL set to "no-referrer" assert_equals: getAttribute() expected "no-referrer" but got "UNSAFE-URL"
    595 FAIL img.referrerPolicy: IDL set to "xno-referrer" assert_equals: getAttribute() expected "xno-referrer" but got "UNSAFE-URL"
    596 FAIL img.referrerPolicy: IDL set to "no-referrer\0" assert_equals: getAttribute() expected "no-referrer\0" but got "UNSAFE-URL"
    597 FAIL img.referrerPolicy: IDL set to "o-referrer" assert_equals: getAttribute() expected "o-referrer" but got "UNSAFE-URL"
    598 FAIL img.referrerPolicy: IDL set to "NO-REFERRER" assert_equals: getAttribute() expected "NO-REFERRER" but got "UNSAFE-URL"
    599 FAIL img.referrerPolicy: IDL set to "no-referrer-when-downgrade" assert_equals: getAttribute() expected "no-referrer-when-downgrade" but got "UNSAFE-URL"
    600 FAIL img.referrerPolicy: IDL set to "xno-referrer-when-downgrade" assert_equals: getAttribute() expected "xno-referrer-when-downgrade" but got "UNSAFE-URL"
    601 FAIL img.referrerPolicy: IDL set to "no-referrer-when-downgrade\0" assert_equals: getAttribute() expected "no-referrer-when-downgrade\0" but got "UNSAFE-URL"
    602 FAIL img.referrerPolicy: IDL set to "o-referrer-when-downgrade" assert_equals: getAttribute() expected "o-referrer-when-downgrade" but got "UNSAFE-URL"
    603 FAIL img.referrerPolicy: IDL set to "NO-REFERRER-WHEN-DOWNGRADE" assert_equals: getAttribute() expected "NO-REFERRER-WHEN-DOWNGRADE" but got "UNSAFE-URL"
    604 FAIL img.referrerPolicy: IDL set to "same-origin" assert_equals: getAttribute() expected "same-origin" but got "UNSAFE-URL"
    605 FAIL img.referrerPolicy: IDL set to "xsame-origin" assert_equals: getAttribute() expected "xsame-origin" but got "UNSAFE-URL"
    606 FAIL img.referrerPolicy: IDL set to "same-origin\0" assert_equals: getAttribute() expected "same-origin\0" but got "UNSAFE-URL"
    607 FAIL img.referrerPolicy: IDL set to "ame-origin" assert_equals: getAttribute() expected "ame-origin" but got "UNSAFE-URL"
    608 FAIL img.referrerPolicy: IDL set to "SAME-ORIGIN" assert_equals: getAttribute() expected "SAME-ORIGIN" but got "UNSAFE-URL"
    609 FAIL img.referrerPolicy: IDL set to "origin" assert_equals: getAttribute() expected "origin" but got "UNSAFE-URL"
    610 FAIL img.referrerPolicy: IDL set to "xorigin" assert_equals: getAttribute() expected "xorigin" but got "UNSAFE-URL"
    611 FAIL img.referrerPolicy: IDL set to "origin\0" assert_equals: getAttribute() expected "origin\0" but got "UNSAFE-URL"
    612 FAIL img.referrerPolicy: IDL set to "rigin" assert_equals: getAttribute() expected "rigin" but got "UNSAFE-URL"
    613 FAIL img.referrerPolicy: IDL set to "ORIGIN" assert_equals: getAttribute() expected "ORIGIN" but got "UNSAFE-URL"
    614 FAIL img.referrerPolicy: IDL set to "strict-origin" assert_equals: getAttribute() expected "strict-origin" but got "UNSAFE-URL"
    615 FAIL img.referrerPolicy: IDL set to "xstrict-origin" assert_equals: getAttribute() expected "xstrict-origin" but got "UNSAFE-URL"
    616 FAIL img.referrerPolicy: IDL set to "strict-origin\0" assert_equals: getAttribute() expected "strict-origin\0" but got "UNSAFE-URL"
    617 FAIL img.referrerPolicy: IDL set to "trict-origin" assert_equals: getAttribute() expected "trict-origin" but got "UNSAFE-URL"
    618 FAIL img.referrerPolicy: IDL set to "STRICT-ORIGIN" assert_equals: getAttribute() expected "STRICT-ORIGIN" but got "UNSAFE-URL"
    619 FAIL img.referrerPolicy: IDL set to "origin-when-cross-origin" assert_equals: getAttribute() expected "origin-when-cross-origin" but got "UNSAFE-URL"
    620 FAIL img.referrerPolicy: IDL set to "xorigin-when-cross-origin" assert_equals: getAttribute() expected "xorigin-when-cross-origin" but got "UNSAFE-URL"
    621 FAIL img.referrerPolicy: IDL set to "origin-when-cross-origin\0" assert_equals: getAttribute() expected "origin-when-cross-origin\0" but got "UNSAFE-URL"
    622 FAIL img.referrerPolicy: IDL set to "rigin-when-cross-origin" assert_equals: getAttribute() expected "rigin-when-cross-origin" but got "UNSAFE-URL"
    623 FAIL img.referrerPolicy: IDL set to "ORIGIN-WHEN-CROSS-ORIGIN" assert_equals: getAttribute() expected "ORIGIN-WHEN-CROSS-ORIGIN" but got "UNSAFE-URL"
    624 FAIL img.referrerPolicy: IDL set to "strict-origin-when-cross-origin" assert_equals: getAttribute() expected "strict-origin-when-cross-origin" but got "UNSAFE-URL"
    625 FAIL img.referrerPolicy: IDL set to "xstrict-origin-when-cross-origin" assert_equals: getAttribute() expected "xstrict-origin-when-cross-origin" but got "UNSAFE-URL"
    626 FAIL img.referrerPolicy: IDL set to "strict-origin-when-cross-origin\0" assert_equals: getAttribute() expected "strict-origin-when-cross-origin\0" but got "UNSAFE-URL"
    627 FAIL img.referrerPolicy: IDL set to "trict-origin-when-cross-origin" assert_equals: getAttribute() expected "trict-origin-when-cross-origin" but got "UNSAFE-URL"
    628 FAIL img.referrerPolicy: IDL set to "STRICT-ORIGIN-WHEN-CROSS-ORIGIN" assert_equals: getAttribute() expected "STRICT-ORIGIN-WHEN-CROSS-ORIGIN" but got "UNSAFE-URL"
    629 FAIL img.referrerPolicy: IDL set to "unsafe-url" assert_equals: getAttribute() expected "unsafe-url" but got "UNSAFE-URL"
    630 FAIL img.referrerPolicy: IDL set to "xunsafe-url" assert_equals: getAttribute() expected "xunsafe-url" but got "UNSAFE-URL"
    631 FAIL img.referrerPolicy: IDL set to "unsafe-url\0" assert_equals: getAttribute() expected "unsafe-url\0" but got "UNSAFE-URL"
    632 FAIL img.referrerPolicy: IDL set to "nsafe-url" assert_equals: getAttribute() expected "nsafe-url" but got "UNSAFE-URL"
    633 FAIL img.referrerPolicy: IDL set to "UNSAFE-URL" assert_equals: IDL get expected "unsafe-url" but got "UNSAFE-URL"
     522PASS img.referrerPolicy: typeof IDL attribute
     523PASS img.referrerPolicy: IDL get with DOM attribute unset
     524PASS img.referrerPolicy: setAttribute() to ""
     525PASS img.referrerPolicy: setAttribute() to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo "
     526PASS img.referrerPolicy: setAttribute() to undefined
     527PASS img.referrerPolicy: setAttribute() to 7
     528PASS img.referrerPolicy: setAttribute() to 1.5
     529PASS img.referrerPolicy: setAttribute() to true
     530PASS img.referrerPolicy: setAttribute() to false
     531PASS img.referrerPolicy: setAttribute() to object "[object Object]"
     532PASS img.referrerPolicy: setAttribute() to NaN
     533PASS img.referrerPolicy: setAttribute() to Infinity
     534PASS img.referrerPolicy: setAttribute() to -Infinity
     535PASS img.referrerPolicy: setAttribute() to "\0"
     536PASS img.referrerPolicy: setAttribute() to null
     537PASS img.referrerPolicy: setAttribute() to object "test-toString"
     538PASS img.referrerPolicy: setAttribute() to object "test-valueOf"
     539PASS img.referrerPolicy: setAttribute() to "no-referrer"
     540PASS img.referrerPolicy: setAttribute() to "xno-referrer"
     541PASS img.referrerPolicy: setAttribute() to "no-referrer\0"
     542PASS img.referrerPolicy: setAttribute() to "o-referrer"
     543PASS img.referrerPolicy: setAttribute() to "NO-REFERRER"
     544PASS img.referrerPolicy: setAttribute() to "no-referrer-when-downgrade"
     545PASS img.referrerPolicy: setAttribute() to "xno-referrer-when-downgrade"
     546PASS img.referrerPolicy: setAttribute() to "no-referrer-when-downgrade\0"
     547PASS img.referrerPolicy: setAttribute() to "o-referrer-when-downgrade"
     548PASS img.referrerPolicy: setAttribute() to "NO-REFERRER-WHEN-DOWNGRADE"
     549PASS img.referrerPolicy: setAttribute() to "same-origin"
     550PASS img.referrerPolicy: setAttribute() to "xsame-origin"
     551PASS img.referrerPolicy: setAttribute() to "same-origin\0"
     552PASS img.referrerPolicy: setAttribute() to "ame-origin"
     553PASS img.referrerPolicy: setAttribute() to "SAME-ORIGIN"
     554PASS img.referrerPolicy: setAttribute() to "origin"
     555PASS img.referrerPolicy: setAttribute() to "xorigin"
     556PASS img.referrerPolicy: setAttribute() to "origin\0"
     557PASS img.referrerPolicy: setAttribute() to "rigin"
     558PASS img.referrerPolicy: setAttribute() to "ORIGIN"
     559PASS img.referrerPolicy: setAttribute() to "strict-origin"
     560PASS img.referrerPolicy: setAttribute() to "xstrict-origin"
     561PASS img.referrerPolicy: setAttribute() to "strict-origin\0"
     562PASS img.referrerPolicy: setAttribute() to "trict-origin"
     563PASS img.referrerPolicy: setAttribute() to "STRICT-ORIGIN"
     564PASS img.referrerPolicy: setAttribute() to "origin-when-cross-origin"
     565PASS img.referrerPolicy: setAttribute() to "xorigin-when-cross-origin"
     566PASS img.referrerPolicy: setAttribute() to "origin-when-cross-origin\0"
     567PASS img.referrerPolicy: setAttribute() to "rigin-when-cross-origin"
     568PASS img.referrerPolicy: setAttribute() to "ORIGIN-WHEN-CROSS-ORIGIN"
     569PASS img.referrerPolicy: setAttribute() to "strict-origin-when-cross-origin"
     570PASS img.referrerPolicy: setAttribute() to "xstrict-origin-when-cross-origin"
     571PASS img.referrerPolicy: setAttribute() to "strict-origin-when-cross-origin\0"
     572PASS img.referrerPolicy: setAttribute() to "trict-origin-when-cross-origin"
     573PASS img.referrerPolicy: setAttribute() to "STRICT-ORIGIN-WHEN-CROSS-ORIGIN"
     574PASS img.referrerPolicy: setAttribute() to "unsafe-url"
     575PASS img.referrerPolicy: setAttribute() to "xunsafe-url"
     576PASS img.referrerPolicy: setAttribute() to "unsafe-url\0"
     577PASS img.referrerPolicy: setAttribute() to "nsafe-url"
     578PASS img.referrerPolicy: setAttribute() to "UNSAFE-URL"
     579PASS img.referrerPolicy: IDL set to ""
     580PASS img.referrerPolicy: IDL set to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo "
     581PASS img.referrerPolicy: IDL set to undefined
     582PASS img.referrerPolicy: IDL set to 7
     583PASS img.referrerPolicy: IDL set to 1.5
     584PASS img.referrerPolicy: IDL set to true
     585PASS img.referrerPolicy: IDL set to false
     586PASS img.referrerPolicy: IDL set to object "[object Object]"
     587PASS img.referrerPolicy: IDL set to NaN
     588PASS img.referrerPolicy: IDL set to Infinity
     589PASS img.referrerPolicy: IDL set to -Infinity
     590PASS img.referrerPolicy: IDL set to "\0"
     591PASS img.referrerPolicy: IDL set to null
     592PASS img.referrerPolicy: IDL set to object "test-toString"
     593PASS img.referrerPolicy: IDL set to object "test-valueOf"
     594PASS img.referrerPolicy: IDL set to "no-referrer"
     595PASS img.referrerPolicy: IDL set to "xno-referrer"
     596PASS img.referrerPolicy: IDL set to "no-referrer\0"
     597PASS img.referrerPolicy: IDL set to "o-referrer"
     598PASS img.referrerPolicy: IDL set to "NO-REFERRER"
     599PASS img.referrerPolicy: IDL set to "no-referrer-when-downgrade"
     600PASS img.referrerPolicy: IDL set to "xno-referrer-when-downgrade"
     601PASS img.referrerPolicy: IDL set to "no-referrer-when-downgrade\0"
     602PASS img.referrerPolicy: IDL set to "o-referrer-when-downgrade"
     603PASS img.referrerPolicy: IDL set to "NO-REFERRER-WHEN-DOWNGRADE"
     604PASS img.referrerPolicy: IDL set to "same-origin"
     605PASS img.referrerPolicy: IDL set to "xsame-origin"
     606PASS img.referrerPolicy: IDL set to "same-origin\0"
     607PASS img.referrerPolicy: IDL set to "ame-origin"
     608PASS img.referrerPolicy: IDL set to "SAME-ORIGIN"
     609PASS img.referrerPolicy: IDL set to "origin"
     610PASS img.referrerPolicy: IDL set to "xorigin"
     611PASS img.referrerPolicy: IDL set to "origin\0"
     612PASS img.referrerPolicy: IDL set to "rigin"
     613PASS img.referrerPolicy: IDL set to "ORIGIN"
     614PASS img.referrerPolicy: IDL set to "strict-origin"
     615PASS img.referrerPolicy: IDL set to "xstrict-origin"
     616PASS img.referrerPolicy: IDL set to "strict-origin\0"
     617PASS img.referrerPolicy: IDL set to "trict-origin"
     618PASS img.referrerPolicy: IDL set to "STRICT-ORIGIN"
     619PASS img.referrerPolicy: IDL set to "origin-when-cross-origin"
     620PASS img.referrerPolicy: IDL set to "xorigin-when-cross-origin"
     621PASS img.referrerPolicy: IDL set to "origin-when-cross-origin\0"
     622PASS img.referrerPolicy: IDL set to "rigin-when-cross-origin"
     623PASS img.referrerPolicy: IDL set to "ORIGIN-WHEN-CROSS-ORIGIN"
     624PASS img.referrerPolicy: IDL set to "strict-origin-when-cross-origin"
     625PASS img.referrerPolicy: IDL set to "xstrict-origin-when-cross-origin"
     626PASS img.referrerPolicy: IDL set to "strict-origin-when-cross-origin\0"
     627PASS img.referrerPolicy: IDL set to "trict-origin-when-cross-origin"
     628PASS img.referrerPolicy: IDL set to "STRICT-ORIGIN-WHEN-CROSS-ORIGIN"
     629PASS img.referrerPolicy: IDL set to "unsafe-url"
     630PASS img.referrerPolicy: IDL set to "xunsafe-url"
     631PASS img.referrerPolicy: IDL set to "unsafe-url\0"
     632PASS img.referrerPolicy: IDL set to "nsafe-url"
     633PASS img.referrerPolicy: IDL set to "UNSAFE-URL"
    634634PASS img.name: typeof IDL attribute
    635635PASS img.name: IDL get with DOM attribute unset
  • trunk/LayoutTests/platform/mac-wk1/TestExpectations

    r257377 r257572  
    154154http/tests/referrer-policy/unsafe-url/cross-origin-http-http.html [ Skip ]
    155155http/tests/referrer-policy/unsafe-url/cross-origin-http.https.html [ Skip ]
     156http/tests/referrer-policy-img/no-referrer-when-downgrade/ [ Skip ]
     157http/tests/referrer-policy-img/unsafe-url/cross-origin-http-http.html [ Skip ]
     158http/tests/referrer-policy-img/unsafe-url/cross-origin-http.https.html [ Skip ]
    156159
    157160# Not supported on WK1
  • trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt

    r254029 r257572  
    889889PASS HTMLImageElement interface: attribute complete
    890890PASS HTMLImageElement interface: attribute currentSrc
    891 FAIL HTMLImageElement interface: attribute referrerPolicy assert_true: The prototype object must have a property "referrerPolicy" expected true got false
     891PASS HTMLImageElement interface: attribute referrerPolicy
    892892PASS HTMLImageElement interface: attribute decoding
    893893PASS HTMLImageElement interface: operation decode()
     
    914914PASS HTMLImageElement interface: document.createElement("img") must inherit property "complete" with the proper type
    915915PASS HTMLImageElement interface: document.createElement("img") must inherit property "currentSrc" with the proper type
    916 FAIL HTMLImageElement interface: document.createElement("img") must inherit property "referrerPolicy" with the proper type assert_inherits: property "referrerPolicy" not found in prototype chain
     916PASS HTMLImageElement interface: document.createElement("img") must inherit property "referrerPolicy" with the proper type
    917917PASS HTMLImageElement interface: document.createElement("img") must inherit property "decoding" with the proper type
    918918PASS HTMLImageElement interface: document.createElement("img") must inherit property "decode()" with the proper type
     
    939939PASS HTMLImageElement interface: new Image() must inherit property "complete" with the proper type
    940940PASS HTMLImageElement interface: new Image() must inherit property "currentSrc" with the proper type
    941 FAIL HTMLImageElement interface: new Image() must inherit property "referrerPolicy" with the proper type assert_inherits: property "referrerPolicy" not found in prototype chain
     941PASS HTMLImageElement interface: new Image() must inherit property "referrerPolicy" with the proper type
    942942PASS HTMLImageElement interface: new Image() must inherit property "decoding" with the proper type
    943943PASS HTMLImageElement interface: new Image() must inherit property "decode()" with the proper type
  • trunk/LayoutTests/platform/mac-wk2/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt

    r254029 r257572  
    889889PASS HTMLImageElement interface: attribute complete
    890890PASS HTMLImageElement interface: attribute currentSrc
    891 FAIL HTMLImageElement interface: attribute referrerPolicy assert_true: The prototype object must have a property "referrerPolicy" expected true got false
     891PASS HTMLImageElement interface: attribute referrerPolicy
    892892PASS HTMLImageElement interface: attribute decoding
    893893PASS HTMLImageElement interface: operation decode()
     
    914914PASS HTMLImageElement interface: document.createElement("img") must inherit property "complete" with the proper type
    915915PASS HTMLImageElement interface: document.createElement("img") must inherit property "currentSrc" with the proper type
    916 FAIL HTMLImageElement interface: document.createElement("img") must inherit property "referrerPolicy" with the proper type assert_inherits: property "referrerPolicy" not found in prototype chain
     916PASS HTMLImageElement interface: document.createElement("img") must inherit property "referrerPolicy" with the proper type
    917917PASS HTMLImageElement interface: document.createElement("img") must inherit property "decoding" with the proper type
    918918PASS HTMLImageElement interface: document.createElement("img") must inherit property "decode()" with the proper type
     
    939939PASS HTMLImageElement interface: new Image() must inherit property "complete" with the proper type
    940940PASS HTMLImageElement interface: new Image() must inherit property "currentSrc" with the proper type
    941 FAIL HTMLImageElement interface: new Image() must inherit property "referrerPolicy" with the proper type assert_inherits: property "referrerPolicy" not found in prototype chain
     941PASS HTMLImageElement interface: new Image() must inherit property "referrerPolicy" with the proper type
    942942PASS HTMLImageElement interface: new Image() must inherit property "decoding" with the proper type
    943943PASS HTMLImageElement interface: new Image() must inherit property "decode()" with the proper type
  • trunk/LayoutTests/platform/win/TestExpectations

    r257211 r257572  
    152152http/tests/referrer-policy/unsafe-url/cross-origin-http-http.html [ Skip ]
    153153http/tests/referrer-policy/unsafe-url/cross-origin-http.https.html [ Skip ]
     154http/tests/referrer-policy-img/no-referrer-when-downgrade/ [ Skip ]
     155http/tests/referrer-policy-img/unsafe-url/cross-origin-http-http.html [ Skip ]
     156http/tests/referrer-policy-img/unsafe-url/cross-origin-http.https.html [ Skip ]
    154157
    155158# Dark mode not supported on Windows
     
    41654168webkit.org/b/189194 http/tests/referrer-policy-iframe/same-origin/cross-origin-http-http.html [ Failure ]
    41664169
     4170webkit.org/b/189194 http/tests/referrer-policy-img/no-referrer/cross-origin-http-http.html [ Failure ]
     4171webkit.org/b/189194 http/tests/referrer-policy-img/no-referrer/same-origin.html [ Failure ]
     4172webkit.org/b/189194 http/tests/referrer-policy-img/origin-when-cross-origin/cross-origin-http-http.html [ Failure ]
     4173webkit.org/b/189194 http/tests/referrer-policy-img/origin-when-cross-origin/cross-origin-http.https.html [ Failure ]
     4174webkit.org/b/189194 http/tests/referrer-policy-img/origin/cross-origin-http-http.html [ Failure ]
     4175webkit.org/b/189194 http/tests/referrer-policy-img/origin/cross-origin-http.https.html [ Failure ]
     4176webkit.org/b/189194 http/tests/referrer-policy-img/origin/same-origin.html [ Failure ]
     4177webkit.org/b/189194 http/tests/referrer-policy-img/same-origin/cross-origin-http-http.html [ Failure ]
     4178webkit.org/b/189194 http/tests/referrer-policy-img/strict-origin-when-cross-origin/cross-origin-http-http.html [ Failure ]
     4179webkit.org/b/189194 http/tests/referrer-policy-img/strict-origin/cross-origin-http-http.html [ Failure ]
     4180webkit.org/b/189194 http/tests/referrer-policy-img/strict-origin/same-origin.html [ Failure ]
     4181
    41674182webkit.org/b/189550 fast/text/variations/ipc2.html [ Skip ]
    41684183
  • trunk/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/html/dom/idlharness.https-expected.txt

    r255152 r257572  
    889889PASS HTMLImageElement interface: attribute complete
    890890PASS HTMLImageElement interface: attribute currentSrc
    891 FAIL HTMLImageElement interface: attribute referrerPolicy assert_true: The prototype object must have a property "referrerPolicy" expected true got false
     891PASS HTMLImageElement interface: attribute referrerPolicy
    892892PASS HTMLImageElement interface: attribute decoding
    893893PASS HTMLImageElement interface: operation decode()
     
    914914PASS HTMLImageElement interface: document.createElement("img") must inherit property "complete" with the proper type
    915915PASS HTMLImageElement interface: document.createElement("img") must inherit property "currentSrc" with the proper type
    916 FAIL HTMLImageElement interface: document.createElement("img") must inherit property "referrerPolicy" with the proper type assert_inherits: property "referrerPolicy" not found in prototype chain
     916PASS HTMLImageElement interface: document.createElement("img") must inherit property "referrerPolicy" with the proper type
    917917PASS HTMLImageElement interface: document.createElement("img") must inherit property "decoding" with the proper type
    918918PASS HTMLImageElement interface: document.createElement("img") must inherit property "decode()" with the proper type
     
    939939PASS HTMLImageElement interface: new Image() must inherit property "complete" with the proper type
    940940PASS HTMLImageElement interface: new Image() must inherit property "currentSrc" with the proper type
    941 FAIL HTMLImageElement interface: new Image() must inherit property "referrerPolicy" with the proper type assert_inherits: property "referrerPolicy" not found in prototype chain
     941PASS HTMLImageElement interface: new Image() must inherit property "referrerPolicy" with the proper type
    942942PASS HTMLImageElement interface: new Image() must inherit property "decoding" with the proper type
    943943PASS HTMLImageElement interface: new Image() must inherit property "decode()" with the proper type
  • trunk/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/html/dom/interfaces-expected.txt

    r230760 r257572  
    15371537PASS HTMLImageElement interface: document.createElement("img") must inherit property "complete" with the proper type
    15381538PASS HTMLImageElement interface: document.createElement("img") must inherit property "currentSrc" with the proper type
    1539 FAIL HTMLImageElement interface: document.createElement("img") must inherit property "referrerPolicy" with the proper type assert_inherits: property "referrerPolicy" not found in prototype chain
     1539PASS HTMLImageElement interface: document.createElement("img") must inherit property "referrerPolicy" with the proper type
    15401540PASS HTMLImageElement interface: document.createElement("img") must inherit property "decode()" with the proper type
    15411541PASS HTMLImageElement interface: document.createElement("img") must inherit property "name" with the proper type
     
    15611561PASS HTMLImageElement interface: new Image() must inherit property "complete" with the proper type
    15621562PASS HTMLImageElement interface: new Image() must inherit property "currentSrc" with the proper type
    1563 FAIL HTMLImageElement interface: new Image() must inherit property "referrerPolicy" with the proper type assert_inherits: property "referrerPolicy" not found in prototype chain
     1563PASS HTMLImageElement interface: new Image() must inherit property "referrerPolicy" with the proper type
    15641564PASS HTMLImageElement interface: new Image() must inherit property "decode()" with the proper type
    15651565PASS HTMLImageElement interface: new Image() must inherit property "name" with the proper type
  • trunk/LayoutTests/platform/wpe/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt

    r255152 r257572  
    965965PASS img.height: IDL set to 2147483648
    966966PASS img.height: IDL set to 4294967295
    967 FAIL img.referrerPolicy: typeof IDL attribute assert_equals: expected "string" but got "undefined"
    968 FAIL img.referrerPolicy: IDL get with DOM attribute unset assert_equals: expected (string) "" but got (undefined) undefined
    969 FAIL img.referrerPolicy: setAttribute() to "" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    970 FAIL img.referrerPolicy: setAttribute() to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " assert_equals: IDL get expected (string) "" but got (undefined) undefined
    971 FAIL img.referrerPolicy: setAttribute() to undefined assert_equals: IDL get expected (string) "" but got (undefined) undefined
    972 FAIL img.referrerPolicy: setAttribute() to 7 assert_equals: IDL get expected (string) "" but got (undefined) undefined
    973 FAIL img.referrerPolicy: setAttribute() to 1.5 assert_equals: IDL get expected (string) "" but got (undefined) undefined
    974 FAIL img.referrerPolicy: setAttribute() to "5%" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    975 FAIL img.referrerPolicy: setAttribute() to "+100" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    976 FAIL img.referrerPolicy: setAttribute() to ".5" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    977 FAIL img.referrerPolicy: setAttribute() to true assert_equals: IDL get expected (string) "" but got (undefined) undefined
    978 FAIL img.referrerPolicy: setAttribute() to false assert_equals: IDL get expected (string) "" but got (undefined) undefined
    979 FAIL img.referrerPolicy: setAttribute() to object "[object Object]" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    980 FAIL img.referrerPolicy: setAttribute() to NaN assert_equals: IDL get expected (string) "" but got (undefined) undefined
    981 FAIL img.referrerPolicy: setAttribute() to Infinity assert_equals: IDL get expected (string) "" but got (undefined) undefined
    982 FAIL img.referrerPolicy: setAttribute() to -Infinity assert_equals: IDL get expected (string) "" but got (undefined) undefined
    983 FAIL img.referrerPolicy: setAttribute() to "\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    984 FAIL img.referrerPolicy: setAttribute() to null assert_equals: IDL get expected (string) "" but got (undefined) undefined
    985 FAIL img.referrerPolicy: setAttribute() to object "test-toString" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    986 FAIL img.referrerPolicy: setAttribute() to object "test-valueOf" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    987 FAIL img.referrerPolicy: setAttribute() to "no-referrer" assert_equals: IDL get expected (string) "no-referrer" but got (undefined) undefined
    988 FAIL img.referrerPolicy: setAttribute() to "xno-referrer" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    989 FAIL img.referrerPolicy: setAttribute() to "no-referrer\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    990 FAIL img.referrerPolicy: setAttribute() to "o-referrer" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    991 FAIL img.referrerPolicy: setAttribute() to "NO-REFERRER" assert_equals: IDL get expected (string) "no-referrer" but got (undefined) undefined
    992 FAIL img.referrerPolicy: setAttribute() to "no-referrer-when-downgrade" assert_equals: IDL get expected (string) "no-referrer-when-downgrade" but got (undefined) undefined
    993 FAIL img.referrerPolicy: setAttribute() to "xno-referrer-when-downgrade" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    994 FAIL img.referrerPolicy: setAttribute() to "no-referrer-when-downgrade\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    995 FAIL img.referrerPolicy: setAttribute() to "o-referrer-when-downgrade" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    996 FAIL img.referrerPolicy: setAttribute() to "NO-REFERRER-WHEN-DOWNGRADE" assert_equals: IDL get expected (string) "no-referrer-when-downgrade" but got (undefined) undefined
    997 FAIL img.referrerPolicy: setAttribute() to "same-origin" assert_equals: IDL get expected (string) "same-origin" but got (undefined) undefined
    998 FAIL img.referrerPolicy: setAttribute() to "xsame-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    999 FAIL img.referrerPolicy: setAttribute() to "same-origin\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1000 FAIL img.referrerPolicy: setAttribute() to "ame-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1001 FAIL img.referrerPolicy: setAttribute() to "SAME-ORIGIN" assert_equals: IDL get expected (string) "same-origin" but got (undefined) undefined
    1002 FAIL img.referrerPolicy: setAttribute() to "ſame-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1003 FAIL img.referrerPolicy: setAttribute() to "origin" assert_equals: IDL get expected (string) "origin" but got (undefined) undefined
    1004 FAIL img.referrerPolicy: setAttribute() to "xorigin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1005 FAIL img.referrerPolicy: setAttribute() to "origin\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1006 FAIL img.referrerPolicy: setAttribute() to "rigin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1007 FAIL img.referrerPolicy: setAttribute() to "ORIGIN" assert_equals: IDL get expected (string) "origin" but got (undefined) undefined
    1008 FAIL img.referrerPolicy: setAttribute() to "strict-origin" assert_equals: IDL get expected (string) "strict-origin" but got (undefined) undefined
    1009 FAIL img.referrerPolicy: setAttribute() to "xstrict-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1010 FAIL img.referrerPolicy: setAttribute() to "strict-origin\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1011 FAIL img.referrerPolicy: setAttribute() to "trict-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1012 FAIL img.referrerPolicy: setAttribute() to "STRICT-ORIGIN" assert_equals: IDL get expected (string) "strict-origin" but got (undefined) undefined
    1013 FAIL img.referrerPolicy: setAttribute() to "ſtrict-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1014 FAIL img.referrerPolicy: setAttribute() to "origin-when-cross-origin" assert_equals: IDL get expected (string) "origin-when-cross-origin" but got (undefined) undefined
    1015 FAIL img.referrerPolicy: setAttribute() to "xorigin-when-cross-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1016 FAIL img.referrerPolicy: setAttribute() to "origin-when-cross-origin\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1017 FAIL img.referrerPolicy: setAttribute() to "rigin-when-cross-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1018 FAIL img.referrerPolicy: setAttribute() to "ORIGIN-WHEN-CROSS-ORIGIN" assert_equals: IDL get expected (string) "origin-when-cross-origin" but got (undefined) undefined
    1019 FAIL img.referrerPolicy: setAttribute() to "origin-when-croſſ-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1020 FAIL img.referrerPolicy: setAttribute() to "strict-origin-when-cross-origin" assert_equals: IDL get expected (string) "strict-origin-when-cross-origin" but got (undefined) undefined
    1021 FAIL img.referrerPolicy: setAttribute() to "xstrict-origin-when-cross-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1022 FAIL img.referrerPolicy: setAttribute() to "strict-origin-when-cross-origin\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1023 FAIL img.referrerPolicy: setAttribute() to "trict-origin-when-cross-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1024 FAIL img.referrerPolicy: setAttribute() to "STRICT-ORIGIN-WHEN-CROSS-ORIGIN" assert_equals: IDL get expected (string) "strict-origin-when-cross-origin" but got (undefined) undefined
    1025 FAIL img.referrerPolicy: setAttribute() to "ſtrict-origin-when-croſſ-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1026 FAIL img.referrerPolicy: setAttribute() to "unsafe-url" assert_equals: IDL get expected (string) "unsafe-url" but got (undefined) undefined
    1027 FAIL img.referrerPolicy: setAttribute() to "xunsafe-url" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1028 FAIL img.referrerPolicy: setAttribute() to "unsafe-url\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1029 FAIL img.referrerPolicy: setAttribute() to "nsafe-url" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1030 FAIL img.referrerPolicy: setAttribute() to "UNSAFE-URL" assert_equals: IDL get expected (string) "unsafe-url" but got (undefined) undefined
    1031 FAIL img.referrerPolicy: setAttribute() to "unſafe-url" assert_equals: IDL get expected (string) "" but got (undefined) undefined
    1032 FAIL img.referrerPolicy: IDL set to "" assert_equals: getAttribute() expected "" but got "unſafe-url"
    1033 FAIL img.referrerPolicy: IDL set to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " assert_equals: getAttribute() expected " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo " but got "unſafe-url"
    1034 FAIL img.referrerPolicy: IDL set to undefined assert_equals: getAttribute() expected "undefined" but got "unſafe-url"
    1035 FAIL img.referrerPolicy: IDL set to 7 assert_equals: getAttribute() expected "7" but got "unſafe-url"
    1036 FAIL img.referrerPolicy: IDL set to 1.5 assert_equals: getAttribute() expected "1.5" but got "unſafe-url"
    1037 FAIL img.referrerPolicy: IDL set to "5%" assert_equals: getAttribute() expected "5%" but got "unſafe-url"
    1038 FAIL img.referrerPolicy: IDL set to "+100" assert_equals: getAttribute() expected "+100" but got "unſafe-url"
    1039 FAIL img.referrerPolicy: IDL set to ".5" assert_equals: getAttribute() expected ".5" but got "unſafe-url"
    1040 FAIL img.referrerPolicy: IDL set to true assert_equals: getAttribute() expected "true" but got "unſafe-url"
    1041 FAIL img.referrerPolicy: IDL set to false assert_equals: getAttribute() expected "false" but got "unſafe-url"
    1042 FAIL img.referrerPolicy: IDL set to object "[object Object]" assert_equals: getAttribute() expected "[object Object]" but got "unſafe-url"
    1043 FAIL img.referrerPolicy: IDL set to NaN assert_equals: getAttribute() expected "NaN" but got "unſafe-url"
    1044 FAIL img.referrerPolicy: IDL set to Infinity assert_equals: getAttribute() expected "Infinity" but got "unſafe-url"
    1045 FAIL img.referrerPolicy: IDL set to -Infinity assert_equals: getAttribute() expected "-Infinity" but got "unſafe-url"
    1046 FAIL img.referrerPolicy: IDL set to "\0" assert_equals: getAttribute() expected "\0" but got "unſafe-url"
    1047 FAIL img.referrerPolicy: IDL set to null assert_equals: IDL get expected (string) "" but got (object) null
    1048 FAIL img.referrerPolicy: IDL set to object "test-toString" assert_equals: getAttribute() expected "test-toString" but got "unſafe-url"
    1049 FAIL img.referrerPolicy: IDL set to object "test-valueOf" assert_equals: getAttribute() expected "test-valueOf" but got "unſafe-url"
    1050 FAIL img.referrerPolicy: IDL set to "no-referrer" assert_equals: getAttribute() expected "no-referrer" but got "unſafe-url"
    1051 FAIL img.referrerPolicy: IDL set to "xno-referrer" assert_equals: getAttribute() expected "xno-referrer" but got "unſafe-url"
    1052 FAIL img.referrerPolicy: IDL set to "no-referrer\0" assert_equals: getAttribute() expected "no-referrer\0" but got "unſafe-url"
    1053 FAIL img.referrerPolicy: IDL set to "o-referrer" assert_equals: getAttribute() expected "o-referrer" but got "unſafe-url"
    1054 FAIL img.referrerPolicy: IDL set to "NO-REFERRER" assert_equals: getAttribute() expected "NO-REFERRER" but got "unſafe-url"
    1055 FAIL img.referrerPolicy: IDL set to "no-referrer-when-downgrade" assert_equals: getAttribute() expected "no-referrer-when-downgrade" but got "unſafe-url"
    1056 FAIL img.referrerPolicy: IDL set to "xno-referrer-when-downgrade" assert_equals: getAttribute() expected "xno-referrer-when-downgrade" but got "unſafe-url"
    1057 FAIL img.referrerPolicy: IDL set to "no-referrer-when-downgrade\0" assert_equals: getAttribute() expected "no-referrer-when-downgrade\0" but got "unſafe-url"
    1058 FAIL img.referrerPolicy: IDL set to "o-referrer-when-downgrade" assert_equals: getAttribute() expected "o-referrer-when-downgrade" but got "unſafe-url"
    1059 FAIL img.referrerPolicy: IDL set to "NO-REFERRER-WHEN-DOWNGRADE" assert_equals: getAttribute() expected "NO-REFERRER-WHEN-DOWNGRADE" but got "unſafe-url"
    1060 FAIL img.referrerPolicy: IDL set to "same-origin" assert_equals: getAttribute() expected "same-origin" but got "unſafe-url"
    1061 FAIL img.referrerPolicy: IDL set to "xsame-origin" assert_equals: getAttribute() expected "xsame-origin" but got "unſafe-url"
    1062 FAIL img.referrerPolicy: IDL set to "same-origin\0" assert_equals: getAttribute() expected "same-origin\0" but got "unſafe-url"
    1063 FAIL img.referrerPolicy: IDL set to "ame-origin" assert_equals: getAttribute() expected "ame-origin" but got "unſafe-url"
    1064 FAIL img.referrerPolicy: IDL set to "SAME-ORIGIN" assert_equals: getAttribute() expected "SAME-ORIGIN" but got "unſafe-url"
    1065 FAIL img.referrerPolicy: IDL set to "ſame-origin" assert_equals: getAttribute() expected "ſame-origin" but got "unſafe-url"
    1066 FAIL img.referrerPolicy: IDL set to "origin" assert_equals: getAttribute() expected "origin" but got "unſafe-url"
    1067 FAIL img.referrerPolicy: IDL set to "xorigin" assert_equals: getAttribute() expected "xorigin" but got "unſafe-url"
    1068 FAIL img.referrerPolicy: IDL set to "origin\0" assert_equals: getAttribute() expected "origin\0" but got "unſafe-url"
    1069 FAIL img.referrerPolicy: IDL set to "rigin" assert_equals: getAttribute() expected "rigin" but got "unſafe-url"
    1070 FAIL img.referrerPolicy: IDL set to "ORIGIN" assert_equals: getAttribute() expected "ORIGIN" but got "unſafe-url"
    1071 FAIL img.referrerPolicy: IDL set to "strict-origin" assert_equals: getAttribute() expected "strict-origin" but got "unſafe-url"
    1072 FAIL img.referrerPolicy: IDL set to "xstrict-origin" assert_equals: getAttribute() expected "xstrict-origin" but got "unſafe-url"
    1073 FAIL img.referrerPolicy: IDL set to "strict-origin\0" assert_equals: getAttribute() expected "strict-origin\0" but got "unſafe-url"
    1074 FAIL img.referrerPolicy: IDL set to "trict-origin" assert_equals: getAttribute() expected "trict-origin" but got "unſafe-url"
    1075 FAIL img.referrerPolicy: IDL set to "STRICT-ORIGIN" assert_equals: getAttribute() expected "STRICT-ORIGIN" but got "unſafe-url"
    1076 FAIL img.referrerPolicy: IDL set to "ſtrict-origin" assert_equals: getAttribute() expected "ſtrict-origin" but got "unſafe-url"
    1077 FAIL img.referrerPolicy: IDL set to "origin-when-cross-origin" assert_equals: getAttribute() expected "origin-when-cross-origin" but got "unſafe-url"
    1078 FAIL img.referrerPolicy: IDL set to "xorigin-when-cross-origin" assert_equals: getAttribute() expected "xorigin-when-cross-origin" but got "unſafe-url"
    1079 FAIL img.referrerPolicy: IDL set to "origin-when-cross-origin\0" assert_equals: getAttribute() expected "origin-when-cross-origin\0" but got "unſafe-url"
    1080 FAIL img.referrerPolicy: IDL set to "rigin-when-cross-origin" assert_equals: getAttribute() expected "rigin-when-cross-origin" but got "unſafe-url"
    1081 FAIL img.referrerPolicy: IDL set to "ORIGIN-WHEN-CROSS-ORIGIN" assert_equals: getAttribute() expected "ORIGIN-WHEN-CROSS-ORIGIN" but got "unſafe-url"
    1082 FAIL img.referrerPolicy: IDL set to "origin-when-croſſ-origin" assert_equals: getAttribute() expected "origin-when-croſſ-origin" but got "unſafe-url"
    1083 FAIL img.referrerPolicy: IDL set to "strict-origin-when-cross-origin" assert_equals: getAttribute() expected "strict-origin-when-cross-origin" but got "unſafe-url"
    1084 FAIL img.referrerPolicy: IDL set to "xstrict-origin-when-cross-origin" assert_equals: getAttribute() expected "xstrict-origin-when-cross-origin" but got "unſafe-url"
    1085 FAIL img.referrerPolicy: IDL set to "strict-origin-when-cross-origin\0" assert_equals: getAttribute() expected "strict-origin-when-cross-origin\0" but got "unſafe-url"
    1086 FAIL img.referrerPolicy: IDL set to "trict-origin-when-cross-origin" assert_equals: getAttribute() expected "trict-origin-when-cross-origin" but got "unſafe-url"
    1087 FAIL img.referrerPolicy: IDL set to "STRICT-ORIGIN-WHEN-CROSS-ORIGIN" assert_equals: getAttribute() expected "STRICT-ORIGIN-WHEN-CROSS-ORIGIN" but got "unſafe-url"
    1088 FAIL img.referrerPolicy: IDL set to "ſtrict-origin-when-croſſ-origin" assert_equals: getAttribute() expected "ſtrict-origin-when-croſſ-origin" but got "unſafe-url"
    1089 FAIL img.referrerPolicy: IDL set to "unsafe-url" assert_equals: getAttribute() expected "unsafe-url" but got "unſafe-url"
    1090 FAIL img.referrerPolicy: IDL set to "xunsafe-url" assert_equals: getAttribute() expected "xunsafe-url" but got "unſafe-url"
    1091 FAIL img.referrerPolicy: IDL set to "unsafe-url\0" assert_equals: getAttribute() expected "unsafe-url\0" but got "unſafe-url"
    1092 FAIL img.referrerPolicy: IDL set to "nsafe-url" assert_equals: getAttribute() expected "nsafe-url" but got "unſafe-url"
    1093 FAIL img.referrerPolicy: IDL set to "UNSAFE-URL" assert_equals: getAttribute() expected "UNSAFE-URL" but got "unſafe-url"
    1094 FAIL img.referrerPolicy: IDL set to "unſafe-url" assert_equals: IDL get expected "" but got "unſafe-url"
     967PASS img.referrerPolicy: typeof IDL attribute
     968PASS img.referrerPolicy: IDL get with DOM attribute unset
     969PASS img.referrerPolicy: setAttribute() to ""
     970PASS img.referrerPolicy: setAttribute() to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo "
     971PASS img.referrerPolicy: setAttribute() to undefined
     972PASS img.referrerPolicy: setAttribute() to 7
     973PASS img.referrerPolicy: setAttribute() to 1.5
     974PASS img.referrerPolicy: setAttribute() to "5%"
     975PASS img.referrerPolicy: setAttribute() to "+100"
     976PASS img.referrerPolicy: setAttribute() to ".5"
     977PASS img.referrerPolicy: setAttribute() to true
     978PASS img.referrerPolicy: setAttribute() to false
     979PASS img.referrerPolicy: setAttribute() to object "[object Object]"
     980PASS img.referrerPolicy: setAttribute() to NaN
     981PASS img.referrerPolicy: setAttribute() to Infinity
     982PASS img.referrerPolicy: setAttribute() to -Infinity
     983PASS img.referrerPolicy: setAttribute() to "\0"
     984PASS img.referrerPolicy: setAttribute() to null
     985PASS img.referrerPolicy: setAttribute() to object "test-toString"
     986PASS img.referrerPolicy: setAttribute() to object "test-valueOf"
     987PASS img.referrerPolicy: setAttribute() to "no-referrer"
     988PASS img.referrerPolicy: setAttribute() to "xno-referrer"
     989PASS img.referrerPolicy: setAttribute() to "no-referrer\0"
     990PASS img.referrerPolicy: setAttribute() to "o-referrer"
     991PASS img.referrerPolicy: setAttribute() to "NO-REFERRER"
     992PASS img.referrerPolicy: setAttribute() to "no-referrer-when-downgrade"
     993PASS img.referrerPolicy: setAttribute() to "xno-referrer-when-downgrade"
     994PASS img.referrerPolicy: setAttribute() to "no-referrer-when-downgrade\0"
     995PASS img.referrerPolicy: setAttribute() to "o-referrer-when-downgrade"
     996PASS img.referrerPolicy: setAttribute() to "NO-REFERRER-WHEN-DOWNGRADE"
     997PASS img.referrerPolicy: setAttribute() to "same-origin"
     998PASS img.referrerPolicy: setAttribute() to "xsame-origin"
     999PASS img.referrerPolicy: setAttribute() to "same-origin\0"
     1000PASS img.referrerPolicy: setAttribute() to "ame-origin"
     1001PASS img.referrerPolicy: setAttribute() to "SAME-ORIGIN"
     1002PASS img.referrerPolicy: setAttribute() to "ſame-origin"
     1003PASS img.referrerPolicy: setAttribute() to "origin"
     1004PASS img.referrerPolicy: setAttribute() to "xorigin"
     1005PASS img.referrerPolicy: setAttribute() to "origin\0"
     1006PASS img.referrerPolicy: setAttribute() to "rigin"
     1007PASS img.referrerPolicy: setAttribute() to "ORIGIN"
     1008PASS img.referrerPolicy: setAttribute() to "strict-origin"
     1009PASS img.referrerPolicy: setAttribute() to "xstrict-origin"
     1010PASS img.referrerPolicy: setAttribute() to "strict-origin\0"
     1011PASS img.referrerPolicy: setAttribute() to "trict-origin"
     1012PASS img.referrerPolicy: setAttribute() to "STRICT-ORIGIN"
     1013PASS img.referrerPolicy: setAttribute() to "ſtrict-origin"
     1014PASS img.referrerPolicy: setAttribute() to "origin-when-cross-origin"
     1015PASS img.referrerPolicy: setAttribute() to "xorigin-when-cross-origin"
     1016PASS img.referrerPolicy: setAttribute() to "origin-when-cross-origin\0"
     1017PASS img.referrerPolicy: setAttribute() to "rigin-when-cross-origin"
     1018PASS img.referrerPolicy: setAttribute() to "ORIGIN-WHEN-CROSS-ORIGIN"
     1019PASS img.referrerPolicy: setAttribute() to "origin-when-croſſ-origin"
     1020PASS img.referrerPolicy: setAttribute() to "strict-origin-when-cross-origin"
     1021PASS img.referrerPolicy: setAttribute() to "xstrict-origin-when-cross-origin"
     1022PASS img.referrerPolicy: setAttribute() to "strict-origin-when-cross-origin\0"
     1023PASS img.referrerPolicy: setAttribute() to "trict-origin-when-cross-origin"
     1024PASS img.referrerPolicy: setAttribute() to "STRICT-ORIGIN-WHEN-CROSS-ORIGIN"
     1025PASS img.referrerPolicy: setAttribute() to "ſtrict-origin-when-croſſ-origin"
     1026PASS img.referrerPolicy: setAttribute() to "unsafe-url"
     1027PASS img.referrerPolicy: setAttribute() to "xunsafe-url"
     1028PASS img.referrerPolicy: setAttribute() to "unsafe-url\0"
     1029PASS img.referrerPolicy: setAttribute() to "nsafe-url"
     1030PASS img.referrerPolicy: setAttribute() to "UNSAFE-URL"
     1031PASS img.referrerPolicy: setAttribute() to "unſafe-url"
     1032PASS img.referrerPolicy: IDL set to ""
     1033PASS img.referrerPolicy: IDL set to " \0\x01\x02\x03\x04\x05\x06\x07 \b\t\n\v\f\r\x0e\x0f \x10\x11\x12\x13\x14\x15\x16\x17 \x18\x19\x1a\x1b\x1c\x1d\x1e\x1f  foo "
     1034PASS img.referrerPolicy: IDL set to undefined
     1035PASS img.referrerPolicy: IDL set to 7
     1036PASS img.referrerPolicy: IDL set to 1.5
     1037PASS img.referrerPolicy: IDL set to "5%"
     1038PASS img.referrerPolicy: IDL set to "+100"
     1039PASS img.referrerPolicy: IDL set to ".5"
     1040PASS img.referrerPolicy: IDL set to true
     1041PASS img.referrerPolicy: IDL set to false
     1042PASS img.referrerPolicy: IDL set to object "[object Object]"
     1043PASS img.referrerPolicy: IDL set to NaN
     1044PASS img.referrerPolicy: IDL set to Infinity
     1045PASS img.referrerPolicy: IDL set to -Infinity
     1046PASS img.referrerPolicy: IDL set to "\0"
     1047PASS img.referrerPolicy: IDL set to null
     1048PASS img.referrerPolicy: IDL set to object "test-toString"
     1049PASS img.referrerPolicy: IDL set to object "test-valueOf"
     1050PASS img.referrerPolicy: IDL set to "no-referrer"
     1051PASS img.referrerPolicy: IDL set to "xno-referrer"
     1052PASS img.referrerPolicy: IDL set to "no-referrer\0"
     1053PASS img.referrerPolicy: IDL set to "o-referrer"
     1054PASS img.referrerPolicy: IDL set to "NO-REFERRER"
     1055PASS img.referrerPolicy: IDL set to "no-referrer-when-downgrade"
     1056PASS img.referrerPolicy: IDL set to "xno-referrer-when-downgrade"
     1057PASS img.referrerPolicy: IDL set to "no-referrer-when-downgrade\0"
     1058PASS img.referrerPolicy: IDL set to "o-referrer-when-downgrade"
     1059PASS img.referrerPolicy: IDL set to "NO-REFERRER-WHEN-DOWNGRADE"
     1060PASS img.referrerPolicy: IDL set to "same-origin"
     1061PASS img.referrerPolicy: IDL set to "xsame-origin"
     1062PASS img.referrerPolicy: IDL set to "same-origin\0"
     1063PASS img.referrerPolicy: IDL set to "ame-origin"
     1064PASS img.referrerPolicy: IDL set to "SAME-ORIGIN"
     1065PASS img.referrerPolicy: IDL set to "ſame-origin"
     1066PASS img.referrerPolicy: IDL set to "origin"
     1067PASS img.referrerPolicy: IDL set to "xorigin"
     1068PASS img.referrerPolicy: IDL set to "origin\0"
     1069PASS img.referrerPolicy: IDL set to "rigin"
     1070PASS img.referrerPolicy: IDL set to "ORIGIN"
     1071PASS img.referrerPolicy: IDL set to "strict-origin"
     1072PASS img.referrerPolicy: IDL set to "xstrict-origin"
     1073PASS img.referrerPolicy: IDL set to "strict-origin\0"
     1074PASS img.referrerPolicy: IDL set to "trict-origin"
     1075PASS img.referrerPolicy: IDL set to "STRICT-ORIGIN"
     1076PASS img.referrerPolicy: IDL set to "ſtrict-origin"
     1077PASS img.referrerPolicy: IDL set to "origin-when-cross-origin"
     1078PASS img.referrerPolicy: IDL set to "xorigin-when-cross-origin"
     1079PASS img.referrerPolicy: IDL set to "origin-when-cross-origin\0"
     1080PASS img.referrerPolicy: IDL set to "rigin-when-cross-origin"
     1081PASS img.referrerPolicy: IDL set to "ORIGIN-WHEN-CROSS-ORIGIN"
     1082PASS img.referrerPolicy: IDL set to "origin-when-croſſ-origin"
     1083PASS img.referrerPolicy: IDL set to "strict-origin-when-cross-origin"
     1084PASS img.referrerPolicy: IDL set to "xstrict-origin-when-cross-origin"
     1085PASS img.referrerPolicy: IDL set to "strict-origin-when-cross-origin\0"
     1086PASS img.referrerPolicy: IDL set to "trict-origin-when-cross-origin"
     1087PASS img.referrerPolicy: IDL set to "STRICT-ORIGIN-WHEN-CROSS-ORIGIN"
     1088PASS img.referrerPolicy: IDL set to "ſtrict-origin-when-croſſ-origin"
     1089PASS img.referrerPolicy: IDL set to "unsafe-url"
     1090PASS img.referrerPolicy: IDL set to "xunsafe-url"
     1091PASS img.referrerPolicy: IDL set to "unsafe-url\0"
     1092PASS img.referrerPolicy: IDL set to "nsafe-url"
     1093PASS img.referrerPolicy: IDL set to "UNSAFE-URL"
     1094PASS img.referrerPolicy: IDL set to "unſafe-url"
    10951095PASS img.decoding: typeof IDL attribute
    10961096FAIL img.decoding: IDL get with DOM attribute unset assert_equals: expected "auto" but got ""
  • trunk/Source/WebCore/ChangeLog

    r257569 r257572  
     12020-02-27  Rob Buis  <rbuis@igalia.com>
     2
     3        Add referrerpolicy attribute support for images
     4        https://bugs.webkit.org/show_bug.cgi?id=207901
     5
     6        Reviewed by Darin Adler.
     7
     8        This patch adds 'referrerpolicy' attribute support for img elements.
     9        If set, the value is restricted to the ReferrerPolicy enum, and
     10        if valid it is used for the script fetch.
     11        If not set or invalid, the current behavior is kept.
     12
     13        Tests: http/tests/referrer-policy-img/no-referrer-when-downgrade/cross-origin-http-http.html
     14               http/tests/referrer-policy-img/no-referrer-when-downgrade/cross-origin-http.https.html
     15               http/tests/referrer-policy-img/no-referrer-when-downgrade/same-origin.html
     16               http/tests/referrer-policy-img/no-referrer/cross-origin-http-http.html
     17               http/tests/referrer-policy-img/no-referrer/cross-origin-http.https.html
     18               http/tests/referrer-policy-img/no-referrer/same-origin.html
     19               http/tests/referrer-policy-img/origin-when-cross-origin/cross-origin-http-http.html
     20               http/tests/referrer-policy-img/origin-when-cross-origin/cross-origin-http.https.html
     21               http/tests/referrer-policy-img/origin-when-cross-origin/same-origin.html
     22               http/tests/referrer-policy-img/origin/cross-origin-http-http.html
     23               http/tests/referrer-policy-img/origin/cross-origin-http.https.html
     24               http/tests/referrer-policy-img/origin/same-origin.html
     25               http/tests/referrer-policy-img/same-origin/cross-origin-http-http.html
     26               http/tests/referrer-policy-img/same-origin/cross-origin-http.https.html
     27               http/tests/referrer-policy-img/same-origin/same-origin.html
     28               http/tests/referrer-policy-img/strict-origin-when-cross-origin/cross-origin-http-http.html
     29               http/tests/referrer-policy-img/strict-origin-when-cross-origin/cross-origin-http.https.html
     30               http/tests/referrer-policy-img/strict-origin-when-cross-origin/same-origin.html
     31               http/tests/referrer-policy-img/strict-origin/cross-origin-http-http.html
     32               http/tests/referrer-policy-img/strict-origin/cross-origin-http.https.html
     33               http/tests/referrer-policy-img/strict-origin/same-origin.html
     34               http/tests/referrer-policy-img/unsafe-url/cross-origin-http-http.html
     35               http/tests/referrer-policy-img/unsafe-url/cross-origin-http.https.html
     36               http/tests/referrer-policy-img/unsafe-url/same-origin.html
     37
     38        * html/HTMLImageElement.cpp:
     39        (WebCore::HTMLImageElement::setReferrerPolicyForBindings):
     40        (WebCore::HTMLImageElement::referrerPolicyForBindings const):
     41        (WebCore::HTMLImageElement::referrerPolicy const):
     42        * html/HTMLImageElement.h:
     43        * html/HTMLImageElement.idl:
     44        * loader/ImageLoader.cpp:
     45        (WebCore::ImageLoader::updateFromElement):
     46
    1472020-02-27  Daniel Bates  <dabates@apple.com>
    248
  • trunk/Source/WebCore/html/HTMLImageElement.cpp

    r257196 r257572  
    927927}
    928928
    929 }
     929void HTMLImageElement::setReferrerPolicyForBindings(const AtomString& value)
     930{
     931    setAttributeWithoutSynchronization(referrerpolicyAttr, value);
     932}
     933
     934String HTMLImageElement::referrerPolicyForBindings() const
     935{
     936    return referrerPolicyToString(referrerPolicy());
     937}
     938
     939ReferrerPolicy HTMLImageElement::referrerPolicy() const
     940{
     941    if (RuntimeEnabledFeatures::sharedFeatures().referrerPolicyAttributeEnabled())
     942        return parseReferrerPolicy(attributeWithoutSynchronization(referrerpolicyAttr), ReferrerPolicySource::ReferrerPolicyAttribute).valueOr(ReferrerPolicy::EmptyString);
     943    return ReferrerPolicy::EmptyString;
     944}
     945
     946}
  • trunk/Source/WebCore/html/HTMLImageElement.h

    r256786 r257572  
    143143
    144144    void evaluateDynamicMediaQueryDependencies();
     145
     146    void setReferrerPolicyForBindings(const AtomString&);
     147    String referrerPolicyForBindings() const;
     148    ReferrerPolicy referrerPolicy() const;
    145149
    146150protected:
  • trunk/Source/WebCore/html/HTMLImageElement.idl

    r256786 r257572  
    4545    [Conditional=ATTACHMENT_ELEMENT, EnabledAtRuntime=AttachmentElement] readonly attribute DOMString attachmentIdentifier;
    4646
     47    [EnabledAtRuntime=ReferrerPolicyAttribute, ImplementedAs=referrerPolicyForBindings, CEReactions=NotNeeded] attribute DOMString referrerPolicy;
    4748    [CEReactions, EnabledAtRuntime=LazyImageLoading, ImplementedAs=loadingForBindings] attribute DOMString loading;
    4849
  • trunk/Source/WebCore/loader/ImageLoader.cpp

    r257054 r257572  
    182182        options.contentSecurityPolicyImposition = element().isInUserAgentShadowTree() ? ContentSecurityPolicyImposition::SkipPolicyCheck : ContentSecurityPolicyImposition::DoPolicyCheck;
    183183        options.sameOriginDataURLFlag = SameOriginDataURLFlag::Set;
     184        bool isImageElement = is<HTMLImageElement>(element());
     185        if (isImageElement)
     186            options.referrerPolicy = downcast<HTMLImageElement>(element()).referrerPolicy();
    184187
    185188        auto crossOriginAttribute = element().attributeWithoutSynchronization(HTMLNames::crossoriginAttr);
     
    204207            document.cachedResourceLoader().setAutoLoadImages(autoLoadOtherImages);
    205208        } else {
    206             if (m_lazyImageLoadState == LazyImageLoadState::None && is<HTMLImageElement>(element())) {
     209            if (m_lazyImageLoadState == LazyImageLoadState::None && isImageElement) {
    207210                auto& imageElement = downcast<HTMLImageElement>(element());
    208211                if (imageElement.isLazyLoadable() && RuntimeEnabledFeatures::sharedFeatures().lazyImageLoadingEnabled()) {
Note: See TracChangeset for help on using the changeset viewer.