mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 786564. Add a crossOrigin IDL attribute on <link>. r=sicking
--HG-- rename : content/html/content/test/test_bug742549.html => content/html/content/test/test_bug786564.html
This commit is contained in:
parent
20b51d418a
commit
8597074ce2
@ -180,6 +180,7 @@ NS_IMPL_STRING_ATTR(nsHTMLLinkElement, Rel, rel)
|
||||
NS_IMPL_STRING_ATTR(nsHTMLLinkElement, Rev, rev)
|
||||
NS_IMPL_STRING_ATTR(nsHTMLLinkElement, Target, target)
|
||||
NS_IMPL_STRING_ATTR(nsHTMLLinkElement, Type, type)
|
||||
NS_IMPL_STRING_ATTR(nsHTMLLinkElement, CrossOrigin, crossorigin)
|
||||
|
||||
void
|
||||
nsHTMLLinkElement::GetItemValueText(nsAString& aValue)
|
||||
|
@ -326,6 +326,7 @@ MOCHITEST_FILES = \
|
||||
test_iframe_sandbox_workers.html \
|
||||
file_iframe_sandbox_g_if1.html \
|
||||
file_iframe_sandbox_worker.js \
|
||||
test_bug786564.html \
|
||||
$(NULL)
|
||||
|
||||
MOCHITEST_BROWSER_FILES = \
|
||||
|
35
content/html/content/test/test_bug786564.html
Normal file
35
content/html/content/test/test_bug786564.html
Normal file
@ -0,0 +1,35 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<!--
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=786564
|
||||
-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Test for Bug 742549</title>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="application/javascript" src="reflect.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=786564">Mozilla Bug 786564</a>
|
||||
<p id="display"></p>
|
||||
<div id="content" style="display: none">
|
||||
|
||||
</div>
|
||||
<pre id="test">
|
||||
<script type="application/javascript">
|
||||
|
||||
/** Test for Bug 786564 **/
|
||||
reflectString({
|
||||
element: document.createElement("link"),
|
||||
attribute: { content: "crossorigin", idl: "crossOrigin" },
|
||||
otherValues: [ "anonymous", "use-credentials" ]
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
@ -16,7 +16,7 @@
|
||||
* http://www.whatwg.org/specs/web-apps/current-work/
|
||||
*/
|
||||
|
||||
[scriptable, uuid(59AE3529-170A-41E4-8D7A-241DCA6B5760)]
|
||||
[scriptable, uuid(5b639ece-7b49-4507-9d38-550beb71955b)]
|
||||
interface nsIDOMHTMLLinkElement : nsIDOMHTMLElement
|
||||
{
|
||||
attribute boolean disabled;
|
||||
@ -28,4 +28,5 @@ interface nsIDOMHTMLLinkElement : nsIDOMHTMLElement
|
||||
attribute DOMString rev;
|
||||
attribute DOMString target;
|
||||
attribute DOMString type;
|
||||
attribute DOMString crossOrigin;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user