Source/WebCore/ChangeLog

 12019-02-10 Rob Buis <rbuis@igalia.com>
 2
 3 Consider supporting the `referrerpolicy` attribute.
 4 https://bugs.webkit.org/show_bug.cgi?id=179053
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 Test: web-platform-tests/html/dom/reflection-embedded.html
 9
 10 * html/HTMLAttributeNames.in:
 11 * html/HTMLFrameOwnerElement.h:
 12 (WebCore::HTMLFrameOwnerElement::referrerPolicy const):
 13 * html/HTMLIFrameElement.cpp:
 14 (WebCore::HTMLIFrameElement::parseAttribute):
 15 (WebCore::HTMLIFrameElement::setReferrerPolicyForBindings):
 16 (WebCore::HTMLIFrameElement::referrerPolicyForBindings const):
 17 * html/HTMLIFrameElement.h:
 18 * html/HTMLIFrameElement.idl:
 19 * loader/SubframeLoader.cpp:
 20 (WebCore::SubframeLoader::loadSubframe):
 21
1222019-02-09 Darin Adler <darin@apple.com>
223
324 Eliminate unnecessary String temporaries by using StringConcatenateNumbers

Source/WebCore/html/HTMLAttributeNames.in

@@progress
342342prompt
343343pseudo
344344readonly
 345referrerpolicy
345346rel
346347required
347348results

Source/WebCore/html/HTMLFrameOwnerElement.h

2121#pragma once
2222
2323#include "HTMLElement.h"
 24#include "ReferrerPolicy.h"
2425#include <wtf/HashCountedSet.h>
2526#include <wtf/NeverDestroyed.h>
2627

@@public:
6061
6162 virtual bool isURLAllowed(const URL&) const { return true; }
6263
 64 virtual ReferrerPolicy referrerPolicy() const { return ReferrerPolicy::EmptyString; }
 65
6366protected:
6467 HTMLFrameOwnerElement(const QualifiedName& tagName, Document&);
6568 void setSandboxFlags(SandboxFlags);

Source/WebCore/html/HTMLIFrameElement.cpp

@@void HTMLIFrameElement::parseAttribute(const QualifiedName& name, const AtomicSt
9595 setSandboxFlags(value.isNull() ? SandboxNone : SecurityContext::parseSandboxPolicy(value, invalidTokens));
9696 if (!invalidTokens.isNull())
9797 document().addConsoleMessage(MessageSource::Other, MessageLevel::Error, "Error while parsing the 'sandbox' attribute: " + invalidTokens);
98  } else if (name == allowAttr)
 98 } else if (name == allowAttr) {
9999 m_allow = value;
100  else
 100 } else if (name == referrerpolicyAttr) {
 101 m_referrerPolicy = ReferrerPolicy::EmptyString;
 102 if (auto policy = parseReferrerPolicy(value, ReferrerPolicySource::HTTPHeader))
 103 m_referrerPolicy = *policy;
 104 } else
101105 HTMLFrameElementBase::parseAttribute(name, value);
102106}
103107

@@RenderPtr<RenderElement> HTMLIFrameElement::createElementRenderer(RenderStyle&&
111115 return createRenderer<RenderIFrame>(*this, WTFMove(style));
112116}
113117
 118void HTMLIFrameElement::setReferrerPolicyForBindings(const AtomicString& value)
 119{
 120 setAttributeWithoutSynchronization(referrerpolicyAttr, value);
 121}
 122
 123String HTMLIFrameElement::referrerPolicyForBindings() const
 124{
 125 if (m_referrerPolicy != ReferrerPolicy::EmptyString)
 126 return attributeWithoutSynchronization(referrerpolicyAttr).convertToASCIILowercase();
 127 return String();
 128}
 129
114130}

Source/WebCore/html/HTMLIFrameElement.h

@@public:
4040 RenderIFrame* renderer() const;
4141 const String& allow() const { return m_allow; }
4242
 43 void setReferrerPolicyForBindings(const AtomicString&);
 44 String referrerPolicyForBindings() const;
 45 ReferrerPolicy referrerPolicy() const override { return m_referrerPolicy; }
 46
4347private:
4448 HTMLIFrameElement(const QualifiedName&, Document&);
4549

@@private:
5660
5761 std::unique_ptr<DOMTokenList> m_sandbox;
5862 String m_allow;
 63 ReferrerPolicy m_referrerPolicy;
5964};
6065
6166} // namespace WebCore

Source/WebCore/html/HTMLIFrameElement.idl

@@interface HTMLIFrameElement : HTMLElement {
4141 readonly attribute WindowProxy contentWindow;
4242
4343 [CheckSecurityForNode, MayThrowException] Document getSVGDocument();
 44
 45 [ImplementedAs=referrerPolicyForBindings, CEReactions=NotNeeded] attribute DOMString referrerPolicy;
4446};

Source/WebCore/loader/SubframeLoader.cpp

@@Frame* SubframeLoader::loadSubframe(HTMLFrameOwnerElement& ownerElement, const U
318318 if (!SubframeLoadingDisabler::canLoadFrame(ownerElement))
319319 return nullptr;
320320
321  String referrerToUse = SecurityPolicy::generateReferrerHeader(document->referrerPolicy(), url, referrer);
 321 ReferrerPolicy policy = ownerElement.referrerPolicy();
 322 if (policy == ReferrerPolicy::EmptyString)
 323 policy = document->referrerPolicy();
 324 String referrerToUse = SecurityPolicy::generateReferrerHeader(policy, url, referrer);
322325
323326 // Prevent initial empty document load from triggering load events.
324327 document->incrementLoadEventDelayCount();

LayoutTests/imported/w3c/ChangeLog

 12019-02-10 Rob Buis <rbuis@igalia.com>
 2
 3 Consider supporting the `referrerpolicy` attribute.
 4 https://bugs.webkit.org/show_bug.cgi?id=179053
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 * web-platform-tests/html/dom/reflection-embedded-expected.txt:
 9
1102019-01-30 Youenn Fablet <youenn@apple.com>
211
312 ServiceWorkerJob should notify its client in case its job is cancelled

LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt

@@PASS iframe.height: IDL set to "\0"
17461746PASS iframe.height: IDL set to null
17471747PASS iframe.height: IDL set to object "test-toString"
17481748PASS iframe.height: IDL set to object "test-valueOf"
1749 FAIL iframe.referrerPolicy: typeof IDL attribute assert_equals: expected "string" but got "undefined"
1750 FAIL iframe.referrerPolicy: IDL get with DOM attribute unset assert_equals: expected (string) "" but got (undefined) undefined
1751 FAIL iframe.referrerPolicy: setAttribute() to "" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1752 FAIL iframe.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
1753 FAIL iframe.referrerPolicy: setAttribute() to undefined assert_equals: IDL get expected (string) "" but got (undefined) undefined
1754 FAIL iframe.referrerPolicy: setAttribute() to 7 assert_equals: IDL get expected (string) "" but got (undefined) undefined
1755 FAIL iframe.referrerPolicy: setAttribute() to 1.5 assert_equals: IDL get expected (string) "" but got (undefined) undefined
1756 FAIL iframe.referrerPolicy: setAttribute() to true assert_equals: IDL get expected (string) "" but got (undefined) undefined
1757 FAIL iframe.referrerPolicy: setAttribute() to false assert_equals: IDL get expected (string) "" but got (undefined) undefined
1758 FAIL iframe.referrerPolicy: setAttribute() to object "[object Object]" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1759 FAIL iframe.referrerPolicy: setAttribute() to NaN assert_equals: IDL get expected (string) "" but got (undefined) undefined
1760 FAIL iframe.referrerPolicy: setAttribute() to Infinity assert_equals: IDL get expected (string) "" but got (undefined) undefined
1761 FAIL iframe.referrerPolicy: setAttribute() to -Infinity assert_equals: IDL get expected (string) "" but got (undefined) undefined
1762 FAIL iframe.referrerPolicy: setAttribute() to "\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1763 FAIL iframe.referrerPolicy: setAttribute() to null assert_equals: IDL get expected (string) "" but got (undefined) undefined
1764 FAIL iframe.referrerPolicy: setAttribute() to object "test-toString" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1765 FAIL iframe.referrerPolicy: setAttribute() to object "test-valueOf" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1766 FAIL iframe.referrerPolicy: setAttribute() to "no-referrer" assert_equals: IDL get expected (string) "no-referrer" but got (undefined) undefined
1767 FAIL iframe.referrerPolicy: setAttribute() to "xno-referrer" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1768 FAIL iframe.referrerPolicy: setAttribute() to "no-referrer\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1769 FAIL iframe.referrerPolicy: setAttribute() to "o-referrer" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1770 FAIL iframe.referrerPolicy: setAttribute() to "NO-REFERRER" assert_equals: IDL get expected (string) "no-referrer" but got (undefined) undefined
1771 FAIL iframe.referrerPolicy: setAttribute() to "no-referrer-when-downgrade" assert_equals: IDL get expected (string) "no-referrer-when-downgrade" but got (undefined) undefined
1772 FAIL iframe.referrerPolicy: setAttribute() to "xno-referrer-when-downgrade" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1773 FAIL iframe.referrerPolicy: setAttribute() to "no-referrer-when-downgrade\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1774 FAIL iframe.referrerPolicy: setAttribute() to "o-referrer-when-downgrade" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1775 FAIL iframe.referrerPolicy: setAttribute() to "NO-REFERRER-WHEN-DOWNGRADE" assert_equals: IDL get expected (string) "no-referrer-when-downgrade" but got (undefined) undefined
1776 FAIL iframe.referrerPolicy: setAttribute() to "same-origin" assert_equals: IDL get expected (string) "same-origin" but got (undefined) undefined
1777 FAIL iframe.referrerPolicy: setAttribute() to "xsame-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1778 FAIL iframe.referrerPolicy: setAttribute() to "same-origin\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1779 FAIL iframe.referrerPolicy: setAttribute() to "ame-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1780 FAIL iframe.referrerPolicy: setAttribute() to "SAME-ORIGIN" assert_equals: IDL get expected (string) "same-origin" but got (undefined) undefined
1781 FAIL iframe.referrerPolicy: setAttribute() to "origin" assert_equals: IDL get expected (string) "origin" but got (undefined) undefined
1782 FAIL iframe.referrerPolicy: setAttribute() to "xorigin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1783 FAIL iframe.referrerPolicy: setAttribute() to "origin\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1784 FAIL iframe.referrerPolicy: setAttribute() to "rigin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1785 FAIL iframe.referrerPolicy: setAttribute() to "ORIGIN" assert_equals: IDL get expected (string) "origin" but got (undefined) undefined
1786 FAIL iframe.referrerPolicy: setAttribute() to "strict-origin" assert_equals: IDL get expected (string) "strict-origin" but got (undefined) undefined
1787 FAIL iframe.referrerPolicy: setAttribute() to "xstrict-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1788 FAIL iframe.referrerPolicy: setAttribute() to "strict-origin\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1789 FAIL iframe.referrerPolicy: setAttribute() to "trict-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1790 FAIL iframe.referrerPolicy: setAttribute() to "STRICT-ORIGIN" assert_equals: IDL get expected (string) "strict-origin" but got (undefined) undefined
1791 FAIL iframe.referrerPolicy: setAttribute() to "origin-when-cross-origin" assert_equals: IDL get expected (string) "origin-when-cross-origin" but got (undefined) undefined
1792 FAIL iframe.referrerPolicy: setAttribute() to "xorigin-when-cross-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1793 FAIL iframe.referrerPolicy: setAttribute() to "origin-when-cross-origin\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1794 FAIL iframe.referrerPolicy: setAttribute() to "rigin-when-cross-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1795 FAIL iframe.referrerPolicy: setAttribute() to "ORIGIN-WHEN-CROSS-ORIGIN" assert_equals: IDL get expected (string) "origin-when-cross-origin" but got (undefined) undefined
1796 FAIL iframe.referrerPolicy: setAttribute() to "strict-origin-when-cross-origin" assert_equals: IDL get expected (string) "strict-origin-when-cross-origin" but got (undefined) undefined
1797 FAIL iframe.referrerPolicy: setAttribute() to "xstrict-origin-when-cross-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1798 FAIL iframe.referrerPolicy: setAttribute() to "strict-origin-when-cross-origin\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1799 FAIL iframe.referrerPolicy: setAttribute() to "trict-origin-when-cross-origin" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1800 FAIL iframe.referrerPolicy: setAttribute() to "STRICT-ORIGIN-WHEN-CROSS-ORIGIN" assert_equals: IDL get expected (string) "strict-origin-when-cross-origin" but got (undefined) undefined
1801 FAIL iframe.referrerPolicy: setAttribute() to "unsafe-url" assert_equals: IDL get expected (string) "unsafe-url" but got (undefined) undefined
1802 FAIL iframe.referrerPolicy: setAttribute() to "xunsafe-url" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1803 FAIL iframe.referrerPolicy: setAttribute() to "unsafe-url\0" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1804 FAIL iframe.referrerPolicy: setAttribute() to "nsafe-url" assert_equals: IDL get expected (string) "" but got (undefined) undefined
1805 FAIL iframe.referrerPolicy: setAttribute() to "UNSAFE-URL" assert_equals: IDL get expected (string) "unsafe-url" but got (undefined) undefined
1806 FAIL iframe.referrerPolicy: IDL set to "" assert_equals: getAttribute() expected "" but got "UNSAFE-URL"
1807 FAIL iframe.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"
1808 FAIL iframe.referrerPolicy: IDL set to undefined assert_equals: getAttribute() expected "undefined" but got "UNSAFE-URL"
1809 FAIL iframe.referrerPolicy: IDL set to 7 assert_equals: getAttribute() expected "7" but got "UNSAFE-URL"
1810 FAIL iframe.referrerPolicy: IDL set to 1.5 assert_equals: getAttribute() expected "1.5" but got "UNSAFE-URL"
1811 FAIL iframe.referrerPolicy: IDL set to true assert_equals: getAttribute() expected "true" but got "UNSAFE-URL"
1812 FAIL iframe.referrerPolicy: IDL set to false assert_equals: getAttribute() expected "false" but got "UNSAFE-URL"
1813 FAIL iframe.referrerPolicy: IDL set to object "[object Object]" assert_equals: getAttribute() expected "[object Object]" but got "UNSAFE-URL"
1814 FAIL iframe.referrerPolicy: IDL set to NaN assert_equals: getAttribute() expected "NaN" but got "UNSAFE-URL"
1815 FAIL iframe.referrerPolicy: IDL set to Infinity assert_equals: getAttribute() expected "Infinity" but got "UNSAFE-URL"
1816 FAIL iframe.referrerPolicy: IDL set to -Infinity assert_equals: getAttribute() expected "-Infinity" but got "UNSAFE-URL"
1817 FAIL iframe.referrerPolicy: IDL set to "\0" assert_equals: getAttribute() expected "\0" but got "UNSAFE-URL"
1818 FAIL iframe.referrerPolicy: IDL set to null assert_equals: IDL get expected (string) "" but got (object) null
1819 FAIL iframe.referrerPolicy: IDL set to object "test-toString" assert_equals: getAttribute() expected "test-toString" but got "UNSAFE-URL"
1820 FAIL iframe.referrerPolicy: IDL set to object "test-valueOf" assert_equals: getAttribute() expected "test-valueOf" but got "UNSAFE-URL"
1821 FAIL iframe.referrerPolicy: IDL set to "no-referrer" assert_equals: getAttribute() expected "no-referrer" but got "UNSAFE-URL"
1822 FAIL iframe.referrerPolicy: IDL set to "xno-referrer" assert_equals: getAttribute() expected "xno-referrer" but got "UNSAFE-URL"
1823 FAIL iframe.referrerPolicy: IDL set to "no-referrer\0" assert_equals: getAttribute() expected "no-referrer\0" but got "UNSAFE-URL"
1824 FAIL iframe.referrerPolicy: IDL set to "o-referrer" assert_equals: getAttribute() expected "o-referrer" but got "UNSAFE-URL"
1825 FAIL iframe.referrerPolicy: IDL set to "NO-REFERRER" assert_equals: getAttribute() expected "NO-REFERRER" but got "UNSAFE-URL"
1826 FAIL iframe.referrerPolicy: IDL set to "no-referrer-when-downgrade" assert_equals: getAttribute() expected "no-referrer-when-downgrade" but got "UNSAFE-URL"
1827 FAIL iframe.referrerPolicy: IDL set to "xno-referrer-when-downgrade" assert_equals: getAttribute() expected "xno-referrer-when-downgrade" but got "UNSAFE-URL"
1828 FAIL iframe.referrerPolicy: IDL set to "no-referrer-when-downgrade\0" assert_equals: getAttribute() expected "no-referrer-when-downgrade\0" but got "UNSAFE-URL"
1829 FAIL iframe.referrerPolicy: IDL set to "o-referrer-when-downgrade" assert_equals: getAttribute() expected "o-referrer-when-downgrade" but got "UNSAFE-URL"
1830 FAIL iframe.referrerPolicy: IDL set to "NO-REFERRER-WHEN-DOWNGRADE" assert_equals: getAttribute() expected "NO-REFERRER-WHEN-DOWNGRADE" but got "UNSAFE-URL"
1831 FAIL iframe.referrerPolicy: IDL set to "same-origin" assert_equals: getAttribute() expected "same-origin" but got "UNSAFE-URL"
1832 FAIL iframe.referrerPolicy: IDL set to "xsame-origin" assert_equals: getAttribute() expected "xsame-origin" but got "UNSAFE-URL"
1833 FAIL iframe.referrerPolicy: IDL set to "same-origin\0" assert_equals: getAttribute() expected "same-origin\0" but got "UNSAFE-URL"
1834 FAIL iframe.referrerPolicy: IDL set to "ame-origin" assert_equals: getAttribute() expected "ame-origin" but got "UNSAFE-URL"
1835 FAIL iframe.referrerPolicy: IDL set to "SAME-ORIGIN" assert_equals: getAttribute() expected "SAME-ORIGIN" but got "UNSAFE-URL"
1836 FAIL iframe.referrerPolicy: IDL set to "origin" assert_equals: getAttribute() expected "origin" but got "UNSAFE-URL"
1837 FAIL iframe.referrerPolicy: IDL set to "xorigin" assert_equals: getAttribute() expected "xorigin" but got "UNSAFE-URL"
1838 FAIL iframe.referrerPolicy: IDL set to "origin\0" assert_equals: getAttribute() expected "origin\0" but got "UNSAFE-URL"
1839 FAIL iframe.referrerPolicy: IDL set to "rigin" assert_equals: getAttribute() expected "rigin" but got "UNSAFE-URL"
1840 FAIL iframe.referrerPolicy: IDL set to "ORIGIN" assert_equals: getAttribute() expected "ORIGIN" but got "UNSAFE-URL"
1841 FAIL iframe.referrerPolicy: IDL set to "strict-origin" assert_equals: getAttribute() expected "strict-origin" but got "UNSAFE-URL"
1842 FAIL iframe.referrerPolicy: IDL set to "xstrict-origin" assert_equals: getAttribute() expected "xstrict-origin" but got "UNSAFE-URL"
1843 FAIL iframe.referrerPolicy: IDL set to "strict-origin\0" assert_equals: getAttribute() expected "strict-origin\0" but got "UNSAFE-URL"
1844 FAIL iframe.referrerPolicy: IDL set to "trict-origin" assert_equals: getAttribute() expected "trict-origin" but got "UNSAFE-URL"
1845 FAIL iframe.referrerPolicy: IDL set to "STRICT-ORIGIN" assert_equals: getAttribute() expected "STRICT-ORIGIN" but got "UNSAFE-URL"
1846 FAIL iframe.referrerPolicy: IDL set to "origin-when-cross-origin" assert_equals: getAttribute() expected "origin-when-cross-origin" but got "UNSAFE-URL"
1847 FAIL iframe.referrerPolicy: IDL set to "xorigin-when-cross-origin" assert_equals: getAttribute() expected "xorigin-when-cross-origin" but got "UNSAFE-URL"
1848 FAIL iframe.referrerPolicy: IDL set to "origin-when-cross-origin\0" assert_equals: getAttribute() expected "origin-when-cross-origin\0" but got "UNSAFE-URL"
1849 FAIL iframe.referrerPolicy: IDL set to "rigin-when-cross-origin" assert_equals: getAttribute() expected "rigin-when-cross-origin" but got "UNSAFE-URL"
1850 FAIL iframe.referrerPolicy: IDL set to "ORIGIN-WHEN-CROSS-ORIGIN" assert_equals: getAttribute() expected "ORIGIN-WHEN-CROSS-ORIGIN" but got "UNSAFE-URL"
1851 FAIL iframe.referrerPolicy: IDL set to "strict-origin-when-cross-origin" assert_equals: getAttribute() expected "strict-origin-when-cross-origin" but got "UNSAFE-URL"
1852 FAIL iframe.referrerPolicy: IDL set to "xstrict-origin-when-cross-origin" assert_equals: getAttribute() expected "xstrict-origin-when-cross-origin" but got "UNSAFE-URL"
1853 FAIL iframe.referrerPolicy: IDL set to "strict-origin-when-cross-origin\0" assert_equals: getAttribute() expected "strict-origin-when-cross-origin\0" but got "UNSAFE-URL"
1854 FAIL iframe.referrerPolicy: IDL set to "trict-origin-when-cross-origin" assert_equals: getAttribute() expected "trict-origin-when-cross-origin" but got "UNSAFE-URL"
1855 FAIL iframe.referrerPolicy: IDL set to "STRICT-ORIGIN-WHEN-CROSS-ORIGIN" assert_equals: getAttribute() expected "STRICT-ORIGIN-WHEN-CROSS-ORIGIN" but got "UNSAFE-URL"
1856 FAIL iframe.referrerPolicy: IDL set to "unsafe-url" assert_equals: getAttribute() expected "unsafe-url" but got "UNSAFE-URL"
1857 FAIL iframe.referrerPolicy: IDL set to "xunsafe-url" assert_equals: getAttribute() expected "xunsafe-url" but got "UNSAFE-URL"
1858 FAIL iframe.referrerPolicy: IDL set to "unsafe-url\0" assert_equals: getAttribute() expected "unsafe-url\0" but got "UNSAFE-URL"
1859 FAIL iframe.referrerPolicy: IDL set to "nsafe-url" assert_equals: getAttribute() expected "nsafe-url" but got "UNSAFE-URL"
1860 FAIL iframe.referrerPolicy: IDL set to "UNSAFE-URL" assert_equals: IDL get expected "unsafe-url" but got "UNSAFE-URL"
 1749PASS iframe.referrerPolicy: typeof IDL attribute
 1750PASS iframe.referrerPolicy: IDL get with DOM attribute unset
 1751PASS iframe.referrerPolicy: setAttribute() to ""
 1752PASS iframe.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 "
 1753PASS iframe.referrerPolicy: setAttribute() to undefined
 1754PASS iframe.referrerPolicy: setAttribute() to 7
 1755PASS iframe.referrerPolicy: setAttribute() to 1.5
 1756PASS iframe.referrerPolicy: setAttribute() to true
 1757PASS iframe.referrerPolicy: setAttribute() to false
 1758PASS iframe.referrerPolicy: setAttribute() to object "[object Object]"
 1759PASS iframe.referrerPolicy: setAttribute() to NaN
 1760PASS iframe.referrerPolicy: setAttribute() to Infinity
 1761PASS iframe.referrerPolicy: setAttribute() to -Infinity
 1762PASS iframe.referrerPolicy: setAttribute() to "\0"
 1763PASS iframe.referrerPolicy: setAttribute() to null
 1764PASS iframe.referrerPolicy: setAttribute() to object "test-toString"
 1765PASS iframe.referrerPolicy: setAttribute() to object "test-valueOf"
 1766PASS iframe.referrerPolicy: setAttribute() to "no-referrer"
 1767PASS iframe.referrerPolicy: setAttribute() to "xno-referrer"
 1768PASS iframe.referrerPolicy: setAttribute() to "no-referrer\0"
 1769PASS iframe.referrerPolicy: setAttribute() to "o-referrer"
 1770PASS iframe.referrerPolicy: setAttribute() to "NO-REFERRER"
 1771PASS iframe.referrerPolicy: setAttribute() to "no-referrer-when-downgrade"
 1772PASS iframe.referrerPolicy: setAttribute() to "xno-referrer-when-downgrade"
 1773PASS iframe.referrerPolicy: setAttribute() to "no-referrer-when-downgrade\0"
 1774PASS iframe.referrerPolicy: setAttribute() to "o-referrer-when-downgrade"
 1775PASS iframe.referrerPolicy: setAttribute() to "NO-REFERRER-WHEN-DOWNGRADE"
 1776PASS iframe.referrerPolicy: setAttribute() to "same-origin"
 1777PASS iframe.referrerPolicy: setAttribute() to "xsame-origin"
 1778PASS iframe.referrerPolicy: setAttribute() to "same-origin\0"
 1779PASS iframe.referrerPolicy: setAttribute() to "ame-origin"
 1780PASS iframe.referrerPolicy: setAttribute() to "SAME-ORIGIN"
 1781PASS iframe.referrerPolicy: setAttribute() to "origin"
 1782PASS iframe.referrerPolicy: setAttribute() to "xorigin"
 1783PASS iframe.referrerPolicy: setAttribute() to "origin\0"
 1784PASS iframe.referrerPolicy: setAttribute() to "rigin"
 1785PASS iframe.referrerPolicy: setAttribute() to "ORIGIN"
 1786PASS iframe.referrerPolicy: setAttribute() to "strict-origin"
 1787PASS iframe.referrerPolicy: setAttribute() to "xstrict-origin"
 1788PASS iframe.referrerPolicy: setAttribute() to "strict-origin\0"
 1789PASS iframe.referrerPolicy: setAttribute() to "trict-origin"
 1790PASS iframe.referrerPolicy: setAttribute() to "STRICT-ORIGIN"
 1791PASS iframe.referrerPolicy: setAttribute() to "origin-when-cross-origin"
 1792PASS iframe.referrerPolicy: setAttribute() to "xorigin-when-cross-origin"
 1793PASS iframe.referrerPolicy: setAttribute() to "origin-when-cross-origin\0"
 1794PASS iframe.referrerPolicy: setAttribute() to "rigin-when-cross-origin"
 1795PASS iframe.referrerPolicy: setAttribute() to "ORIGIN-WHEN-CROSS-ORIGIN"
 1796PASS iframe.referrerPolicy: setAttribute() to "strict-origin-when-cross-origin"
 1797PASS iframe.referrerPolicy: setAttribute() to "xstrict-origin-when-cross-origin"
 1798PASS iframe.referrerPolicy: setAttribute() to "strict-origin-when-cross-origin\0"
 1799PASS iframe.referrerPolicy: setAttribute() to "trict-origin-when-cross-origin"
 1800PASS iframe.referrerPolicy: setAttribute() to "STRICT-ORIGIN-WHEN-CROSS-ORIGIN"
 1801PASS iframe.referrerPolicy: setAttribute() to "unsafe-url"
 1802PASS iframe.referrerPolicy: setAttribute() to "xunsafe-url"
 1803PASS iframe.referrerPolicy: setAttribute() to "unsafe-url\0"
 1804PASS iframe.referrerPolicy: setAttribute() to "nsafe-url"
 1805PASS iframe.referrerPolicy: setAttribute() to "UNSAFE-URL"
 1806PASS iframe.referrerPolicy: IDL set to ""
 1807PASS iframe.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 "
 1808PASS iframe.referrerPolicy: IDL set to undefined
 1809PASS iframe.referrerPolicy: IDL set to 7
 1810PASS iframe.referrerPolicy: IDL set to 1.5
 1811PASS iframe.referrerPolicy: IDL set to true
 1812PASS iframe.referrerPolicy: IDL set to false
 1813PASS iframe.referrerPolicy: IDL set to object "[object Object]"
 1814PASS iframe.referrerPolicy: IDL set to NaN
 1815PASS iframe.referrerPolicy: IDL set to Infinity
 1816PASS iframe.referrerPolicy: IDL set to -Infinity
 1817PASS iframe.referrerPolicy: IDL set to "\0"
 1818PASS iframe.referrerPolicy: IDL set to null
 1819PASS iframe.referrerPolicy: IDL set to object "test-toString"
 1820PASS iframe.referrerPolicy: IDL set to object "test-valueOf"
 1821PASS iframe.referrerPolicy: IDL set to "no-referrer"
 1822PASS iframe.referrerPolicy: IDL set to "xno-referrer"
 1823PASS iframe.referrerPolicy: IDL set to "no-referrer\0"
 1824PASS iframe.referrerPolicy: IDL set to "o-referrer"
 1825PASS iframe.referrerPolicy: IDL set to "NO-REFERRER"
 1826PASS iframe.referrerPolicy: IDL set to "no-referrer-when-downgrade"
 1827PASS iframe.referrerPolicy: IDL set to "xno-referrer-when-downgrade"
 1828PASS iframe.referrerPolicy: IDL set to "no-referrer-when-downgrade\0"
 1829PASS iframe.referrerPolicy: IDL set to "o-referrer-when-downgrade"
 1830PASS iframe.referrerPolicy: IDL set to "NO-REFERRER-WHEN-DOWNGRADE"
 1831PASS iframe.referrerPolicy: IDL set to "same-origin"
 1832PASS iframe.referrerPolicy: IDL set to "xsame-origin"
 1833PASS iframe.referrerPolicy: IDL set to "same-origin\0"
 1834PASS iframe.referrerPolicy: IDL set to "ame-origin"
 1835PASS iframe.referrerPolicy: IDL set to "SAME-ORIGIN"
 1836PASS iframe.referrerPolicy: IDL set to "origin"
 1837PASS iframe.referrerPolicy: IDL set to "xorigin"
 1838PASS iframe.referrerPolicy: IDL set to "origin\0"
 1839PASS iframe.referrerPolicy: IDL set to "rigin"
 1840PASS iframe.referrerPolicy: IDL set to "ORIGIN"
 1841PASS iframe.referrerPolicy: IDL set to "strict-origin"
 1842PASS iframe.referrerPolicy: IDL set to "xstrict-origin"
 1843PASS iframe.referrerPolicy: IDL set to "strict-origin\0"
 1844PASS iframe.referrerPolicy: IDL set to "trict-origin"
 1845PASS iframe.referrerPolicy: IDL set to "STRICT-ORIGIN"
 1846PASS iframe.referrerPolicy: IDL set to "origin-when-cross-origin"
 1847PASS iframe.referrerPolicy: IDL set to "xorigin-when-cross-origin"
 1848PASS iframe.referrerPolicy: IDL set to "origin-when-cross-origin\0"
 1849PASS iframe.referrerPolicy: IDL set to "rigin-when-cross-origin"
 1850PASS iframe.referrerPolicy: IDL set to "ORIGIN-WHEN-CROSS-ORIGIN"
 1851PASS iframe.referrerPolicy: IDL set to "strict-origin-when-cross-origin"
 1852PASS iframe.referrerPolicy: IDL set to "xstrict-origin-when-cross-origin"
 1853PASS iframe.referrerPolicy: IDL set to "strict-origin-when-cross-origin\0"
 1854PASS iframe.referrerPolicy: IDL set to "trict-origin-when-cross-origin"
 1855PASS iframe.referrerPolicy: IDL set to "STRICT-ORIGIN-WHEN-CROSS-ORIGIN"
 1856PASS iframe.referrerPolicy: IDL set to "unsafe-url"
 1857PASS iframe.referrerPolicy: IDL set to "xunsafe-url"
 1858PASS iframe.referrerPolicy: IDL set to "unsafe-url\0"
 1859PASS iframe.referrerPolicy: IDL set to "nsafe-url"
 1860PASS iframe.referrerPolicy: IDL set to "UNSAFE-URL"
18611861FAIL iframe.delegateStickyUserActivation: typeof IDL attribute assert_equals: expected "string" but got "undefined"
18621862FAIL iframe.delegateStickyUserActivation: setAttribute() to "vibration" assert_equals: IDL get expected (string) "vibration" but got (undefined) undefined
18631863FAIL iframe.delegateStickyUserActivation: setAttribute() to "VIBRATION" assert_equals: IDL get expected (string) "vibration" but got (undefined) undefined