<!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>[206874] trunk/LayoutTests/imported/w3c</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/206874">206874</a></dd>
<dt>Author</dt> <dd>cdumez@apple.com</dd>
<dt>Date</dt> <dd>2016-10-06 12:17:44 -0700 (Thu, 06 Oct 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Import html/webappapis web platform tests
https://bugs.webkit.org/show_bug.cgi?id=163018

Reviewed by Youenn Fablet.

Import html/webappapis web platform tests from upstream to extend test
coverage.

* resources/resource-files.json:
* web-platform-tests/html/webappapis/animation-frames/callback-exception-expected.txt: Added.
* web-platform-tests/html/webappapis/animation-frames/callback-exception.html: Added.
* web-platform-tests/html/webappapis/animation-frames/callback-invoked-expected.txt: Added.
* web-platform-tests/html/webappapis/animation-frames/callback-invoked.html: Added.
* web-platform-tests/html/webappapis/animation-frames/callback-multicalls-expected.txt: Added.
* web-platform-tests/html/webappapis/animation-frames/callback-multicalls.html: Added.
* web-platform-tests/html/webappapis/animation-frames/cancel-invoked-expected.txt: Added.
* web-platform-tests/html/webappapis/animation-frames/cancel-invoked.html: Added.
* web-platform-tests/html/webappapis/animation-frames/idlharness-expected.txt: Added.
* web-platform-tests/html/webappapis/animation-frames/idlharness.html: Added.
* web-platform-tests/html/webappapis/animation-frames/same-dispatch-time-expected.txt: Added.
* web-platform-tests/html/webappapis/animation-frames/same-dispatch-time.html: Added.
* web-platform-tests/html/webappapis/animation-frames/w3c-import.log: Added.
* web-platform-tests/html/webappapis/atob/base64-expected.txt: Added.
* web-platform-tests/html/webappapis/atob/base64.html: Added.
* web-platform-tests/html/webappapis/atob/w3c-import.log: Added.
* web-platform-tests/html/webappapis/scripting/event-loops/contains.json: Added.
* web-platform-tests/html/webappapis/scripting/event-loops/microtask_after_script-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/event-loops/microtask_after_script.html: Added.
* web-platform-tests/html/webappapis/scripting/event-loops/resources/common.js: Added.
(log_test):
* web-platform-tests/html/webappapis/scripting/event-loops/resources/w3c-import.log: Added.
* web-platform-tests/html/webappapis/scripting/event-loops/task_microtask_ordering-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/event-loops/task_microtask_ordering.html: Added.
* web-platform-tests/html/webappapis/scripting/event-loops/w3c-import.log: Added.
* web-platform-tests/html/webappapis/scripting/events/body-onload-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/events/body-onload.html: Added.
* web-platform-tests/html/webappapis/scripting/events/contains.json: Added.
* web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window.html: Added.
* web-platform-tests/html/webappapis/scripting/events/event-handler-javascript-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/events/event-handler-javascript.html: Added.
* web-platform-tests/html/webappapis/scripting/events/event-handler-onresize-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/events/event-handler-onresize.html: Added.
* web-platform-tests/html/webappapis/scripting/events/event-handler-processing-algorithm-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/events/event-handler-processing-algorithm.html: Added.
* web-platform-tests/html/webappapis/scripting/events/event-handler-spec-example-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/events/event-handler-spec-example.html: Added.
* web-platform-tests/html/webappapis/scripting/events/inline-event-handler-ordering-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/events/inline-event-handler-ordering.html: Added.
* web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-late-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-late.html: Added.
* web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-once-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-once.html: Added.
* web-platform-tests/html/webappapis/scripting/events/onerroreventhandler-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/events/onerroreventhandler-frame.html: Added.
* web-platform-tests/html/webappapis/scripting/events/onerroreventhandler.html: Added.
* web-platform-tests/html/webappapis/scripting/events/w3c-import.log: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/addEventListener-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/addEventListener.html: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-compile-error-data-url-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-compile-error-data-url.html: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-compile-error-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-compile-error.html: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-runtime-error-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-runtime-error.html: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-cross-origin-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-cross-origin.html: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-data-url-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-data-url.html: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-attribute-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-attribute.html: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-body-onerror-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-body-onerror.html: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-setInterval-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-setInterval.html: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-setTimeout-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-setTimeout.html: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-same-origin-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-same-origin.html: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error.html: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/contains.json: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-cross-origin-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-cross-origin.html: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-data-url-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-data-url.html: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-attribute-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-attribute.html: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-body-onerror-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-body-onerror.html: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-setInterval-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-setInterval.html: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-setTimeout-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-setTimeout.html: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-window-onerror-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-window-onerror.html: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-same-origin-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-same-origin.html: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error.html: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/support/syntax-error-in-setInterval.js: Added.
(setTimeout):
* web-platform-tests/html/webappapis/scripting/processing-model-2/support/syntax-error-in-setTimeout.js: Added.
(setTimeout):
* web-platform-tests/html/webappapis/scripting/processing-model-2/support/syntax-error.js: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/support/undefined-variable-in-setInterval.js: Added.
(setTimeout):
* web-platform-tests/html/webappapis/scripting/processing-model-2/support/undefined-variable-in-setTimeout.js: Added.
(setTimeout):
* web-platform-tests/html/webappapis/scripting/processing-model-2/support/undefined-variable.js: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/support/w3c-import.log: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/w3c-import.log: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-parse-error-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-parse-error.html: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-runtime-error-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-runtime-error-throw-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-runtime-error-throw.html: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-runtime-error.html: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-1-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-1.html: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-2-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-2.html: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-3-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-3.html: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-4-expected.txt: Added.
* web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-4.html: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID-expected.txt: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID.html: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID.js: Added.
(run_test.):
(run_test):
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID.worker.js: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/contains.json: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content-expected.txt: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content.html: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/001-expected.txt: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/001.xhtml: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/002-expected.txt: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/002.xhtml: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/003-expected.txt: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/003.xhtml: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/004-expected.txt: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/004.xhtml: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/005-expected.txt: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/005.xhtml: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/006-expected.txt: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/006.xhtml: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/w3c-import.log: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigator-indexed-expected.txt: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigator-indexed.html: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigatorlanguage-expected.txt: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigatorlanguage.html: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol-expected.txt: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol.html: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/001-expected.txt: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/001.xhtml: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/002-expected.txt: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/002.xhtml: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/003-expected.txt: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/003.xhtml: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/004-expected.txt: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/004.xhtml: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/005-expected.txt: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/005.xhtml: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/006-expected.txt: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/006.xhtml: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/w3c-import.log: Added.
* web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/w3c-import.log: Added.
* web-platform-tests/html/webappapis/timers/evil-spec-example-expected.txt: Added.
* web-platform-tests/html/webappapis/timers/evil-spec-example.html: Added.
* web-platform-tests/html/webappapis/timers/w3c-import.log: Added.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsimportedw3cChangeLog">trunk/LayoutTests/imported/w3c/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsimportedw3cresourcesresourcefilesjson">trunk/LayoutTests/imported/w3c/resources/resource-files.json</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li>trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/</li>
<li>trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/</li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisanimationframescallbackexceptionexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/callback-exception-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisanimationframescallbackexceptionhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/callback-exception.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisanimationframescallbackinvokedexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/callback-invoked-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisanimationframescallbackinvokedhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/callback-invoked.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisanimationframescallbackmulticallsexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/callback-multicalls-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisanimationframescallbackmulticallshtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/callback-multicalls.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisanimationframescancelinvokedexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/cancel-invoked-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisanimationframescancelinvokedhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/cancel-invoked.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisanimationframesidlharnessexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/idlharness-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisanimationframesidlharnesshtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/idlharness.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisanimationframessamedispatchtimeexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/same-dispatch-time-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisanimationframessamedispatchtimehtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/same-dispatch-time.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisanimationframesw3cimportlog">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/w3c-import.log</a></li>
<li>trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/atob/</li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisatobbase64expectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/atob/base64-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisatobbase64html">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/atob/base64.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisatobw3cimportlog">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/atob/w3c-import.log</a></li>
<li>trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/</li>
<li>trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/</li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventloopscontainsjson">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/contains.json</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventloopsmicrotask_after_rafhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/microtask_after_raf.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventloopsmicrotask_after_scriptexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/microtask_after_script-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventloopsmicrotask_after_scripthtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/microtask_after_script.html</a></li>
<li>trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/resources/</li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventloopsresourcescommonjs">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/resources/common.js</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventloopsresourcesw3cimportlog">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/resources/w3c-import.log</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventloopstask_microtask_orderingexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/task_microtask_ordering-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventloopstask_microtask_orderinghtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/task_microtask_ordering.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventloopsw3cimportlog">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/w3c-import.log</a></li>
<li>trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/</li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventsbodyonloadexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/body-onload-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventsbodyonloadhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/body-onload.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventscontainsjson">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/contains.json</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventseventhandlerattributesbodywindowexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventseventhandlerattributesbodywindowhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventseventhandlerjavascriptexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-javascript-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventseventhandlerjavascripthtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-javascript.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventseventhandleronresizeexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-onresize-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventseventhandleronresizehtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-onresize.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventseventhandlerprocessingalgorithmexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-processing-algorithm-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventseventhandlerprocessingalgorithmhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-processing-algorithm.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventseventhandlerspecexampleexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-spec-example-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventseventhandlerspecexamplehtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-spec-example.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventsinlineeventhandlerorderingexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/inline-event-handler-ordering-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventsinlineeventhandlerorderinghtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/inline-event-handler-ordering.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventsinvaliduncompiledrawhandlercompiledlateexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-late-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventsinvaliduncompiledrawhandlercompiledlatehtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-late.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventsinvaliduncompiledrawhandlercompiledonceexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-once-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventsinvaliduncompiledrawhandlercompiledoncehtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-once.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventsonerroreventhandlerexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/onerroreventhandler-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventsonerroreventhandlerframehtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/onerroreventhandler-frame.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventsonerroreventhandlerhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/onerroreventhandler.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventsw3cimportlog">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/w3c-import.log</a></li>
<li>trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/</li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2addEventListenerexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/addEventListener-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2addEventListenerhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/addEventListener.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2bodyonerrorcompileerrordataurlexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-compile-error-data-url-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2bodyonerrorcompileerrordataurlhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-compile-error-data-url.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2bodyonerrorcompileerrorexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-compile-error-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2bodyonerrorcompileerrorhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-compile-error.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2bodyonerrorruntimeerrorexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-runtime-error-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2bodyonerrorruntimeerrorhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-runtime-error.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorcrossoriginexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-cross-origin-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorcrossoriginsetIntervalhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-cross-origin-setInterval.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorcrossoriginsetTimeouthtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-cross-origin-setTimeout.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorcrossoriginhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-cross-origin.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrordataurlexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-data-url-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrordataurlhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-data-url.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorinattributeexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-attribute-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorinattributehtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-attribute.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorinbodyonerrorexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-body-onerror-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorinbodyonerrorhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-body-onerror.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorinsetIntervalexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-setInterval-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorinsetIntervalhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-setInterval.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorinsetTimeoutexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-setTimeout-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorinsetTimeouthtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-setTimeout.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorsameoriginexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-same-origin-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorsameoriginhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-same-origin.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2containsjson">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/contains.json</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorcrossoriginexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-cross-origin-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorcrossoriginsetIntervalhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-cross-origin-setInterval.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorcrossoriginsetTimeouthtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-cross-origin-setTimeout.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorcrossoriginhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-cross-origin.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrordataurlexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-data-url-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrordataurlhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-data-url.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorinattributeexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-attribute-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorinattributehtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-attribute.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorinbodyonerrorexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-body-onerror-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorinbodyonerrorhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-body-onerror.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorinsetIntervalexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-setInterval-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorinsetIntervalhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-setInterval.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorinsetTimeoutexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-setTimeout-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorinsetTimeouthtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-setTimeout.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorinwindowonerrorexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-window-onerror-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorinwindowonerrorhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-window-onerror.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorsameoriginexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-same-origin-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorsameoriginhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-same-origin.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error.html</a></li>
<li>trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/</li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2supportsyntaxerrorinsetIntervaljs">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/syntax-error-in-setInterval.js</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2supportsyntaxerrorinsetTimeoutjs">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/syntax-error-in-setTimeout.js</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2supportsyntaxerrorjs">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/syntax-error.js</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2supportundefinedvariableinsetIntervaljs">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/undefined-variable-in-setInterval.js</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2supportundefinedvariableinsetTimeoutjs">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/undefined-variable-in-setTimeout.js</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2supportundefinedvariablejs">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/undefined-variable.js</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2supportw3cimportlog">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/w3c-import.log</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2w3cimportlog">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/w3c-import.log</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2windowonerrorparseerrorexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-parse-error-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2windowonerrorparseerrorhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-parse-error.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2windowonerrorruntimeerrorexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-runtime-error-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2windowonerrorruntimeerrorthrowexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-runtime-error-throw-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2windowonerrorruntimeerrorthrowhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-runtime-error-throw.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2windowonerrorruntimeerrorhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-runtime-error.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2windowonerrorwithcrossframeeventlisteners1expectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-1-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2windowonerrorwithcrossframeeventlisteners1html">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-1.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2windowonerrorwithcrossframeeventlisteners2expectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-2-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2windowonerrorwithcrossframeeventlisteners2html">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-2.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2windowonerrorwithcrossframeeventlisteners3expectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-3-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2windowonerrorwithcrossframeeventlisteners3html">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-3.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2windowonerrorwithcrossframeeventlisteners4expectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-4-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2windowonerrorwithcrossframeeventlisteners4html">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-4.html</a></li>
<li>trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/</li>
<li>trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/</li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectNavigatorIDexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectNavigatorIDhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectNavigatorIDjs">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID.js</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectNavigatorIDworkerjs">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID.worker.js</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontainsjson">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/contains.json</a></li>
<li>trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/</li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontent001expectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontent001xhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/001.xhtml</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontent002expectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontent002xhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/002.xhtml</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontent003expectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontent003xhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/003.xhtml</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontent004expectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontent004xhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/004.xhtml</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontent005expectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/005-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontent005xhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/005.xhtml</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontent006expectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/006-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontent006xhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/006.xhtml</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontentw3cimportlog">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/w3c-import.log</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontentexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontenthtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectnavigatorindexedexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigator-indexed-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectnavigatorindexedhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigator-indexed.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectnavigatorlanguageexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigatorlanguage-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectnavigatorlanguagehtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigatorlanguage.html</a></li>
<li>trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/</li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocol001expectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/001-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocol001xhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/001.xhtml</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocol002expectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/002-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocol002xhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/002.xhtml</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocol003expectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/003-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocol003xhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/003.xhtml</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocol004expectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/004-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocol004xhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/004.xhtml</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocol005expectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/005-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocol005xhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/005.xhtml</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocol006expectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/006-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocol006xhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/006.xhtml</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocolw3cimportlog">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/w3c-import.log</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocolexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocolhtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectw3cimportlog">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/w3c-import.log</a></li>
<li>trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/timers/</li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapistimersevilspecexampleexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/timers/evil-spec-example-expected.txt</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapistimersevilspecexamplehtml">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/timers/evil-spec-example.html</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapistimersw3cimportlog">trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/timers/w3c-import.log</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsimportedw3cChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/ChangeLog (206873 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/ChangeLog        2016-10-06 18:40:33 UTC (rev 206873)
+++ trunk/LayoutTests/imported/w3c/ChangeLog        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -1,3 +1,177 @@
</span><ins>+2016-10-06  Chris Dumez  &lt;cdumez@apple.com&gt;
+
+        Import html/webappapis web platform tests
+        https://bugs.webkit.org/show_bug.cgi?id=163018
+
+        Reviewed by Youenn Fablet.
+
+        Import html/webappapis web platform tests from upstream to extend test
+        coverage.
+
+        * resources/resource-files.json:
+        * web-platform-tests/html/webappapis/animation-frames/callback-exception-expected.txt: Added.
+        * web-platform-tests/html/webappapis/animation-frames/callback-exception.html: Added.
+        * web-platform-tests/html/webappapis/animation-frames/callback-invoked-expected.txt: Added.
+        * web-platform-tests/html/webappapis/animation-frames/callback-invoked.html: Added.
+        * web-platform-tests/html/webappapis/animation-frames/callback-multicalls-expected.txt: Added.
+        * web-platform-tests/html/webappapis/animation-frames/callback-multicalls.html: Added.
+        * web-platform-tests/html/webappapis/animation-frames/cancel-invoked-expected.txt: Added.
+        * web-platform-tests/html/webappapis/animation-frames/cancel-invoked.html: Added.
+        * web-platform-tests/html/webappapis/animation-frames/idlharness-expected.txt: Added.
+        * web-platform-tests/html/webappapis/animation-frames/idlharness.html: Added.
+        * web-platform-tests/html/webappapis/animation-frames/same-dispatch-time-expected.txt: Added.
+        * web-platform-tests/html/webappapis/animation-frames/same-dispatch-time.html: Added.
+        * web-platform-tests/html/webappapis/animation-frames/w3c-import.log: Added.
+        * web-platform-tests/html/webappapis/atob/base64-expected.txt: Added.
+        * web-platform-tests/html/webappapis/atob/base64.html: Added.
+        * web-platform-tests/html/webappapis/atob/w3c-import.log: Added.
+        * web-platform-tests/html/webappapis/scripting/event-loops/contains.json: Added.
+        * web-platform-tests/html/webappapis/scripting/event-loops/microtask_after_script-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/event-loops/microtask_after_script.html: Added.
+        * web-platform-tests/html/webappapis/scripting/event-loops/resources/common.js: Added.
+        (log_test):
+        * web-platform-tests/html/webappapis/scripting/event-loops/resources/w3c-import.log: Added.
+        * web-platform-tests/html/webappapis/scripting/event-loops/task_microtask_ordering-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/event-loops/task_microtask_ordering.html: Added.
+        * web-platform-tests/html/webappapis/scripting/event-loops/w3c-import.log: Added.
+        * web-platform-tests/html/webappapis/scripting/events/body-onload-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/events/body-onload.html: Added.
+        * web-platform-tests/html/webappapis/scripting/events/contains.json: Added.
+        * web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window.html: Added.
+        * web-platform-tests/html/webappapis/scripting/events/event-handler-javascript-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/events/event-handler-javascript.html: Added.
+        * web-platform-tests/html/webappapis/scripting/events/event-handler-onresize-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/events/event-handler-onresize.html: Added.
+        * web-platform-tests/html/webappapis/scripting/events/event-handler-processing-algorithm-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/events/event-handler-processing-algorithm.html: Added.
+        * web-platform-tests/html/webappapis/scripting/events/event-handler-spec-example-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/events/event-handler-spec-example.html: Added.
+        * web-platform-tests/html/webappapis/scripting/events/inline-event-handler-ordering-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/events/inline-event-handler-ordering.html: Added.
+        * web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-late-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-late.html: Added.
+        * web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-once-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-once.html: Added.
+        * web-platform-tests/html/webappapis/scripting/events/onerroreventhandler-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/events/onerroreventhandler-frame.html: Added.
+        * web-platform-tests/html/webappapis/scripting/events/onerroreventhandler.html: Added.
+        * web-platform-tests/html/webappapis/scripting/events/w3c-import.log: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/addEventListener-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/addEventListener.html: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-compile-error-data-url-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-compile-error-data-url.html: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-compile-error-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-compile-error.html: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-runtime-error-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-runtime-error.html: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-cross-origin-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-cross-origin.html: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-data-url-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-data-url.html: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-attribute-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-attribute.html: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-body-onerror-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-body-onerror.html: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-setInterval-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-setInterval.html: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-setTimeout-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-setTimeout.html: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-same-origin-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-same-origin.html: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error.html: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/contains.json: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-cross-origin-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-cross-origin.html: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-data-url-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-data-url.html: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-attribute-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-attribute.html: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-body-onerror-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-body-onerror.html: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-setInterval-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-setInterval.html: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-setTimeout-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-setTimeout.html: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-window-onerror-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-window-onerror.html: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-same-origin-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-same-origin.html: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error.html: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/support/syntax-error-in-setInterval.js: Added.
+        (setTimeout):
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/support/syntax-error-in-setTimeout.js: Added.
+        (setTimeout):
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/support/syntax-error.js: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/support/undefined-variable-in-setInterval.js: Added.
+        (setTimeout):
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/support/undefined-variable-in-setTimeout.js: Added.
+        (setTimeout):
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/support/undefined-variable.js: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/support/w3c-import.log: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/w3c-import.log: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-parse-error-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-parse-error.html: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-runtime-error-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-runtime-error-throw-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-runtime-error-throw.html: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-runtime-error.html: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-1-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-1.html: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-2-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-2.html: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-3-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-3.html: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-4-expected.txt: Added.
+        * web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-4.html: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID-expected.txt: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID.html: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID.js: Added.
+        (run_test.):
+        (run_test):
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID.worker.js: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/contains.json: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content-expected.txt: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content.html: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/001-expected.txt: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/001.xhtml: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/002-expected.txt: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/002.xhtml: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/003-expected.txt: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/003.xhtml: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/004-expected.txt: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/004.xhtml: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/005-expected.txt: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/005.xhtml: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/006-expected.txt: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/006.xhtml: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/w3c-import.log: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigator-indexed-expected.txt: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigator-indexed.html: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigatorlanguage-expected.txt: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigatorlanguage.html: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol-expected.txt: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol.html: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/001-expected.txt: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/001.xhtml: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/002-expected.txt: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/002.xhtml: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/003-expected.txt: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/003.xhtml: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/004-expected.txt: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/004.xhtml: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/005-expected.txt: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/005.xhtml: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/006-expected.txt: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/006.xhtml: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/w3c-import.log: Added.
+        * web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/w3c-import.log: Added.
+        * web-platform-tests/html/webappapis/timers/evil-spec-example-expected.txt: Added.
+        * web-platform-tests/html/webappapis/timers/evil-spec-example.html: Added.
+        * web-platform-tests/html/webappapis/timers/w3c-import.log: Added.
+
</ins><span class="cx"> 2016-10-06  Youenn Fablet  &lt;youenn@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [Fetch API] Forbid redirection to non-HTTP(s) URL in non-navigation mode.
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cresourcesresourcefilesjson"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/resources/resource-files.json (206873 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/resources/resource-files.json        2016-10-06 18:40:33 UTC (rev 206873)
+++ trunk/LayoutTests/imported/w3c/resources/resource-files.json        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -226,6 +226,7 @@
</span><span class="cx">         &quot;web-platform-tests/html/syntax/parsing/foreign_content_010.html&quot;,
</span><span class="cx">         &quot;web-platform-tests/html/syntax/parsing/foreign_content_011.html&quot;,
</span><span class="cx">         &quot;web-platform-tests/html/syntax/parsing/foreign_content_013.html&quot;,
</span><ins>+        &quot;web-platform-tests/html/webappapis/scripting/events/onerroreventhandler-frame.html&quot;,
</ins><span class="cx">         &quot;web-platform-tests/resource-timing/iframe-setdomain.sub.html&quot;
</span><span class="cx">     ]
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisanimationframescallbackexceptionexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/callback-exception-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/callback-exception-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/callback-exception-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+CONSOLE MESSAGE: line 22: Error: requestAnimationFrameException
+
+PASS requestAnimationFrame callback exceptions are reported to error handler 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisanimationframescallbackexceptionhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/callback-exception.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/callback-exception.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/callback-exception.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,27 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+  &lt;head&gt;
+    &lt;title&gt;requestAnimationFrame callback exception reported to error handler&lt;/title&gt;
+    &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+    &lt;link rel=&quot;help&quot; href=&quot;https://w3c.github.io/web-performance/specs/RequestAnimationFrame/Overview.html#dom-windowanimationtiming-requestanimationframe&quot;/&gt;
+  &lt;/head&gt;
+  &lt;body&gt;
+    &lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+    &lt;script&gt;
+      var custom_exception = 'requestAnimationFrameException';
+      setup({allow_uncaught_exception : true});
+      async_test(function (t) {
+        addEventListener(&quot;error&quot;,function(e) {
+          t.step(function() {
+             assert_equals(e.error.message, custom_exception);
+             t.done();
+          })
+        });
+        window.requestAnimationFrame(function () {
+          throw new Error(custom_exception);
+        });
+      }, &quot;requestAnimationFrame callback exceptions are reported to error handler&quot;);
+    &lt;/script&gt;
+  &lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisanimationframescallbackinvokedexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/callback-invoked-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/callback-invoked-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/callback-invoked-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+PASS requestAnimationFrame callback is invoked at least once before the timeout 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisanimationframescallbackinvokedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/callback-invoked.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/callback-invoked.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/callback-invoked.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+  &lt;head&gt;
+    &lt;title&gt;requestAnimationFrame must be triggered once&lt;/title&gt;
+    &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+    &lt;link rel=&quot;help&quot; href=&quot;https://w3c.github.io/web-performance/specs/RequestAnimationFrame/Overview.html#dom-windowanimationtiming-requestanimationframe&quot;/&gt;
+  &lt;/head&gt;
+  &lt;body&gt;
+    &lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+    &lt;script&gt;
+      async_test(function (t) {
+        assert_false(document.hidden, &quot;document.hidden must exist and be false to run this test properly&quot;);
+        window.requestAnimationFrame(t.step_func_done());
+      }, &quot;requestAnimationFrame callback is invoked at least once before the timeout&quot;);
+    &lt;/script&gt;
+  &lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisanimationframescallbackmulticallsexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/callback-multicalls-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/callback-multicalls-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/callback-multicalls-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+PASS Check that multiple calls to requestAnimationFrame with the same callback will result in multiple entries being in the list with that same callback. 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisanimationframescallbackmulticallshtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/callback-multicalls.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/callback-multicalls.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/callback-multicalls.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,26 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;meta charset=&quot;utf-8&quot;&gt;
+&lt;title&gt;AnimationTiming Test: multiple calls to requestAnimationFrame with the same callback&lt;/title&gt;
+&lt;link rel=&quot;author&quot; title=&quot;Intel&quot; href=&quot;http://www.intel.com&quot;&gt;
+&lt;link rel=&quot;help&quot; href=&quot;https://html.spec.whatwg.org/multipage/#dom-window-requestanimationframe&quot;&gt;
+&lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+&lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+&lt;script&gt;
+
+  async_test(function(t) {
+    var counter = 0;
+    window.requestAnimationFrame(callback);
+
+    function callback() {
+      ++counter;
+      if (counter == 2) {
+        t.done();
+      } else {
+        window.requestAnimationFrame(callback);
+      }
+    };
+
+  }, &quot;Check that multiple calls to requestAnimationFrame with the same callback will result in multiple entries being in the list with that same callback.&quot;);
+
+&lt;/script&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisanimationframescancelinvokedexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/cancel-invoked-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/cancel-invoked-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/cancel-invoked-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+PASS cancelAnimationFrame does nothing if there is no callback with the given handle 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisanimationframescancelinvokedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/cancel-invoked.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/cancel-invoked.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/cancel-invoked.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+  &lt;head&gt;
+    &lt;title&gt;cancelAnimationFrame does nothing&lt;/title&gt;
+    &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+    &lt;link rel=&quot;help&quot; href=&quot;https://w3c.github.io/web-performance/specs/RequestAnimationFrame/Overview.html#dom-windowanimationtiming-cancelanimationframe&quot;/&gt;
+  &lt;/head&gt;
+  &lt;body&gt;
+    &lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+    &lt;script&gt;
+      test(function (t) {
+        window.cancelAnimationFrame(42);
+        assert_true(true);
+      }, &quot;cancelAnimationFrame does nothing if there is no callback with the given handle&quot;);
+    &lt;/script&gt;
+  &lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisanimationframesidlharnessexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/idlharness-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/idlharness-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/idlharness-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,21 @@
</span><ins>+CONSOLE MESSAGE: line 236: callback not yet supported
+idlharness test
+
+This test validates the WebIDL included in the Timing control for script-based animations specification.
+
+partial interface Window {
+  long requestAnimationFrame(FrameRequestCallback callback);
+  void cancelAnimationFrame(long handle);
+};
+
+callback FrameRequestCallback = void (DOMHighResTimeStamp time);
+
+PASS Window interface: operation requestAnimationFrame(FrameRequestCallback) 
+PASS Window interface: operation cancelAnimationFrame(long) 
+PASS Window must be primary interface of window 
+PASS Stringification of window 
+PASS Window interface: window must inherit property &quot;requestAnimationFrame&quot; with the proper type (0) 
+PASS Window interface: calling requestAnimationFrame(FrameRequestCallback) on window with too few arguments must throw TypeError 
+PASS Window interface: window must inherit property &quot;cancelAnimationFrame&quot; with the proper type (1) 
+PASS Window interface: calling cancelAnimationFrame(long) on window with too few arguments must throw TypeError 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisanimationframesidlharnesshtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/idlharness.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/idlharness.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/idlharness.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,50 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;meta charset=&quot;utf-8&quot; /&gt;
+&lt;title&gt;idlharness test&lt;/title&gt;
+&lt;link rel=&quot;author&quot; title=&quot;Kensaku Komatsu&quot; href=&quot;mailto:kensaku.komatsu@gmail.com&quot; /&gt;
+&lt;link rel=&quot;help&quot; href=&quot;http://www.w3.org/TR/animation-timing/#definitions&quot;/&gt;
+&lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;/resources/WebIDLParser.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;/resources/idlharness.js&quot;&gt;&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;h1&gt;idlharness test&lt;/h1&gt;
+&lt;p&gt;This test validates the WebIDL included in the Timing control for script-based animations specification.&lt;/p&gt;
+
+&lt;pre id='untested_idl' style='display:none'&gt;
+[PrimaryGlobal]
+interface Window {
+};
+&lt;/pre&gt;
+
+&lt;pre id='idl'&gt;
+partial interface Window {
+  long requestAnimationFrame(FrameRequestCallback callback);
+  void cancelAnimationFrame(long handle);
+};
+
+callback FrameRequestCallback = void (DOMHighResTimeStamp time);
+&lt;/pre&gt;
+
+&lt;script&gt;
+
+(function() {
+  var idl_array = new IdlArray();
+
+  idl_array.add_untested_idls(document.getElementById(&quot;untested_idl&quot;).textContent);
+  idl_array.add_idls(document.getElementById(&quot;idl&quot;).textContent);
+
+  idl_array.add_objects({Window: [&quot;window&quot;]});
+
+  idl_array.test();
+})();
+
+&lt;/script&gt;
+
+&lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisanimationframessamedispatchtimeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/same-dispatch-time-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/same-dispatch-time-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/same-dispatch-time-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+PASS requestAnimationFrame will timestamp events in the same queue with the same time 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisanimationframessamedispatchtimehtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/same-dispatch-time.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/same-dispatch-time.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/same-dispatch-time.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,31 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+  &lt;head&gt;
+    &lt;title&gt;requestAnimationFrame in queue get the same timestamp&lt;/title&gt;
+    &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+    &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+    &lt;link rel=&quot;help&quot; href=&quot;http://w3c.github.io/animation-timing/#dfn-invoke-callbacks-algorithm&quot;/&gt;
+  &lt;/head&gt;
+  &lt;body&gt;
+    &lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+    &lt;script&gt;
+      test(function (t) {
+        var a = 0, b = 0;
+
+        /* REASONING:
+        * These two methods that will be called with a timestamp. Because
+        * they execute right after eachother, they're added to the same
+        * queue and SHOULD be timestamped with the same value.
+        */
+        window.requestAnimationFrame(function() { a = arguments[0]; });
+        window.requestAnimationFrame(function() { b = arguments[0]; });
+
+        setTimeout(function() {
+            assert_true(a != 0);
+            assert_true(b != 0);
+            assert_true(a == b);
+        }, 100);
+      }, &quot;requestAnimationFrame will timestamp events in the same queue with the same time&quot;);
+    &lt;/script&gt;
+  &lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisanimationframesw3cimportlog"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/w3c-import.log (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/w3c-import.log                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/w3c-import.log        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+The tests in this directory were imported from the W3C repository.
+Do NOT modify these tests directly in WebKit.
+Instead, create a pull request on the W3C CSS or WPT github:
+        https://github.com/w3c/csswg-test
+        https://github.com/w3c/web-platform-tests
+
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
+
+Do NOT modify or remove this file.
+
+------------------------------------------------------------------------
+Properties requiring vendor prefixes:
+None
+Property values requiring vendor prefixes:
+None
+------------------------------------------------------------------------
+List of files:
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/callback-exception.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/callback-invoked.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/callback-multicalls.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/cancel-invoked.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/idlharness.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/animation-frames/same-dispatch-time.html
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisatobbase64expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/atob/base64-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/atob/base64-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/atob/base64-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,372 @@
</span><ins>+
+PASS btoa(&quot;עברית&quot;) must raise INVALID_CHARACTER_ERR 
+PASS btoa(&quot;&quot;) == &quot;&quot; 
+PASS btoa(&quot;ab&quot;) == &quot;YWI=&quot; 
+PASS btoa(&quot;abc&quot;) == &quot;YWJj&quot; 
+PASS btoa(&quot;abcd&quot;) == &quot;YWJjZA==&quot; 
+PASS btoa(&quot;abcde&quot;) == &quot;YWJjZGU=&quot; 
+PASS btoa(&quot;ÿÿÀ&quot;) == &quot;///A&quot; 
+PASS btoa(&quot;\0a&quot;) == &quot;AGE=&quot; 
+PASS btoa(&quot;a\0b&quot;) == &quot;YQBi&quot; 
+PASS btoa(undefined) == &quot;dW5kZWZpbmVk&quot; 
+PASS btoa(null) == &quot;bnVsbA==&quot; 
+PASS btoa(7) == &quot;Nw==&quot; 
+PASS btoa(12) == &quot;MTI=&quot; 
+PASS btoa(1.5) == &quot;MS41&quot; 
+PASS btoa(true) == &quot;dHJ1ZQ==&quot; 
+PASS btoa(false) == &quot;ZmFsc2U=&quot; 
+PASS btoa(NaN) == &quot;TmFO&quot; 
+PASS btoa(Infinity) == &quot;SW5maW5pdHk=&quot; 
+PASS btoa(-Infinity) == &quot;LUluZmluaXR5&quot; 
+PASS btoa(0) == &quot;MA==&quot; 
+PASS btoa(-0) == &quot;MA==&quot; 
+PASS btoa(object &quot;foo&quot;) == &quot;Zm9v&quot; 
+PASS btoa(&quot;\0&quot;) == &quot;AA==&quot; 
+PASS btoa(&quot;\x01&quot;) == &quot;AQ==&quot; 
+PASS btoa(&quot;\x02&quot;) == &quot;Ag==&quot; 
+PASS btoa(&quot;\x03&quot;) == &quot;Aw==&quot; 
+PASS btoa(&quot;\x04&quot;) == &quot;BA==&quot; 
+PASS btoa(&quot;\x05&quot;) == &quot;BQ==&quot; 
+PASS btoa(&quot;\x06&quot;) == &quot;Bg==&quot; 
+PASS btoa(&quot;\x07&quot;) == &quot;Bw==&quot; 
+PASS btoa(&quot;\b&quot;) == &quot;CA==&quot; 
+PASS btoa(&quot;\t&quot;) == &quot;CQ==&quot; 
+PASS btoa(&quot;\n&quot;) == &quot;Cg==&quot; 
+PASS btoa(&quot;\v&quot;) == &quot;Cw==&quot; 
+PASS btoa(&quot;\f&quot;) == &quot;DA==&quot; 
+PASS btoa(&quot;\r&quot;) == &quot;DQ==&quot; 
+PASS btoa(&quot;\x0e&quot;) == &quot;Dg==&quot; 
+PASS btoa(&quot;\x0f&quot;) == &quot;Dw==&quot; 
+PASS btoa(&quot;\x10&quot;) == &quot;EA==&quot; 
+PASS btoa(&quot;\x11&quot;) == &quot;EQ==&quot; 
+PASS btoa(&quot;\x12&quot;) == &quot;Eg==&quot; 
+PASS btoa(&quot;\x13&quot;) == &quot;Ew==&quot; 
+PASS btoa(&quot;\x14&quot;) == &quot;FA==&quot; 
+PASS btoa(&quot;\x15&quot;) == &quot;FQ==&quot; 
+PASS btoa(&quot;\x16&quot;) == &quot;Fg==&quot; 
+PASS btoa(&quot;\x17&quot;) == &quot;Fw==&quot; 
+PASS btoa(&quot;\x18&quot;) == &quot;GA==&quot; 
+PASS btoa(&quot;\x19&quot;) == &quot;GQ==&quot; 
+PASS btoa(&quot;\x1a&quot;) == &quot;Gg==&quot; 
+PASS btoa(&quot;\x1b&quot;) == &quot;Gw==&quot; 
+PASS btoa(&quot;\x1c&quot;) == &quot;HA==&quot; 
+PASS btoa(&quot;\x1d&quot;) == &quot;HQ==&quot; 
+PASS btoa(&quot;\x1e&quot;) == &quot;Hg==&quot; 
+PASS btoa(&quot;\x1f&quot;) == &quot;Hw==&quot; 
+PASS btoa(&quot; &quot;) == &quot;IA==&quot; 
+PASS btoa(&quot;!&quot;) == &quot;IQ==&quot; 
+PASS btoa(&quot;\&quot;&quot;) == &quot;Ig==&quot; 
+PASS btoa(&quot;#&quot;) == &quot;Iw==&quot; 
+PASS btoa(&quot;$&quot;) == &quot;JA==&quot; 
+PASS btoa(&quot;%&quot;) == &quot;JQ==&quot; 
+PASS btoa(&quot;&amp;&quot;) == &quot;Jg==&quot; 
+PASS btoa(&quot;'&quot;) == &quot;Jw==&quot; 
+PASS btoa(&quot;(&quot;) == &quot;KA==&quot; 
+PASS btoa(&quot;)&quot;) == &quot;KQ==&quot; 
+PASS btoa(&quot;*&quot;) == &quot;Kg==&quot; 
+PASS btoa(&quot;+&quot;) == &quot;Kw==&quot; 
+PASS btoa(&quot;,&quot;) == &quot;LA==&quot; 
+PASS btoa(&quot;-&quot;) == &quot;LQ==&quot; 
+PASS btoa(&quot;.&quot;) == &quot;Lg==&quot; 
+PASS btoa(&quot;/&quot;) == &quot;Lw==&quot; 
+PASS btoa(&quot;0&quot;) == &quot;MA==&quot; 
+PASS btoa(&quot;1&quot;) == &quot;MQ==&quot; 
+PASS btoa(&quot;2&quot;) == &quot;Mg==&quot; 
+PASS btoa(&quot;3&quot;) == &quot;Mw==&quot; 
+PASS btoa(&quot;4&quot;) == &quot;NA==&quot; 
+PASS btoa(&quot;5&quot;) == &quot;NQ==&quot; 
+PASS btoa(&quot;6&quot;) == &quot;Ng==&quot; 
+PASS btoa(&quot;7&quot;) == &quot;Nw==&quot; 
+PASS btoa(&quot;8&quot;) == &quot;OA==&quot; 
+PASS btoa(&quot;9&quot;) == &quot;OQ==&quot; 
+PASS btoa(&quot;:&quot;) == &quot;Og==&quot; 
+PASS btoa(&quot;;&quot;) == &quot;Ow==&quot; 
+PASS btoa(&quot;&lt;&quot;) == &quot;PA==&quot; 
+PASS btoa(&quot;=&quot;) == &quot;PQ==&quot; 
+PASS btoa(&quot;&gt;&quot;) == &quot;Pg==&quot; 
+PASS btoa(&quot;?&quot;) == &quot;Pw==&quot; 
+PASS btoa(&quot;@&quot;) == &quot;QA==&quot; 
+PASS btoa(&quot;A&quot;) == &quot;QQ==&quot; 
+PASS btoa(&quot;B&quot;) == &quot;Qg==&quot; 
+PASS btoa(&quot;C&quot;) == &quot;Qw==&quot; 
+PASS btoa(&quot;D&quot;) == &quot;RA==&quot; 
+PASS btoa(&quot;E&quot;) == &quot;RQ==&quot; 
+PASS btoa(&quot;F&quot;) == &quot;Rg==&quot; 
+PASS btoa(&quot;G&quot;) == &quot;Rw==&quot; 
+PASS btoa(&quot;H&quot;) == &quot;SA==&quot; 
+PASS btoa(&quot;I&quot;) == &quot;SQ==&quot; 
+PASS btoa(&quot;J&quot;) == &quot;Sg==&quot; 
+PASS btoa(&quot;K&quot;) == &quot;Sw==&quot; 
+PASS btoa(&quot;L&quot;) == &quot;TA==&quot; 
+PASS btoa(&quot;M&quot;) == &quot;TQ==&quot; 
+PASS btoa(&quot;N&quot;) == &quot;Tg==&quot; 
+PASS btoa(&quot;O&quot;) == &quot;Tw==&quot; 
+PASS btoa(&quot;P&quot;) == &quot;UA==&quot; 
+PASS btoa(&quot;Q&quot;) == &quot;UQ==&quot; 
+PASS btoa(&quot;R&quot;) == &quot;Ug==&quot; 
+PASS btoa(&quot;S&quot;) == &quot;Uw==&quot; 
+PASS btoa(&quot;T&quot;) == &quot;VA==&quot; 
+PASS btoa(&quot;U&quot;) == &quot;VQ==&quot; 
+PASS btoa(&quot;V&quot;) == &quot;Vg==&quot; 
+PASS btoa(&quot;W&quot;) == &quot;Vw==&quot; 
+PASS btoa(&quot;X&quot;) == &quot;WA==&quot; 
+PASS btoa(&quot;Y&quot;) == &quot;WQ==&quot; 
+PASS btoa(&quot;Z&quot;) == &quot;Wg==&quot; 
+PASS btoa(&quot;[&quot;) == &quot;Ww==&quot; 
+PASS btoa(&quot;\\&quot;) == &quot;XA==&quot; 
+PASS btoa(&quot;]&quot;) == &quot;XQ==&quot; 
+PASS btoa(&quot;^&quot;) == &quot;Xg==&quot; 
+PASS btoa(&quot;_&quot;) == &quot;Xw==&quot; 
+PASS btoa(&quot;`&quot;) == &quot;YA==&quot; 
+PASS btoa(&quot;a&quot;) == &quot;YQ==&quot; 
+PASS btoa(&quot;b&quot;) == &quot;Yg==&quot; 
+PASS btoa(&quot;c&quot;) == &quot;Yw==&quot; 
+PASS btoa(&quot;d&quot;) == &quot;ZA==&quot; 
+PASS btoa(&quot;e&quot;) == &quot;ZQ==&quot; 
+PASS btoa(&quot;f&quot;) == &quot;Zg==&quot; 
+PASS btoa(&quot;g&quot;) == &quot;Zw==&quot; 
+PASS btoa(&quot;h&quot;) == &quot;aA==&quot; 
+PASS btoa(&quot;i&quot;) == &quot;aQ==&quot; 
+PASS btoa(&quot;j&quot;) == &quot;ag==&quot; 
+PASS btoa(&quot;k&quot;) == &quot;aw==&quot; 
+PASS btoa(&quot;l&quot;) == &quot;bA==&quot; 
+PASS btoa(&quot;m&quot;) == &quot;bQ==&quot; 
+PASS btoa(&quot;n&quot;) == &quot;bg==&quot; 
+PASS btoa(&quot;o&quot;) == &quot;bw==&quot; 
+PASS btoa(&quot;p&quot;) == &quot;cA==&quot; 
+PASS btoa(&quot;q&quot;) == &quot;cQ==&quot; 
+PASS btoa(&quot;r&quot;) == &quot;cg==&quot; 
+PASS btoa(&quot;s&quot;) == &quot;cw==&quot; 
+PASS btoa(&quot;t&quot;) == &quot;dA==&quot; 
+PASS btoa(&quot;u&quot;) == &quot;dQ==&quot; 
+PASS btoa(&quot;v&quot;) == &quot;dg==&quot; 
+PASS btoa(&quot;w&quot;) == &quot;dw==&quot; 
+PASS btoa(&quot;x&quot;) == &quot;eA==&quot; 
+PASS btoa(&quot;y&quot;) == &quot;eQ==&quot; 
+PASS btoa(&quot;z&quot;) == &quot;eg==&quot; 
+PASS btoa(&quot;{&quot;) == &quot;ew==&quot; 
+PASS btoa(&quot;|&quot;) == &quot;fA==&quot; 
+PASS btoa(&quot;}&quot;) == &quot;fQ==&quot; 
+PASS btoa(&quot;~&quot;) == &quot;fg==&quot; 
+PASS btoa(&quot;&quot;) == &quot;fw==&quot; 
+PASS btoa(&quot;€&quot;) == &quot;gA==&quot; 
+PASS btoa(&quot;&quot;) == &quot;gQ==&quot; 
+PASS btoa(&quot;‚&quot;) == &quot;gg==&quot; 
+PASS btoa(&quot;ƒ&quot;) == &quot;gw==&quot; 
+PASS btoa(&quot;„&quot;) == &quot;hA==&quot; 
+PASS btoa(&quot;…&quot;) == &quot;hQ==&quot; 
+PASS btoa(&quot;†&quot;) == &quot;hg==&quot; 
+PASS btoa(&quot;‡&quot;) == &quot;hw==&quot; 
+PASS btoa(&quot;ˆ&quot;) == &quot;iA==&quot; 
+PASS btoa(&quot;‰&quot;) == &quot;iQ==&quot; 
+PASS btoa(&quot;Š&quot;) == &quot;ig==&quot; 
+PASS btoa(&quot;‹&quot;) == &quot;iw==&quot; 
+PASS btoa(&quot;Œ&quot;) == &quot;jA==&quot; 
+PASS btoa(&quot;&quot;) == &quot;jQ==&quot; 
+PASS btoa(&quot;Ž&quot;) == &quot;jg==&quot; 
+PASS btoa(&quot;&quot;) == &quot;jw==&quot; 
+PASS btoa(&quot;&quot;) == &quot;kA==&quot; 
+PASS btoa(&quot;‘&quot;) == &quot;kQ==&quot; 
+PASS btoa(&quot;’&quot;) == &quot;kg==&quot; 
+PASS btoa(&quot;“&quot;) == &quot;kw==&quot; 
+PASS btoa(&quot;”&quot;) == &quot;lA==&quot; 
+PASS btoa(&quot;•&quot;) == &quot;lQ==&quot; 
+PASS btoa(&quot;–&quot;) == &quot;lg==&quot; 
+PASS btoa(&quot;—&quot;) == &quot;lw==&quot; 
+PASS btoa(&quot;˜&quot;) == &quot;mA==&quot; 
+PASS btoa(&quot;™&quot;) == &quot;mQ==&quot; 
+PASS btoa(&quot;š&quot;) == &quot;mg==&quot; 
+PASS btoa(&quot;›&quot;) == &quot;mw==&quot; 
+PASS btoa(&quot;œ&quot;) == &quot;nA==&quot; 
+PASS btoa(&quot;&quot;) == &quot;nQ==&quot; 
+PASS btoa(&quot;ž&quot;) == &quot;ng==&quot; 
+PASS btoa(&quot;Ÿ&quot;) == &quot;nw==&quot; 
+PASS btoa(&quot; &quot;) == &quot;oA==&quot; 
+PASS btoa(&quot;¡&quot;) == &quot;oQ==&quot; 
+PASS btoa(&quot;¢&quot;) == &quot;og==&quot; 
+PASS btoa(&quot;£&quot;) == &quot;ow==&quot; 
+PASS btoa(&quot;¤&quot;) == &quot;pA==&quot; 
+PASS btoa(&quot;¥&quot;) == &quot;pQ==&quot; 
+PASS btoa(&quot;¦&quot;) == &quot;pg==&quot; 
+PASS btoa(&quot;§&quot;) == &quot;pw==&quot; 
+PASS btoa(&quot;¨&quot;) == &quot;qA==&quot; 
+PASS btoa(&quot;©&quot;) == &quot;qQ==&quot; 
+PASS btoa(&quot;ª&quot;) == &quot;qg==&quot; 
+PASS btoa(&quot;«&quot;) == &quot;qw==&quot; 
+PASS btoa(&quot;¬&quot;) == &quot;rA==&quot; 
+PASS btoa(&quot;­&quot;) == &quot;rQ==&quot; 
+PASS btoa(&quot;®&quot;) == &quot;rg==&quot; 
+PASS btoa(&quot;¯&quot;) == &quot;rw==&quot; 
+PASS btoa(&quot;°&quot;) == &quot;sA==&quot; 
+PASS btoa(&quot;±&quot;) == &quot;sQ==&quot; 
+PASS btoa(&quot;²&quot;) == &quot;sg==&quot; 
+PASS btoa(&quot;³&quot;) == &quot;sw==&quot; 
+PASS btoa(&quot;´&quot;) == &quot;tA==&quot; 
+PASS btoa(&quot;µ&quot;) == &quot;tQ==&quot; 
+PASS btoa(&quot;¶&quot;) == &quot;tg==&quot; 
+PASS btoa(&quot;·&quot;) == &quot;tw==&quot; 
+PASS btoa(&quot;¸&quot;) == &quot;uA==&quot; 
+PASS btoa(&quot;¹&quot;) == &quot;uQ==&quot; 
+PASS btoa(&quot;º&quot;) == &quot;ug==&quot; 
+PASS btoa(&quot;»&quot;) == &quot;uw==&quot; 
+PASS btoa(&quot;¼&quot;) == &quot;vA==&quot; 
+PASS btoa(&quot;½&quot;) == &quot;vQ==&quot; 
+PASS btoa(&quot;¾&quot;) == &quot;vg==&quot; 
+PASS btoa(&quot;¿&quot;) == &quot;vw==&quot; 
+PASS btoa(&quot;À&quot;) == &quot;wA==&quot; 
+PASS btoa(&quot;Á&quot;) == &quot;wQ==&quot; 
+PASS btoa(&quot;Â&quot;) == &quot;wg==&quot; 
+PASS btoa(&quot;Ã&quot;) == &quot;ww==&quot; 
+PASS btoa(&quot;Ä&quot;) == &quot;xA==&quot; 
+PASS btoa(&quot;Å&quot;) == &quot;xQ==&quot; 
+PASS btoa(&quot;Æ&quot;) == &quot;xg==&quot; 
+PASS btoa(&quot;Ç&quot;) == &quot;xw==&quot; 
+PASS btoa(&quot;È&quot;) == &quot;yA==&quot; 
+PASS btoa(&quot;É&quot;) == &quot;yQ==&quot; 
+PASS btoa(&quot;Ê&quot;) == &quot;yg==&quot; 
+PASS btoa(&quot;Ë&quot;) == &quot;yw==&quot; 
+PASS btoa(&quot;Ì&quot;) == &quot;zA==&quot; 
+PASS btoa(&quot;Í&quot;) == &quot;zQ==&quot; 
+PASS btoa(&quot;Î&quot;) == &quot;zg==&quot; 
+PASS btoa(&quot;Ï&quot;) == &quot;zw==&quot; 
+PASS btoa(&quot;Ð&quot;) == &quot;0A==&quot; 
+PASS btoa(&quot;Ñ&quot;) == &quot;0Q==&quot; 
+PASS btoa(&quot;Ò&quot;) == &quot;0g==&quot; 
+PASS btoa(&quot;Ó&quot;) == &quot;0w==&quot; 
+PASS btoa(&quot;Ô&quot;) == &quot;1A==&quot; 
+PASS btoa(&quot;Õ&quot;) == &quot;1Q==&quot; 
+PASS btoa(&quot;Ö&quot;) == &quot;1g==&quot; 
+PASS btoa(&quot;×&quot;) == &quot;1w==&quot; 
+PASS btoa(&quot;Ø&quot;) == &quot;2A==&quot; 
+PASS btoa(&quot;Ù&quot;) == &quot;2Q==&quot; 
+PASS btoa(&quot;Ú&quot;) == &quot;2g==&quot; 
+PASS btoa(&quot;Û&quot;) == &quot;2w==&quot; 
+PASS btoa(&quot;Ü&quot;) == &quot;3A==&quot; 
+PASS btoa(&quot;Ý&quot;) == &quot;3Q==&quot; 
+PASS btoa(&quot;Þ&quot;) == &quot;3g==&quot; 
+PASS btoa(&quot;ß&quot;) == &quot;3w==&quot; 
+PASS btoa(&quot;à&quot;) == &quot;4A==&quot; 
+PASS btoa(&quot;á&quot;) == &quot;4Q==&quot; 
+PASS btoa(&quot;â&quot;) == &quot;4g==&quot; 
+PASS btoa(&quot;ã&quot;) == &quot;4w==&quot; 
+PASS btoa(&quot;ä&quot;) == &quot;5A==&quot; 
+PASS btoa(&quot;å&quot;) == &quot;5Q==&quot; 
+PASS btoa(&quot;æ&quot;) == &quot;5g==&quot; 
+PASS btoa(&quot;ç&quot;) == &quot;5w==&quot; 
+PASS btoa(&quot;è&quot;) == &quot;6A==&quot; 
+PASS btoa(&quot;é&quot;) == &quot;6Q==&quot; 
+PASS btoa(&quot;ê&quot;) == &quot;6g==&quot; 
+PASS btoa(&quot;ë&quot;) == &quot;6w==&quot; 
+PASS btoa(&quot;ì&quot;) == &quot;7A==&quot; 
+PASS btoa(&quot;í&quot;) == &quot;7Q==&quot; 
+PASS btoa(&quot;î&quot;) == &quot;7g==&quot; 
+PASS btoa(&quot;ï&quot;) == &quot;7w==&quot; 
+PASS btoa(&quot;ð&quot;) == &quot;8A==&quot; 
+PASS btoa(&quot;ñ&quot;) == &quot;8Q==&quot; 
+PASS btoa(&quot;ò&quot;) == &quot;8g==&quot; 
+PASS btoa(&quot;ó&quot;) == &quot;8w==&quot; 
+PASS btoa(&quot;ô&quot;) == &quot;9A==&quot; 
+PASS btoa(&quot;õ&quot;) == &quot;9Q==&quot; 
+PASS btoa(&quot;ö&quot;) == &quot;9g==&quot; 
+PASS btoa(&quot;÷&quot;) == &quot;9w==&quot; 
+PASS btoa(&quot;ø&quot;) == &quot;+A==&quot; 
+PASS btoa(&quot;ù&quot;) == &quot;+Q==&quot; 
+PASS btoa(&quot;ú&quot;) == &quot;+g==&quot; 
+PASS btoa(&quot;û&quot;) == &quot;+w==&quot; 
+PASS btoa(&quot;ü&quot;) == &quot;/A==&quot; 
+PASS btoa(&quot;ý&quot;) == &quot;/Q==&quot; 
+PASS btoa(&quot;þ&quot;) == &quot;/g==&quot; 
+PASS btoa(&quot;ÿ&quot;) == &quot;/w==&quot; 
+PASS btoa(&quot;Ā&quot;) must raise INVALID_CHARACTER_ERR 
+PASS btoa(&quot;ā&quot;) must raise INVALID_CHARACTER_ERR 
+PASS btoa(&quot;✐&quot;) must raise INVALID_CHARACTER_ERR 
+PASS btoa(&quot;￾&quot;) must raise INVALID_CHARACTER_ERR 
+PASS btoa(&quot;\x{FFFF}&quot;) must raise INVALID_CHARACTER_ERR 
+PASS btoa(&quot;𐀀&quot;) must raise INVALID_CHARACTER_ERR 
+PASS btoa(first 256 code points concatenated) 
+PASS atob(&quot;&quot;) == &quot;&quot; 
+PASS atob(&quot;abcd&quot;) == &quot;i·\x1d&quot; 
+PASS atob(&quot; abcd&quot;) == &quot;i·\x1d&quot; 
+PASS atob(&quot;abcd &quot;) == &quot;i·\x1d&quot; 
+PASS atob(&quot; abcd===&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;abcd=== &quot;) must raise InvalidCharacterError 
+PASS atob(&quot;abcd ===&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;a&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;ab&quot;) == &quot;i&quot; 
+PASS atob(&quot;abc&quot;) == &quot;i·&quot; 
+PASS atob(&quot;abcde&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;𐀀&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;=&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;==&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;===&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;====&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;=====&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;a=&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;a==&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;a===&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;a====&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;a=====&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;ab=&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;ab==&quot;) == &quot;i&quot; 
+PASS atob(&quot;ab===&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;ab====&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;ab=====&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;abc=&quot;) == &quot;i·&quot; 
+PASS atob(&quot;abc==&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;abc===&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;abc====&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;abc=====&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;abcd=&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;abcd==&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;abcd===&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;abcd====&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;abcd=====&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;abcde=&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;abcde==&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;abcde===&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;abcde====&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;abcde=====&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;=a&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;=a=&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;a=b&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;a=b=&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;ab=c&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;ab=c=&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;abc=d&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;abc=d=&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;ab\tcd&quot;) == &quot;i·\x1d&quot; 
+PASS atob(&quot;ab\ncd&quot;) == &quot;i·\x1d&quot; 
+PASS atob(&quot;ab\fcd&quot;) == &quot;i·\x1d&quot; 
+PASS atob(&quot;ab\rcd&quot;) == &quot;i·\x1d&quot; 
+PASS atob(&quot;ab cd&quot;) == &quot;i·\x1d&quot; 
+PASS atob(&quot;ab cd&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;ab\t\n\f\r cd&quot;) == &quot;i·\x1d&quot; 
+PASS atob(&quot; \t\n\f\r ab\t\n\f\r cd\t\n\f\r &quot;) == &quot;i·\x1d&quot; 
+PASS atob(&quot;ab\t\n\f\r =\t\n\f\r =\t\n\f\r &quot;) == &quot;i&quot; 
+PASS atob(&quot;A&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;/A&quot;) == &quot;ü&quot; 
+PASS atob(&quot;//A&quot;) == &quot;ÿð&quot; 
+PASS atob(&quot;///A&quot;) == &quot;ÿÿÀ&quot; 
+PASS atob(&quot;////A&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;/&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;A/&quot;) == &quot;\x03&quot; 
+PASS atob(&quot;AA/&quot;) == &quot;\0\x0f&quot; 
+PASS atob(&quot;AAAA/&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;AAA/&quot;) == &quot;\0\0?&quot; 
+PASS atob(&quot;\0nonsense&quot;) must raise InvalidCharacterError 
+PASS atob(&quot;abcd\0nonsense&quot;) must raise InvalidCharacterError 
+PASS atob(undefined) must raise InvalidCharacterError 
+PASS atob(null) == &quot;žée&quot; 
+PASS atob(7) must raise InvalidCharacterError 
+PASS atob(12) == &quot;×&quot; 
+PASS atob(1.5) must raise InvalidCharacterError 
+PASS atob(true) == &quot;¶»ž&quot; 
+PASS atob(false) must raise InvalidCharacterError 
+PASS atob(NaN) == &quot;5£&quot; 
+PASS atob(Infinity) == &quot;\&quot;wâž+r&quot; 
+PASS atob(-Infinity) must raise InvalidCharacterError 
+PASS atob(0) must raise InvalidCharacterError 
+PASS atob(-0) must raise InvalidCharacterError 
+PASS atob(object &quot;foo&quot;) == &quot;~Š&quot; 
+PASS atob(object &quot;abcd&quot;) == &quot;i·\x1d&quot; 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisatobbase64html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/atob/base64.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/atob/base64.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/atob/base64.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,306 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;!--  Originally developed by Aryeh Gregor, funded by Google.  Copyright belongs
+to Google.  --&gt;
+&lt;title&gt;atob()/btoa() tests&lt;/title&gt;
+&lt;meta charset=utf-8&gt;
+&lt;div id=log&gt;&lt;/div&gt;
+&lt;script src=/resources/testharness.js&gt;&lt;/script&gt;
+&lt;script src=/resources/testharnessreport.js&gt;&lt;/script&gt;
+&lt;script&gt;
+/**
+ * btoa() as defined by the HTML5 spec, which mostly just references RFC4648.
+ */
+function mybtoa(s) {
+    // String conversion as required by WebIDL.
+    s = String(s);
+
+    // &quot;The btoa() method must throw an INVALID_CHARACTER_ERR exception if the
+    // method's first argument contains any character whose code point is
+    // greater than U+00FF.&quot;
+    for (var i = 0; i &lt; s.length; i++) {
+        if (s.charCodeAt(i) &gt; 255) {
+            return &quot;INVALID_CHARACTER_ERR&quot;;
+        }
+    }
+
+    var out = &quot;&quot;;
+    for (var i = 0; i &lt; s.length; i += 3) {
+        var groupsOfSix = [undefined, undefined, undefined, undefined];
+        groupsOfSix[0] = s.charCodeAt(i) &gt;&gt; 2;
+        groupsOfSix[1] = (s.charCodeAt(i) &amp; 0x03) &lt;&lt; 4;
+        if (s.length &gt; i + 1) {
+            groupsOfSix[1] |= s.charCodeAt(i + 1) &gt;&gt; 4;
+            groupsOfSix[2] = (s.charCodeAt(i + 1) &amp; 0x0f) &lt;&lt; 2;
+        }
+        if (s.length &gt; i + 2) {
+            groupsOfSix[2] |= s.charCodeAt(i + 2) &gt;&gt; 6;
+            groupsOfSix[3] = s.charCodeAt(i + 2) &amp; 0x3f;
+        }
+        for (var j = 0; j &lt; groupsOfSix.length; j++) {
+            if (typeof groupsOfSix[j] == &quot;undefined&quot;) {
+                out += &quot;=&quot;;
+            } else {
+                out += btoaLookup(groupsOfSix[j]);
+            }
+        }
+    }
+    return out;
+}
+
+/**
+ * Lookup table for mybtoa(), which converts a six-bit number into the
+ * corresponding ASCII character.
+ */
+function btoaLookup(idx) {
+    if (idx &lt; 26) {
+        return String.fromCharCode(idx + 'A'.charCodeAt(0));
+    }
+    if (idx &lt; 52) {
+        return String.fromCharCode(idx - 26 + 'a'.charCodeAt(0));
+    }
+    if (idx &lt; 62) {
+        return String.fromCharCode(idx - 52 + '0'.charCodeAt(0));
+    }
+    if (idx == 62) {
+        return '+';
+    }
+    if (idx == 63) {
+        return '/';
+    }
+    // Throw INVALID_CHARACTER_ERR exception here -- won't be hit in the tests.
+}
+
+/**
+ * Implementation of atob() according to the HTML spec, except that instead of
+ * throwing INVALID_CHARACTER_ERR we return null.
+ */
+function myatob(input) {
+    // WebIDL requires DOMStrings to just be converted using ECMAScript
+    // ToString, which in our case amounts to calling String().
+    input = String(input);
+
+    // &quot;Remove all space characters from input.&quot;
+    input = input.replace(/[ \t\n\f\r]/g, &quot;&quot;);
+
+    // &quot;If the length of input divides by 4 leaving no remainder, then: if
+    // input ends with one or two U+003D EQUALS SIGN (=) characters, remove
+    // them from input.&quot;
+    if (input.length % 4 == 0 &amp;&amp; /==?$/.test(input)) {
+        input = input.replace(/==?$/, &quot;&quot;);
+    }
+
+    // &quot;If the length of input divides by 4 leaving a remainder of 1, throw an
+    // INVALID_CHARACTER_ERR exception and abort these steps.&quot;
+    //
+    // &quot;If input contains a character that is not in the following list of
+    // characters and character ranges, throw an INVALID_CHARACTER_ERR
+    // exception and abort these steps:
+    //
+    // U+002B PLUS SIGN (+)
+    // U+002F SOLIDUS (/)
+    // U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9)
+    // U+0041 LATIN CAPITAL LETTER A to U+005A LATIN CAPITAL LETTER Z
+    // U+0061 LATIN SMALL LETTER A to U+007A LATIN SMALL LETTER Z&quot;
+    if (input.length % 4 == 1
+    || !/^[+/0-9A-Za-z]*$/.test(input)) {
+        return null;
+    }
+
+    // &quot;Let output be a string, initially empty.&quot;
+    var output = &quot;&quot;;
+
+    // &quot;Let buffer be a buffer that can have bits appended to it, initially
+    // empty.&quot;
+    //
+    // We append bits via left-shift and or.  accumulatedBits is used to track
+    // when we've gotten to 24 bits.
+    var buffer = 0;
+    var accumulatedBits = 0;
+
+    // &quot;While position does not point past the end of input, run these
+    // substeps:&quot;
+    for (var i = 0; i &lt; input.length; i++) {
+        // &quot;Find the character pointed to by position in the first column of
+        // the following table. Let n be the number given in the second cell of
+        // the same row.&quot;
+        //
+        // &quot;Append to buffer the six bits corresponding to number, most
+        // significant bit first.&quot;
+        //
+        // atobLookup() implements the table from the spec.
+        buffer &lt;&lt;= 6;
+        buffer |= atobLookup(input[i]);
+
+        // &quot;If buffer has accumulated 24 bits, interpret them as three 8-bit
+        // big-endian numbers. Append the three characters with code points
+        // equal to those numbers to output, in the same order, and then empty
+        // buffer.&quot;
+        accumulatedBits += 6;
+        if (accumulatedBits == 24) {
+            output += String.fromCharCode((buffer &amp; 0xff0000) &gt;&gt; 16);
+            output += String.fromCharCode((buffer &amp; 0xff00) &gt;&gt; 8);
+            output += String.fromCharCode(buffer &amp; 0xff);
+            buffer = accumulatedBits = 0;
+        }
+
+        // &quot;Advance position by one character.&quot;
+    }
+
+    // &quot;If buffer is not empty, it contains either 12 or 18 bits. If it
+    // contains 12 bits, discard the last four and interpret the remaining
+    // eight as an 8-bit big-endian number. If it contains 18 bits, discard the
+    // last two and interpret the remaining 16 as two 8-bit big-endian numbers.
+    // Append the one or two characters with code points equal to those one or
+    // two numbers to output, in the same order.&quot;
+    if (accumulatedBits == 12) {
+        buffer &gt;&gt;= 4;
+        output += String.fromCharCode(buffer);
+    } else if (accumulatedBits == 18) {
+        buffer &gt;&gt;= 2;
+        output += String.fromCharCode((buffer &amp; 0xff00) &gt;&gt; 8);
+        output += String.fromCharCode(buffer &amp; 0xff);
+    }
+
+    // &quot;Return output.&quot;
+    return output;
+}
+
+/**
+ * A lookup table for atob(), which converts an ASCII character to the
+ * corresponding six-bit number.
+ */
+function atobLookup(chr) {
+    if (/[A-Z]/.test(chr)) {
+        return chr.charCodeAt(0) - &quot;A&quot;.charCodeAt(0);
+    }
+    if (/[a-z]/.test(chr)) {
+        return chr.charCodeAt(0) - &quot;a&quot;.charCodeAt(0) + 26;
+    }
+    if (/[0-9]/.test(chr)) {
+        return chr.charCodeAt(0) - &quot;0&quot;.charCodeAt(0) + 52;
+    }
+    if (chr == &quot;+&quot;) {
+        return 62;
+    }
+    if (chr == &quot;/&quot;) {
+        return 63;
+    }
+    // Throw exception; should not be hit in tests
+}
+
+function btoaException(input) {
+    input = String(input);
+    for (var i = 0; i &lt; input.length; i++) {
+        if (input.charCodeAt(i) &gt; 255) {
+            return true;
+        }
+    }
+    return false;
+}
+
+function testBtoa(input) {
+    // &quot;The btoa() method must throw an INVALID_CHARACTER_ERR exception if the
+    // method's first argument contains any character whose code point is
+    // greater than U+00FF.&quot;
+    var normalizedInput = String(input);
+    for (var i = 0; i &lt; normalizedInput.length; i++) {
+        if (normalizedInput.charCodeAt(i) &gt; 255) {
+            assert_throws(&quot;InvalidCharacterError&quot;, function() { btoa(input); },
+                &quot;Code unit &quot; + i + &quot; has value &quot; + normalizedInput.charCodeAt(i) + &quot;, which is greater than 255&quot;);
+            return;
+        }
+    }
+    assert_equals(btoa(input), mybtoa(input));
+    assert_equals(atob(btoa(input)), String(input), &quot;atob(btoa(input)) must be the same as String(input)&quot;);
+}
+
+var tests = [&quot;עברית&quot;, &quot;&quot;, &quot;ab&quot;, &quot;abc&quot;, &quot;abcd&quot;, &quot;abcde&quot;,
+    // This one is thrown in because IE9 seems to fail atob(btoa()) on it.  Or
+    // possibly to fail btoa().  I actually can't tell what's happening here,
+    // but it doesn't hurt.
+    &quot;\xff\xff\xc0&quot;,
+    // Is your DOM implementation binary-safe?
+    &quot;\0a&quot;, &quot;a\0b&quot;,
+    // WebIDL tests.
+    undefined, null, 7, 12, 1.5, true, false, NaN, +Infinity, -Infinity, 0, -0,
+    {toString: function() { return &quot;foo&quot; }},
+];
+for (var i = 0; i &lt; 258; i++) {
+    tests.push(String.fromCharCode(i));
+}
+tests.push(String.fromCharCode(10000));
+tests.push(String.fromCharCode(65534));
+tests.push(String.fromCharCode(65535));
+
+// This is supposed to be U+10000.
+tests.push(String.fromCharCode(0xd800, 0xdc00));
+tests = tests.map(
+    function(elem) {
+        var expected = mybtoa(elem);
+        if (expected === &quot;INVALID_CHARACTER_ERR&quot;) {
+            return [&quot;btoa(&quot;  + format_value(elem) + &quot;) must raise INVALID_CHARACTER_ERR&quot;, elem];
+        }
+        return [&quot;btoa(&quot; + format_value(elem) + &quot;) == &quot; + format_value(mybtoa(elem)), elem];
+    }
+);
+
+var everything = &quot;&quot;;
+for (var i = 0; i &lt; 256; i++) {
+    everything += String.fromCharCode(i);
+}
+tests.push([&quot;btoa(first 256 code points concatenated)&quot;, everything]);
+
+generate_tests(testBtoa, tests);
+
+function testAtob(input) {
+    var expected = myatob(input);
+    if (expected === null) {
+        assert_throws(&quot;InvalidCharacterError&quot;, function() { atob(input) });
+        return;
+    }
+
+    assert_equals(atob(input), expected);
+}
+
+var tests = [&quot;&quot;, &quot;abcd&quot;, &quot; abcd&quot;, &quot;abcd &quot;, &quot; abcd===&quot;, &quot;abcd=== &quot;,
+    &quot;abcd ===&quot;, &quot;a&quot;, &quot;ab&quot;, &quot;abc&quot;, &quot;abcde&quot;, String.fromCharCode(0xd800, 0xdc00),
+    &quot;=&quot;, &quot;==&quot;, &quot;===&quot;, &quot;====&quot;, &quot;=====&quot;,
+    &quot;a=&quot;, &quot;a==&quot;, &quot;a===&quot;, &quot;a====&quot;, &quot;a=====&quot;,
+    &quot;ab=&quot;, &quot;ab==&quot;, &quot;ab===&quot;, &quot;ab====&quot;, &quot;ab=====&quot;,
+    &quot;abc=&quot;, &quot;abc==&quot;, &quot;abc===&quot;, &quot;abc====&quot;, &quot;abc=====&quot;,
+    &quot;abcd=&quot;, &quot;abcd==&quot;, &quot;abcd===&quot;, &quot;abcd====&quot;, &quot;abcd=====&quot;,
+    &quot;abcde=&quot;, &quot;abcde==&quot;, &quot;abcde===&quot;, &quot;abcde====&quot;, &quot;abcde=====&quot;,
+    &quot;=a&quot;, &quot;=a=&quot;, &quot;a=b&quot;, &quot;a=b=&quot;, &quot;ab=c&quot;, &quot;ab=c=&quot;, &quot;abc=d&quot;, &quot;abc=d=&quot;,
+    // With whitespace
+    &quot;ab\tcd&quot;, &quot;ab\ncd&quot;, &quot;ab\fcd&quot;, &quot;ab\rcd&quot;, &quot;ab cd&quot;, &quot;ab\u00a0cd&quot;,
+    &quot;ab\t\n\f\r cd&quot;, &quot; \t\n\f\r ab\t\n\f\r cd\t\n\f\r &quot;,
+    &quot;ab\t\n\f\r =\t\n\f\r =\t\n\f\r &quot;,
+    // Test if any bits are set at the end.  These should all be fine, since
+    // they end with A, which becomes 0:
+    &quot;A&quot;, &quot;/A&quot;, &quot;//A&quot;, &quot;///A&quot;, &quot;////A&quot;,
+    // These are all bad, since they end in / (= 63, all bits set) but their
+    // length isn't a multiple of four characters, so they can't be output by
+    // btoa().  Thus one might expect some UAs to throw exceptions or otherwise
+    // object, since they could never be output by btoa(), so they're good to
+    // test.
+    &quot;/&quot;, &quot;A/&quot;, &quot;AA/&quot;, &quot;AAAA/&quot;,
+    // But this one is possible:
+    &quot;AAA/&quot;,
+    // Binary-safety tests
+    &quot;\0nonsense&quot;, &quot;abcd\0nonsense&quot;,
+    // WebIDL tests
+    undefined, null, 7, 12, 1.5, true, false, NaN, +Infinity, -Infinity, 0, -0,
+    {toString: function() { return &quot;foo&quot; }},
+    {toString: function() { return &quot;abcd&quot; }},
+];
+tests = tests.map(
+    function(elem) {
+        if (myatob(elem) === null) {
+            return [&quot;atob(&quot; + format_value(elem) + &quot;) must raise InvalidCharacterError&quot;, elem];
+        }
+        return [&quot;atob(&quot; + format_value(elem) + &quot;) == &quot; + format_value(myatob(elem)), elem];
+    }
+);
+
+generate_tests(testAtob, tests);
+&lt;/script&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisatobw3cimportlog"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/atob/w3c-import.log (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/atob/w3c-import.log                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/atob/w3c-import.log        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+The tests in this directory were imported from the W3C repository.
+Do NOT modify these tests directly in WebKit.
+Instead, create a pull request on the W3C CSS or WPT github:
+        https://github.com/w3c/csswg-test
+        https://github.com/w3c/web-platform-tests
+
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
+
+Do NOT modify or remove this file.
+
+------------------------------------------------------------------------
+Properties requiring vendor prefixes:
+None
+Property values requiring vendor prefixes:
+None
+------------------------------------------------------------------------
+List of files:
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/atob/base64.html
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventloopscontainsjson"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/contains.json (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/contains.json                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/contains.json        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+[
+    {
+        &quot;id&quot;: &quot;definitions-1&quot;,
+        &quot;original_id&quot;: &quot;definitions-1&quot;
+    },
+    {
+        &quot;id&quot;: &quot;processing-model-3&quot;,
+        &quot;original_id&quot;: &quot;processing-model-3&quot;
+    },
+    {
+        &quot;id&quot;: &quot;generic-task-sources&quot;,
+        &quot;original_id&quot;: &quot;generic-task-sources&quot;
+    }
+]
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventloopsmicrotask_after_rafhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/microtask_after_raf.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/microtask_after_raf.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/microtask_after_raf.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,57 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;head&gt;
+&lt;link rel=author title=&quot;Aleks Totic&quot; href=&quot;mailto:atotic@chromium.org&quot;&gt;
+&lt;link rel=help href=&quot;https://html.spec.whatwg.org/#clean-up-after-running-script&quot;&gt;
+&lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;resources/common.js&quot;&gt;&lt;/script&gt;
+&lt;/head&gt;
+&lt;body style=&quot;height:2000px;&quot;&gt;
+&lt;script&gt;
+/*
+promise 1, promise 2 execute immediately after rAF
+promise 1 child executes immediately after promise 2.
+
+Relevant specs:
+
+https://html.spec.whatwg.org/#clean-up-after-running-script
+If the JavaScript execution context stack is now empty, perform a microtask checkpoint.
+
+https://html.spec.whatwg.org/#perform-a-microtask-checkpoint
+&quot;perform a microtask checkpoint&quot; runs in a loop until all microtasks have been delivered.
+*/
+
+var test = async_test(&quot;Microtask execute immediately after script&quot;);
+
+window.requestAnimationFrame( function() {
+    var events = [];
+
+    Promise.resolve()
+    .then(function() {
+        events.push(&quot;promise 1&quot;);
+        return Promise.resolve();
+    })
+    .then(function() {
+        test.step(function() {
+            events.push(&quot;promise 1 child&quot;);
+            assert_array_equals(events, [&quot;promise 1&quot;, &quot;promise 2&quot;, &quot;promise 1 child&quot;]);
+            test.done();
+        });
+    });
+    Promise.resolve()
+    .then(function() {
+        events.push(&quot;promise 2&quot;);
+    });
+
+    // Set up events that must be executed after Promise.
+    window.setTimeout(function() {
+        events.push('timeout');
+    }, 0);
+    window.addEventListener('scroll', function() {
+        events.push('scroll');
+    });
+    window.scrollBy(0,10);
+
+});
+&lt;/script&gt;
+&lt;/body&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventloopsmicrotask_after_scriptexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/microtask_after_script-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/microtask_after_script-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/microtask_after_script-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+FAIL Microtask immediately after script assert_array_equals: lengths differ, expected 3 got 4
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventloopsmicrotask_after_scripthtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/microtask_after_script.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/microtask_after_script.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/microtask_after_script.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,55 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;head&gt;
+&lt;link rel=author title=&quot;Aleks Totic&quot; href=&quot;mailto:atotic@chromium.org&quot;&gt;
+&lt;link rel=help href=&quot;https://html.spec.whatwg.org/#clean-up-after-running-script&quot;&gt;
+&lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;resources/common.js&quot;&gt;&lt;/script&gt;
+&lt;/head&gt;
+&lt;body style=&quot;height:2000px;&quot;&gt;
+&lt;script&gt;
+/*
+promise 1, promise 2 execute immediately after script tag
+promise 1 child executes immediately after promise 2.
+
+Relevant specs:
+
+https://html.spec.whatwg.org/#clean-up-after-running-script
+If the JavaScript execution context stack is now empty, perform a microtask checkpoint.
+
+https://html.spec.whatwg.org/#perform-a-microtask-checkpoint
+&quot;perform a microtask checkpoint&quot; runs in a loop until all microtasks have been delivered.
+*/
+
+var test = async_test(&quot;Microtask immediately after script&quot;);
+
+var events = [];
+
+Promise.resolve()
+.then(function() {
+    events.push(&quot;promise 1&quot;);
+    return Promise.resolve();
+})
+.then(function() {
+    test.step(function() {
+        events.push(&quot;promise 1 child&quot;);
+        assert_array_equals(events, [&quot;promise 1&quot;, &quot;promise 2&quot;, &quot;promise 1 child&quot;]);
+        test.done();
+    });
+});
+Promise.resolve()
+.then(function() {
+    events.push(&quot;promise 2&quot;);
+});
+
+// Set up events that must be executed after Promise.
+window.setTimeout(function() {
+    events.push('timeout');
+}, 0);
+window.addEventListener('scroll', function() {
+    events.push('scroll');
+});
+window.scrollBy(0,10);
+
+&lt;/script&gt;
+&lt;/body&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventloopsresourcescommonjs"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/resources/common.js (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/resources/common.js                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/resources/common.js        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+// Helper for tests that just want to verify the ordering of a series of events.
+// Usage:
+//   log_test(function(t, log) {
+//      log('first');
+//      log('second');
+//   }, ['first', 'second'], 'Ordinal numbers are ordinal');
+
+function log_test(func, expected, description) {
+    async_test(function(t) {
+        var actual = [];
+        function log(entry) {
+            actual.push(entry);
+            if (expected.length &lt;= actual.length) {
+                assert_array_equals(actual, expected);
+                t.done();
+            }
+        }
+        func(t, t.step_func(log));
+    }, description);
+}
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventloopsresourcesw3cimportlog"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/resources/w3c-import.log (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/resources/w3c-import.log                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/resources/w3c-import.log        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+The tests in this directory were imported from the W3C repository.
+Do NOT modify these tests directly in WebKit.
+Instead, create a pull request on the W3C CSS or WPT github:
+        https://github.com/w3c/csswg-test
+        https://github.com/w3c/web-platform-tests
+
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
+
+Do NOT modify or remove this file.
+
+------------------------------------------------------------------------
+Properties requiring vendor prefixes:
+None
+Property values requiring vendor prefixes:
+None
+------------------------------------------------------------------------
+List of files:
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/resources/common.js
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventloopstask_microtask_orderingexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/task_microtask_ordering-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/task_microtask_ordering-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/task_microtask_ordering-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+
+PASS Basic task and microtask ordering 
+PASS Level 1 bossfight (synthetic click) 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventloopstask_microtask_orderinghtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/task_microtask_ordering.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/task_microtask_ordering.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/task_microtask_ordering.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,85 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;title&gt;Task and Microtask Ordering &lt;/title&gt;
+&lt;link rel=author title=&quot;Joshua Bell&quot; href=&quot;mailto:jsbell@google.com&quot;&gt;
+&lt;link rel=help href=&quot;https://html.spec.whatwg.org/multipage/#event-loops&quot;&gt;
+&lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;resources/common.js&quot;&gt;&lt;/script&gt;
+
+&lt;div class=&quot;outer&quot;&gt;
+  &lt;div class=&quot;inner&quot;&gt;&lt;/div&gt;
+&lt;/div&gt;
+
+&lt;script&gt;
+
+// Based on: https://jakearchibald.com/2015/tasks-microtasks-queues-and-schedules/
+
+log_test(function(t, log) {
+    log('script start');
+
+    setTimeout(function() {
+        log('setTimeout');
+    }, 0);
+
+    Promise.resolve().then(function() {
+        log('promise1');
+    }).then(function() {
+        log('promise2');
+    });
+
+    log('script end');
+}, [
+    'script start',
+    'script end',
+    'promise1',
+    'promise2',
+    'setTimeout'
+], 'Basic task and microtask ordering');
+
+log_test(function(t, log) {
+    // Let's get hold of those elements
+    var outer = document.querySelector('.outer');
+    var inner = document.querySelector('.inner');
+
+    // Let's listen for attribute changes on the
+    // outer element
+    new MutationObserver(function() {
+        log('mutate');
+    }).observe(outer, {
+        attributes: true
+    });
+
+    // Here's a click listener...
+    function onClick() {
+        log('click');
+
+        setTimeout(function() {
+            log('timeout');
+        }, 0);
+
+        Promise.resolve().then(function() {
+            log('promise');
+        });
+
+        outer.setAttribute('data-random', Math.random());
+    }
+
+    // ...which we'll attach to both elements
+    inner.addEventListener('click', onClick);
+    outer.addEventListener('click', onClick);
+
+    // Note that this will behave differently than a real click,
+    // since the dispatch is synchronous and microtasks will not
+    // run between event bubbling steps.
+    inner.click();
+}, [
+    'click',
+    'click',
+    'promise',
+    'mutate',
+    'promise',
+    'timeout',
+    'timeout'
+], 'Level 1 bossfight (synthetic click)');
+
+&lt;/script&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventloopsw3cimportlog"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/w3c-import.log (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/w3c-import.log                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/w3c-import.log        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,21 @@
</span><ins>+The tests in this directory were imported from the W3C repository.
+Do NOT modify these tests directly in WebKit.
+Instead, create a pull request on the W3C CSS or WPT github:
+        https://github.com/w3c/csswg-test
+        https://github.com/w3c/web-platform-tests
+
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
+
+Do NOT modify or remove this file.
+
+------------------------------------------------------------------------
+Properties requiring vendor prefixes:
+None
+Property values requiring vendor prefixes:
+None
+------------------------------------------------------------------------
+List of files:
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/contains.json
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/microtask_after_raf.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/microtask_after_script.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/event-loops/task_microtask_ordering.html
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventsbodyonloadexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/body-onload-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/body-onload-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/body-onload-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+PASS body.onload should set the window.onload handler 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventsbodyonloadhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/body-onload.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/body-onload.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/body-onload.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;title&gt;HTMLBodyElement.onload&lt;/title&gt;
+&lt;link rel=&quot;author&quot; title=&quot;Boris Zbarsky&quot; href=&quot;mailto:bzbarsky@mit.edu&quot;&gt;
+&lt;link rel=&quot;author&quot; title=&quot;Ms2ger&quot; href=&quot;mailto:ms2ger@gmail.com&quot;&gt;
+&lt;link rel=&quot;help&quot; href=&quot;https://html.spec.whatwg.org/multipage/#handler-window-onload&quot;&gt;
+&lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+&lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+&lt;script&gt;
+var t = async_test(&quot;body.onload should set the window.onload handler&quot;)
+window.onload = t.step_func(function() {
+  assert_unreached(&quot;This handler should be overwritten.&quot;)
+})
+var b = document.createElement(&quot;body&quot;)
+b.onload = t.step_func(function(e) {
+  assert_equals(e.currentTarget, window,
+                &quot;The event should be fired at the window.&quot;)
+  t.done()
+})
+&lt;/script&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventscontainsjson"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/contains.json (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/contains.json                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/contains.json        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+[
+    {
+        &quot;id&quot;: &quot;event-handler-attributes&quot;,
+        &quot;original_id&quot;: &quot;event-handler-attributes&quot;
+    },
+    {
+        &quot;id&quot;: &quot;event-handlers-on-elements-document-objects-and-window-objects&quot;,
+        &quot;original_id&quot;: &quot;event-handlers-on-elements,-document-objects,-and-window-objects&quot;
+    },
+    {
+        &quot;id&quot;: &quot;event-firing&quot;,
+        &quot;original_id&quot;: &quot;event-firing&quot;
+    },
+    {
+        &quot;id&quot;: &quot;events-and-the-window-object&quot;,
+        &quot;original_id&quot;: &quot;events-and-the-window-object&quot;
+    }
+]
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventseventhandlerattributesbodywindowexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,46 @@
</span><ins>+
+PASS blur 
+PASS error 
+PASS focus 
+PASS load 
+PASS resize 
+PASS scroll 
+FAIL afterprint assert_equals: expected (function) function &quot;function f() {
+  return 0;
+}&quot; but got (undefined) undefined
+FAIL beforeprint assert_equals: expected (function) function &quot;function f() {
+  return 0;
+}&quot; but got (undefined) undefined
+PASS beforeunload 
+PASS hashchange 
+FAIL languagechange assert_equals: expected (function) function &quot;function f() {
+  return 0;
+}&quot; but got (undefined) undefined
+PASS message 
+PASS offline 
+PASS online 
+PASS pagehide 
+PASS pageshow 
+PASS popstate 
+PASS storage 
+PASS unload 
+PASS blur removal 
+PASS error removal 
+PASS focus removal 
+PASS load removal 
+PASS resize removal 
+PASS scroll removal 
+FAIL afterprint removal assert_equals: expected (object) null but got (undefined) undefined
+FAIL beforeprint removal assert_equals: expected (object) null but got (undefined) undefined
+PASS beforeunload removal 
+PASS hashchange removal 
+FAIL languagechange removal assert_equals: expected (object) null but got (undefined) undefined
+PASS message removal 
+PASS offline removal 
+PASS online removal 
+PASS pagehide removal 
+PASS pageshow removal 
+PASS popstate removal 
+PASS storage removal 
+PASS unload removal 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventseventhandlerattributesbodywindowhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;title&gt;HTMLBodyElement event handlers&lt;/title&gt;
+
+&lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+&lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+&lt;body&gt;
+&lt;script&gt;
+function f() {
+  return 0;
+}
+
+var handlers = ['blur','error','focus','load','resize','scroll',
+                'afterprint','beforeprint','beforeunload','hashchange',
+                'languagechange','message','offline','online','pagehide',
+                'pageshow','popstate','storage','unload'];
+handlers.forEach(function(handler) {
+  test(function() {
+    document.body['on' + handler] = f;
+    assert_equals(window['on' + handler], f);
+  }, handler);
+});
+
+handlers.forEach(function(handler) {
+    document.body['on' + handler] = null;
+});
+
+handlers.forEach(function(handler) {
+  test(function() {
+    assert_equals(document.body['on' + handler], null);
+    assert_equals(window['on' + handler], null);
+  }, handler + &quot; removal&quot;);
+});
+&lt;/script&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventseventhandlerjavascriptexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-javascript-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-javascript-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-javascript-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+PASS Event handlers starting with 'javascript:' should treat that as a label. 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventseventhandlerjavascripthtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-javascript.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-javascript.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-javascript.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;title&gt;Event handler with labels&lt;/title&gt;
+&lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+&lt;body onload=&quot;javascript:
+  for (var i = 0; i &lt; 2; ++i) {
+    for (var j = 0; j &lt; 2; ++j) {
+      t.step(function() {
+        assert_equals(i, 0);
+        assert_equals(j, 0);
+      });
+      break javascript;
+    }
+  }
+  t.done();
+&quot;&gt;
+&lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+&lt;script&gt;
+var t = async_test(&quot;Event handlers starting with 'javascript:' should treat that as a label.&quot;);
+&lt;/script&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventseventhandleronresizeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-onresize-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-onresize-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-onresize-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+
+PASS body.onresize should set the window.onload handler 
+PASS document.onresize should set the document.onresize handler 
+PASS meta.onresize should set the meta.onresize handler 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventseventhandleronresizehtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-onresize.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-onresize.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-onresize.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;title&gt;HTMLBodyElement.onresize&lt;/title&gt;
+&lt;link rel=&quot;author&quot; title=&quot;His-Name-Is-Joof&quot; href=&quot;mailto:jeffrharrison@gmail.com&quot;&gt;
+&lt;link rel=&quot;help&quot; href=&quot;https://html.spec.whatwg.org/multipage/#handler-window-onresize&quot;&gt;
+&lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+&lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+&lt;script&gt;
+var t = async_test(&quot;body.onresize should set the window.onload handler&quot;)
+window.onresize = t.step_func(function() {
+  assert_unreached(&quot;This handler should be overwritten.&quot;)
+})
+
+var body = document.createElement(&quot;body&quot;)
+body.onresize = t.step_func(function(e) {
+  assert_equals(e.currentTarget, window,
+                &quot;The event should be fired at the window.&quot;)
+  t.done()
+})
+window.dispatchEvent(new Event('resize'));
+
+t = async_test(&quot;document.onresize should set the document.onresize handler&quot;);
+document.onresize = t.step_func(function(e) {
+    assert_equals(e.currentTarget, document,
+            &quot;The event should be fired at the document&quot;)
+    t.done()
+})
+document.dispatchEvent(new Event('resize'));
+
+t = async_test(&quot;meta.onresize should set the meta.onresize handler&quot;);
+var meta = document.createElement(&quot;meta&quot;)
+meta.onresize = t.step_func(function(e) {
+    assert_equals(e.currentTarget, meta,
+            &quot;The event should be fired at the &lt;meta&gt; object&quot;)
+    t.done()
+})
+meta.dispatchEvent(new Event('resize'));
+&lt;/script&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventseventhandlerprocessingalgorithmexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-processing-algorithm-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-processing-algorithm-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-processing-algorithm-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+
+FAIL mouseover listener returning true cancels event assert_equals: expected true but got false
+FAIL mouseover listener returning false doesn't cancel event assert_equals: expected false but got true
+FAIL beforeunload listener returning null cancels event assert_equals: expected true but got false
+PASS beforeunload listener returning non-null doesn't cancel event 
+PASS click listener returning false cancels event 
+PASS blur listener returning false cancels event 
+PASS dblclick listener returning false cancels event 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventseventhandlerprocessingalgorithmhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-processing-algorithm.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-processing-algorithm.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-processing-algorithm.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,63 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;title&gt;Event handlers processing algorithm&lt;/title&gt;
+&lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+ &lt;body&gt;
+ &lt;div id=&quot;foo&quot; style=&quot;width: 100px; height: 100px; background-color: black&quot;&gt;&lt;/div&gt;
+ &lt;script&gt;
+ async_test(function(t) {
+     var ev = new Event('mouseover', {cancelable: true});
+     document.getElementById(&quot;foo&quot;).onmouseover = t.step_func(function() { return true });
+     document.getElementById(&quot;foo&quot;).dispatchEvent(ev);
+     assert_equals(ev.defaultPrevented, true)
+     t.done();
+ }, &quot;mouseover listener returning true cancels event&quot;);
+
+ async_test(function(t) {
+     var ev = new Event('mouseover', {cancelable: true});
+     document.getElementById(&quot;foo&quot;).onmouseover = t.step_func(function() { return false; });
+     document.getElementById(&quot;foo&quot;).dispatchEvent(ev);
+     assert_equals(ev.defaultPrevented, false);
+     t.done();
+ }, &quot;mouseover listener returning false doesn't cancel event&quot;);
+
+ async_test(function(t) {
+     var ev = new Event('beforeunload', {cancelable: true});
+     window.onbeforeunload = t.step_func(function() {return null});
+     window.dispatchEvent(ev);
+     assert_equals(ev.defaultPrevented, true);
+     t.done();
+ }, &quot;beforeunload listener returning null cancels event&quot;);
+
+ async_test(function(t) {
+     var ev = new Event('beforeunload', {cancelable: true});
+     window.onbeforeunload = t.step_func(function() {return true});
+     window.dispatchEvent(ev);
+     assert_equals(ev.defaultPrevented, false);
+     t.done();
+ }, &quot;beforeunload listener returning non-null doesn't cancel event&quot;);
+
+ async_test(function(t) {
+     var ev = new Event(&quot;click&quot;, {cancelable: true});
+     document.getElementById(&quot;foo&quot;).onclick = t.step_func(function() { return false; });
+     document.getElementById(&quot;foo&quot;).dispatchEvent(ev);
+     assert_equals(ev.defaultPrevented, true);
+     t.done();
+ }, &quot;click listener returning false cancels event&quot;);
+
+ async_test(function(t) {
+     var ev = new Event(&quot;blur&quot;, {cancelable: true});
+     document.getElementById(&quot;foo&quot;).onblur = t.step_func(function() { return false; });
+     document.getElementById(&quot;foo&quot;).dispatchEvent(ev);
+     assert_equals(ev.defaultPrevented, true);
+     t.done();
+ }, &quot;blur listener returning false cancels event&quot;);
+
+ async_test(function(t) {
+     var ev = new Event(&quot;dblclick&quot;, {cancelable: true});
+     document.getElementById(&quot;foo&quot;).ondblclick = t.step_func(function() { return false; });
+     document.getElementById(&quot;foo&quot;).dispatchEvent(ev);
+     assert_equals(ev.defaultPrevented, true);
+     t.done();
+ }, &quot;dblclick listener returning false cancels event&quot;);
+&lt;/script&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventseventhandlerspecexampleexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-spec-example-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-spec-example-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-spec-example-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+
+FAIL Event handler listeners should be registered when they are first set to an object value (object &quot;[object Object]&quot;). assert_equals: expected 2 but got 1
+FAIL Event handler listeners should be registered when they are first set to an object value (function &quot;function () {}&quot;). assert_equals: expected 2 but got 1
+FAIL Event handler listeners should be registered when they are first set to an object value (object &quot;42&quot;). assert_equals: expected 2 but got 1
+FAIL Event handler listeners should be registered when they are first set to an object value (object &quot;&quot;). assert_equals: expected 2 but got 1
+FAIL Event handler listeners should be registered when they are first set to an object value (42). assert_equals: expected 3 but got 2
+FAIL Event handler listeners should be registered when they are first set to an object value (null). assert_equals: expected 3 but got 2
+FAIL Event handler listeners should be registered when they are first set to an object value (undefined). assert_equals: expected 3 but got 2
+FAIL Event handler listeners should be registered when they are first set to an object value (&quot;&quot;). assert_equals: expected 3 but got 2
+FAIL Event handler listeners should be registered when they are first set to an object value. assert_equals: expected 3 but got 2
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventseventhandlerspecexamplehtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-spec-example.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-spec-example.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-spec-example.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,65 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;title&gt;Event handler invocation order&lt;/title&gt;
+&lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+&lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+&lt;script&gt;
+var objects = [{}, function() {}, new Number(42), new String()];
+var primitives = [42, null, undefined, &quot;&quot;];
+objects.forEach(function(object) {
+  var t = async_test(&quot;Event handler listeners should be registered when they &quot; +
+                     &quot;are first set to an object value (&quot; +
+                     format_value(object) + &quot;).&quot;);
+  t.step(function() {
+    var i = 0;
+    var uncalled = &quot;t.step(function() { assert_unreached('First event handler.') })&quot;
+    var button = document.createElement('button');
+    button.onclick = object; // event handler listener is registered here
+    button.addEventListener('click', t.step_func(function () { assert_equals(++i, 2) }), false);
+    button.setAttribute('onclick', uncalled);
+    button.addEventListener('click', t.step_func(function () { assert_equals(++i, 3) }), false);
+    button.onclick = t.step_func(function () { assert_equals(++i, 1); });
+    button.addEventListener('click', t.step_func(function () { assert_equals(++i, 4) }), false);
+    button.click()
+    assert_equals(button.getAttribute(&quot;onclick&quot;), uncalled)
+    assert_equals(i, 4);
+    t.done()
+  });
+});
+primitives.forEach(function(primitive) {
+  var t = async_test(&quot;Event handler listeners should be registered when they &quot; +
+                     &quot;are first set to an object value (&quot; +
+                     format_value(primitive) + &quot;).&quot;);
+  t.step(function() {
+    var i = 0;
+    var uncalled = &quot;t.step(function() { assert_unreached('First event handler.') })&quot;
+    var button = document.createElement('button');
+    button.onclick = primitive;
+    button.addEventListener('click', t.step_func(function () { assert_equals(++i, 1) }), false);
+    button.setAttribute('onclick', uncalled); // event handler listener is registered here
+    button.addEventListener('click', t.step_func(function () { assert_equals(++i, 3) }), false);
+    button.onclick = t.step_func(function () { assert_equals(++i, 2); });
+    button.addEventListener('click', t.step_func(function () { assert_equals(++i, 4) }), false);
+    button.click()
+    assert_equals(button.getAttribute(&quot;onclick&quot;), uncalled)
+    assert_equals(i, 4);
+    t.done()
+  });
+});
+var t = async_test(&quot;Event handler listeners should be registered when they &quot; +
+                   &quot;are first set to an object value.&quot;);
+t.step(function() {
+  var i = 0;
+  var uncalled = &quot;t.step(function() { assert_unreached('First event handler.') })&quot;
+  var button = document.createElement('button');
+  button.addEventListener('click', t.step_func(function () { assert_equals(++i, 1) }), false);
+  button.setAttribute('onclick', uncalled); // event handler listener is registered here
+  button.addEventListener('click', t.step_func(function () { assert_equals(++i, 3) }), false);
+  button.onclick = t.step_func(function () { assert_equals(++i, 2); });
+  button.addEventListener('click', t.step_func(function () { assert_equals(++i, 4) }), false);
+  button.click()
+  assert_equals(button.getAttribute(&quot;onclick&quot;), uncalled)
+  assert_equals(i, 4);
+  t.done()
+});
+&lt;/script&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventsinlineeventhandlerorderingexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/inline-event-handler-ordering-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/inline-event-handler-ordering-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/inline-event-handler-ordering-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+CONSOLE MESSAGE: line 18: SyntaxError: Unexpected token '}'
+CONSOLE MESSAGE: line 51: SyntaxError: Unexpected token '}'
+
+Harness Error (FAIL), message = SyntaxError: Unexpected token '}'
+
+FAIL Inline event handlers retain their ordering when invalid and force-compiled assert_array_equals: property 1, expected &quot;TWO&quot; but got &quot;THREE&quot;
+FAIL Inline event handlers retain their ordering when invalid and force-compiled via dispatch assert_array_equals: property 3, expected &quot;TWO&quot; but got &quot;THREE&quot;
+FAIL Inline event handlers retain their ordering when invalid and lazy-compiled assert_array_equals: property 1, expected &quot;TWO&quot; but got &quot;THREE&quot;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventsinlineeventhandlerorderinghtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/inline-event-handler-ordering.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/inline-event-handler-ordering.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/inline-event-handler-ordering.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,52 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;meta charset=&quot;utf-8&quot;&gt;
+&lt;title&gt;Inline event handlers retain their ordering even when invalid&lt;/title&gt;
+&lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+&lt;body&gt;
+&lt;script&gt;
+var events = [];
+
+test(function() {
+  events = [];
+  var e = document.createElement(&quot;div&quot;);
+  document.body.appendChild(e);
+  e.addEventListener(&quot;click&quot;, function() { events.push(&quot;ONE&quot;) });
+  e.setAttribute(&quot;onclick&quot;, &quot;window.open(&quot;);
+  e.addEventListener(&quot;click&quot;, function() { events.push(&quot;THREE&quot;) });
+  // Try to compile the event handler.
+  e.onclick;
+  e.setAttribute(&quot;onclick&quot;, &quot;events.push('TWO')&quot;);
+  e.dispatchEvent(new Event(&quot;click&quot;));
+  var expected_events = [&quot;ONE&quot;, &quot;TWO&quot;, &quot;THREE&quot;];
+  assert_array_equals(events, expected_events);
+}, &quot;Inline event handlers retain their ordering when invalid and force-compiled&quot;);
+
+test(function() {
+  events = [];
+  var e = document.createElement(&quot;div&quot;);
+  document.body.appendChild(e);
+  e.addEventListener(&quot;click&quot;, function() { events.push(&quot;ONE&quot;) });
+  e.setAttribute(&quot;onclick&quot;, &quot;window.open(&quot;);
+  e.addEventListener(&quot;click&quot;, function() { events.push(&quot;THREE&quot;) });
+  e.dispatchEvent(new Event(&quot;click&quot;));
+  e.setAttribute(&quot;onclick&quot;, &quot;events.push('TWO')&quot;);
+  e.dispatchEvent(new Event(&quot;click&quot;));
+  var expected_events = [&quot;ONE&quot;, &quot;THREE&quot;, &quot;ONE&quot;, &quot;TWO&quot;, &quot;THREE&quot;];
+  assert_array_equals(events, expected_events);
+}, &quot;Inline event handlers retain their ordering when invalid and force-compiled via dispatch&quot;);
+
+test(function() {
+  events = [];
+  var e = document.createElement(&quot;div&quot;);
+  document.body.appendChild(e);
+  e.addEventListener(&quot;click&quot;, function() { events.push(&quot;ONE&quot;) });
+  e.setAttribute(&quot;onclick&quot;, &quot;window.open(&quot;);
+  e.addEventListener(&quot;click&quot;, function() { events.push(&quot;THREE&quot;) });
+  e.setAttribute(&quot;onclick&quot;, &quot;events.push('TWO')&quot;);
+  e.dispatchEvent(new Event(&quot;click&quot;));
+  var expected_events = [&quot;ONE&quot;, &quot;TWO&quot;, &quot;THREE&quot;];
+  assert_array_equals(events, expected_events);
+}, &quot;Inline event handlers retain their ordering when invalid and lazy-compiled&quot;);
+&lt;/script&gt;
+&lt;/body&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventsinvaliduncompiledrawhandlercompiledlateexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-late-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-late-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-late-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 24: SyntaxError: Parser error
+CONSOLE MESSAGE: line 21: SyntaxError: Parser error
+
+FAIL Invalid uncompiled raw handlers should only be compiled when about to call them. assert_array_equals: lengths differ, expected 3 got 4
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventsinvaliduncompiledrawhandlercompiledlatehtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-late.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-late.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-late.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;meta charset=&quot;utf-8&quot;&gt;
+&lt;title&gt;Invalid uncompiled raw handlers should only be compiled when about to call them.&lt;/title&gt;
+&lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+&lt;body&gt;
+&lt;script&gt;
+setup({ allow_uncaught_exception: true });
+
+test(function() {
+  var events = [];
+  window.onerror = function() {
+    events.push(&quot;Error&quot;);
+  };
+
+  var div = document.createElement(&quot;div&quot;);
+  div.addEventListener(&quot;click&quot;, function (e) { events.push(&quot;click 1&quot;) });
+  div.setAttribute(&quot;onclick&quot;, &quot;}&quot;);
+  div.addEventListener(&quot;click&quot;, function (e) { events.push(&quot;click 2&quot;) });
+  div.dispatchEvent(new Event(&quot;click&quot;));
+  assert_equals(div.onclick, null);
+  assert_array_equals(events, [&quot;click 1&quot;, &quot;error&quot;, &quot;click 2&quot;]);
+});
+&lt;/script&gt;
+&lt;/body&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventsinvaliduncompiledrawhandlercompiledonceexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-once-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-once-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-once-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 18: SyntaxError: Unexpected token '}'
+CONSOLE MESSAGE: line 19: SyntaxError: Unexpected token '}'
+
+FAIL Invalid uncompiled raw handlers should only be compiled once. assert_equals: expected 1 but got 2
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventsinvaliduncompiledrawhandlercompiledoncehtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-once.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-once.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-once.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;meta charset=&quot;utf-8&quot;&gt;
+&lt;title&gt;Invalid uncompiled raw handlers should only be compiled once.&lt;/title&gt;
+&lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+&lt;body&gt;
+&lt;script&gt;
+setup({ allow_uncaught_exception: true });
+
+var errors = 0;
+window.onerror = function() {
+  errors++;
+};
+
+test(function() {
+  var e = document.body;
+  e.setAttribute(&quot;onclick&quot;, &quot;window.open(&quot;);
+  assert_equals(e.onclick, null);
+  assert_equals(e.onclick, null);
+  assert_equals(errors, 1);
+});
+&lt;/script&gt;
+&lt;/body&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventsonerroreventhandlerexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/onerroreventhandler-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/onerroreventhandler-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/onerroreventhandler-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+
+
+FAIL onerror + ErrorEvent + Window assert_equals: expected 5 but got 1
+FAIL onerror + !ErrorEvent + Window assert_equals: expected 5 but got 1
+PASS onerror + Document 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventsonerroreventhandlerframehtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/onerroreventhandler-frame.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/onerroreventhandler-frame.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/onerroreventhandler-frame.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,56 @@
</span><ins>+&lt;body&gt;&lt;/body&gt;
+&lt;script&gt;
+function check1(args, callee) {
+  parent.t.step(function() {
+    parent.assert_equals(callee.length, 5);
+    parent.assert_equals(args.length, 5);
+    parent.assert_equals(args[0], reference_error.message);
+    parent.assert_equals(args[1], reference_error.filename);
+    parent.assert_equals(args[2], reference_error.lineno);
+    parent.assert_equals(args[3], reference_error.colno);
+    parent.assert_equals(args[4], reference_error.error);
+    parent.t.done();
+  });
+}
+
+var reference_error = new ErrorEvent(&quot;error&quot;, {
+  filename: &quot;error_file.js&quot;,
+  lineno: 333,
+  colno: 999,
+  message: &quot;there was an error&quot;,
+  error: {nondefault: 'some unusual object'},
+});
+
+parent.t.step(function() {
+  document.body.outerHTML = &quot;&lt;body onerror='check1(arguments, arguments.callee)'&gt;&lt;/body&gt;&quot;
+  window.dispatchEvent(reference_error);
+});
+
+function check2(args, callee) {
+  parent.t2.step(function() {
+    parent.assert_equals(callee.length, 5);
+    parent.assert_equals(args.length, 1);
+    parent.assert_false(args[0] instanceof ErrorEvent);
+    parent.t2.done()
+  });
+}
+
+parent.t2.step(function() {
+  document.body.outerHTML = &quot;&lt;body onerror='check2(arguments, arguments.callee)'&gt;&lt;/body&gt;&quot;
+  window.dispatchEvent(new Event(&quot;error&quot;));
+});
+
+function check3(args, callee) {
+  parent.t3.step(function() {
+    parent.assert_equals(args.length, 1);
+    parent.assert_equals(callee.length, 1);
+  });
+}
+
+parent.t3.step(function() {
+  document.body.outerHTML = &quot;&lt;body&gt;&lt;span onerror='check3(arguments, arguments.callee)'&gt;&lt;/span&gt;&lt;/body&gt;&quot;
+  document.body.firstChild.dispatchEvent(reference_error);
+  document.body.firstChild.dispatchEvent(new Event(&quot;error&quot;));
+  parent.t3.done();
+});
+&lt;/script&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventsonerroreventhandlerhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/onerroreventhandler.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/onerroreventhandler.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/onerroreventhandler.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;meta charset=utf-8&gt;
+&lt;title&gt;OnErrorEventHandler + ErrorEvent is treated differently&lt;/title&gt;
+&lt;script src=/resources/testharness.js&gt;&lt;/script&gt;
+&lt;script src=/resources/testharnessreport.js&gt;&lt;/script&gt;
+&lt;script&gt;
+var t = async_test(&quot;onerror + ErrorEvent + Window&quot;);
+var t2 = async_test(&quot;onerror + !ErrorEvent + Window&quot;);
+var t3 = async_test(&quot;onerror + Document&quot;);
+&lt;/script&gt;
+&lt;iframe src=&quot;onerroreventhandler-frame.html&quot;&gt;&lt;/iframe&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingeventsw3cimportlog"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/w3c-import.log (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/w3c-import.log                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/w3c-import.log        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+The tests in this directory were imported from the W3C repository.
+Do NOT modify these tests directly in WebKit.
+Instead, create a pull request on the W3C CSS or WPT github:
+        https://github.com/w3c/csswg-test
+        https://github.com/w3c/web-platform-tests
+
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
+
+Do NOT modify or remove this file.
+
+------------------------------------------------------------------------
+Properties requiring vendor prefixes:
+None
+Property values requiring vendor prefixes:
+None
+------------------------------------------------------------------------
+List of files:
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/body-onload.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/contains.json
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-attributes-body-window.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-javascript.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-onresize.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-processing-algorithm.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/event-handler-spec-example.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/inline-event-handler-ordering.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-late.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/invalid-uncompiled-raw-handler-compiled-once.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/onerroreventhandler-frame.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/events/onerroreventhandler.html
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2addEventListenerexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/addEventListener-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/addEventListener-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/addEventListener-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 20: ReferenceError: Can't find variable: undefined_variable
+CONSOLE MESSAGE: line 23: SyntaxError: Unexpected token ')'
+
+PASS window.onerror - addEventListener 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2addEventListenerhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/addEventListener.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/addEventListener.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/addEventListener.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;window.onerror - addEventListener&lt;/title&gt;
+  &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+  &lt;div id=log&gt;&lt;/div&gt;
+  &lt;script&gt;
+    setup({allow_uncaught_exception:true});
+    var t = async_test();
+    var ran = false;
+    window.addEventListener('error', t.step_func(function(e){
+        ran = true;
+        assert_true(e.isTrusted, 'isTrusted');
+    }), false);
+  &lt;/script&gt;
+  &lt;script&gt;
+    undefined_variable;
+  &lt;/script&gt;
+  &lt;script&gt;
+    for (;) {}
+  &lt;/script&gt;
+  &lt;script&gt;
+    t.step(function(){
+        assert_true(ran, 'ran');
+        t.done();
+    });
+  &lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2bodyonerrorcompileerrordataurlexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-compile-error-data-url-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-compile-error-data-url-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-compile-error-data-url-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 1: SyntaxError: Unexpected token ')'
+
+FAIL &lt;body onerror&gt; - compile error in &lt;script src=data:...&gt; assert_equals: first arg expected &quot;string&quot; but got &quot;object&quot;
+FAIL &lt;body onerror&gt; - compile error in &lt;script src=data:...&gt; (column) assert_equals: fourth arg expected &quot;number&quot; but got &quot;undefined&quot;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2bodyonerrorcompileerrordataurlhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-compile-error-data-url.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-compile-error-data-url.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-compile-error-data-url.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,37 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;&amp;lt;body onerror&gt; - compile error in &amp;lt;script src=data:...&gt;&lt;/title&gt;
+  &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+ &lt;/head&gt;
+  &lt;script&gt;
+    setup({allow_uncaught_exception:true});
+    var t = async_test();
+    var t_col = async_test(document.title+' (column)');
+    var ran = false;
+  &lt;/script&gt;
+ &lt;body onerror=&quot;
+    t.step(function(){
+        ran = true;
+        assert_equals(typeof event, 'string', 'first arg');
+        assert_equals(source, 'data:text/javascript,for(;){}', 'second arg');
+        assert_equals(typeof lineno, 'number', 'third arg');
+    });
+    t_col.step(function() {
+        assert_equals(typeof colno, 'number', 'fourth arg');
+    });
+    &quot;&gt;
+  &lt;div id=log&gt;&lt;/div&gt;
+  &lt;script src=&quot;data:text/javascript,for(;){}&quot;&gt;&lt;/script&gt;
+  &lt;script&gt;
+    t.step(function(){
+        assert_true(ran, 'ran');
+        t.done();
+    });
+    t_col.step(function(){
+        t_col.done();
+    });
+  &lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2bodyonerrorcompileerrorexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-compile-error-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-compile-error-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-compile-error-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 27: SyntaxError: Unexpected token ')'
+
+FAIL &lt;body onerror&gt; - compile error in &lt;script&gt; assert_equals: first arg expected &quot;string&quot; but got &quot;object&quot;
+FAIL &lt;body onerror&gt; - compile error in &lt;script&gt; (column) assert_equals: fourth arg expected &quot;number&quot; but got &quot;undefined&quot;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2bodyonerrorcompileerrorhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-compile-error.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-compile-error.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-compile-error.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,39 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;&amp;lt;body onerror&gt; - compile error in &amp;lt;script&gt;&lt;/title&gt;
+  &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+ &lt;/head&gt;
+  &lt;script&gt;
+    setup({allow_uncaught_exception:true});
+    var t = async_test();
+    var t_col = async_test(document.title+' (column)');
+    var ran = false;
+  &lt;/script&gt;
+ &lt;body onerror=&quot;
+    t.step(function(){
+        ran = true;
+        assert_equals(typeof event, 'string', 'first arg');
+        assert_equals(source, location.href, 'second arg');
+        assert_equals(typeof lineno, 'number', 'third arg');
+    });
+    t_col.step(function() {
+        assert_equals(typeof colno, 'number', 'fourth arg');
+    });
+    &quot;&gt;
+  &lt;div id=log&gt;&lt;/div&gt;
+  &lt;script&gt;
+    for(;) {}
+  &lt;/script&gt;
+  &lt;script&gt;
+    t.step(function(){
+        assert_true(ran, 'ran');
+        t.done();
+    });
+    t_col.step(function(){
+        t_col.done();
+    });
+  &lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2bodyonerrorruntimeerrorexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-runtime-error-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-runtime-error-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-runtime-error-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 27: ReferenceError: Can't find variable: undefined_variable
+
+FAIL &lt;body onerror&gt; - runtime error in &lt;script&gt; assert_equals: first arg expected &quot;string&quot; but got &quot;object&quot;
+FAIL &lt;body onerror&gt; - runtime error in &lt;script&gt; (column) assert_equals: fourth arg expected &quot;number&quot; but got &quot;undefined&quot;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2bodyonerrorruntimeerrorhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-runtime-error.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-runtime-error.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-runtime-error.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,39 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;&amp;lt;body onerror&gt; - runtime error in &amp;lt;script&gt;&lt;/title&gt;
+  &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+ &lt;/head&gt;
+  &lt;script&gt;
+    setup({allow_uncaught_exception:true});
+    var t = async_test();
+    var t_col = async_test(document.title+' (column)');
+    var ran = false;
+  &lt;/script&gt;
+ &lt;body onerror=&quot;
+    t.step(function(){
+        ran = true;
+        assert_equals(typeof event, 'string', 'first arg');
+        assert_equals(source, location.href, 'second arg');
+        assert_equals(typeof lineno, 'number', 'third arg');
+    });
+    t_col.step(function(){
+        assert_equals(typeof colno, 'number', 'fourth arg');
+    });
+    &quot;&gt;
+  &lt;div id=log&gt;&lt;/div&gt;
+  &lt;script&gt;
+    undefined_variable;
+  &lt;/script&gt;
+  &lt;script&gt;
+    t.step(function(){
+        assert_true(ran, 'ran');
+        t.done();
+    });
+    t_col.step(function(){
+        t_col.done();
+    });
+  &lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorcrossoriginexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-cross-origin-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-cross-origin-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-cross-origin-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+Blocked access to external URL http://www1.localhost:8800/html/webappapis/scripting/processing-model-2/support/syntax-error.js
+
+FAIL window.onerror - compile error in &lt;script src=//www1...&gt; assert_true: ran expected true got false
+FAIL window.onerror - compile error in &lt;script src=//www1...&gt; (column) assert_equals: fourth arg expected (number) 0 but got (undefined) undefined
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorcrossoriginsetIntervalhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-cross-origin-setInterval.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-cross-origin-setInterval.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-cross-origin-setInterval.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;window.onerror - compile error in cross-origin setInterval&lt;/title&gt;
+  &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+  &lt;div id=log&gt;&lt;/div&gt;
+  &lt;script&gt;
+    setup({allow_uncaught_exception:true});
+    var t = async_test();
+    var t_col = async_test(document.title+' (column)');
+    var ran = false;
+    var col_value;
+    var interval;
+    window.onerror = t.step_func(function(a, b, c, d){
+        clearInterval(interval);
+        ran = true;
+        col_value = d;
+        assert_equals(a, 'Script error.', 'first arg');
+        assert_equals(b, '', 'second arg');
+        assert_equals(c, 0, 'third arg');
+    });
+    function col_check() {
+        assert_equals(col_value, 0, 'fourth arg');
+        t_col.done();
+    }
+    var script = document.createElement('script');
+    script.src = location.href.replace('://', '://www1.').replace(/\/[^\/]+$/, '/support/syntax-error-in-setInterval.js');
+    document.body.appendChild(script);
+  &lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorcrossoriginsetTimeouthtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-cross-origin-setTimeout.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-cross-origin-setTimeout.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-cross-origin-setTimeout.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;window.onerror - compile error in cross-origin setTimeout&lt;/title&gt;
+  &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+  &lt;div id=log&gt;&lt;/div&gt;
+  &lt;script&gt;
+    setup({allow_uncaught_exception:true});
+    var t = async_test();
+    var t_col = async_test(document.title+' (column)');
+    var ran = false;
+    var col_value;
+    window.onerror = t.step_func(function(a, b, c, d){
+        ran = true;
+        col_value = d;
+        assert_equals(a, 'Script error.', 'first arg');
+        assert_equals(b, '', 'second arg');
+        assert_equals(c, 0, 'third arg');
+    });
+    function col_check() {
+        assert_equals(col_value, 0, 'fourth arg');
+        t_col.done();
+    }
+    var script = document.createElement('script');
+    script.src = location.href.replace('://', '://www1.').replace(/\/[^\/]+$/, '/support/syntax-error-in-setTimeout.js');
+    document.body.appendChild(script);
+  &lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorcrossoriginhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-cross-origin.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-cross-origin.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-cross-origin.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;window.onerror - compile error in &amp;lt;script src=//www1...&gt;&lt;/title&gt;
+  &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+  &lt;div id=log&gt;&lt;/div&gt;
+  &lt;script&gt;
+    setup({allow_uncaught_exception:true});
+    var t = async_test();
+    var t_col = async_test(document.title+' (column)');
+    var ran = false;
+    var col_value;
+    window.onerror = t.step_func(function(a, b, c, d){
+        ran = true;
+        col_value = d;
+        assert_equals(a, 'Script error.', 'first arg');
+        assert_equals(b, '', 'second arg');
+        assert_equals(c, 0, 'third arg');
+    });
+    var script = document.createElement('script');
+    script.src = location.href.replace('://', '://www1.').replace(/\/[^\/]+$/, '/support/syntax-error.js');
+    document.body.appendChild(script);
+    onload = function(){
+        t.step(function(){
+            assert_true(ran, 'ran');
+            t.done();
+        });
+        t_col.step(function(){
+            assert_equals(col_value, 0, 'fourth arg');
+            t_col.done();
+        });
+    };
+  &lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrordataurlexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-data-url-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-data-url-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-data-url-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 1: SyntaxError: Unexpected token ')'
+
+FAIL window.onerror - compile error in &lt;script src=data:...&gt; assert_equals: second arg expected &quot;data:text/javascript,for(;){}&quot; but got &quot;&quot;
+PASS window.onerror - compile error in &lt;script src=data:...&gt; (column) 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrordataurlhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-data-url.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-data-url.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-data-url.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;window.onerror - compile error in &amp;lt;script src=data:...&gt;&lt;/title&gt;
+  &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+  &lt;div id=log&gt;&lt;/div&gt;
+  &lt;script&gt;
+    setup({allow_uncaught_exception:true});
+    var t = async_test();
+    var t_col = async_test(document.title+' (column)');
+    var ran = false;
+    var col_value;
+    window.onerror = t.step_func(function(a, b, c, d){
+        ran = true;
+        col_value = d;
+        assert_equals(typeof a, 'string', 'first arg');
+        assert_equals(b, 'data:text/javascript,for(;){}', 'second arg');
+        assert_equals(typeof c, 'number', 'third arg');
+    });
+  &lt;/script&gt;
+  &lt;script src=&quot;data:text/javascript,for(;){}&quot;&gt;&lt;/script&gt;
+  &lt;script&gt;
+    t.step(function(){
+        assert_true(ran, 'ran');
+        t.done();
+    });
+    t_col.step(function(){
+        assert_equals(typeof col_value, 'number', 'fourth arg');
+        t_col.done();
+    });
+  &lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 25: SyntaxError: Unexpected token ')'
+
+PASS window.onerror - compile error in &lt;script&gt; 
+PASS window.onerror - compile error in &lt;script&gt; (column) 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorinattributeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-attribute-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-attribute-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-attribute-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 24: SyntaxError: Unexpected end of script
+
+PASS window.onerror - compile error in attribute 
+PASS window.onerror - compile error in attribute (column) 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorinattributehtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-attribute.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-attribute.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-attribute.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,39 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;window.onerror - compile error in attribute&lt;/title&gt;
+  &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+  &lt;div id=log&gt;&lt;/div&gt;
+  &lt;script&gt;
+    setup({allow_uncaught_exception:true});
+    var t = async_test();
+    var t_col = async_test(document.title+' (column)');
+    var ran = false;
+    var col_value;
+    window.onerror = t.step_func(function(a, b, c, d){
+        ran = true;
+        col_value = d;
+        assert_equals(typeof a, 'string', 'first arg');
+        assert_equals(b, location.href, 'second arg');
+        assert_equals(typeof c, 'number', 'third arg');
+    });
+  &lt;/script&gt;
+  &lt;p onclick=&quot;{&quot;&gt;&lt;/p&gt;
+  &lt;script&gt;
+    t.step(function(){
+        var ev = document.createEvent('Event');
+        ev.initEvent('click', false, false);
+        document.querySelector('p').dispatchEvent(ev);
+        assert_true(ran, 'ran');
+        t.done();
+    });
+    t_col.step(function(){
+        assert_equals(typeof col_value, 'number', 'fourth arg');
+        t_col.done();
+    });
+  &lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorinbodyonerrorexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-body-onerror-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-body-onerror-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-body-onerror-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 19: SyntaxError: Unexpected token ')'
+CONSOLE MESSAGE: line 16: SyntaxError: Unexpected end of script
+
+PASS window.onerror - compile error in &lt;body onerror&gt; 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorinbodyonerrorhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-body-onerror.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-body-onerror.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-body-onerror.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;window.onerror - compile error in &amp;lt;body onerror&gt;&lt;/title&gt;
+  &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+  &lt;script&gt;
+    setup({allow_uncaught_exception:true});
+    var t = async_test();
+    var ran = false;
+    window.onerror = t.step_func(function(){
+        ran = true;
+    });
+  &lt;/script&gt;
+ &lt;/head&gt;
+ &lt;body onerror=&quot;{&quot;&gt;&lt;!--  sets the event handler to null before compiling  --&gt;
+  &lt;div id=log&gt;&lt;/div&gt;
+  &lt;script&gt;
+   for(;) {}
+  &lt;/script&gt;
+  &lt;script&gt;
+    t.step(function(){
+        assert_false(ran, 'ran');
+        t.done();
+    });
+  &lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorinsetIntervalexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-setInterval-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-setInterval-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-setInterval-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 1: SyntaxError: Unexpected end of script
+
+PASS window.onerror - compile error in setInterval 
+PASS window.onerror - compile error in setInterval (column) 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorinsetIntervalhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-setInterval.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-setInterval.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-setInterval.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,39 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;window.onerror - compile error in setInterval&lt;/title&gt;
+  &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+  &lt;div id=log&gt;&lt;/div&gt;
+  &lt;script&gt;
+    setup({allow_uncaught_exception:true});
+    var t = async_test();
+    var t_col = async_test(document.title+' (column)');
+    var ran = false;
+    var col_value;
+    var interval;
+    window.onerror = t.step_func(function(a, b, c, d){
+        clearInterval(interval);
+        ran = true;
+        col_value = d;
+        assert_equals(typeof a, 'string', 'first arg');
+        assert_equals(b, location.href, 'second arg');
+        assert_equals(typeof c, 'number', 'third arg');
+    });
+    interval = setInterval(&quot;{&quot;, 10);
+    setTimeout(function(){
+        t.step(function(){
+            clearInterval(interval);
+            assert_true(ran, 'ran');
+            t.done();
+        });
+        t_col.step(function(){
+            assert_equals(typeof col_value, 'number', 'fourth arg');
+            t_col.done();
+        });
+    }, 20);
+  &lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorinsetTimeoutexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-setTimeout-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-setTimeout-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-setTimeout-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 1: SyntaxError: Unexpected end of script
+
+PASS window.onerror - compile error in setTimeout 
+PASS window.onerror - compile error in setTimeout (column) 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorinsetTimeouthtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-setTimeout.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-setTimeout.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-setTimeout.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;window.onerror - compile error in setTimeout&lt;/title&gt;
+  &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+  &lt;div id=log&gt;&lt;/div&gt;
+  &lt;script&gt;
+    setup({allow_uncaught_exception:true});
+    var t = async_test();
+    var t_col = async_test(document.title+' (column)');
+    var ran = false;
+    var col_value;
+    window.onerror = t.step_func(function(a, b, c, d){
+        ran = true;
+        col_value = d;
+        assert_equals(typeof a, 'string', 'first arg');
+        assert_equals(b, location.href, 'second arg');
+        assert_equals(typeof c, 'number', 'third arg');
+    });
+    setTimeout(&quot;{&quot;, 10);
+    setTimeout(function(){
+        t.step(function(){
+            assert_true(ran, 'ran');
+            t.done();
+        });
+        t_col.step(function(){
+            assert_equals(typeof col_value, 'number', 'fourth arg');
+            t_col.done();
+        });
+    }, 20);
+  &lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorsameoriginexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-same-origin-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-same-origin-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-same-origin-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 1: SyntaxError: Unexpected token ')'
+
+PASS window.onerror - compile error in &lt;script src=...&gt; 
+PASS window.onerror - compile error in &lt;script src=...&gt; (column) 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorsameoriginhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-same-origin.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-same-origin.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-same-origin.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;window.onerror - compile error in &amp;lt;script src=...&gt;&lt;/title&gt;
+  &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+  &lt;div id=log&gt;&lt;/div&gt;
+  &lt;script&gt;
+    setup({allow_uncaught_exception:true});
+    var t = async_test();
+    var t_col = async_test(document.title+' (column)');
+    var ran = false;
+    var col_value;
+    window.onerror = t.step_func(function(a, b, c, d){
+        ran = true;
+        col_value = d;
+        assert_equals(typeof a, 'string', 'first arg');
+        assert_equals(b, document.querySelector('script[src=&quot;support/syntax-error.js&quot;]').src, 'second arg');
+        assert_equals(typeof c, 'number', 'third arg');
+    });
+  &lt;/script&gt;
+  &lt;script src=&quot;support/syntax-error.js&quot;&gt;&lt;/script&gt;
+  &lt;script&gt;
+    t.step(function(){
+        assert_true(ran, 'ran');
+        t.done();
+    });
+    t_col.step(function(){
+        assert_equals(typeof col_value, 'number', 'fourth arg');
+        t_col.done();
+    });
+  &lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2compileerrorhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;window.onerror - compile error in &amp;lt;script&gt;&lt;/title&gt;
+  &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+  &lt;div id=log&gt;&lt;/div&gt;
+  &lt;script&gt;
+    setup({allow_uncaught_exception:true});
+    var t = async_test();
+    var t_col = async_test(document.title+' (column)');
+    var ran = false;
+    var col_value;
+    window.onerror = t.step_func(function(a, b, c, d){
+        ran = true;
+        col_value = d;
+        assert_equals(typeof a, 'string', 'first arg');
+        assert_equals(b, location.href, 'second arg');
+        assert_equals(typeof c, 'number', 'third arg');
+    });
+  &lt;/script&gt;
+  &lt;script&gt;
+    for(;) {}
+  &lt;/script&gt;
+  &lt;script&gt;
+    t.step(function(){
+        assert_true(ran, 'ran');
+        t.done();
+    });
+    t_col.step(function(){
+        assert_equals(typeof col_value, 'number', 'fourth arg');
+        t_col.done();
+    });
+  &lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2containsjson"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/contains.json (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/contains.json                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/contains.json        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+[
+    {
+        &quot;id&quot;: &quot;definitions-0&quot;,
+        &quot;original_id&quot;: &quot;definitions-0&quot;
+    },
+    {
+        &quot;id&quot;: &quot;calling-scripts&quot;,
+        &quot;original_id&quot;: &quot;calling-scripts&quot;
+    },
+    {
+        &quot;id&quot;: &quot;creating-scripts&quot;,
+        &quot;original_id&quot;: &quot;creating-scripts&quot;
+    },
+    {
+        &quot;id&quot;: &quot;killing-scripts&quot;,
+        &quot;original_id&quot;: &quot;killing-scripts&quot;
+    },
+    {
+        &quot;id&quot;: &quot;runtime-script-errors&quot;,
+        &quot;original_id&quot;: &quot;runtime-script-errors&quot;,
+        &quot;children&quot;: [
+            {
+                &quot;id&quot;: &quot;runtime-script-errors-in-documents&quot;,
+                &quot;original_id&quot;: &quot;runtime-script-errors-in-documents&quot;
+            }
+        ]
+    }
+]
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorcrossoriginexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-cross-origin-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-cross-origin-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-cross-origin-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+Blocked access to external URL http://www1.localhost:8800/html/webappapis/scripting/processing-model-2/support/undefined-variable.js
+
+FAIL window.onerror - runtime error in &lt;script src=//www1...&gt; assert_true: ran expected true got false
+FAIL window.onerror - runtime error in &lt;script src=//www1...&gt; (column) assert_equals: fourth arg expected (number) 0 but got (undefined) undefined
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorcrossoriginsetIntervalhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-cross-origin-setInterval.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-cross-origin-setInterval.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-cross-origin-setInterval.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,34 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;window.onerror - runtime error in cross-origin setInterval&lt;/title&gt;
+  &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+  &lt;div id=log&gt;&lt;/div&gt;
+  &lt;script&gt;
+    setup({allow_uncaught_exception:true});
+    var t = async_test();
+    var t_col = async_test(document.title+' (column)');
+    var ran = false;
+    var col_value;
+    var interval;
+    window.onerror = t.step_func(function(a, b, c, d){
+        clearInterval(interval);
+        ran = true;
+        col_value = d;
+        assert_equals(a, 'Script error.', 'first arg');
+        assert_equals(b, '', 'second arg');
+        assert_equals(c, 0, 'third arg');
+    });
+    function col_check() {
+        assert_equals(col_value, 0, 'fourth arg');
+        t_col.done();
+    }
+    var script = document.createElement('script');
+    script.src = location.href.replace('://', '://www1.').replace(/\/[^\/]+$/, '/support/undefined-variable-in-setInterval.js');
+    document.body.appendChild(script);
+  &lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorcrossoriginsetTimeouthtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-cross-origin-setTimeout.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-cross-origin-setTimeout.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-cross-origin-setTimeout.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;window.onerror - runtime error in cross-origin setTimeout&lt;/title&gt;
+  &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+  &lt;div id=log&gt;&lt;/div&gt;
+  &lt;script&gt;
+    setup({allow_uncaught_exception:true});
+    var t = async_test();
+    var t_col = async_test(document.title+' (column)');
+    var ran = false;
+    var col_value;
+    window.onerror = t.step_func(function(a, b, c, d){
+        ran = true;
+        col_value = d;
+        assert_equals(a, 'Script error.', 'first arg');
+        assert_equals(b, '', 'second arg');
+        assert_equals(c, 0, 'third arg');
+    });
+    function col_check() {
+        assert_equals(col_value, 0, 'fourth arg');
+        t_col.done();
+    }
+    var script = document.createElement('script');
+    script.src = location.href.replace('://', '://www1.').replace(/\/[^\/]+$/, '/support/undefined-variable-in-setTimeout.js');
+    document.body.appendChild(script);
+  &lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorcrossoriginhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-cross-origin.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-cross-origin.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-cross-origin.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;window.onerror - runtime error in &amp;lt;script src=//www1...&gt;&lt;/title&gt;
+  &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+  &lt;div id=log&gt;&lt;/div&gt;
+  &lt;script&gt;
+    setup({allow_uncaught_exception:true});
+    var t = async_test();
+    var t_col = async_test(document.title+' (column)');
+    var ran = false;
+    var col_value;
+    window.onerror = t.step_func(function(a, b, c, d){
+        ran = true;
+        col_value = d;
+        assert_equals(a, 'Script error.', 'first arg');
+        assert_equals(b, '', 'second arg');
+        assert_equals(c, 0, 'third arg');
+    });
+    var script = document.createElement('script');
+    script.src = location.href.replace('://', '://www1.').replace(/\/[^\/]+$/, '/support/undefined-variable.js');
+    document.body.appendChild(script);
+    onload = function(){
+        t.step(function(){
+            assert_true(ran, 'ran');
+            t.done();
+        });
+        t_col.step(function(){
+            assert_equals(col_value, 0, 'fourth arg');
+            t_col.done();
+        });
+    };
+  &lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrordataurlexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-data-url-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-data-url-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-data-url-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 1: ReferenceError: Can't find variable: undefined_variable
+
+FAIL window.onerror - runtime error in &lt;script src=data:...&gt; assert_equals: second arg expected &quot;data:text/javascript,undefined_variable;&quot; but got &quot;&quot;
+PASS window.onerror - runtime error in &lt;script src=data:...&gt; (column) 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrordataurlhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-data-url.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-data-url.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-data-url.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;window.onerror - runtime error in &amp;lt;script src=data:...&gt;&lt;/title&gt;
+  &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+  &lt;div id=log&gt;&lt;/div&gt;
+  &lt;script&gt;
+    setup({allow_uncaught_exception:true});
+    var t = async_test();
+    var t_col = async_test(document.title+' (column)');
+    var ran = false;
+    var col_value;
+    window.onerror = t.step_func(function(a, b, c, d){
+        ran = true;
+        col_value = d;
+        assert_equals(typeof a, 'string', 'first arg');
+        assert_equals(b, 'data:text/javascript,undefined_variable;', 'second arg');
+        assert_equals(typeof c, 'number', 'third arg');
+    });
+  &lt;/script&gt;
+  &lt;script src=&quot;data:text/javascript,undefined_variable;&quot;&gt;&lt;/script&gt;
+  &lt;script&gt;
+    t.step(function(){
+        assert_true(ran, 'ran');
+        t.done();
+    });
+    t_col.step(function(){
+        assert_equals(typeof col_value, 'number', 'fourth arg');
+        t_col.done();
+    });
+  &lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 25: ReferenceError: Can't find variable: undefined_variable
+
+PASS window.onerror - runtime error in &lt;script&gt; 
+PASS window.onerror - runtime error in &lt;script&gt; (column) 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorinattributeexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-attribute-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-attribute-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-attribute-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 24: ReferenceError: Can't find variable: undefined_variable
+
+PASS window.onerror - runtime error in attribute 
+PASS window.onerror - runtime error in attribute (column) 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorinattributehtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-attribute.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-attribute.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-attribute.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,39 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;window.onerror - runtime error in attribute&lt;/title&gt;
+  &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+  &lt;div id=log&gt;&lt;/div&gt;
+  &lt;script&gt;
+    setup({allow_uncaught_exception:true});
+    var t = async_test();
+    var t_col = async_test(document.title+' (column)');
+    var ran = false;
+    var col_value;
+    window.onerror = t.step_func(function(a, b, c, d){
+        ran = true;
+        col_value = d;
+        assert_equals(typeof a, 'string', 'first arg');
+        assert_equals(b, location.href, 'second arg');
+        assert_equals(typeof c, 'number', 'third arg');
+    });
+  &lt;/script&gt;
+  &lt;p onclick=&quot;undefined_variable;&quot;&gt;&lt;/p&gt;
+  &lt;script&gt;
+    t.step(function(){
+        var ev = document.createEvent('Event');
+        ev.initEvent('click', false, false);
+        document.querySelector('p').dispatchEvent(ev);
+        assert_true(ran, 'ran');
+        t.done();
+    });
+    t_col.step(function(){
+        assert_equals(typeof col_value, 'number', 'fourth arg');
+        t_col.done();
+    });
+  &lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorinbodyonerrorexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-body-onerror-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-body-onerror-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-body-onerror-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 16: ReferenceError: Can't find variable: undefined_variable
+CONSOLE MESSAGE: line 13: ReferenceError: Can't find variable: undefined_variable_in_onerror
+
+PASS runtime error in &lt;body onerror&gt; 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorinbodyonerrorhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-body-onerror.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-body-onerror.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-body-onerror.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;runtime error in &amp;lt;body onerror&gt;&lt;/title&gt;
+  &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+  &lt;script&gt;
+    setup({allow_uncaught_exception:true});
+    var t = async_test();
+    var ran = 0;
+  &lt;/script&gt;
+ &lt;/head&gt;
+ &lt;body onerror=&quot;ran++; undefined_variable_in_onerror;&quot;&gt;
+  &lt;div id=log&gt;&lt;/div&gt;
+  &lt;script&gt;
+    undefined_variable;
+  &lt;/script&gt;
+  &lt;script&gt;
+    t.step(function(){
+        assert_equals(ran, 1, 'ran');
+        t.done();
+    });
+  &lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorinsetIntervalexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-setInterval-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-setInterval-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-setInterval-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 1: ReferenceError: Can't find variable: undefined_variable
+
+PASS window.onerror - runtime error in setInterval 
+PASS window.onerror - runtime error in setInterval (column) 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorinsetIntervalhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-setInterval.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-setInterval.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-setInterval.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,39 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;window.onerror - runtime error in setInterval&lt;/title&gt;
+  &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+  &lt;div id=log&gt;&lt;/div&gt;
+  &lt;script&gt;
+    setup({allow_uncaught_exception:true});
+    var t = async_test();
+    var t_col = async_test(document.title+' (column)');
+    var ran = false;
+    var col_value;
+    var interval;
+    window.onerror = t.step_func(function(a, b, c, d){
+        clearInterval(interval);
+        ran = true;
+        col_value = d;
+        assert_equals(typeof a, 'string', 'first arg');
+        assert_equals(b, location.href, 'second arg');
+        assert_equals(typeof c, 'number', 'third arg');
+    });
+    interval = setInterval(&quot;undefined_variable;&quot;, 10);
+    setTimeout(function(){
+        clearInterval(interval);
+        t.step(function(){
+            assert_true(ran, 'ran');
+            t.done();
+        });
+        t_col.step(function(){
+            assert_equals(typeof col_value, 'number', 'fourth arg');
+            t_col.done();
+        });
+    }, 20);
+  &lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorinsetTimeoutexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-setTimeout-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-setTimeout-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-setTimeout-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 1: ReferenceError: Can't find variable: undefined_variable
+
+PASS window.onerror - runtime error in setTimeout 
+PASS window.onerror - runtime error in setTimeout (column) 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorinsetTimeouthtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-setTimeout.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-setTimeout.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-setTimeout.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;window.onerror - runtime error in setTimeout&lt;/title&gt;
+  &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+  &lt;div id=log&gt;&lt;/div&gt;
+  &lt;script&gt;
+    setup({allow_uncaught_exception:true});
+    var t = async_test();
+    var t_col = async_test(document.title+' (column)');
+    var ran = false;
+    var col_value;
+    window.onerror = t.step_func(function(a, b, c, d){
+        ran = true;
+        col_value = d;
+        assert_equals(typeof a, 'string', 'first arg');
+        assert_equals(b, location.href, 'second arg');
+        assert_equals(typeof c, 'number', 'third arg');
+    });
+    setTimeout(&quot;undefined_variable;&quot;, 10);
+    setTimeout(function(){
+        t.step(function(){
+            assert_true(ran, 'ran');
+            t.done();
+        });
+        t_col.step(function(){
+            assert_equals(typeof col_value, 'number', 'fourth arg');
+            t_col.done();
+        });
+    }, 20);
+  &lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorinwindowonerrorexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-window-onerror-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-window-onerror-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-window-onerror-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 20: ReferenceError: Can't find variable: undefined_variable
+CONSOLE MESSAGE: line 16: ReferenceError: Can't find variable: undefined_variable_in_onerror
+
+PASS runtime error in window.onerror 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorinwindowonerrorhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-window-onerror.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-window-onerror.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-window-onerror.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,29 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;runtime error in window.onerror&lt;/title&gt;
+  &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+ &lt;div id=log&gt;&lt;/div&gt;
+  &lt;script&gt;
+    setup({allow_uncaught_exception:true});
+    var t = async_test();
+    var ran = 0;
+    window.onerror = function(){
+        ran++;
+        undefined_variable_in_onerror;
+    };
+  &lt;/script&gt;
+  &lt;script&gt;
+    undefined_variable;
+  &lt;/script&gt;
+  &lt;script&gt;
+    t.step(function(){
+        assert_equals(ran, 1, 'ran');
+        t.done();
+    });
+  &lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorsameoriginexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-same-origin-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-same-origin-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-same-origin-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 1: ReferenceError: Can't find variable: undefined_variable
+
+PASS window.onerror - runtime error in &lt;script src=...&gt; 
+PASS window.onerror - runtime error in &lt;script src=...&gt; (column) 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorsameoriginhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-same-origin.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-same-origin.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-same-origin.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,36 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;window.onerror - runtime error in &amp;lt;script src=...&gt;&lt;/title&gt;
+  &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+  &lt;div id=log&gt;&lt;/div&gt;
+  &lt;script&gt;
+    setup({allow_uncaught_exception:true});
+    var t = async_test();
+    var t_col = async_test(document.title+' (column)');
+    var ran = false;
+    var col_value;
+    window.onerror = t.step_func(function(a, b, c, d){
+        ran = true;
+        col_value = d;
+        assert_equals(typeof a, 'string', 'first arg');
+        assert_equals(b, document.querySelector('script[src=&quot;support/undefined-variable.js&quot;]').src, 'second arg');
+        assert_equals(typeof c, 'number', 'third arg');
+    });
+  &lt;/script&gt;
+  &lt;script src=&quot;support/undefined-variable.js&quot;&gt;&lt;/script&gt;
+  &lt;script&gt;
+    t.step(function(){
+        assert_true(ran, 'ran');
+        t.done();
+    });
+    t_col.step(function(){
+        assert_equals(typeof col_value, 'number', 'fourth arg');
+        t_col.done();
+    });
+  &lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2runtimeerrorhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,38 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;window.onerror - runtime error in &amp;lt;script&gt;&lt;/title&gt;
+  &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+  &lt;div id=log&gt;&lt;/div&gt;
+  &lt;script&gt;
+    setup({allow_uncaught_exception:true});
+    var t = async_test();
+    var t_col = async_test(document.title+' (column)');
+    var ran = false;
+    var col_value;
+    window.onerror = t.step_func(function(a, b, c, d){
+        ran = true;
+        col_value = d;
+        assert_equals(typeof a, 'string', 'first arg');
+        assert_equals(b, location.href, 'second arg');
+        assert_equals(typeof c, 'number', 'third arg');
+    });
+  &lt;/script&gt;
+  &lt;script&gt;
+    undefined_variable;
+  &lt;/script&gt;
+  &lt;script&gt;
+    t.step(function(){
+        assert_true(ran, 'ran');
+        t.done();
+    });
+    t_col.step(function(){
+        assert_equals(typeof col_value, 'number', 'fourth arg');
+        t_col.done();
+    });
+  &lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2supportsyntaxerrorinsetIntervaljs"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/syntax-error-in-setInterval.js (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/syntax-error-in-setInterval.js                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/syntax-error-in-setInterval.js        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+interval = setInterval('{', 10);
+setTimeout(function(){
+    clearInterval(interval);
+    t.step(function(){
+        assert_true(ran, 'ran');
+        t.done();
+    });
+    t_col.step(col_check);
+}, 20);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2supportsyntaxerrorinsetTimeoutjs"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/syntax-error-in-setTimeout.js (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/syntax-error-in-setTimeout.js                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/syntax-error-in-setTimeout.js        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+setTimeout('{', 10);
+setTimeout(function(){
+    t.step(function(){
+        assert_true(ran, 'ran');
+        t.done();
+    });
+    t_col.step(col_check);
+}, 20);
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2supportsyntaxerrorjs"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/syntax-error.js (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/syntax-error.js                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/syntax-error.js        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+for (;) {}
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2supportundefinedvariableinsetIntervaljs"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/undefined-variable-in-setInterval.js (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/undefined-variable-in-setInterval.js                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/undefined-variable-in-setInterval.js        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,9 @@
</span><ins>+interval = setInterval('undefined_variable;', 10);
+setTimeout(function(){
+    clearInterval(interval);
+    t.step(function(){
+        assert_true(ran, 'ran');
+        t.done();
+    });
+    t_col.step(col_check);
+}, 20);
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2supportundefinedvariableinsetTimeoutjs"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/undefined-variable-in-setTimeout.js (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/undefined-variable-in-setTimeout.js                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/undefined-variable-in-setTimeout.js        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,8 @@
</span><ins>+setTimeout('undefined_variable;', 10);
+setTimeout(function(){
+    t.step(function(){
+        assert_true(ran, 'ran');
+        t.done();
+    });
+    t_col.step(col_check);
+}, 20);
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2supportundefinedvariablejs"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/undefined-variable.js (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/undefined-variable.js                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/undefined-variable.js        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+undefined_variable;
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2supportw3cimportlog"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/w3c-import.log (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/w3c-import.log                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/w3c-import.log        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+The tests in this directory were imported from the W3C repository.
+Do NOT modify these tests directly in WebKit.
+Instead, create a pull request on the W3C CSS or WPT github:
+        https://github.com/w3c/csswg-test
+        https://github.com/w3c/web-platform-tests
+
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
+
+Do NOT modify or remove this file.
+
+------------------------------------------------------------------------
+Properties requiring vendor prefixes:
+None
+Property values requiring vendor prefixes:
+None
+------------------------------------------------------------------------
+List of files:
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/syntax-error-in-setInterval.js
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/syntax-error-in-setTimeout.js
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/syntax-error.js
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/undefined-variable-in-setInterval.js
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/undefined-variable-in-setTimeout.js
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/support/undefined-variable.js
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2w3cimportlog"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/w3c-import.log (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/w3c-import.log                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/w3c-import.log        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,50 @@
</span><ins>+The tests in this directory were imported from the W3C repository.
+Do NOT modify these tests directly in WebKit.
+Instead, create a pull request on the W3C CSS or WPT github:
+        https://github.com/w3c/csswg-test
+        https://github.com/w3c/web-platform-tests
+
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
+
+Do NOT modify or remove this file.
+
+------------------------------------------------------------------------
+Properties requiring vendor prefixes:
+None
+Property values requiring vendor prefixes:
+None
+------------------------------------------------------------------------
+List of files:
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/addEventListener.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-compile-error-data-url.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-compile-error.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-runtime-error.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-cross-origin-setInterval.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-cross-origin-setTimeout.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-cross-origin.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-data-url.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-attribute.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-body-onerror.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-setInterval.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-in-setTimeout.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error-same-origin.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/compile-error.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/contains.json
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-cross-origin-setInterval.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-cross-origin-setTimeout.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-cross-origin.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-data-url.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-attribute.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-body-onerror.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-setInterval.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-setTimeout.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-in-window-onerror.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error-same-origin.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/runtime-error.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-parse-error.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-runtime-error-throw.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-runtime-error.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-1.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-2.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-3.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-4.html
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2windowonerrorparseerrorexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-parse-error-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-parse-error-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-parse-error-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+CONSOLE MESSAGE: line 34: SyntaxError: Unexpected identifier 'script'
+
+PASS correct url passed to window.onerror 
+PASS correct line number passed to window.onerror 
+PASS correct number of calls to window.onerror 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2windowonerrorparseerrorhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-parse-error.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-parse-error.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-parse-error.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,40 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;window.onerror: parse errors&lt;/title&gt;
+  &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+  &lt;!-- 
+
+    In https://html.spec.whatwg.org/multipage/#creating-scripts ,
+    step 3 describes parsing the script, and step 5 says:
+      # Otherwise, report the error using the onerror event handler of
+      # the script's global object. If the error is still not handled
+      # after this, then the error may be reported to the user.
+    which links to
+    https://html.spec.whatwg.org/multipage/#report-the-error ,
+    which describes what to do when onerror is a Function.
+
+     --&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+
+  &lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+  &lt;script&gt;
+    setup({allow_uncaught_exception:true});
+    var error_count = 0;
+    window.onerror = function(msg, url, lineno) {
+      ++error_count;
+      test(function() {assert_equals(url, window.location.href)},
+           &quot;correct url passed to window.onerror&quot;);
+      test(function() {assert_equals(lineno, 34)},
+           &quot;correct line number passed to window.onerror&quot;);
+    };
+  &lt;/script&gt;
+  &lt;script&gt;This script does not parse correctly.&lt;/script&gt;
+  &lt;script&gt;
+  test(function() {assert_equals(error_count, 1)},
+       &quot;correct number of calls to window.onerror&quot;);
+  &lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2windowonerrorruntimeerrorexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-runtime-error-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-runtime-error-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-runtime-error-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+CONSOLE MESSAGE: line 36: TypeError: undefined is not an object (evaluating 'window.nonexistentproperty.oops')
+
+PASS correct url passed to window.onerror 
+PASS correct line number passed to window.onerror 
+PASS correct number of calls to window.onerror 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2windowonerrorruntimeerrorthrowexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-runtime-error-throw-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-runtime-error-throw-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-runtime-error-throw-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+CONSOLE MESSAGE: line 32: bar
+
+PASS correct number of calls to window.onerror 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2windowonerrorruntimeerrorthrowhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-runtime-error-throw.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-runtime-error-throw.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-runtime-error-throw.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,39 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;window.onerror: runtime scripterrors&lt;/title&gt;
+  &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+  &lt;!-- 
+
+    https://html.spec.whatwg.org/multipage/#runtime-script-errors
+    says what to do for uncaught runtime script errors, and just below
+    describes what to do when onerror is a Function.
+
+     --&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+
+  &lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+  &lt;script&gt;
+    setup({allow_uncaught_exception:true});
+    var error_count = 0;
+    window.onerror = function(msg, url, lineno) {
+      ++error_count;
+    };
+  &lt;/script&gt;
+  &lt;script&gt;
+  try {
+    // This error is caught, so it should NOT trigger onerror.
+    throw &quot;foo&quot;;
+  } catch (ex) {
+  }
+  // This error is NOT caught, so it should trigger onerror.
+  throw &quot;bar&quot;;
+  &lt;/script&gt;
+  &lt;script&gt;
+  test(function() {assert_equals(error_count, 1)},
+       &quot;correct number of calls to window.onerror&quot;);
+  &lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2windowonerrorruntimeerrorhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-runtime-error.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-runtime-error.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-runtime-error.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,43 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;html&gt;
+ &lt;head&gt;
+  &lt;title&gt;window.onerror: runtime scripterrors&lt;/title&gt;
+  &lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+  &lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+  &lt;!-- 
+
+    https://html.spec.whatwg.org/multipage/#runtime-script-errors
+    says what to do for uncaught runtime script errors, and just below
+    describes what to do when onerror is a Function.
+
+     --&gt;
+ &lt;/head&gt;
+ &lt;body&gt;
+
+  &lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+  &lt;script&gt;
+    setup({allow_uncaught_exception:true});
+    var error_count = 0;
+    window.onerror = function(msg, url, lineno) {
+      ++error_count;
+      test(function() {assert_equals(url, window.location.href)},
+           &quot;correct url passed to window.onerror&quot;);
+      test(function() {assert_equals(lineno, 36)},
+           &quot;correct line number passed to window.onerror&quot;);
+    };
+  &lt;/script&gt;
+  &lt;script&gt;
+  try {
+    // This error is caught, so it should NOT trigger onerror.
+    window.nonexistentproperty.oops();
+  } catch (ex) {
+  }
+  // This error is NOT caught, so it should trigger onerror.
+  window.nonexistentproperty.oops();
+  &lt;/script&gt;
+  &lt;script&gt;
+  test(function() {assert_equals(error_count, 1)},
+       &quot;correct number of calls to window.onerror&quot;);
+  &lt;/script&gt;
+ &lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2windowonerrorwithcrossframeeventlisteners1expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-1-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-1-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-1-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 2: ReferenceError: Can't find variable: thereIsNoSuchCallable

+
+FAIL The error event from an event listener should fire on that listener's global assert_true: expected true got false
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2windowonerrorwithcrossframeeventlisteners1html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-1.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-1.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-1.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;meta charset=utf-8&gt;
+&lt;title&gt;
+  When a listener from window A is added to an event target in window B via the
+  addEventListener function from window B, errors in that listener should be
+  reported to window A.
+&lt;/title&gt;
+&lt;script src=/resources/testharness.js&gt;&lt;/script&gt;
+&lt;script src=/resources/testharnessreport.js&gt;&lt;/script&gt;
+&lt;iframe&gt;&lt;/iframe&gt;
+&lt;iframe&gt;&lt;/iframe&gt;
+&lt;script&gt;
+test(function() {
+  var f = new frames[0].Function(&quot;thereIsNoSuchCallable()&quot;);
+  frames[1].document.addEventListener(&quot;myevent&quot;, f);
+  var frame0ErrorFired = false;
+  var frame1ErrorFired = false;
+  var ourErrorFired = false;
+  frames[0].addEventListener(&quot;error&quot;, function() {
+    frame0ErrorFired = true;
+  });
+  frames[1].addEventListener(&quot;error&quot;, function() {
+    frame1ErrorFired = true;
+  });
+  addEventListener(&quot;error&quot;, function() {
+    ourErrorFired = true;
+  });
+  frames[1].document.dispatchEvent(new Event(&quot;myevent&quot;));
+  assert_true(frame0ErrorFired);
+  assert_false(frame1ErrorFired);
+  assert_false(ourErrorFired);
+}, &quot;The error event from an event listener should fire on that listener's global&quot;);
+&lt;/script&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2windowonerrorwithcrossframeeventlisteners2expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-2-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-2-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-2-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 2: ReferenceError: Can't find variable: thereIsNoSuchCallable

+
+FAIL The error event from an event listener should fire on that listener's global assert_true: expected true got false
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2windowonerrorwithcrossframeeventlisteners2html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-2.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-2.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-2.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;meta charset=utf-8&gt;
+&lt;title&gt;
+  When a listener from window A is added to an event target in window B via the
+  addEventListener function from window A, errors in that listener should be
+  reported to window A.
+&lt;/title&gt;
+&lt;script src=/resources/testharness.js&gt;&lt;/script&gt;
+&lt;script src=/resources/testharnessreport.js&gt;&lt;/script&gt;
+&lt;iframe&gt;&lt;/iframe&gt;
+&lt;iframe&gt;&lt;/iframe&gt;
+&lt;script&gt;
+test(function() {
+  var f = new frames[0].Function(&quot;thereIsNoSuchCallable()&quot;);
+  frames[0].document.addEventListener.call(frames[1].document, &quot;myevent&quot;, f);
+  var frame0ErrorFired = false;
+  var frame1ErrorFired = false;
+  var ourErrorFired = false;
+  frames[0].addEventListener(&quot;error&quot;, function() {
+    frame0ErrorFired = true;
+  });
+  frames[1].addEventListener(&quot;error&quot;, function() {
+    frame1ErrorFired = true;
+  });
+  addEventListener(&quot;error&quot;, function() {
+    ourErrorFired = true;
+  });
+  frames[1].document.dispatchEvent(new Event(&quot;myevent&quot;));
+  assert_true(frame0ErrorFired);
+  assert_false(frame1ErrorFired);
+  assert_false(ourErrorFired);
+}, &quot;The error event from an event listener should fire on that listener's global&quot;);
+&lt;/script&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2windowonerrorwithcrossframeeventlisteners3expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-3-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-3-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-3-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 2: ReferenceError: Can't find variable: thereIsNoSuchCallable

+
+PASS The error event from an event listener should fire on that listener's global 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2windowonerrorwithcrossframeeventlisteners3html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-3.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-3.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-3.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;meta charset=utf-8&gt;
+&lt;title&gt;
+  When a listener from window A is added to an event target in window A via the
+  addEventListener function from window A, errors in that listener should be
+  reported to window A.
+&lt;/title&gt;
+&lt;script src=/resources/testharness.js&gt;&lt;/script&gt;
+&lt;script src=/resources/testharnessreport.js&gt;&lt;/script&gt;
+&lt;iframe&gt;&lt;/iframe&gt;
+&lt;iframe&gt;&lt;/iframe&gt;
+&lt;script&gt;
+test(function() {
+  var f = new frames[1].Function(&quot;thereIsNoSuchCallable()&quot;);
+  frames[1].document.addEventListener(&quot;myevent&quot;, f);
+  var frame0ErrorFired = false;
+  var frame1ErrorFired = false;
+  var ourErrorFired = false;
+  frames[0].addEventListener(&quot;error&quot;, function() {
+    frame0ErrorFired = true;
+  });
+  frames[1].addEventListener(&quot;error&quot;, function() {
+    frame1ErrorFired = true;
+  });
+  addEventListener(&quot;error&quot;, function() {
+    ourErrorFired = true;
+  });
+  frames[1].document.dispatchEvent(new Event(&quot;myevent&quot;));
+  assert_false(frame0ErrorFired);
+  assert_true(frame1ErrorFired);
+  assert_false(ourErrorFired);
+}, &quot;The error event from an event listener should fire on that listener's global&quot;);
+&lt;/script&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2windowonerrorwithcrossframeeventlisteners4expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-4-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-4-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-4-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,5 @@
</span><ins>+CONSOLE MESSAGE: line 2: ReferenceError: Can't find variable: thereIsNoSuchCallable

+
+PASS The error event from an event listener should fire on that listener's global 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapisscriptingprocessingmodel2windowonerrorwithcrossframeeventlisteners4html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-4.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-4.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-4.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,33 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;meta charset=utf-8&gt;
+&lt;title&gt;
+  When a listener from window A is added to an event target in window A via the
+  addEventListener function from window B, errors in that listener should be
+  reported to window A.
+&lt;/title&gt;
+&lt;script src=/resources/testharness.js&gt;&lt;/script&gt;
+&lt;script src=/resources/testharnessreport.js&gt;&lt;/script&gt;
+&lt;iframe&gt;&lt;/iframe&gt;
+&lt;iframe&gt;&lt;/iframe&gt;
+&lt;script&gt;
+test(function() {
+  var f = new frames[1].Function(&quot;thereIsNoSuchCallable()&quot;);
+  frames[0].document.addEventListener.call(frames[1].document, &quot;myevent&quot;, f);
+  var frame0ErrorFired = false;
+  var frame1ErrorFired = false;
+  var ourErrorFired = false;
+  frames[0].addEventListener(&quot;error&quot;, function() {
+    frame0ErrorFired = true;
+  });
+  frames[1].addEventListener(&quot;error&quot;, function() {
+    frame1ErrorFired = true;
+  });
+  addEventListener(&quot;error&quot;, function() {
+    ourErrorFired = true;
+  });
+  frames[1].document.dispatchEvent(new Event(&quot;myevent&quot;));
+  assert_false(frame0ErrorFired);
+  assert_true(frame1ErrorFired);
+  assert_false(ourErrorFired);
+}, &quot;The error event from an event listener should fire on that listener's global&quot;);
+&lt;/script&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectNavigatorIDexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,11 @@
</span><ins>+
+PASS appCodeName 
+PASS appName 
+PASS appVersion 
+PASS platform 
+PASS product 
+PASS taintEnabled 
+PASS userAgent type 
+PASS vendorSub 
+PASS userAgent value 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectNavigatorIDhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,10 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;meta charset=utf-8&gt;
+&lt;title&gt;NavigatorID&lt;/title&gt;
+&lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+&lt;script src=NavigatorID.js&gt;&lt;/script&gt;
+&lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+&lt;script&gt;
+run_test();
+&lt;/script&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectNavigatorIDjs"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID.js (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID.js                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID.js        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,63 @@
</span><ins>+function run_test() {
+  test(function() {
+    assert_equals(navigator.appCodeName, &quot;Mozilla&quot;);
+  }, &quot;appCodeName&quot;);
+
+  test(function() {
+    assert_equals(typeof navigator.appName, &quot;string&quot;,
+                  &quot;navigator.appName should be a string&quot;);
+  }, &quot;appName&quot;);
+
+  test(function() {
+    assert_equals(typeof navigator.appVersion, &quot;string&quot;,
+                  &quot;navigator.appVersion should be a string&quot;);
+  }, &quot;appVersion&quot;);
+
+  test(function() {
+    assert_equals(typeof navigator.platform, &quot;string&quot;,
+                  &quot;navigator.platform should be a string&quot;);
+  }, &quot;platform&quot;);
+
+  test(function() {
+    assert_equals(navigator.product, &quot;Gecko&quot;);
+  }, &quot;product&quot;);
+
+  test(function() {
+    // See https://www.w3.org/Bugs/Public/show_bug.cgi?id=22555
+    if (&quot;window&quot; in self) {
+      // If you identify as WebKit, taintEnabled should not exist.
+      if (navigator.userAgent.indexOf(&quot;WebKit&quot;) != -1) {
+        assert_false(&quot;taintEnabled&quot; in navigator);
+      }
+      // Otherwise it should exist and return false.
+      else {
+        assert_false(navigator.taintEnabled());
+      }
+    } else {
+      // taintEnabled should not exist in workers.
+      assert_false(&quot;taintEnabled&quot; in navigator);
+    }
+  }, &quot;taintEnabled&quot;);
+
+  test(function() {
+    assert_equals(typeof navigator.userAgent, &quot;string&quot;,
+                  &quot;navigator.userAgent should be a string&quot;);
+  }, &quot;userAgent type&quot;);
+
+  test(function() {
+    assert_equals(navigator.vendorSub, &quot;&quot;);
+  }, &quot;vendorSub&quot;);
+
+  async_test(function() {
+    var request = new XMLHttpRequest();
+    request.onload = this.step_func_done(function() {
+      assert_equals(&quot;user-agent: &quot; + navigator.userAgent + &quot;\n&quot;,
+                    request.response,
+                    &quot;userAgent should return the value sent in the &quot; +
+                    &quot;User-Agent header&quot;);
+    });
+    request.open(&quot;GET&quot;, &quot;/XMLHttpRequest/resources/inspect-headers.py?&quot; +
+                        &quot;filter_name=User-Agent&quot;);
+    request.send();
+  }, &quot;userAgent value&quot;);
+}
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectNavigatorIDworkerjs"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID.worker.js (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID.worker.js                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID.worker.js        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,4 @@
</span><ins>+importScripts(&quot;/resources/testharness.js&quot;)
+importScripts(&quot;NavigatorID.js&quot;)
+run_test();
+done();
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontainsjson"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/contains.json (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/contains.json                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/contains.json        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,22 @@
</span><ins>+[
+    {
+        &quot;id&quot;: &quot;client-identification&quot;,
+        &quot;original_id&quot;: &quot;client-identification&quot;
+    },
+    {
+        &quot;id&quot;: &quot;custom-handlers&quot;,
+        &quot;original_id&quot;: &quot;custom-handlers&quot;
+    },
+    {
+        &quot;id&quot;: &quot;security-and-privacy&quot;,
+        &quot;original_id&quot;: &quot;security-and-privacy&quot;
+    },
+    {
+        &quot;id&quot;: &quot;sample-handler-impl&quot;,
+        &quot;original_id&quot;: &quot;sample-handler-impl&quot;
+    },
+    {
+        &quot;id&quot;: &quot;manually-releasing-the-storage-mutex&quot;,
+        &quot;original_id&quot;: &quot;manually-releasing-the-storage-mutex&quot;
+    }
+]
</ins><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontent001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/001-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/001-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+FAIL isContentHandlerRegistered for new content type navigator.isContentHandlerRegistered is not a function. (In 'navigator.isContentHandlerRegistered('application/x-notRegisteredInOtherTCs-001', location.href.replace(/\/[^\/]*$/, &quot;&quot;) + '/%s')', 'navigator.isContentHandlerRegistered' is undefined)
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontent001xhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/001.xhtml (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/001.xhtml                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/001.xhtml        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,16 @@
</span><ins>+&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
+&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
+&lt;head&gt;
+&lt;title&gt;isContentHandlerRegistered for new content type&lt;/title&gt;
+&lt;script src='/resources/testharness.js'&gt;&lt;/script&gt;
+&lt;script src='/resources/testharnessreport.js'&gt;&lt;/script&gt;
+&lt;script type=&quot;application/ecmascript&quot;&gt;
+test(function() {
+  assert_equals(navigator.isContentHandlerRegistered('application/x-notRegisteredInOtherTCs-001', location.href.replace(/\/[^\/]*$/, &quot;&quot;) + '/%s'), 'new');
+});
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontent002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/002-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/002-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+FAIL isContentHandlerRegistered for content type that is not yet accepted navigator.registerContentHandler is not a function. (In 'navigator.registerContentHandler(ctype, url, 'test')', 'navigator.registerContentHandler' is undefined)
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontent002xhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/002.xhtml (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/002.xhtml                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/002.xhtml        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
+&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
+&lt;head&gt;
+&lt;title&gt;isContentHandlerRegistered for content type that is not yet accepted&lt;/title&gt;
+&lt;script src='/resources/testharness.js'&gt;&lt;/script&gt;
+&lt;script src='/resources/testharnessreport.js'&gt;&lt;/script&gt;
+&lt;script type=&quot;application/ecmascript&quot;&gt;
+test(function() {
+  var ctype = 'application/x-notRegisteredInOtherTCs-002';
+  var url = location.href.replace(/\/[^\/]*$/, &quot;&quot;) + &quot;/%s&quot;;
+  navigator.registerContentHandler(ctype, url, 'test');
+  assert_equals(navigator.isContentHandlerRegistered(ctype, url), 'declined');
+});
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontent003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/003-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/003-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+FAIL Content type case insensitivity in isContentHandlerRegistered navigator.registerContentHandler is not a function. (In 'navigator.registerContentHandler(ctype, url, 'test')', 'navigator.registerContentHandler' is undefined)
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontent003xhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/003.xhtml (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/003.xhtml                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/003.xhtml        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
+&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
+&lt;head&gt;
+&lt;title&gt;Content type case insensitivity in isContentHandlerRegistered&lt;/title&gt;
+&lt;script src='/resources/testharness.js'&gt;&lt;/script&gt;
+&lt;script src='/resources/testharnessreport.js'&gt;&lt;/script&gt;
+&lt;script type=&quot;application/ecmascript&quot;&gt;
+test(function()        {
+ var ctype = 'application/x-notRegisteredInOtherTCs-003', url = location.href.replace(/\/[^\/]*$/, &quot;&quot;) + '/%s';
+ navigator.registerContentHandler(ctype, url, 'test');
+ assert_equals(navigator.isContentHandlerRegistered(ctype.toUpperCase(), url), 'declined');
+});
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontent004expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/004-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/004-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/004-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+FAIL Non-matching url in isContentHandlerRegistered navigator.registerContentHandler is not a function. (In 'navigator.registerContentHandler(ctype, url, 'test')', 'navigator.registerContentHandler' is undefined)
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontent004xhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/004.xhtml (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/004.xhtml                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/004.xhtml        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
+&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
+&lt;head&gt;
+&lt;title&gt;Non-matching url in isContentHandlerRegistered&lt;/title&gt;
+&lt;script src='/resources/testharness.js'&gt;&lt;/script&gt;
+&lt;script src='/resources/testharnessreport.js'&gt;&lt;/script&gt;
+&lt;script type=&quot;application/ecmascript&quot;&gt;
+test(function() {
+  var ctype = 'application/x-notRegisteredInOtherTCs-004', url = location.href.replace(/\/[^\/]*$/, &quot;&quot;) + '/%s';
+  navigator.registerContentHandler(ctype, url, 'test');
+  assert_equals(navigator.isContentHandlerRegistered(ctype, 'http://t/core/standards/registerhandler/%s'), 'new');
+});
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontent005expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/005-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/005-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/005-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+FAIL Invalid characters in content type in isContentHandlerRegistered navigator.registerContentHandler is not a function. (In 'navigator.registerContentHandler(ctype, url, 'test')', 'navigator.registerContentHandler' is undefined)
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontent005xhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/005.xhtml (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/005.xhtml                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/005.xhtml        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
+&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
+&lt;head&gt;
+&lt;title&gt;Invalid characters in content type in isContentHandlerRegistered&lt;/title&gt;
+&lt;script src='/resources/testharness.js'&gt;&lt;/script&gt;
+&lt;script src='/resources/testharnessreport.js'&gt;&lt;/script&gt;
+&lt;script type=&quot;application/ecmascript&quot;&gt;
+test(function() {
+  var ctype = 'application/x-nótRegísteredInOthérTCs-004', url = location.href.replace(/\/[^\/]*$/, &quot;&quot;) + '/%s';
+  navigator.registerContentHandler(ctype, url, 'test');
+  assert_equals(navigator.isContentHandlerRegistered(ctype, 'http://t/core/standards/registerhandler/%s'), 'new');
+});
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontent006expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/006-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/006-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/006-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+FAIL Blacklisted content type and isContentHandlerRegistered navigator.registerContentHandler is not a function. (In 'navigator.registerContentHandler(ctype, url, 'test')', 'navigator.registerContentHandler' is undefined)
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontent006xhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/006.xhtml (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/006.xhtml                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/006.xhtml        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
+&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
+&lt;head&gt;
+&lt;title&gt;Blacklisted content type and isContentHandlerRegistered&lt;/title&gt;
+&lt;script src='/resources/testharness.js'&gt;&lt;/script&gt;
+&lt;script src='/resources/testharnessreport.js'&gt;&lt;/script&gt;
+&lt;script type=&quot;application/ecmascript&quot;&gt;
+test(function() {
+  var ctype = 'application/xhtml+xml', url = location.href.replace(/\/[^\/]*$/, &quot;&quot;) + '/%s';
+  navigator.registerContentHandler(ctype, url, 'test');
+  assert_equals(navigator.isContentHandlerRegistered(ctype, 'http://t/core/standards/registerhandler/%s'), 'new');
+});
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontentw3cimportlog"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/w3c-import.log (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/w3c-import.log                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/w3c-import.log        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+The tests in this directory were imported from the W3C repository.
+Do NOT modify these tests directly in WebKit.
+Instead, create a pull request on the W3C CSS or WPT github:
+        https://github.com/w3c/csswg-test
+        https://github.com/w3c/web-platform-tests
+
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
+
+Do NOT modify or remove this file.
+
+------------------------------------------------------------------------
+Properties requiring vendor prefixes:
+None
+Property values requiring vendor prefixes:
+None
+------------------------------------------------------------------------
+List of files:
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/001.xhtml
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/002.xhtml
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/003.xhtml
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/004.xhtml
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/005.xhtml
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content/006.xhtml
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontentexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,32 @@
</span><ins>+Note: If your browser limits the number of handler registration requests on a page, you might need to disable or significantly increase that limit for the tests below to run.
+
+
+FAIL the registerContentHandler method should exist on the navigator object assert_idl_attribute: property &quot;registerContentHandler&quot; not found in prototype chain
+FAIL a handler with valid arguments should work navigator.registerContentHandler is not a function. (In 'navigator.registerContentHandler('text/x-unknown-type', location.href + '/%s', 'foo')', 'navigator.registerContentHandler' is undefined)
+FAIL a relative URL should work navigator.registerContentHandler is not a function. (In 'navigator.registerContentHandler('text/x-unknown-type', '%s', 'foo')', 'navigator.registerContentHandler' is undefined)
+FAIL a URL with a fragment identifier should work navigator.registerContentHandler is not a function. (In 'navigator.registerContentHandler('text/x-unknown-type', location.href + '#%s', 'foo')', 'navigator.registerContentHandler' is undefined)
+FAIL a URL with a query string should work navigator.registerContentHandler is not a function. (In 'navigator.registerContentHandler('text/x-unknown-type', location.href + '?foo=%s', 'foo')', 'navigator.registerContentHandler' is undefined)
+FAIL a URL with a multi-argument query string should work navigator.registerContentHandler is not a function. (In 'navigator.registerContentHandler('text/x-unknown-type', location.href + '?foo=%s&amp;bar', 'foo')', 'navigator.registerContentHandler' is undefined)
+FAIL a URL with the passed string as a directory name should work navigator.registerContentHandler is not a function. (In 'navigator.registerContentHandler('text/x-unknown-type', location.href + '/%s/bar/baz/', 'foo')', 'navigator.registerContentHandler' is undefined)
+FAIL a URL with the passed string as a directory name followed by a query string and fragment identifier should work navigator.registerContentHandler is not a function. (In 'navigator.registerContentHandler('text/x-unknown-type', location.href + '/%s/bar/baz/?foo=1337&amp;bar#baz', 'foo')', 'navigator.registerContentHandler' is undefined)
+FAIL a URL with the passed string included twice should work navigator.registerContentHandler is not a function. (In 'navigator.registerContentHandler('text/x-unknown-type', location.href + '/%s/foo/%s/', 'foo')', 'navigator.registerContentHandler' is undefined)
+FAIL an empty url argument should throw SYNTAX_ERR assert_throws: function &quot;function () { navigator.registerContentHandler('text/x-un...&quot; threw object &quot;TypeError: navigator.registerContentHandler is not a func...&quot; that is not a DOMException SYNTAX_ERR: property &quot;code&quot; is equal to undefined, expected 12
+FAIL %s instead of domain name should throw SYNTAX_ERR assert_throws: function &quot;function () { navigator.registerContentHandler('text/x-un...&quot; threw object &quot;TypeError: navigator.registerContentHandler is not a func...&quot; that is not a DOMException SYNTAX_ERR: property &quot;code&quot; is equal to undefined, expected 12
+FAIL %s instead of subdomain name should throw syntax_err assert_throws: function &quot;function () { navigator.registerContentHandler('text/x-un...&quot; threw object &quot;TypeError: navigator.registerContentHandler is not a func...&quot; that is not a DOMException SYNTAX_ERR: property &quot;code&quot; is equal to undefined, expected 12
+FAIL a url argument without %s should throw SYNTAX_ERR assert_throws: function &quot;function () { navigator.registerContentHandler('text/x-un...&quot; threw object &quot;TypeError: navigator.registerContentHandler is not a func...&quot; that is not a DOMException SYNTAX_ERR: property &quot;code&quot; is equal to undefined, expected 12
+FAIL a url argument pointing to a different domain name, without %s should throw SYNTAX_ERR assert_throws: function &quot;function () { navigator.registerContentHandler('text/x-un...&quot; threw object &quot;TypeError: navigator.registerContentHandler is not a func...&quot; that is not a DOMException SYNTAX_ERR: property &quot;code&quot; is equal to undefined, expected 12
+FAIL a url argument without %s (but with %) should throw SYNTAX_ERR assert_throws: function &quot;function () { navigator.registerContentHandler('text/x-un...&quot; threw object &quot;TypeError: navigator.registerContentHandler is not a func...&quot; that is not a DOMException SYNTAX_ERR: property &quot;code&quot; is equal to undefined, expected 12
+FAIL a url argument without %s (but with %a) should throw SYNTAX_ERR assert_throws: function &quot;function () { navigator.registerContentHandler('text/x-un...&quot; threw object &quot;TypeError: navigator.registerContentHandler is not a func...&quot; that is not a DOMException SYNTAX_ERR: property &quot;code&quot; is equal to undefined, expected 12
+FAIL a url argument pointing to a different domain name should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerContentHandler('text/x-un...&quot; threw object &quot;TypeError: navigator.registerContentHandler is not a func...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL a url argument pointing to a different domain name should throw SECURITY_ERR (2) assert_throws: function &quot;function () { navigator.registerContentHandler('text/x-un...&quot; threw object &quot;TypeError: navigator.registerContentHandler is not a func...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL a url argument pointing to a different domain name should throw SECURITY_ERR (3) assert_throws: function &quot;function () { navigator.registerContentHandler('text/x-un...&quot; threw object &quot;TypeError: navigator.registerContentHandler is not a func...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL attempting to override the image/jpeg MIME type should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerContentHandler(blacklist[...&quot; threw object &quot;TypeError: navigator.registerContentHandler is not a func...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL attempting to override the text/html MIME type should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerContentHandler(blacklist[...&quot; threw object &quot;TypeError: navigator.registerContentHandler is not a func...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL attempting to override the text/javascript MIME type should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerContentHandler(blacklist[...&quot; threw object &quot;TypeError: navigator.registerContentHandler is not a func...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL attempting to override the text/plain MIME type should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerContentHandler(blacklist[...&quot; threw object &quot;TypeError: navigator.registerContentHandler is not a func...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL overriding the application/atom+xml MIME type should work navigator.registerContentHandler is not a function. (In 'navigator.registerContentHandler(whitelist[wi], location.href + '/%s', 'foo')', 'navigator.registerContentHandler' is undefined)
+FAIL overriding the application/rss+xml MIME type should work navigator.registerContentHandler is not a function. (In 'navigator.registerContentHandler(whitelist[wi], location.href + '/%s', 'foo')', 'navigator.registerContentHandler' is undefined)
+FAIL overriding the application/x-unrecognized MIME type should work navigator.registerContentHandler is not a function. (In 'navigator.registerContentHandler(whitelist[wi], location.href + '/%s', 'foo')', 'navigator.registerContentHandler' is undefined)
+FAIL overriding the text/unrecognized MIME type should work navigator.registerContentHandler is not a function. (In 'navigator.registerContentHandler(whitelist[wi], location.href + '/%s', 'foo')', 'navigator.registerContentHandler' is undefined)
+FAIL overriding the foo/bar MIME type should work navigator.registerContentHandler is not a function. (In 'navigator.registerContentHandler(whitelist[wi], location.href + '/%s', 'foo')', 'navigator.registerContentHandler' is undefined)
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectcontenthtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,136 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;meta charset='utf-8'&gt;
+&lt;title&gt;registerContentHandler()&lt;/title&gt;
+
+&lt;script src='/resources/testharness.js'&gt;&lt;/script&gt;
+&lt;script src='/resources/testharnessreport.js'&gt;&lt;/script&gt;
+
+&lt;noscript&gt;&lt;p&gt;Enable JavaScript and reload.&lt;/p&gt;&lt;/noscript&gt;
+
+&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; If your browser limits the number of handler
+registration requests on a page, you might need to disable or significantly
+increase that limit for the tests below to run.&lt;/p&gt;
+
+
+&lt;div id='log'&gt;&lt;/div&gt;
+
+&lt;script&gt;
+test(function () {
+  assert_idl_attribute(navigator, 'registerContentHandler');
+}, 'the registerContentHandler method should exist on the navigator object');
+
+/* Happy path */
+test(function () {
+  navigator.registerContentHandler('text/x-unknown-type', location.href + '/%s', 'foo');
+}, 'a handler with valid arguments should work');
+
+
+/* URL argument */
+test(function () {
+  navigator.registerContentHandler('text/x-unknown-type', '%s', 'foo');
+}, 'a relative URL should work');
+
+test(function () {
+  navigator.registerContentHandler('text/x-unknown-type', location.href + '#%s', 'foo');
+}, 'a URL with a fragment identifier should work');
+
+test(function () {
+  navigator.registerContentHandler('text/x-unknown-type', location.href + '?foo=%s', 'foo');
+}, 'a URL with a query string should work');
+
+test(function () {
+  navigator.registerContentHandler('text/x-unknown-type', location.href + '?foo=%s&amp;bar', 'foo');
+}, 'a URL with a multi-argument query string should work');
+
+test(function () {
+  navigator.registerContentHandler('text/x-unknown-type', location.href + '/%s/bar/baz/', 'foo');
+}, 'a URL with the passed string as a directory name should work');
+
+test(function () {
+  navigator.registerContentHandler('text/x-unknown-type', location.href + '/%s/bar/baz/?foo=1337&amp;bar#baz', 'foo');
+}, 'a URL with the passed string as a directory name followed by a query string and fragment identifier should work');
+
+test(function () {
+  navigator.registerContentHandler('text/x-unknown-type', location.href + '/%s/foo/%s/', 'foo');
+}, 'a URL with the passed string included twice should work');
+
+test(function () {
+  assert_throws('SYNTAX_ERR', function () { navigator.registerContentHandler('text/x-unknown-type', '', 'foo') } );
+}, 'an empty url argument should throw SYNTAX_ERR');
+
+test(function () {
+  assert_throws('SYNTAX_ERR', function () { navigator.registerContentHandler('text/x-unknown-type', 'http://%s.com', 'foo') } );
+}, '%s instead of domain name should throw SYNTAX_ERR');
+
+test(function () {
+  assert_throws('SYNTAX_ERR', function () { navigator.registerContentHandler('text/x-unknown-type', 'http://%s.example.com', 'foo') } );
+}, '%s instead of subdomain name should throw syntax_err');
+
+test(function () {
+  assert_throws('SYNTAX_ERR', function () { navigator.registerContentHandler('text/x-unknown-type', location.href + '', 'foo') } );
+}, 'a url argument without %s should throw SYNTAX_ERR');
+
+test(function () {
+  assert_throws('SYNTAX_ERR', function () { navigator.registerContentHandler('text/x-unknown-type', 'http://example.com', 'foo') } );
+}, 'a url argument pointing to a different domain name, without %s should throw SYNTAX_ERR');
+
+test(function () {
+  assert_throws('SYNTAX_ERR', function () { navigator.registerContentHandler('text/x-unknown-type', location.href + '/%', 'foo') } );
+}, 'a url argument without %s (but with %) should throw SYNTAX_ERR');
+
+test(function () {
+  assert_throws('SYNTAX_ERR', function () { navigator.registerContentHandler('text/x-unknown-type', location.href + '/%a', 'foo') } );
+}, 'a url argument without %s (but with %a) should throw SYNTAX_ERR');
+
+test(function () {
+  assert_throws('SECURITY_ERR', function () { navigator.registerContentHandler('text/x-unknown-type', 'http://example.com/%s', 'foo') } );
+}, 'a url argument pointing to a different domain name should throw SECURITY_ERR');
+
+test(function () {
+  assert_throws('SECURITY_ERR', function () { navigator.registerContentHandler('text/x-unknown-type', 'https://example.com/%s', 'foo') } );
+}, 'a url argument pointing to a different domain name should throw SECURITY_ERR (2)');
+
+test(function () {
+  assert_throws('SECURITY_ERR', function () { navigator.registerContentHandler('text/x-unknown-type', 'http://foobar.example.com/%s', 'foo') } );
+}, 'a url argument pointing to a different domain name should throw SECURITY_ERR (3)');
+
+/* Content type argument */
+
+/* The following MIME types are handled natively by the browser, and must not
+ * be possible to override. Note that this list only covers a few basic content
+ * types. Full lists of content types handled by each browser is found under
+ * /vendor/. */
+
+var blacklist = new Array(
+  'image/jpeg',
+  'text/html',
+  'text/javascript',
+  'text/plain');
+
+for (var bi=0, bl=blacklist.length; bi&lt;bl; ++bi){
+
+  test(function () {
+    assert_throws('SECURITY_ERR', function () { navigator.registerContentHandler(blacklist[bi], location.href + '/%s', 'foo') } );
+  }, 'attempting to override the ' + blacklist[bi] + ' MIME type should throw SECURITY_ERR');
+
+}
+
+/* Overriding the following MIME types should be possible. */
+var whitelist = new Array('application/atom+xml', /* For feeds. */
+  'application/rss+xml', /* For feeds. */
+  'application/x-unrecognized', /* Arbitrary MIME types should be overridable. */
+  'text/unrecognized',
+  'foo/bar');
+
+for (var wi=0, wl=whitelist.length; wi&lt;wl; ++wi){
+
+  test(function () {
+    navigator.registerContentHandler(whitelist[wi], location.href + '/%s', 'foo');
+  }, 'overriding the ' + whitelist[wi] + ' MIME type should work');
+
+}
+
+&lt;/script&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectnavigatorindexedexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigator-indexed-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigator-indexed-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigator-indexed-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,6 @@
</span><ins>+
+PASS window.navigator[0] should not exist 
+PASS window.navigator[0] should be settable 
+PASS window.navigator[-1] should not exist 
+PASS window.navigator[-1] should be settable 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectnavigatorindexedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigator-indexed.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigator-indexed.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigator-indexed.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,28 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;meta charset=utf-8&gt;
+&lt;title&gt;Test for lack of indexed getter on Navigator&lt;/title&gt;
+&lt;link rel=&quot;author&quot; title=&quot;Ms2ger&quot; href=&quot;mailto:Ms2ger@gmail.com&quot;&gt;
+&lt;link rel=&quot;help&quot; href=&quot;https://html.spec.whatwg.org/multipage/#the-navigator-object&quot;&gt;
+&lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+&lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+&lt;script&gt;
+test(function() {
+  assert_false(&quot;0&quot; in window.navigator);
+  assert_equals(window.navigator[0], undefined);
+}, &quot;window.navigator[0] should not exist&quot;);
+test(function() {
+  window.navigator[0] = &quot;pass&quot;;
+  assert_true(&quot;0&quot; in window.navigator);
+  assert_equals(window.navigator[0], &quot;pass&quot;);
+}, &quot;window.navigator[0] should be settable&quot;);
+test(function() {
+  assert_false(&quot;-1&quot; in window.navigator);
+  assert_equals(window.navigator[-1], undefined);
+}, &quot;window.navigator[-1] should not exist&quot;);
+test(function() {
+  window.navigator[-1] = &quot;pass&quot;;
+  assert_true(&quot;-1&quot; in window.navigator);
+  assert_equals(window.navigator[-1], &quot;pass&quot;);
+}, &quot;window.navigator[-1] should be settable&quot;);
+&lt;/script&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectnavigatorlanguageexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigatorlanguage-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigatorlanguage-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigatorlanguage-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+FAIL NavigatorLanguage: the most preferred language is the one returned by navigator.language assert_true: expected true got false
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectnavigatorlanguagehtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigatorlanguage.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigatorlanguage.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigatorlanguage.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;meta charset=&quot;utf-8&quot;&gt;
+&lt;title&gt;NavigatorLanguage: the most preferred language is the one returned by navigator.language&lt;/title&gt;
+&lt;link rel=&quot;author&quot; title=&quot;Intel&quot; href=&quot;http://www.intel.com&quot;&gt;
+&lt;link rel=&quot;help&quot; href=&quot;https://html.spec.whatwg.org/multipage/#navigatorlanguage&quot;&gt;
+&lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+&lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+&lt;script&gt;
+  test(function() {
+    assert_true(&quot;language&quot; in navigator);
+    assert_true(&quot;languages&quot; in navigator);
+
+    assert_equals(navigator.languages[0], navigator.language,
+    &quot;navigator.languages is the most preferred language first&quot;);
+
+  });
+&lt;/script&gt;
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocol001expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/001-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/001-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/001-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+FAIL isProtocolHandlerRegistered for new protocol navigator.isProtocolHandlerRegistered is not a function. (In 'navigator.isProtocolHandlerRegistered('web+CustomProtocolOne', dir_uri + '/%s')', 'navigator.isProtocolHandlerRegistered' is undefined)
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocol001xhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/001.xhtml (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/001.xhtml                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/001.xhtml        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
+&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
+&lt;head&gt;
+&lt;title&gt;isProtocolHandlerRegistered for new protocol&lt;/title&gt;
+&lt;script src='/resources/testharness.js'&gt;&lt;/script&gt;
+&lt;script src='/resources/testharnessreport.js'&gt;&lt;/script&gt;
+&lt;script type=&quot;application/ecmascript&quot;&gt;
+test(function() {
+  var dir_uri = location.href.replace(/\/[^\/]*$/, &quot;&quot;);
+  assert_equals(navigator.isProtocolHandlerRegistered('web+CustomProtocolOne', dir_uri + '/%s'), 'new');
+});
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocol002expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/002-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/002-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/002-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+FAIL isProtocolHandlerRegistered for protocol that is not yet accepted navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler(scheme, url, 'Ignore dialog or decline it')', 'navigator.registerProtocolHandler' is undefined)
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocol002xhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/002.xhtml (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/002.xhtml                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/002.xhtml        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
+&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
+&lt;head&gt;
+&lt;title&gt;isProtocolHandlerRegistered for protocol that is not yet accepted&lt;/title&gt;
+&lt;script src='/resources/testharness.js'&gt;&lt;/script&gt;
+&lt;script src='/resources/testharnessreport.js'&gt;&lt;/script&gt;
+&lt;script type=&quot;application/ecmascript&quot;&gt;
+test(function() {
+  var scheme = 'web+CustomProtocolTwo';
+  var url = location.href.replace(/\/[^\/]*$/, &quot;&quot;) + '/%s';
+  navigator.registerProtocolHandler(scheme, url, 'Ignore dialog or decline it');
+  assert_equals(navigator.isProtocolHandlerRegistered(scheme, url), 'declined')
+})
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocol003expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/003-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/003-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/003-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+FAIL Protocol case insensitivity in isProtocolHandlerRegistered navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler(scheme, url, 'Ignore dialog or decline it')', 'navigator.registerProtocolHandler' is undefined)
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocol003xhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/003.xhtml (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/003.xhtml                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/003.xhtml        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
+&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
+&lt;head&gt;
+&lt;title&gt;Protocol case insensitivity in isProtocolHandlerRegistered&lt;/title&gt;
+&lt;script src='/resources/testharness.js'&gt;&lt;/script&gt;
+&lt;script src='/resources/testharnessreport.js'&gt;&lt;/script&gt;
+&lt;script type=&quot;application/ecmascript&quot;&gt;
+test(function() {
+  var scheme = 'web+CustomProtocolTree', url = location.href.replace(/\/[^\/]*$/, &quot;&quot;) + '/%s';
+  navigator.registerProtocolHandler(scheme, url, 'Ignore dialog or decline it');
+  assert_equals(navigator.isProtocolHandlerRegistered(scheme.toUpperCase(), url), 'declined');
+});
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocol004expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/004-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/004-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/004-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+FAIL Non-matching url in isProtocolHandlerRegistered navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler(scheme, url, 'Ignore dialog')', 'navigator.registerProtocolHandler' is undefined)
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocol004xhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/004.xhtml (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/004.xhtml                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/004.xhtml        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
+&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
+&lt;head&gt;
+&lt;title&gt;Non-matching url in isProtocolHandlerRegistered&lt;/title&gt;
+&lt;script src='/resources/testharness.js'&gt;&lt;/script&gt;
+&lt;script src='/resources/testharnessreport.js'&gt;&lt;/script&gt;
+&lt;script type=&quot;application/ecmascript&quot;&gt;
+test(function() {
+  var scheme = 'web+CustomProtocolFour', url = location.href.replace(/\/[^\/]*$/, &quot;&quot;) + '/%s';
+  navigator.registerProtocolHandler(scheme, url, 'Ignore dialog');
+  assert_equals(navigator.isProtocolHandlerRegistered(scheme, 'http://t/core/standards/registerhandler/%s'), 'new');
+});
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocol005expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/005-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/005-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/005-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+FAIL Invalid characters in protocol scheme and isProtocolHandlerRegistered navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler(scheme, url, 'Ignore dialog or decline it')', 'navigator.registerProtocolHandler' is undefined)
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocol005xhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/005.xhtml (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/005.xhtml                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/005.xhtml        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
+&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
+&lt;head&gt;
+&lt;title&gt;Invalid characters in protocol scheme and isProtocolHandlerRegistered&lt;/title&gt;
+&lt;script src='/resources/testharness.js'&gt;&lt;/script&gt;
+&lt;script src='/resources/testharnessreport.js'&gt;&lt;/script&gt;
+&lt;script type=&quot;application/ecmascript&quot;&gt;
+test(function() {
+  var scheme = 'web+CústomPrótocolFíve', url = location.href.replace(/\/[^\/]*$/, &quot;&quot;) + '/%s';
+  navigator.registerProtocolHandler(scheme, url, 'Ignore dialog or decline it');
+  assert_equals(navigator.isProtocolHandlerRegistered(scheme, url), 'new');
+});
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocol006expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/006-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/006-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/006-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+FAIL Scheme outside white list and isProtocolHandlerRegistered navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler(scheme, url, 'Ignore dialog or decline it')', 'navigator.registerProtocolHandler' is undefined)
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocol006xhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/006.xhtml (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/006.xhtml                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/006.xhtml        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,19 @@
</span><ins>+&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
+&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
+&lt;head&gt;
+&lt;title&gt;Scheme outside white list and isProtocolHandlerRegistered&lt;/title&gt;
+&lt;script src='/resources/testharness.js'&gt;&lt;/script&gt;
+&lt;script src='/resources/testharnessreport.js'&gt;&lt;/script&gt;
+&lt;script type=&quot;application/ecmascript&quot;&gt;
+test(function()        {
+  var dir_uri = location.href.replace(/\/[^\/]*$/, &quot;&quot;);
+  var scheme = 'http', url = dir_uri + '/%s';
+  navigator.registerProtocolHandler(scheme, url, 'Ignore dialog or decline it');
+  assert_equals(navigator.isProtocolHandlerRegistered(scheme, url), 'new');
+});
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocolw3cimportlog"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/w3c-import.log (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/w3c-import.log                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/w3c-import.log        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+The tests in this directory were imported from the W3C repository.
+Do NOT modify these tests directly in WebKit.
+Instead, create a pull request on the W3C CSS or WPT github:
+        https://github.com/w3c/csswg-test
+        https://github.com/w3c/web-platform-tests
+
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
+
+Do NOT modify or remove this file.
+
+------------------------------------------------------------------------
+Properties requiring vendor prefixes:
+None
+Property values requiring vendor prefixes:
+None
+------------------------------------------------------------------------
+List of files:
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/001.xhtml
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/002.xhtml
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/003.xhtml
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/004.xhtml
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/005.xhtml
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/006.xhtml
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocolexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,75 @@
</span><ins>+Note: If your browser limits the number of handler registration requests on a page, you might need to disable or significantly increase that limit for the tests below to run.
+
+
+FAIL the registerProtocolHandler method should exist on the navigator object assert_idl_attribute: property &quot;registerProtocolHandler&quot; not found in prototype chain
+FAIL a handler with valid arguments should work navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler('tel', location.href + '/%s', 'foo')', 'navigator.registerProtocolHandler' is undefined)
+FAIL a relative URL should work navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler('tel', '%s', 'foo')', 'navigator.registerProtocolHandler' is undefined)
+FAIL a URL with a fragment identifier should work navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler('tel', location.href + '#%s', 'foo')', 'navigator.registerProtocolHandler' is undefined)
+FAIL a URL with a query string should work navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler('tel', location.href + '?foo=%s', 'foo')', 'navigator.registerProtocolHandler' is undefined)
+FAIL a URL with a multi-argument query string should work navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler('tel', location.href + '?foo=%s&amp;bar', 'foo')', 'navigator.registerProtocolHandler' is undefined)
+FAIL a URL with the passed string as a directory name should work navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler('tel', location.href + '/%s/bar/baz/', 'foo')', 'navigator.registerProtocolHandler' is undefined)
+FAIL a URL with the passed string as a directory name followed by a query string and fragment identifier should work navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler('tel', location.href + '/%s/bar/baz/?foo=1337&amp;bar#baz', 'foo')', 'navigator.registerProtocolHandler' is undefined)
+FAIL a URL with the passed string included twice should work navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler('tel', location.href + '/%s/foo/%s/', 'foo')', 'navigator.registerProtocolHandler' is undefined)
+FAIL an empty url argument should throw SYNTAX_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler('mailto',...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SYNTAX_ERR: property &quot;code&quot; is equal to undefined, expected 12
+FAIL %s instead of domain name should throw SYNTAX_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler('mailto',...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SYNTAX_ERR: property &quot;code&quot; is equal to undefined, expected 12
+FAIL %s instead of subdomain name should throw SYNTAX_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler('mailto',...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SYNTAX_ERR: property &quot;code&quot; is equal to undefined, expected 12
+FAIL a url argument without %s should throw SYNTAX_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler('mailto',...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SYNTAX_ERR: property &quot;code&quot; is equal to undefined, expected 12
+FAIL a url argument pointing to a different domain name, without %s should throw SYNTAX_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler('mailto',...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SYNTAX_ERR: property &quot;code&quot; is equal to undefined, expected 12
+FAIL a url argument without %s (but with %) should throw SYNTAX_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler('mailto',...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SYNTAX_ERR: property &quot;code&quot; is equal to undefined, expected 12
+FAIL a url argument without %s (but with %a) should throw SYNTAX_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler('mailto',...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SYNTAX_ERR: property &quot;code&quot; is equal to undefined, expected 12
+FAIL a url argument pointing to a different domain name should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler('mailto',...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL a url argument pointing to a different domain name should throw SECURITY_ERR (2) assert_throws: function &quot;function () { navigator.registerProtocolHandler('mailto',...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL a url argument pointing to a different domain name should throw SECURITY_ERR (3) assert_throws: function &quot;function () { navigator.registerProtocolHandler('mailto',...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL looping handlers should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler('mailto',...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL a url argument pointing to a non-http[s] scheme should throw SECURITY_ERR due to not being of the same origin assert_throws: function &quot;function () { navigator.registerProtocolHandler('sms', 't...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL a protocol argument containing an unrecognized scheme should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler('unrecogn...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SYNTAX_ERR: property &quot;code&quot; is equal to undefined, expected 12
+FAIL a protocol argument containing : should throw SYNTAX_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler('mailto:'...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SYNTAX_ERR: property &quot;code&quot; is equal to undefined, expected 12
+FAIL a protocol argument containing :// should throw SYNTAX_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler('mailto:/...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SYNTAX_ERR: property &quot;code&quot; is equal to undefined, expected 12
+FAIL a protocol argument containing http:// should throw SYNTAX_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler('http://'...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SYNTAX_ERR: property &quot;code&quot; is equal to undefined, expected 12
+FAIL a protocol argument containing a null character should throw SYNTAX_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler('mailto' ...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SYNTAX_ERR: property &quot;code&quot; is equal to undefined, expected 12
+FAIL a protocol argument containing a backspace character should throw SYNTAX_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler('mailtoo'...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SYNTAX_ERR: property &quot;code&quot; is equal to undefined, expected 12
+FAIL a protocol argument containing a LF character should throw SYNTAX_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler('mailto' ...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SYNTAX_ERR: property &quot;code&quot; is equal to undefined, expected 12
+FAIL a protocol argument containing non-alphanumeric characters (like a cyrillic “а”) should throw SYNTAX_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler('mаilto',...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SYNTAX_ERR: property &quot;code&quot; is equal to undefined, expected 12
+FAIL a protocol argument of “TEL” should be equivalent to “tel” navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler('TEL', location.href + '/%s', 'foo')', 'navigator.registerProtocolHandler' is undefined)
+FAIL a protocol argument of “teL” should be equivalent to “tel” navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler('teL', location.href + '/%s', 'foo')', 'navigator.registerProtocolHandler' is undefined)
+FAIL attempting to override the about protocol should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler(blacklist...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL attempting to override the attachment protocol should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler(blacklist...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL attempting to override the blob protocol should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler(blacklist...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL attempting to override the chrome protocol should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler(blacklist...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL attempting to override the cid protocol should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler(blacklist...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL attempting to override the data protocol should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler(blacklist...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL attempting to override the file protocol should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler(blacklist...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL attempting to override the ftp protocol should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler(blacklist...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL attempting to override the http protocol should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler(blacklist...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL attempting to override the https protocol should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler(blacklist...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL attempting to override the javascript protocol should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler(blacklist...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL attempting to override the livescript protocol should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler(blacklist...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL attempting to override the mid protocol should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler(blacklist...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL attempting to override the mocha protocol should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler(blacklist...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL attempting to override the opera protocol should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler(blacklist...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL attempting to override the operamail protocol should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler(blacklist...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL attempting to override the res protocol should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler(blacklist...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL attempting to override the resource protocol should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler(blacklist...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL attempting to override the shttp protocol should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler(blacklist...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL attempting to override the tcl protocol should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler(blacklist...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL attempting to override the vbscript protocol should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler(blacklist...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL attempting to override the view-source protocol should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler(blacklist...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL attempting to override the ws protocol should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler(blacklist...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL attempting to override the wss protocol should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler(blacklist...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL attempting to override the wyciwyg protocol should throw SECURITY_ERR assert_throws: function &quot;function () { navigator.registerProtocolHandler(blacklist...&quot; threw object &quot;TypeError: navigator.registerProtocolHandler is not a fun...&quot; that is not a DOMException SECURITY_ERR: property &quot;code&quot; is equal to undefined, expected 18
+FAIL overriding the geo protocol should work navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler(whitelist[wi], location.href + '/%s', 'foo')', 'navigator.registerProtocolHandler' is undefined)
+FAIL overriding the im protocol should work navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler(whitelist[wi], location.href + '/%s', 'foo')', 'navigator.registerProtocolHandler' is undefined)
+FAIL overriding the irc protocol should work navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler(whitelist[wi], location.href + '/%s', 'foo')', 'navigator.registerProtocolHandler' is undefined)
+FAIL overriding the ircs protocol should work navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler(whitelist[wi], location.href + '/%s', 'foo')', 'navigator.registerProtocolHandler' is undefined)
+FAIL overriding the mailto protocol should work navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler(whitelist[wi], location.href + '/%s', 'foo')', 'navigator.registerProtocolHandler' is undefined)
+FAIL overriding the mms protocol should work navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler(whitelist[wi], location.href + '/%s', 'foo')', 'navigator.registerProtocolHandler' is undefined)
+FAIL overriding the news protocol should work navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler(whitelist[wi], location.href + '/%s', 'foo')', 'navigator.registerProtocolHandler' is undefined)
+FAIL overriding the nntp protocol should work navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler(whitelist[wi], location.href + '/%s', 'foo')', 'navigator.registerProtocolHandler' is undefined)
+FAIL overriding the sms protocol should work navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler(whitelist[wi], location.href + '/%s', 'foo')', 'navigator.registerProtocolHandler' is undefined)
+FAIL overriding the smsto protocol should work navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler(whitelist[wi], location.href + '/%s', 'foo')', 'navigator.registerProtocolHandler' is undefined)
+FAIL overriding the tel protocol should work navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler(whitelist[wi], location.href + '/%s', 'foo')', 'navigator.registerProtocolHandler' is undefined)
+FAIL overriding the urn protocol should work navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler(whitelist[wi], location.href + '/%s', 'foo')', 'navigator.registerProtocolHandler' is undefined)
+FAIL overriding the webcal protocol should work navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler(whitelist[wi], location.href + '/%s', 'foo')', 'navigator.registerProtocolHandler' is undefined)
+FAIL overriding the wtai protocol should work navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler(whitelist[wi], location.href + '/%s', 'foo')', 'navigator.registerProtocolHandler' is undefined)
+FAIL overriding the xmpp protocol should work navigator.registerProtocolHandler is not a function. (In 'navigator.registerProtocolHandler(whitelist[wi], location.href + '/%s', 'foo')', 'navigator.registerProtocolHandler' is undefined)
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectprotocolhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,214 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;meta charset='utf-8'&gt;
+&lt;title&gt;registerProtocolHandler()&lt;/title&gt;
+
+&lt;script src='/resources/testharness.js'&gt;&lt;/script&gt;
+&lt;script src='/resources/testharnessreport.js'&gt;&lt;/script&gt;
+
+&lt;noscript&gt;&lt;p&gt;Enable JavaScript and reload.&lt;/p&gt;&lt;/noscript&gt;
+
+&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; If your browser limits the number of handler
+registration requests on a page, you might need to disable or significantly
+increase that limit for the tests below to run.&lt;/p&gt;
+
+&lt;div id='log'&gt;&lt;/div&gt;
+
+&lt;script type='text/javascript'&gt;
+
+test(function () {
+  assert_idl_attribute(navigator, 'registerProtocolHandler');
+}, 'the registerProtocolHandler method should exist on the navigator object');
+
+test(function () {
+  navigator.registerProtocolHandler('tel', location.href + '/%s', 'foo');
+}, 'a handler with valid arguments should work');
+
+
+/* URL argument */
+test(function () {
+  navigator.registerProtocolHandler('tel', '%s', 'foo');
+}, 'a relative URL should work');
+
+test(function () {
+  navigator.registerProtocolHandler('tel', location.href + '#%s', 'foo');
+}, 'a URL with a fragment identifier should work');
+
+test(function () {
+  navigator.registerProtocolHandler('tel', location.href + '?foo=%s', 'foo');
+}, 'a URL with a query string should work');
+
+test(function () {
+  navigator.registerProtocolHandler('tel', location.href + '?foo=%s&amp;bar', 'foo');
+}, 'a URL with a multi-argument query string should work');
+
+test(function () {
+  navigator.registerProtocolHandler('tel', location.href + '/%s/bar/baz/', 'foo');
+}, 'a URL with the passed string as a directory name should work');
+
+test(function () {
+  navigator.registerProtocolHandler('tel', location.href + '/%s/bar/baz/?foo=1337&amp;bar#baz', 'foo');
+}, 'a URL with the passed string as a directory name followed by a query string and fragment identifier should work');
+
+test(function () {
+  navigator.registerProtocolHandler('tel', location.href + '/%s/foo/%s/', 'foo');
+}, 'a URL with the passed string included twice should work');
+
+test(function () {
+  assert_throws('SYNTAX_ERR', function () { navigator.registerProtocolHandler('mailto', '', 'foo') } );
+}, 'an empty url argument should throw SYNTAX_ERR');
+
+test(function () {
+  assert_throws('SYNTAX_ERR', function () { navigator.registerProtocolHandler('mailto', 'http://%s.com', 'foo') } );
+}, '%s instead of domain name should throw SYNTAX_ERR');
+
+test(function () {
+  assert_throws('SYNTAX_ERR', function () { navigator.registerProtocolHandler('mailto', 'http://%s.example.com', 'foo') } );
+}, '%s instead of subdomain name should throw SYNTAX_ERR');
+
+test(function () {
+  assert_throws('SYNTAX_ERR', function () { navigator.registerProtocolHandler('mailto', location.href + '', 'foo') } );
+}, 'a url argument without %s should throw SYNTAX_ERR');
+
+test(function () {
+  assert_throws('SYNTAX_ERR', function () { navigator.registerProtocolHandler('mailto', 'http://example.com', 'foo') } );
+}, 'a url argument pointing to a different domain name, without %s should throw SYNTAX_ERR');
+
+test(function () {
+  assert_throws('SYNTAX_ERR', function () { navigator.registerProtocolHandler('mailto', location.href + '/%', 'foo') } );
+}, 'a url argument without %s (but with %) should throw SYNTAX_ERR');
+
+test(function () {
+  assert_throws('SYNTAX_ERR', function () { navigator.registerProtocolHandler('mailto', location.href + '/%a', 'foo') } );
+}, 'a url argument without %s (but with %a) should throw SYNTAX_ERR');
+
+test(function () {
+  assert_throws('SECURITY_ERR', function () { navigator.registerProtocolHandler('mailto', 'http://example.com/%s', 'foo') } );
+}, 'a url argument pointing to a different domain name should throw SECURITY_ERR');
+
+test(function () {
+  assert_throws('SECURITY_ERR', function () { navigator.registerProtocolHandler('mailto', 'https://example.com/%s', 'foo') } );
+}, 'a url argument pointing to a different domain name should throw SECURITY_ERR (2)');
+
+test(function () {
+  assert_throws('SECURITY_ERR', function () { navigator.registerProtocolHandler('mailto', 'http://foobar.example.com/%s', 'foo') } );
+}, 'a url argument pointing to a different domain name should throw SECURITY_ERR (3)');
+
+test(function () {
+  assert_throws('SECURITY_ERR', function () { navigator.registerProtocolHandler('mailto', 'mailto:%s@example.com', 'foo') } );
+}, 'looping handlers should throw SECURITY_ERR');
+
+test(function () {
+  assert_throws('SECURITY_ERR', function () { navigator.registerProtocolHandler('sms', 'tel:%s', 'foo') } );
+}, 'a url argument pointing to a non-http[s] scheme should throw SECURITY_ERR due to not being of the same origin');
+
+/* Protocol argument */
+test(function () {
+  assert_throws('SYNTAX_ERR', function () { navigator.registerProtocolHandler('unrecognized', location.href + '/%a', 'foo') } );
+}, 'a protocol argument containing an unrecognized scheme should throw SECURITY_ERR'); /* This is a whitelist, not a blacklist. */
+
+test(function () {
+  assert_throws('SYNTAX_ERR', function () { navigator.registerProtocolHandler('mailto:', location.href + '/%a', 'foo') } );
+}, 'a protocol argument containing : should throw SYNTAX_ERR');
+
+test(function () {
+  assert_throws('SYNTAX_ERR', function () { navigator.registerProtocolHandler('mailto://', location.href + '/%a', 'foo') } );
+}, 'a protocol argument containing :// should throw SYNTAX_ERR');
+
+test(function () {
+  assert_throws('SYNTAX_ERR', function () { navigator.registerProtocolHandler('http://', location.href + '/%a', 'foo') } );
+}, 'a protocol argument containing http:// should throw SYNTAX_ERR');
+
+test(function () {
+  assert_throws('SYNTAX_ERR', function () { navigator.registerProtocolHandler('mailto' + String.fromCharCode(0), location.href + '/%a', 'foo') } );
+}, 'a protocol argument containing a null character should throw SYNTAX_ERR');
+
+test(function () {
+  assert_throws('SYNTAX_ERR', function () { navigator.registerProtocolHandler('mailtoo' + String.fromCharCode(8), location.href + '/%a', 'foo') } );
+}, 'a protocol argument containing a backspace character should throw SYNTAX_ERR');
+
+test(function () {
+  assert_throws('SYNTAX_ERR', function () { navigator.registerProtocolHandler('mailto' + String.fromCharCode(10), location.href + '/%a', 'foo') } );
+}, 'a protocol argument containing a LF character should throw SYNTAX_ERR');
+
+test(function () {
+  assert_throws('SYNTAX_ERR', function () { navigator.registerProtocolHandler('mаilto', location.href + '/%a', 'foo') } );
+}, 'a protocol argument containing non-alphanumeric characters (like a cyrillic “а”) should throw SYNTAX_ERR');
+
+test(function () {
+  navigator.registerProtocolHandler('TEL', location.href + '/%s', 'foo');
+}, 'a protocol argument of “TEL” should be equivalent to “tel”');
+
+test(function () {
+  navigator.registerProtocolHandler('teL', location.href + '/%s', 'foo');
+}, 'a protocol argument of “teL” should be equivalent to “tel”');
+
+
+/* Overriding any of the following protocols must never be allowed. That would
+ * break the browser. */
+var blacklist = new Array(
+  'about',
+  'attachment',
+  'blob',
+  'chrome',
+  'cid',
+  'data',
+  'file',
+  'ftp',
+  'http',
+  'https',
+  'javascript',
+  'livescript',
+  'mid',
+  'mocha',
+  'opera',
+  'operamail',
+  'res',
+  'resource',
+  'shttp',
+  'tcl',
+  'vbscript',
+  'view-source',
+  'ws',
+  'wss',
+  'wyciwyg');
+
+for ( var bi=0, bl=blacklist.length; bi&lt;bl; ++bi ){
+
+  test(function () {
+    assert_throws('SECURITY_ERR', function () { navigator.registerProtocolHandler(blacklist[bi], location.href + '/%s', 'foo') } );
+  }, 'attempting to override the ' + blacklist[bi] + ' protocol should throw SECURITY_ERR');
+
+}
+
+/* The following protocols must be possible to override.
+ * We're just testing that the call goes through here. Whether or not they
+ * actually work as handlers is covered by the interactive tests. */
+var whitelist = new Array(
+  'geo',
+  'im',
+  'irc',
+  'ircs',
+  'mailto',
+  'mms',
+  'news',
+  'nntp',
+  'sms',
+  'smsto',
+  'tel',
+  'urn',
+  'webcal',
+  'wtai',
+  'xmpp');
+
+for ( var wi=0, wl=whitelist.length; wi&lt;wl; ++wi ){
+
+  test(function () {
+    navigator.registerProtocolHandler(whitelist[wi], location.href + '/%s', 'foo');
+    assert_true(true);
+  }, 'overriding the ' + whitelist[wi] + ' protocol should work');
+
+}
+&lt;/script&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapissystemstateandcapabilitiesthenavigatorobjectw3cimportlog"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/w3c-import.log (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/w3c-import.log                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/w3c-import.log        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,25 @@
</span><ins>+The tests in this directory were imported from the W3C repository.
+Do NOT modify these tests directly in WebKit.
+Instead, create a pull request on the W3C CSS or WPT github:
+        https://github.com/w3c/csswg-test
+        https://github.com/w3c/web-platform-tests
+
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
+
+Do NOT modify or remove this file.
+
+------------------------------------------------------------------------
+Properties requiring vendor prefixes:
+None
+Property values requiring vendor prefixes:
+None
+------------------------------------------------------------------------
+List of files:
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID.js
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID.worker.js
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/contains.json
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/content.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigator-indexed.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/navigatorlanguage.html
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol.html
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapistimersevilspecexampleexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/timers/evil-spec-example-expected.txt (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/timers/evil-spec-example-expected.txt                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/timers/evil-spec-example-expected.txt        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,3 @@
</span><ins>+
+PASS Interaction of setTimeout and WebIDL 
+
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapistimersevilspecexamplehtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/timers/evil-spec-example.html (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/timers/evil-spec-example.html                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/timers/evil-spec-example.html        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,23 @@
</span><ins>+&lt;!doctype html&gt;
+&lt;title&gt;Interaction of setTimeout and WebIDL&lt;/title&gt;
+&lt;link rel=&quot;author&quot; title=&quot;Ian Hickson&quot; href=&quot;mailto:ian@hixie.ch&quot;&gt;
+&lt;link rel=&quot;author&quot; title=&quot;Ms2ger&quot; href=&quot;mailto:ms2ger@gmail.com&quot;&gt;
+&lt;link rel=&quot;help&quot; href=&quot;https://html.spec.whatwg.org/multipage/#dom-windowtimers-settimeout&quot;&gt;
+&lt;link rel=&quot;help&quot; href=&quot;https://heycam.github.io/webidl/#es-operations&quot;&gt;
+&lt;script src=&quot;/resources/testharness.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;/resources/testharnessreport.js&quot;&gt;&lt;/script&gt;
+&lt;div id=&quot;log&quot;&gt;&lt;/div&gt;
+&lt;script&gt;
+var t = async_test()
+function finishTest() {
+  assert_equals(log, &quot;ONE TWO &quot;)
+  t.done()
+}
+var log = '';
+function logger(s) { log += s + ' '; }
+
+setTimeout({ toString: function () {
+  setTimeout(&quot;logger('ONE')&quot;, 100);
+  return &quot;logger('TWO'); t.step(finishTest)&quot;;
+} }, 100);
+&lt;/script&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestshtmlwebappapistimersw3cimportlog"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/timers/w3c-import.log (0 => 206874)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/timers/w3c-import.log                                (rev 0)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/timers/w3c-import.log        2016-10-06 19:17:44 UTC (rev 206874)
</span><span class="lines">@@ -0,0 +1,18 @@
</span><ins>+The tests in this directory were imported from the W3C repository.
+Do NOT modify these tests directly in WebKit.
+Instead, create a pull request on the W3C CSS or WPT github:
+        https://github.com/w3c/csswg-test
+        https://github.com/w3c/web-platform-tests
+
+Then run the Tools/Scripts/import-w3c-tests in WebKit to reimport
+
+Do NOT modify or remove this file.
+
+------------------------------------------------------------------------
+Properties requiring vendor prefixes:
+None
+Property values requiring vendor prefixes:
+None
+------------------------------------------------------------------------
+List of files:
+/LayoutTests/imported/w3c/web-platform-tests/html/webappapis/timers/evil-spec-example.html
</ins></span></pre>
</div>
</div>

</body>
</html>