<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[196894] trunk</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/196894">196894</a></dd>
<dt>Author</dt> <dd>cdumez@apple.com</dd>
<dt>Date</dt> <dd>2016-02-21 22:28:42 -0800 (Sun, 21 Feb 2016)</dd>
</dl>
<h3>Log Message</h3>
<pre>HTMLScriptElement.crossOrigin / HTMLImageElement.crossOrigin should only return known values
https://bugs.webkit.org/show_bug.cgi?id=154502
Reviewed by Darin Adler.
LayoutTests/imported/w3c:
Rebaseline now that more checks are passing.
* web-platform-tests/html/dom/interfaces-expected.txt:
* web-platform-tests/html/dom/reflection-embedded-expected.txt:
* web-platform-tests/html/dom/reflection-misc-expected.txt:
Source/WebCore:
HTMLScriptElement.crossOrigin / HTMLImageElement.crossOrigin should only
return known values and should be nullable as per the specification:
- https://html.spec.whatwg.org/multipage/scripting.html#attr-script-crossorigin
- https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-crossorigin
- https://html.spec.whatwg.org/multipage/infrastructure.html#cors-settings-attribute
This aligns our behavior with the HTML specification and Firefox.
No new tests, already covered by existing tests.
* bindings/scripts/CodeGeneratorJS.pm:
Add support for nullable DOMString attributes. If such attribute is
marked as nullable:
- A null string is passed to the implementation if the setter is called
with null/undefined.
- null is returned to the Javascript if the getter implementation
returns a null string.
* bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
* bindings/scripts/test/GObject/WebKitDOMTestObj.h:
* bindings/scripts/test/JS/JSTestObj.cpp:
* bindings/scripts/test/ObjC/DOMTestObj.h:
* bindings/scripts/test/ObjC/DOMTestObj.mm:
* bindings/scripts/test/TestObj.idl:
Add test coverage for nullable DOMString attributes
and rebaseline bindings tests.
* html/HTMLImageElement.cpp:
* html/HTMLImageElement.h:
* html/HTMLImageElement.idl:
* html/HTMLScriptElement.cpp:
* html/HTMLScriptElement.h:
* html/HTMLScriptElement.idl:
* html/parser/HTMLParserIdioms.cpp:
* html/parser/HTMLParserIdioms.h:</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsimportedw3cChangeLog">trunk/LayoutTests/imported/w3c/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmldomreflectionembeddedexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmldomreflectionmiscexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-misc-expected.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptsCodeGeneratorJSpm">trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestGObjectWebKitDOMTestObjcpp">trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestGObjectWebKitDOMTestObjh">trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestObjcpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestObjCDOMTestObjh">trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestObjCDOMTestObjmm">trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestTestObjidl">trunk/Source/WebCore/bindings/scripts/test/TestObj.idl</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLImageElementcpp">trunk/Source/WebCore/html/HTMLImageElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLImageElementh">trunk/Source/WebCore/html/HTMLImageElement.h</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLImageElementidl">trunk/Source/WebCore/html/HTMLImageElement.idl</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLScriptElementcpp">trunk/Source/WebCore/html/HTMLScriptElement.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLScriptElementh">trunk/Source/WebCore/html/HTMLScriptElement.h</a></li>
<li><a href="#trunkSourceWebCorehtmlHTMLScriptElementidl">trunk/Source/WebCore/html/HTMLScriptElement.idl</a></li>
<li><a href="#trunkSourceWebCorehtmlparserHTMLParserIdiomscpp">trunk/Source/WebCore/html/parser/HTMLParserIdioms.cpp</a></li>
<li><a href="#trunkSourceWebCorehtmlparserHTMLParserIdiomsh">trunk/Source/WebCore/html/parser/HTMLParserIdioms.h</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsimportedw3cChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/ChangeLog (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/ChangeLog        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/LayoutTests/imported/w3c/ChangeLog        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -1,5 +1,18 @@
</span><span class="cx"> 2016-02-21 Chris Dumez <cdumez@apple.com>
</span><span class="cx">
</span><ins>+ HTMLScriptElement.crossOrigin / HTMLImageElement.crossOrigin should only return known values
+ https://bugs.webkit.org/show_bug.cgi?id=154502
+
+ Reviewed by Darin Adler.
+
+ Rebaseline now that more checks are passing.
+
+ * web-platform-tests/html/dom/interfaces-expected.txt:
+ * web-platform-tests/html/dom/reflection-embedded-expected.txt:
+ * web-platform-tests/html/dom/reflection-misc-expected.txt:
+
+2016-02-21 Chris Dumez <cdumez@apple.com>
+
</ins><span class="cx"> Make HTMLSelectElement.size behave as per the specification
</span><span class="cx"> https://bugs.webkit.org/show_bug.cgi?id=154504
</span><span class="cx">
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmldomreflectionembeddedexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-embedded-expected.txt        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -850,133 +850,133 @@
</span><span class="cx"> PASS img.srcset: IDL set to object "test-valueOf" should not throw
</span><span class="cx"> PASS img.srcset: IDL set to object "test-valueOf" followed by getAttribute()
</span><span class="cx"> PASS img.srcset: IDL set to object "test-valueOf" followed by IDL get
</span><del>-FAIL img.crossOrigin: typeof IDL attribute assert_equals: expected "object" but got "string"
-FAIL img.crossOrigin: IDL get with DOM attribute unset assert_equals: expected (object) null but got (string) ""
</del><ins>+PASS img.crossOrigin: typeof IDL attribute
+PASS img.crossOrigin: IDL get with DOM attribute unset
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to "" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to "" followed by IDL get assert_equals: expected "anonymous" but got ""
</del><ins>+PASS img.crossOrigin: setAttribute() to "" followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: 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 " followed by getAttribute()
</span><del>-FAIL img.crossOrigin: 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 " followed by IDL get assert_equals: expected "anonymous" but got " \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 "
</del><ins>+PASS img.crossOrigin: 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 " followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to undefined followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to undefined followed by IDL get assert_equals: expected "anonymous" but got "undefined"
</del><ins>+PASS img.crossOrigin: setAttribute() to undefined followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to 7 followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to 7 followed by IDL get assert_equals: expected "anonymous" but got "7"
</del><ins>+PASS img.crossOrigin: setAttribute() to 7 followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to 1.5 followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to 1.5 followed by IDL get assert_equals: expected "anonymous" but got "1.5"
</del><ins>+PASS img.crossOrigin: setAttribute() to 1.5 followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to true followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to true followed by IDL get assert_equals: expected "anonymous" but got "true"
</del><ins>+PASS img.crossOrigin: setAttribute() to true followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to false followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to false followed by IDL get assert_equals: expected "anonymous" but got "false"
</del><ins>+PASS img.crossOrigin: setAttribute() to false followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to object "[object Object]" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to object "[object Object]" followed by IDL get assert_equals: expected "anonymous" but got "[object Object]"
</del><ins>+PASS img.crossOrigin: setAttribute() to object "[object Object]" followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to NaN followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to NaN followed by IDL get assert_equals: expected "anonymous" but got "NaN"
</del><ins>+PASS img.crossOrigin: setAttribute() to NaN followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to Infinity followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to Infinity followed by IDL get assert_equals: expected "anonymous" but got "Infinity"
</del><ins>+PASS img.crossOrigin: setAttribute() to Infinity followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to -Infinity followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to -Infinity followed by IDL get assert_equals: expected "anonymous" but got "-Infinity"
</del><ins>+PASS img.crossOrigin: setAttribute() to -Infinity followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to "\0" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to "\0" followed by IDL get assert_equals: expected "anonymous" but got "\0"
</del><ins>+PASS img.crossOrigin: setAttribute() to "\0" followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to null followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to null followed by IDL get assert_equals: expected "anonymous" but got "null"
</del><ins>+PASS img.crossOrigin: setAttribute() to null followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to object "test-toString" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to object "test-toString" followed by IDL get assert_equals: expected "anonymous" but got "test-toString"
</del><ins>+PASS img.crossOrigin: setAttribute() to object "test-toString" followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to object "test-valueOf" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to object "test-valueOf" followed by IDL get assert_equals: expected "anonymous" but got "test-valueOf"
</del><ins>+PASS img.crossOrigin: setAttribute() to object "test-valueOf" followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to "anonymous" followed by getAttribute()
</span><span class="cx"> PASS img.crossOrigin: setAttribute() to "anonymous" followed by IDL get
</span><span class="cx"> PASS img.crossOrigin: setAttribute() to "xanonymous" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to "xanonymous" followed by IDL get assert_equals: expected "anonymous" but got "xanonymous"
</del><ins>+PASS img.crossOrigin: setAttribute() to "xanonymous" followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to "anonymous\0" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to "anonymous\0" followed by IDL get assert_equals: expected "anonymous" but got "anonymous\0"
</del><ins>+PASS img.crossOrigin: setAttribute() to "anonymous\0" followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to "nonymous" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to "nonymous" followed by IDL get assert_equals: expected "anonymous" but got "nonymous"
</del><ins>+PASS img.crossOrigin: setAttribute() to "nonymous" followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to "ANONYMOUS" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to "ANONYMOUS" followed by IDL get assert_equals: expected "anonymous" but got "ANONYMOUS"
</del><ins>+PASS img.crossOrigin: setAttribute() to "ANONYMOUS" followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to "use-credentials" followed by getAttribute()
</span><span class="cx"> PASS img.crossOrigin: setAttribute() to "use-credentials" followed by IDL get
</span><span class="cx"> PASS img.crossOrigin: setAttribute() to "xuse-credentials" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to "xuse-credentials" followed by IDL get assert_equals: expected "anonymous" but got "xuse-credentials"
</del><ins>+PASS img.crossOrigin: setAttribute() to "xuse-credentials" followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to "use-credentials\0" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to "use-credentials\0" followed by IDL get assert_equals: expected "anonymous" but got "use-credentials\0"
</del><ins>+PASS img.crossOrigin: setAttribute() to "use-credentials\0" followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to "se-credentials" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to "se-credentials" followed by IDL get assert_equals: expected "anonymous" but got "se-credentials"
</del><ins>+PASS img.crossOrigin: setAttribute() to "se-credentials" followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: setAttribute() to "USE-CREDENTIALS" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: setAttribute() to "USE-CREDENTIALS" followed by IDL get assert_equals: expected "use-credentials" but got "USE-CREDENTIALS"
</del><ins>+PASS img.crossOrigin: setAttribute() to "USE-CREDENTIALS" followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: IDL set to "" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to "" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to "" followed by IDL get assert_equals: expected "anonymous" but got ""
</del><ins>+PASS img.crossOrigin: IDL set to "" followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: 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 " should not throw
</span><span class="cx"> PASS img.crossOrigin: 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 " followed by getAttribute()
</span><del>-FAIL img.crossOrigin: 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 " followed by IDL get assert_equals: expected "anonymous" but got " \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 "
</del><ins>+PASS img.crossOrigin: 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 " followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: IDL set to undefined should not throw
</span><del>-FAIL img.crossOrigin: IDL set to undefined followed by getAttribute() assert_equals: expected (object) null but got (string) "undefined"
-FAIL img.crossOrigin: IDL set to undefined followed by IDL get assert_equals: expected (object) null but got (string) "undefined"
</del><ins>+PASS img.crossOrigin: IDL set to undefined followed by getAttribute()
+PASS img.crossOrigin: IDL set to undefined followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: IDL set to 7 should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to 7 followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to 7 followed by IDL get assert_equals: expected "anonymous" but got "7"
</del><ins>+PASS img.crossOrigin: IDL set to 7 followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: IDL set to 1.5 should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to 1.5 followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to 1.5 followed by IDL get assert_equals: expected "anonymous" but got "1.5"
</del><ins>+PASS img.crossOrigin: IDL set to 1.5 followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: IDL set to true should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to true followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to true followed by IDL get assert_equals: expected "anonymous" but got "true"
</del><ins>+PASS img.crossOrigin: IDL set to true followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: IDL set to false should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to false followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to false followed by IDL get assert_equals: expected "anonymous" but got "false"
</del><ins>+PASS img.crossOrigin: IDL set to false followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: IDL set to object "[object Object]" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to object "[object Object]" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to object "[object Object]" followed by IDL get assert_equals: expected "anonymous" but got "[object Object]"
</del><ins>+PASS img.crossOrigin: IDL set to object "[object Object]" followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: IDL set to NaN should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to NaN followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to NaN followed by IDL get assert_equals: expected "anonymous" but got "NaN"
</del><ins>+PASS img.crossOrigin: IDL set to NaN followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: IDL set to Infinity should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to Infinity followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to Infinity followed by IDL get assert_equals: expected "anonymous" but got "Infinity"
</del><ins>+PASS img.crossOrigin: IDL set to Infinity followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: IDL set to -Infinity should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to -Infinity followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to -Infinity followed by IDL get assert_equals: expected "anonymous" but got "-Infinity"
</del><ins>+PASS img.crossOrigin: IDL set to -Infinity followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: IDL set to "\0" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to "\0" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to "\0" followed by IDL get assert_equals: expected "anonymous" but got "\0"
</del><ins>+PASS img.crossOrigin: IDL set to "\0" followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: IDL set to null should not throw
</span><del>-FAIL img.crossOrigin: IDL set to null followed by getAttribute() assert_equals: expected (object) null but got (string) "null"
-FAIL img.crossOrigin: IDL set to null followed by IDL get assert_equals: expected (object) null but got (string) "null"
</del><ins>+PASS img.crossOrigin: IDL set to null followed by getAttribute()
+PASS img.crossOrigin: IDL set to null followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: IDL set to object "test-toString" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to object "test-toString" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to object "test-toString" followed by IDL get assert_equals: expected "anonymous" but got "test-toString"
</del><ins>+PASS img.crossOrigin: IDL set to object "test-toString" followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: IDL set to object "test-valueOf" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to object "test-valueOf" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to object "test-valueOf" followed by IDL get assert_equals: expected "anonymous" but got "test-valueOf"
</del><ins>+PASS img.crossOrigin: IDL set to object "test-valueOf" followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: IDL set to "anonymous" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to "anonymous" followed by getAttribute()
</span><span class="cx"> PASS img.crossOrigin: IDL set to "anonymous" followed by IDL get
</span><span class="cx"> PASS img.crossOrigin: IDL set to "xanonymous" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to "xanonymous" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to "xanonymous" followed by IDL get assert_equals: expected "anonymous" but got "xanonymous"
</del><ins>+PASS img.crossOrigin: IDL set to "xanonymous" followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: IDL set to "anonymous\0" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to "anonymous\0" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to "anonymous\0" followed by IDL get assert_equals: expected "anonymous" but got "anonymous\0"
</del><ins>+PASS img.crossOrigin: IDL set to "anonymous\0" followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: IDL set to "nonymous" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to "nonymous" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to "nonymous" followed by IDL get assert_equals: expected "anonymous" but got "nonymous"
</del><ins>+PASS img.crossOrigin: IDL set to "nonymous" followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: IDL set to "ANONYMOUS" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to "ANONYMOUS" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to "ANONYMOUS" followed by IDL get assert_equals: expected "anonymous" but got "ANONYMOUS"
</del><ins>+PASS img.crossOrigin: IDL set to "ANONYMOUS" followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: IDL set to "use-credentials" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to "use-credentials" followed by getAttribute()
</span><span class="cx"> PASS img.crossOrigin: IDL set to "use-credentials" followed by IDL get
</span><span class="cx"> PASS img.crossOrigin: IDL set to "xuse-credentials" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to "xuse-credentials" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to "xuse-credentials" followed by IDL get assert_equals: expected "anonymous" but got "xuse-credentials"
</del><ins>+PASS img.crossOrigin: IDL set to "xuse-credentials" followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: IDL set to "use-credentials\0" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to "use-credentials\0" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to "use-credentials\0" followed by IDL get assert_equals: expected "anonymous" but got "use-credentials\0"
</del><ins>+PASS img.crossOrigin: IDL set to "use-credentials\0" followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: IDL set to "se-credentials" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to "se-credentials" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to "se-credentials" followed by IDL get assert_equals: expected "anonymous" but got "se-credentials"
</del><ins>+PASS img.crossOrigin: IDL set to "se-credentials" followed by IDL get
</ins><span class="cx"> PASS img.crossOrigin: IDL set to "USE-CREDENTIALS" should not throw
</span><span class="cx"> PASS img.crossOrigin: IDL set to "USE-CREDENTIALS" followed by getAttribute()
</span><del>-FAIL img.crossOrigin: IDL set to "USE-CREDENTIALS" followed by IDL get assert_equals: expected "use-credentials" but got "USE-CREDENTIALS"
</del><ins>+PASS img.crossOrigin: IDL set to "USE-CREDENTIALS" followed by IDL get
</ins><span class="cx"> PASS img.useMap: typeof IDL attribute
</span><span class="cx"> PASS img.useMap: IDL get with DOM attribute unset
</span><span class="cx"> PASS img.useMap: setAttribute() to "" followed by getAttribute()
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmldomreflectionmiscexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-misc-expected.txt (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-misc-expected.txt        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/dom/reflection-misc-expected.txt        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -1760,133 +1760,133 @@
</span><span class="cx"> PASS script.defer: IDL set to object "test-valueOf" should not throw
</span><span class="cx"> PASS script.defer: IDL set to object "test-valueOf" followed by hasAttribute()
</span><span class="cx"> PASS script.defer: IDL set to object "test-valueOf" followed by IDL get
</span><del>-FAIL script.crossOrigin: typeof IDL attribute assert_equals: expected "object" but got "string"
-FAIL script.crossOrigin: IDL get with DOM attribute unset assert_equals: expected (object) null but got (string) ""
</del><ins>+PASS script.crossOrigin: typeof IDL attribute
+PASS script.crossOrigin: IDL get with DOM attribute unset
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to "" followed by getAttribute()
</span><del>-FAIL script.crossOrigin: setAttribute() to "" followed by IDL get assert_equals: expected "anonymous" but got ""
</del><ins>+PASS script.crossOrigin: setAttribute() to "" followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: 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 " followed by getAttribute()
</span><del>-FAIL script.crossOrigin: 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 " followed by IDL get assert_equals: expected "anonymous" but got " \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 "
</del><ins>+PASS script.crossOrigin: 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 " followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to undefined followed by getAttribute()
</span><del>-FAIL script.crossOrigin: setAttribute() to undefined followed by IDL get assert_equals: expected "anonymous" but got "undefined"
</del><ins>+PASS script.crossOrigin: setAttribute() to undefined followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to 7 followed by getAttribute()
</span><del>-FAIL script.crossOrigin: setAttribute() to 7 followed by IDL get assert_equals: expected "anonymous" but got "7"
</del><ins>+PASS script.crossOrigin: setAttribute() to 7 followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to 1.5 followed by getAttribute()
</span><del>-FAIL script.crossOrigin: setAttribute() to 1.5 followed by IDL get assert_equals: expected "anonymous" but got "1.5"
</del><ins>+PASS script.crossOrigin: setAttribute() to 1.5 followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to true followed by getAttribute()
</span><del>-FAIL script.crossOrigin: setAttribute() to true followed by IDL get assert_equals: expected "anonymous" but got "true"
</del><ins>+PASS script.crossOrigin: setAttribute() to true followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to false followed by getAttribute()
</span><del>-FAIL script.crossOrigin: setAttribute() to false followed by IDL get assert_equals: expected "anonymous" but got "false"
</del><ins>+PASS script.crossOrigin: setAttribute() to false followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to object "[object Object]" followed by getAttribute()
</span><del>-FAIL script.crossOrigin: setAttribute() to object "[object Object]" followed by IDL get assert_equals: expected "anonymous" but got "[object Object]"
</del><ins>+PASS script.crossOrigin: setAttribute() to object "[object Object]" followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to NaN followed by getAttribute()
</span><del>-FAIL script.crossOrigin: setAttribute() to NaN followed by IDL get assert_equals: expected "anonymous" but got "NaN"
</del><ins>+PASS script.crossOrigin: setAttribute() to NaN followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to Infinity followed by getAttribute()
</span><del>-FAIL script.crossOrigin: setAttribute() to Infinity followed by IDL get assert_equals: expected "anonymous" but got "Infinity"
</del><ins>+PASS script.crossOrigin: setAttribute() to Infinity followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to -Infinity followed by getAttribute()
</span><del>-FAIL script.crossOrigin: setAttribute() to -Infinity followed by IDL get assert_equals: expected "anonymous" but got "-Infinity"
</del><ins>+PASS script.crossOrigin: setAttribute() to -Infinity followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to "\0" followed by getAttribute()
</span><del>-FAIL script.crossOrigin: setAttribute() to "\0" followed by IDL get assert_equals: expected "anonymous" but got "\0"
</del><ins>+PASS script.crossOrigin: setAttribute() to "\0" followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to null followed by getAttribute()
</span><del>-FAIL script.crossOrigin: setAttribute() to null followed by IDL get assert_equals: expected "anonymous" but got "null"
</del><ins>+PASS script.crossOrigin: setAttribute() to null followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to object "test-toString" followed by getAttribute()
</span><del>-FAIL script.crossOrigin: setAttribute() to object "test-toString" followed by IDL get assert_equals: expected "anonymous" but got "test-toString"
</del><ins>+PASS script.crossOrigin: setAttribute() to object "test-toString" followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to object "test-valueOf" followed by getAttribute()
</span><del>-FAIL script.crossOrigin: setAttribute() to object "test-valueOf" followed by IDL get assert_equals: expected "anonymous" but got "test-valueOf"
</del><ins>+PASS script.crossOrigin: setAttribute() to object "test-valueOf" followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to "anonymous" followed by getAttribute()
</span><span class="cx"> PASS script.crossOrigin: setAttribute() to "anonymous" followed by IDL get
</span><span class="cx"> PASS script.crossOrigin: setAttribute() to "xanonymous" followed by getAttribute()
</span><del>-FAIL script.crossOrigin: setAttribute() to "xanonymous" followed by IDL get assert_equals: expected "anonymous" but got "xanonymous"
</del><ins>+PASS script.crossOrigin: setAttribute() to "xanonymous" followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to "anonymous\0" followed by getAttribute()
</span><del>-FAIL script.crossOrigin: setAttribute() to "anonymous\0" followed by IDL get assert_equals: expected "anonymous" but got "anonymous\0"
</del><ins>+PASS script.crossOrigin: setAttribute() to "anonymous\0" followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to "nonymous" followed by getAttribute()
</span><del>-FAIL script.crossOrigin: setAttribute() to "nonymous" followed by IDL get assert_equals: expected "anonymous" but got "nonymous"
</del><ins>+PASS script.crossOrigin: setAttribute() to "nonymous" followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to "ANONYMOUS" followed by getAttribute()
</span><del>-FAIL script.crossOrigin: setAttribute() to "ANONYMOUS" followed by IDL get assert_equals: expected "anonymous" but got "ANONYMOUS"
</del><ins>+PASS script.crossOrigin: setAttribute() to "ANONYMOUS" followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to "use-credentials" followed by getAttribute()
</span><span class="cx"> PASS script.crossOrigin: setAttribute() to "use-credentials" followed by IDL get
</span><span class="cx"> PASS script.crossOrigin: setAttribute() to "xuse-credentials" followed by getAttribute()
</span><del>-FAIL script.crossOrigin: setAttribute() to "xuse-credentials" followed by IDL get assert_equals: expected "anonymous" but got "xuse-credentials"
</del><ins>+PASS script.crossOrigin: setAttribute() to "xuse-credentials" followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to "use-credentials\0" followed by getAttribute()
</span><del>-FAIL script.crossOrigin: setAttribute() to "use-credentials\0" followed by IDL get assert_equals: expected "anonymous" but got "use-credentials\0"
</del><ins>+PASS script.crossOrigin: setAttribute() to "use-credentials\0" followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to "se-credentials" followed by getAttribute()
</span><del>-FAIL script.crossOrigin: setAttribute() to "se-credentials" followed by IDL get assert_equals: expected "anonymous" but got "se-credentials"
</del><ins>+PASS script.crossOrigin: setAttribute() to "se-credentials" followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: setAttribute() to "USE-CREDENTIALS" followed by getAttribute()
</span><del>-FAIL script.crossOrigin: setAttribute() to "USE-CREDENTIALS" followed by IDL get assert_equals: expected "use-credentials" but got "USE-CREDENTIALS"
</del><ins>+PASS script.crossOrigin: setAttribute() to "USE-CREDENTIALS" followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: IDL set to "" should not throw
</span><span class="cx"> PASS script.crossOrigin: IDL set to "" followed by getAttribute()
</span><del>-FAIL script.crossOrigin: IDL set to "" followed by IDL get assert_equals: expected "anonymous" but got ""
</del><ins>+PASS script.crossOrigin: IDL set to "" followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: 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 " should not throw
</span><span class="cx"> PASS script.crossOrigin: 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 " followed by getAttribute()
</span><del>-FAIL script.crossOrigin: 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 " followed by IDL get assert_equals: expected "anonymous" but got " \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 "
</del><ins>+PASS script.crossOrigin: 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 " followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: IDL set to undefined should not throw
</span><del>-FAIL script.crossOrigin: IDL set to undefined followed by getAttribute() assert_equals: expected (object) null but got (string) "undefined"
-FAIL script.crossOrigin: IDL set to undefined followed by IDL get assert_equals: expected (object) null but got (string) "undefined"
</del><ins>+PASS script.crossOrigin: IDL set to undefined followed by getAttribute()
+PASS script.crossOrigin: IDL set to undefined followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: IDL set to 7 should not throw
</span><span class="cx"> PASS script.crossOrigin: IDL set to 7 followed by getAttribute()
</span><del>-FAIL script.crossOrigin: IDL set to 7 followed by IDL get assert_equals: expected "anonymous" but got "7"
</del><ins>+PASS script.crossOrigin: IDL set to 7 followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: IDL set to 1.5 should not throw
</span><span class="cx"> PASS script.crossOrigin: IDL set to 1.5 followed by getAttribute()
</span><del>-FAIL script.crossOrigin: IDL set to 1.5 followed by IDL get assert_equals: expected "anonymous" but got "1.5"
</del><ins>+PASS script.crossOrigin: IDL set to 1.5 followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: IDL set to true should not throw
</span><span class="cx"> PASS script.crossOrigin: IDL set to true followed by getAttribute()
</span><del>-FAIL script.crossOrigin: IDL set to true followed by IDL get assert_equals: expected "anonymous" but got "true"
</del><ins>+PASS script.crossOrigin: IDL set to true followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: IDL set to false should not throw
</span><span class="cx"> PASS script.crossOrigin: IDL set to false followed by getAttribute()
</span><del>-FAIL script.crossOrigin: IDL set to false followed by IDL get assert_equals: expected "anonymous" but got "false"
</del><ins>+PASS script.crossOrigin: IDL set to false followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: IDL set to object "[object Object]" should not throw
</span><span class="cx"> PASS script.crossOrigin: IDL set to object "[object Object]" followed by getAttribute()
</span><del>-FAIL script.crossOrigin: IDL set to object "[object Object]" followed by IDL get assert_equals: expected "anonymous" but got "[object Object]"
</del><ins>+PASS script.crossOrigin: IDL set to object "[object Object]" followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: IDL set to NaN should not throw
</span><span class="cx"> PASS script.crossOrigin: IDL set to NaN followed by getAttribute()
</span><del>-FAIL script.crossOrigin: IDL set to NaN followed by IDL get assert_equals: expected "anonymous" but got "NaN"
</del><ins>+PASS script.crossOrigin: IDL set to NaN followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: IDL set to Infinity should not throw
</span><span class="cx"> PASS script.crossOrigin: IDL set to Infinity followed by getAttribute()
</span><del>-FAIL script.crossOrigin: IDL set to Infinity followed by IDL get assert_equals: expected "anonymous" but got "Infinity"
</del><ins>+PASS script.crossOrigin: IDL set to Infinity followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: IDL set to -Infinity should not throw
</span><span class="cx"> PASS script.crossOrigin: IDL set to -Infinity followed by getAttribute()
</span><del>-FAIL script.crossOrigin: IDL set to -Infinity followed by IDL get assert_equals: expected "anonymous" but got "-Infinity"
</del><ins>+PASS script.crossOrigin: IDL set to -Infinity followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: IDL set to "\0" should not throw
</span><span class="cx"> PASS script.crossOrigin: IDL set to "\0" followed by getAttribute()
</span><del>-FAIL script.crossOrigin: IDL set to "\0" followed by IDL get assert_equals: expected "anonymous" but got "\0"
</del><ins>+PASS script.crossOrigin: IDL set to "\0" followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: IDL set to null should not throw
</span><del>-FAIL script.crossOrigin: IDL set to null followed by getAttribute() assert_equals: expected (object) null but got (string) "null"
-FAIL script.crossOrigin: IDL set to null followed by IDL get assert_equals: expected (object) null but got (string) "null"
</del><ins>+PASS script.crossOrigin: IDL set to null followed by getAttribute()
+PASS script.crossOrigin: IDL set to null followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: IDL set to object "test-toString" should not throw
</span><span class="cx"> PASS script.crossOrigin: IDL set to object "test-toString" followed by getAttribute()
</span><del>-FAIL script.crossOrigin: IDL set to object "test-toString" followed by IDL get assert_equals: expected "anonymous" but got "test-toString"
</del><ins>+PASS script.crossOrigin: IDL set to object "test-toString" followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: IDL set to object "test-valueOf" should not throw
</span><span class="cx"> PASS script.crossOrigin: IDL set to object "test-valueOf" followed by getAttribute()
</span><del>-FAIL script.crossOrigin: IDL set to object "test-valueOf" followed by IDL get assert_equals: expected "anonymous" but got "test-valueOf"
</del><ins>+PASS script.crossOrigin: IDL set to object "test-valueOf" followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: IDL set to "anonymous" should not throw
</span><span class="cx"> PASS script.crossOrigin: IDL set to "anonymous" followed by getAttribute()
</span><span class="cx"> PASS script.crossOrigin: IDL set to "anonymous" followed by IDL get
</span><span class="cx"> PASS script.crossOrigin: IDL set to "xanonymous" should not throw
</span><span class="cx"> PASS script.crossOrigin: IDL set to "xanonymous" followed by getAttribute()
</span><del>-FAIL script.crossOrigin: IDL set to "xanonymous" followed by IDL get assert_equals: expected "anonymous" but got "xanonymous"
</del><ins>+PASS script.crossOrigin: IDL set to "xanonymous" followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: IDL set to "anonymous\0" should not throw
</span><span class="cx"> PASS script.crossOrigin: IDL set to "anonymous\0" followed by getAttribute()
</span><del>-FAIL script.crossOrigin: IDL set to "anonymous\0" followed by IDL get assert_equals: expected "anonymous" but got "anonymous\0"
</del><ins>+PASS script.crossOrigin: IDL set to "anonymous\0" followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: IDL set to "nonymous" should not throw
</span><span class="cx"> PASS script.crossOrigin: IDL set to "nonymous" followed by getAttribute()
</span><del>-FAIL script.crossOrigin: IDL set to "nonymous" followed by IDL get assert_equals: expected "anonymous" but got "nonymous"
</del><ins>+PASS script.crossOrigin: IDL set to "nonymous" followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: IDL set to "ANONYMOUS" should not throw
</span><span class="cx"> PASS script.crossOrigin: IDL set to "ANONYMOUS" followed by getAttribute()
</span><del>-FAIL script.crossOrigin: IDL set to "ANONYMOUS" followed by IDL get assert_equals: expected "anonymous" but got "ANONYMOUS"
</del><ins>+PASS script.crossOrigin: IDL set to "ANONYMOUS" followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: IDL set to "use-credentials" should not throw
</span><span class="cx"> PASS script.crossOrigin: IDL set to "use-credentials" followed by getAttribute()
</span><span class="cx"> PASS script.crossOrigin: IDL set to "use-credentials" followed by IDL get
</span><span class="cx"> PASS script.crossOrigin: IDL set to "xuse-credentials" should not throw
</span><span class="cx"> PASS script.crossOrigin: IDL set to "xuse-credentials" followed by getAttribute()
</span><del>-FAIL script.crossOrigin: IDL set to "xuse-credentials" followed by IDL get assert_equals: expected "anonymous" but got "xuse-credentials"
</del><ins>+PASS script.crossOrigin: IDL set to "xuse-credentials" followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: IDL set to "use-credentials\0" should not throw
</span><span class="cx"> PASS script.crossOrigin: IDL set to "use-credentials\0" followed by getAttribute()
</span><del>-FAIL script.crossOrigin: IDL set to "use-credentials\0" followed by IDL get assert_equals: expected "anonymous" but got "use-credentials\0"
</del><ins>+PASS script.crossOrigin: IDL set to "use-credentials\0" followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: IDL set to "se-credentials" should not throw
</span><span class="cx"> PASS script.crossOrigin: IDL set to "se-credentials" followed by getAttribute()
</span><del>-FAIL script.crossOrigin: IDL set to "se-credentials" followed by IDL get assert_equals: expected "anonymous" but got "se-credentials"
</del><ins>+PASS script.crossOrigin: IDL set to "se-credentials" followed by IDL get
</ins><span class="cx"> PASS script.crossOrigin: IDL set to "USE-CREDENTIALS" should not throw
</span><span class="cx"> PASS script.crossOrigin: IDL set to "USE-CREDENTIALS" followed by getAttribute()
</span><del>-FAIL script.crossOrigin: IDL set to "USE-CREDENTIALS" followed by IDL get assert_equals: expected "use-credentials" but got "USE-CREDENTIALS"
</del><ins>+PASS script.crossOrigin: IDL set to "USE-CREDENTIALS" followed by IDL get
</ins><span class="cx"> FAIL script.itemScope: typeof IDL attribute assert_equals: expected "boolean" but got "undefined"
</span><span class="cx"> FAIL script.itemScope: IDL get with DOM attribute unset assert_equals: expected (boolean) false but got (undefined) undefined
</span><span class="cx"> PASS script.itemScope: setAttribute() to "" followed by getAttribute()
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/ChangeLog        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -1,5 +1,48 @@
</span><span class="cx"> 2016-02-21 Chris Dumez <cdumez@apple.com>
</span><span class="cx">
</span><ins>+ HTMLScriptElement.crossOrigin / HTMLImageElement.crossOrigin should only return known values
+ https://bugs.webkit.org/show_bug.cgi?id=154502
+
+ Reviewed by Darin Adler.
+
+ HTMLScriptElement.crossOrigin / HTMLImageElement.crossOrigin should only
+ return known values and should be nullable as per the specification:
+ - https://html.spec.whatwg.org/multipage/scripting.html#attr-script-crossorigin
+ - https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-crossorigin
+ - https://html.spec.whatwg.org/multipage/infrastructure.html#cors-settings-attribute
+
+ This aligns our behavior with the HTML specification and Firefox.
+
+ No new tests, already covered by existing tests.
+
+ * bindings/scripts/CodeGeneratorJS.pm:
+ Add support for nullable DOMString attributes. If such attribute is
+ marked as nullable:
+ - A null string is passed to the implementation if the setter is called
+ with null/undefined.
+ - null is returned to the Javascript if the getter implementation
+ returns a null string.
+
+ * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp:
+ * bindings/scripts/test/GObject/WebKitDOMTestObj.h:
+ * bindings/scripts/test/JS/JSTestObj.cpp:
+ * bindings/scripts/test/ObjC/DOMTestObj.h:
+ * bindings/scripts/test/ObjC/DOMTestObj.mm:
+ * bindings/scripts/test/TestObj.idl:
+ Add test coverage for nullable DOMString attributes
+ and rebaseline bindings tests.
+
+ * html/HTMLImageElement.cpp:
+ * html/HTMLImageElement.h:
+ * html/HTMLImageElement.idl:
+ * html/HTMLScriptElement.cpp:
+ * html/HTMLScriptElement.h:
+ * html/HTMLScriptElement.idl:
+ * html/parser/HTMLParserIdioms.cpp:
+ * html/parser/HTMLParserIdioms.h:
+
+2016-02-21 Chris Dumez <cdumez@apple.com>
+
</ins><span class="cx"> Make HTMLSelectElement.size behave as per the specification
</span><span class="cx"> https://bugs.webkit.org/show_bug.cgi?id=154504
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptsCodeGeneratorJSpm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -4075,6 +4075,9 @@
</span><span class="cx"> if ($signature->extendedAttributes->{"TreatNullAs"} and $signature->extendedAttributes->{"TreatNullAs"} eq "NullString") {
</span><span class="cx"> return "valueToStringWithNullCheck(state, $value)"
</span><span class="cx"> }
</span><ins>+ if ($signature->isNullable) {
+ return "valueToStringWithUndefinedOrNullCheck(state, $value)";
+ }
</ins><span class="cx"> if ($signature->extendedAttributes->{"AtomicString"}) {
</span><span class="cx"> return "$value.toString(state)->toAtomicString(state)";
</span><span class="cx"> }
</span><span class="lines">@@ -4190,6 +4193,7 @@
</span><span class="cx">
</span><span class="cx"> die "Unknown value for TreatReturnedNullStringAs extended attribute";
</span><span class="cx"> }
</span><ins>+ return "jsStringOrNull(state, $value)" if $signature->isNullable;
</ins><span class="cx"> AddToImplIncludes("<runtime/JSString.h>", $conditional);
</span><span class="cx"> return "jsStringWithCache(state, $value)";
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestGObjectWebKitDOMTestObjcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.cpp (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.cpp        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.cpp        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -137,6 +137,7 @@
</span><span class="cx"> PROP_NULLABLE_BOOLEAN_ATTRIBUTE,
</span><span class="cx"> PROP_NULLABLE_STRING_ATTRIBUTE,
</span><span class="cx"> PROP_NULLABLE_LONG_SETTABLE_ATTRIBUTE,
</span><ins>+ PROP_NULLABLE_STRING_SETTABLE_ATTRIBUTE,
</ins><span class="cx"> PROP_NULLABLE_STRING_VALUE,
</span><span class="cx"> PROP_ATTRIBUTE,
</span><span class="cx"> PROP_PUT_FORWARDS_ATTRIBUTE,
</span><span class="lines">@@ -251,6 +252,9 @@
</span><span class="cx"> case PROP_NULLABLE_LONG_SETTABLE_ATTRIBUTE:
</span><span class="cx"> webkit_dom_test_obj_set_nullable_long_settable_attribute(self, g_value_get_long(value));
</span><span class="cx"> break;
</span><ins>+ case PROP_NULLABLE_STRING_SETTABLE_ATTRIBUTE:
+ webkit_dom_test_obj_set_nullable_string_settable_attribute(self, g_value_get_string(value));
+ break;
</ins><span class="cx"> case PROP_NULLABLE_STRING_VALUE:
</span><span class="cx"> webkit_dom_test_obj_set_nullable_string_value(self, g_value_get_long(value));
</span><span class="cx"> break;
</span><span class="lines">@@ -442,6 +446,9 @@
</span><span class="cx"> case PROP_NULLABLE_LONG_SETTABLE_ATTRIBUTE:
</span><span class="cx"> g_value_set_long(value, webkit_dom_test_obj_get_nullable_long_settable_attribute(self));
</span><span class="cx"> break;
</span><ins>+ case PROP_NULLABLE_STRING_SETTABLE_ATTRIBUTE:
+ g_value_take_string(value, webkit_dom_test_obj_get_nullable_string_settable_attribute(self));
+ break;
</ins><span class="cx"> case PROP_NULLABLE_STRING_VALUE:
</span><span class="cx"> g_value_set_long(value, webkit_dom_test_obj_get_nullable_string_value(self, nullptr));
</span><span class="cx"> break;
</span><span class="lines">@@ -1072,6 +1079,16 @@
</span><span class="cx">
</span><span class="cx"> g_object_class_install_property(
</span><span class="cx"> gobjectClass,
</span><ins>+ PROP_NULLABLE_STRING_SETTABLE_ATTRIBUTE,
+ g_param_spec_string(
+ "nullable-string-settable-attribute",
+ "TestObj:nullable-string-settable-attribute",
+ "read-write gchar* TestObj:nullable-string-settable-attribute",
+ "",
+ WEBKIT_PARAM_READWRITE));
+
+ g_object_class_install_property(
+ gobjectClass,
</ins><span class="cx"> PROP_NULLABLE_STRING_VALUE,
</span><span class="cx"> g_param_spec_long(
</span><span class="cx"> "nullable-string-value",
</span><span class="lines">@@ -2604,6 +2621,25 @@
</span><span class="cx"> item->setNullableLongSettableAttribute(value);
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+gchar* webkit_dom_test_obj_get_nullable_string_settable_attribute(WebKitDOMTestObj* self)
+{
+ WebCore::JSMainThreadNullState state;
+ g_return_val_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self), 0);
+ WebCore::TestObj* item = WebKit::core(self);
+ gchar* result = convertToUTF8String(item->nullableStringSettableAttribute());
+ return result;
+}
+
+void webkit_dom_test_obj_set_nullable_string_settable_attribute(WebKitDOMTestObj* self, const gchar* value)
+{
+ WebCore::JSMainThreadNullState state;
+ g_return_if_fail(WEBKIT_DOM_IS_TEST_OBJ(self));
+ g_return_if_fail(value);
+ WebCore::TestObj* item = WebKit::core(self);
+ WTF::String convertedValue = WTF::String::fromUTF8(value);
+ item->setNullableStringSettableAttribute(convertedValue);
+}
+
</ins><span class="cx"> glong webkit_dom_test_obj_get_nullable_string_value(WebKitDOMTestObj* self, GError** error)
</span><span class="cx"> {
</span><span class="cx"> WebCore::JSMainThreadNullState state;
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestGObjectWebKitDOMTestObjh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.h (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.h        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.h        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -1685,6 +1685,27 @@
</span><span class="cx"> webkit_dom_test_obj_set_nullable_long_settable_attribute(WebKitDOMTestObj* self, glong value);
</span><span class="cx">
</span><span class="cx"> /**
</span><ins>+ * webkit_dom_test_obj_get_nullable_string_settable_attribute:
+ * @self: A #WebKitDOMTestObj
+ *
+ * Returns: A #gchar
+ *
+ * Stability: Unstable
+**/
+WEBKIT_API gchar*
+webkit_dom_test_obj_get_nullable_string_settable_attribute(WebKitDOMTestObj* self);
+
+/**
+ * webkit_dom_test_obj_set_nullable_string_settable_attribute:
+ * @self: A #WebKitDOMTestObj
+ * @value: A #gchar
+ *
+ * Stability: Unstable
+**/
+WEBKIT_API void
+webkit_dom_test_obj_set_nullable_string_settable_attribute(WebKitDOMTestObj* self, const gchar* value);
+
+/**
</ins><span class="cx"> * webkit_dom_test_obj_get_nullable_string_value:
</span><span class="cx"> * @self: A #WebKitDOMTestObj
</span><span class="cx"> * @error: #GError
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestObjcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -325,6 +325,8 @@
</span><span class="cx"> JSC::EncodedJSValue jsTestObjNullableStringAttribute(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
</span><span class="cx"> JSC::EncodedJSValue jsTestObjNullableLongSettableAttribute(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
</span><span class="cx"> void setJSTestObjNullableLongSettableAttribute(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
</span><ins>+JSC::EncodedJSValue jsTestObjNullableStringSettableAttribute(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
+void setJSTestObjNullableStringSettableAttribute(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
</ins><span class="cx"> JSC::EncodedJSValue jsTestObjNullableStringValue(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
</span><span class="cx"> void setJSTestObjNullableStringValue(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
</span><span class="cx"> JSC::EncodedJSValue jsTestObjAttribute(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
</span><span class="lines">@@ -587,6 +589,7 @@
</span><span class="cx"> { "nullableBooleanAttribute", ReadOnly | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjNullableBooleanAttribute), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } },
</span><span class="cx"> { "nullableStringAttribute", ReadOnly | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjNullableStringAttribute), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } },
</span><span class="cx"> { "nullableLongSettableAttribute", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjNullableLongSettableAttribute), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSTestObjNullableLongSettableAttribute) } },
</span><ins>+ { "nullableStringSettableAttribute", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjNullableStringSettableAttribute), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSTestObjNullableStringSettableAttribute) } },
</ins><span class="cx"> { "nullableStringValue", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjNullableStringValue), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSTestObjNullableStringValue) } },
</span><span class="cx"> { "attribute", ReadOnly | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjAttribute), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } },
</span><span class="cx"> { "attributeWithReservedEnumType", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestObjAttributeWithReservedEnumType), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSTestObjAttributeWithReservedEnumType) } },
</span><span class="lines">@@ -1861,7 +1864,7 @@
</span><span class="cx"> return throwGetterTypeError(*state, "TestObj", "nullableStringAttribute");
</span><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><del>- JSValue result = jsStringWithCache(state, impl.nullableStringAttribute());
</del><ins>+ JSValue result = jsStringOrNull(state, impl.nullableStringAttribute());
</ins><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -1881,6 +1884,21 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><ins>+EncodedJSValue jsTestObjNullableStringSettableAttribute(ExecState* state, EncodedJSValue thisValue, PropertyName)
+{
+ UNUSED_PARAM(state);
+ UNUSED_PARAM(thisValue);
+ JSValue decodedThisValue = JSValue::decode(thisValue);
+ auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
+ if (UNLIKELY(!castedThis)) {
+ return throwGetterTypeError(*state, "TestObj", "nullableStringSettableAttribute");
+ }
+ auto& impl = castedThis->wrapped();
+ JSValue result = jsStringOrNull(state, impl.nullableStringSettableAttribute());
+ return JSValue::encode(result);
+}
+
+
</ins><span class="cx"> EncodedJSValue jsTestObjNullableStringValue(ExecState* state, EncodedJSValue thisValue, PropertyName)
</span><span class="cx"> {
</span><span class="cx"> UNUSED_PARAM(state);
</span><span class="lines">@@ -2955,6 +2973,23 @@
</span><span class="cx"> }
</span><span class="cx">
</span><span class="cx">
</span><ins>+void setJSTestObjNullableStringSettableAttribute(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
+{
+ JSValue value = JSValue::decode(encodedValue);
+ UNUSED_PARAM(thisValue);
+ JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
+ if (UNLIKELY(!castedThis)) {
+ throwSetterTypeError(*state, "TestObj", "nullableStringSettableAttribute");
+ return;
+ }
+ auto& impl = castedThis->wrapped();
+ String nativeValue = valueToStringWithUndefinedOrNullCheck(state, value);
+ if (UNLIKELY(state->hadException()))
+ return;
+ impl.setNullableStringSettableAttribute(nativeValue);
+}
+
+
</ins><span class="cx"> void setJSTestObjNullableStringValue(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
</span><span class="cx"> {
</span><span class="cx"> JSValue value = JSValue::decode(encodedValue);
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestObjCDOMTestObjh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.h        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -126,6 +126,7 @@
</span><span class="cx"> @property (readonly) BOOL nullableBooleanAttribute;
</span><span class="cx"> @property (readonly, copy) NSString *nullableStringAttribute;
</span><span class="cx"> @property int nullableLongSettableAttribute;
</span><ins>+@property (copy) NSString *nullableStringSettableAttribute;
</ins><span class="cx"> @property int nullableStringValue;
</span><span class="cx"> @property (readonly, copy) NSString *attribute;
</span><span class="cx"> @property (readonly, strong) DOMTestNode *putForwardsAttribute;
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestObjCDOMTestObjmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/bindings/scripts/test/ObjC/DOMTestObj.mm        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -870,6 +870,18 @@
</span><span class="cx"> IMPL->setNullableLongSettableAttribute(newNullableLongSettableAttribute);
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+- (NSString *)nullableStringSettableAttribute
+{
+ WebCore::JSMainThreadNullState state;
+ return IMPL->nullableStringSettableAttribute();
+}
+
+- (void)setNullableStringSettableAttribute:(NSString *)newNullableStringSettableAttribute
+{
+ WebCore::JSMainThreadNullState state;
+ IMPL->setNullableStringSettableAttribute(newNullableStringSettableAttribute);
+}
+
</ins><span class="cx"> - (int)nullableStringValue
</span><span class="cx"> {
</span><span class="cx"> WebCore::JSMainThreadNullState state;
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestTestObjidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/TestObj.idl (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/TestObj.idl        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/bindings/scripts/test/TestObj.idl        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -304,6 +304,7 @@
</span><span class="cx"> readonly attribute DOMString? nullableStringAttribute;
</span><span class="cx">
</span><span class="cx"> attribute long? nullableLongSettableAttribute;
</span><ins>+ attribute DOMString? nullableStringSettableAttribute;
</ins><span class="cx">
</span><span class="cx"> [GetterRaisesException] attribute long? nullableStringValue;
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLImageElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLImageElement.cpp (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLImageElement.cpp        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/html/HTMLImageElement.cpp        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -567,6 +567,16 @@
</span><span class="cx"> return document().completeURL(stripLeadingAndTrailingHTMLSpaces(usemap)).isEmpty();
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+void HTMLImageElement::setCrossOrigin(const AtomicString& value)
+{
+ setAttributeWithoutSynchronization(crossoriginAttr, value);
+}
+
+String HTMLImageElement::crossOrigin() const
+{
+ return parseCORSSettingsAttribute(fastGetAttribute(crossoriginAttr));
+}
+
</ins><span class="cx"> #if ENABLE(SERVICE_CONTROLS)
</span><span class="cx"> void HTMLImageElement::updateImageControls()
</span><span class="cx"> {
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLImageElementh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLImageElement.h (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLImageElement.h        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/html/HTMLImageElement.h        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -69,6 +69,9 @@
</span><span class="cx"> URL src() const;
</span><span class="cx"> void setSrc(const String&);
</span><span class="cx">
</span><ins>+ void setCrossOrigin(const AtomicString&);
+ String crossOrigin() const;
+
</ins><span class="cx"> void setWidth(int);
</span><span class="cx">
</span><span class="cx"> int x() const;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLImageElementidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLImageElement.idl (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLImageElement.idl        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/html/HTMLImageElement.idl        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -25,7 +25,7 @@
</span><span class="cx"> [Reflect] attribute DOMString align;
</span><span class="cx"> [Reflect] attribute DOMString alt;
</span><span class="cx"> [Reflect] attribute DOMString border;
</span><del>- [Reflect] attribute DOMString crossOrigin;
</del><ins>+ attribute DOMString? crossOrigin;
</ins><span class="cx"> attribute long height;
</span><span class="cx"> [Reflect] attribute long hspace;
</span><span class="cx"> [Reflect] attribute boolean isMap;
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLScriptElementcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLScriptElement.cpp (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLScriptElement.cpp        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/html/HTMLScriptElement.cpp        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -27,6 +27,7 @@
</span><span class="cx"> #include "Event.h"
</span><span class="cx"> #include "EventNames.h"
</span><span class="cx"> #include "HTMLNames.h"
</span><ins>+#include "HTMLParserIdioms.h"
</ins><span class="cx"> #include "Text.h"
</span><span class="cx"> #include <wtf/Ref.h>
</span><span class="cx">
</span><span class="lines">@@ -104,6 +105,16 @@
</span><span class="cx"> return fastHasAttribute(asyncAttr) || forceAsync();
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+void HTMLScriptElement::setCrossOrigin(const AtomicString& value)
+{
+ setAttributeWithoutSynchronization(crossoriginAttr, value);
+}
+
+String HTMLScriptElement::crossOrigin() const
+{
+ return parseCORSSettingsAttribute(fastGetAttribute(crossoriginAttr));
+}
+
</ins><span class="cx"> URL HTMLScriptElement::src() const
</span><span class="cx"> {
</span><span class="cx"> return document().completeURL(sourceAttributeValue());
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLScriptElementh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLScriptElement.h (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLScriptElement.h        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/html/HTMLScriptElement.h        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -41,6 +41,9 @@
</span><span class="cx"> void setAsync(bool);
</span><span class="cx"> bool async() const;
</span><span class="cx">
</span><ins>+ void setCrossOrigin(const AtomicString&);
+ String crossOrigin() const;
+
</ins><span class="cx"> private:
</span><span class="cx"> HTMLScriptElement(const QualifiedName&, Document&, bool wasInsertedByParser, bool alreadyStarted);
</span><span class="cx">
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlHTMLScriptElementidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/HTMLScriptElement.idl (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/HTMLScriptElement.idl        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/html/HTMLScriptElement.idl        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -26,6 +26,6 @@
</span><span class="cx"> [Reflect] attribute boolean defer;
</span><span class="cx"> [Reflect, URL] attribute DOMString src;
</span><span class="cx"> [Reflect] attribute DOMString type;
</span><del>- [Reflect] attribute DOMString crossOrigin;
</del><ins>+ attribute DOMString? crossOrigin;
</ins><span class="cx"> [Reflect, Conditional=CSP_NEXT] attribute DOMString nonce;
</span><span class="cx"> };
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlparserHTMLParserIdiomscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/parser/HTMLParserIdioms.cpp (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/parser/HTMLParserIdioms.cpp        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/html/parser/HTMLParserIdioms.cpp        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -30,6 +30,7 @@
</span><span class="cx"> #include "URL.h"
</span><span class="cx"> #include <limits>
</span><span class="cx"> #include <wtf/MathExtras.h>
</span><ins>+#include <wtf/NeverDestroyed.h>
</ins><span class="cx"> #include <wtf/text/StringBuilder.h>
</span><span class="cx">
</span><span class="cx"> namespace WebCore {
</span><span class="lines">@@ -290,4 +291,13 @@
</span><span class="cx"> return threadSafeEqual(*a.localName().impl(), *b.localName().impl());
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+String parseCORSSettingsAttribute(const AtomicString& value)
+{
+ if (value.isNull())
+ return String();
+ if (equalIgnoringASCIICase(value, "use-credentials"))
+ return ASCIILiteral("use-credentials");
+ return ASCIILiteral("anonymous");
</ins><span class="cx"> }
</span><ins>+
+}
</ins></span></pre></div>
<a id="trunkSourceWebCorehtmlparserHTMLParserIdiomsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/parser/HTMLParserIdioms.h (196893 => 196894)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/parser/HTMLParserIdioms.h        2016-02-22 05:52:07 UTC (rev 196893)
+++ trunk/Source/WebCore/html/parser/HTMLParserIdioms.h        2016-02-22 06:28:42 UTC (rev 196894)
</span><span class="lines">@@ -62,6 +62,9 @@
</span><span class="cx"> // http://www.whatwg.org/specs/web-apps/current-work/#rules-for-parsing-non-negative-integers
</span><span class="cx"> bool parseHTMLNonNegativeInteger(const String&, unsigned int&);
</span><span class="cx">
</span><ins>+// https://html.spec.whatwg.org/multipage/infrastructure.html#cors-settings-attribute
+String parseCORSSettingsAttribute(const AtomicString&);
+
</ins><span class="cx"> bool threadSafeMatch(const QualifiedName&, const QualifiedName&);
</span><span class="cx">
</span><span class="cx"> // Inline implementations of some of the functions declared above.
</span></span></pre>
</div>
</div>
</body>
</html>