<!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>[192604] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/192604">192604</a></dd>
<dt>Author</dt> <dd>jiewen_tan@apple.com</dd>
<dt>Date</dt> <dd>2015-11-18 17:42:12 -0800 (Wed, 18 Nov 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>[WK1] Crash loading Blink layout test fast/dom/Window/property-access-on-cached-window-after-frame-removed.html
https://bugs.webkit.org/show_bug.cgi?id=150198
&lt;rdar://problem/23136026&gt;

Reviewed by Brent Fulgham.

Source/WebCore:

Test: fast/dom/Window/property-access-on-cached-window-after-frame-removed.html

Properties of a contentWindow could be accessed even if the frame who owns the window is
detached. Therefore, check whether the document loader is still alive before using it.

* page/PerformanceTiming.cpp:
(WebCore::PerformanceTiming::monotonicTimeToIntegerMilliseconds):

Tools:

* WebKitTestRunner/InjectedBundle/mac/TestRunnerMac.mm:
(WTR::TestRunner::inspectorTestStubURL):
Since WebInspectorUI.framework is not available for iOS, the framework
and corresponding functions are disabled in iOS.

LayoutTests:

* fast/dom/Window/666869-expected.txt: Added.
* fast/dom/Window/666869.html: Added.
Test case is from Mozilla.
* fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt: Added.
* fast/dom/Window/property-access-on-cached-window-after-frame-removed.html: Added.
* fast/dom/Window/resources/window-property-collector.js: Added.
(collectProperties):
(emitExpectedResult):
(collectPropertiesHelper):
Test case is from Blink <a href="http://trac.webkit.org/projects/webkit/changeset/168256">r168256</a>:
https://codereview.chromium.org/131113003
* platform/mac-wk2/TestExpectations:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsplatformmacwk2TestExpectations">trunk/LayoutTests/platform/mac-wk2/TestExpectations</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorepagePerformanceTimingcpp">trunk/Source/WebCore/page/PerformanceTiming.cpp</a></li>
<li><a href="#trunkToolsChangeLog">trunk/Tools/ChangeLog</a></li>
<li><a href="#trunkToolsWebKitTestRunnerInjectedBundlemacTestRunnerMacmm">trunk/Tools/WebKitTestRunner/InjectedBundle/mac/TestRunnerMac.mm</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsfastdomWindow666869expectedtxt">trunk/LayoutTests/fast/dom/Window/666869-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastdomWindow666869html">trunk/LayoutTests/fast/dom/Window/666869.html</a></li>
<li><a href="#trunkLayoutTestsfastdomWindowpropertyaccessoncachedwindowafterframeremovedexpectedtxt">trunk/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastdomWindowpropertyaccessoncachedwindowafterframeremovedhtml">trunk/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed.html</a></li>
<li><a href="#trunkLayoutTestsfastdomWindowresourceswindowpropertycollectorjs">trunk/LayoutTests/fast/dom/Window/resources/window-property-collector.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (192603 => 192604)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2015-11-19 01:26:36 UTC (rev 192603)
+++ trunk/LayoutTests/ChangeLog        2015-11-19 01:42:12 UTC (rev 192604)
</span><span class="lines">@@ -1,3 +1,24 @@
</span><ins>+2015-11-18  Jiewen Tan  &lt;jiewen_tan@apple.com&gt;
+
+        [WK1] Crash loading Blink layout test fast/dom/Window/property-access-on-cached-window-after-frame-removed.html
+        https://bugs.webkit.org/show_bug.cgi?id=150198
+        &lt;rdar://problem/23136026&gt;
+
+        Reviewed by Brent Fulgham.
+
+        * fast/dom/Window/666869-expected.txt: Added.
+        * fast/dom/Window/666869.html: Added.
+        Test case is from Mozilla.
+        * fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt: Added.
+        * fast/dom/Window/property-access-on-cached-window-after-frame-removed.html: Added.
+        * fast/dom/Window/resources/window-property-collector.js: Added.
+        (collectProperties):
+        (emitExpectedResult):
+        (collectPropertiesHelper):
+        Test case is from Blink r168256:
+        https://codereview.chromium.org/131113003
+        * platform/mac-wk2/TestExpectations:
+
</ins><span class="cx"> 2015-11-18  Eric Carlson  &lt;eric.carlson@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         MediaStream: Implement MediaDevices.getSupportedConstraints
</span></span></pre></div>
<a id="trunkLayoutTestsfastdomWindow666869expectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/dom/Window/666869-expected.txt (0 => 192604)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/Window/666869-expected.txt                                (rev 0)
+++ trunk/LayoutTests/fast/dom/Window/666869-expected.txt        2015-11-19 01:42:12 UTC (rev 192604)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+PASS. WebKit didn't crash.
</ins></span></pre></div>
<a id="trunkLayoutTestsfastdomWindow666869html"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/dom/Window/666869.html (0 => 192604)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/Window/666869.html                                (rev 0)
+++ trunk/LayoutTests/fast/dom/Window/666869.html        2015-11-19 01:42:12 UTC (rev 192604)
</span><span class="lines">@@ -0,0 +1,20 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script&gt;
+    if (window.testRunner)
+        testRunner.dumpAsText();
+
+    function boom()
+    {
+        var f = document.getElementById(&quot;f&quot;);
+        var frameWin = f.contentWindow;
+        document.body.removeChild(f);
+        frameWin.performance;
+
+        document.write(&quot;PASS. WebKit didn't crash.&quot;);
+    }
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body onload=&quot;boom();&quot;&gt;&lt;iframe id=&quot;f&quot; src=&quot;data:text/html,1&quot;&gt;&lt;/iframe&gt;&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastdomWindowpropertyaccessoncachedwindowafterframeremovedexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt (0 => 192604)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt                                (rev 0)
+++ trunk/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed-expected.txt        2015-11-19 01:42:12 UTC (rev 192604)
</span><span class="lines">@@ -0,0 +1 @@
</span><ins>+Pass. WebKit didn't crash.
</ins></span></pre></div>
<a id="trunkLayoutTestsfastdomWindowpropertyaccessoncachedwindowafterframeremovedhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed.html (0 => 192604)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed.html                                (rev 0)
+++ trunk/LayoutTests/fast/dom/Window/property-access-on-cached-window-after-frame-removed.html        2015-11-19 01:42:12 UTC (rev 192604)
</span><span class="lines">@@ -0,0 +1,31 @@
</span><ins>+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../../resources/js-test.js&quot;&gt;&lt;/script&gt;
+&lt;script src=&quot;resources/window-property-collector.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+var childWindow;
+var propertiesToVerify = [];
+
+function insertExpectedResult(path, expected)
+{
+    var propertyPath = path.join('.');
+    propertiesToVerify.push({'property': &quot;childWindow.&quot; + propertyPath, 'expected': expected});
+}
+
+function runTest()
+{
+    var frame = document.getElementById(&quot;frame&quot;);
+    childWindow = frame.contentWindow;
+    // Have expected results assume that the frame has been closed (=&gt; window.closed = true.)
+    collectProperties(true);
+    frame.parentNode.removeChild(frame);
+    for (var i = 0; i &lt; propertiesToVerify.length; ++i)
+        shouldBe(propertiesToVerify[i].property, propertiesToVerify[i].expected);
+    document.write(&quot;Pass. WebKit didn't crash.&quot;);
+}
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+&lt;iframe id=&quot;frame&quot; src=&quot;about:blank&quot; onload=&quot;runTest()&quot;&gt;&lt;/iframe&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="trunkLayoutTestsfastdomWindowresourceswindowpropertycollectorjs"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/dom/Window/resources/window-property-collector.js (0 => 192604)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/Window/resources/window-property-collector.js                                (rev 0)
+++ trunk/LayoutTests/fast/dom/Window/resources/window-property-collector.js        2015-11-19 01:42:12 UTC (rev 192604)
</span><span class="lines">@@ -0,0 +1,121 @@
</span><ins>+function collectProperties(windowHasBeenGCed)
+{
+    // Collect properties of the top-level window, since touching the properties
+    // of a DOMWindow affects its internal C++ state.
+    collectPropertiesHelper(window, windowHasBeenGCed, []);
+
+    propertiesToVerify.sort(function (a, b)
+    {
+        if (a.property &lt; b.property)
+            return -1
+        if (a.property &gt; b.property)
+            return 1;
+        return 0;
+    });
+}
+
+function emitExpectedResult(path, expected)
+{
+    // Skip internals properties, since they aren't web accessible.
+    if (path[0] == 'internals'
+        || path[0] == 'propertiesToVerify' // Skip the list we're building...
+        || path[0] == 'clientInformation' // Just an alias for navigator.
+        || path[0] == 'testRunner' // Skip testRunner since they are only for testing.
+        || path[0] == 'layoutTestController' // Just an alias for testRunner.
+        || path[0] == 'eventSender') { // Skip eventSender since they are only for testing.
+        return;
+    }
+
+    // Skip the properties which are hard to expect a stable result.
+    if (path[0] == 'accessibilityController' // we can hardly estimate the states of the cached WebAXObjects.
+        || path[0] == 'localStorage') { // local storage is not reliably cleared between tests.
+        return;
+    }
+
+    // FIXME: Skip MemoryInfo for now, since it's not implemented as a DOMWindowProperty, and has
+    // no way of knowing when it's detached. Eventually this should have the same behavior.
+    if (path.length &gt;= 2 &amp;&amp; (path[0] == 'console' || path[0] == 'performance') &amp;&amp; path[1] == 'memory')
+        return;
+
+    // Skip things that are assumed to be constants.
+    if (path[path.length - 1].toUpperCase() == path[path.length - 1])
+        return;
+
+    // Various special cases for legacy reasons. Please do not add entries to this list.
+    var propertyPath = path.join('.');
+
+    // Connection type depends on the host, skip.
+    if (propertyPath == 'navigator.connection.type')
+      return;
+    if (propertyPath == 'navigator.connection.downlinkMax')
+      return;
+
+    switch (propertyPath) {
+    case &quot;location.href&quot;:
+        expected = &quot;'about:blank'&quot;;
+        break;
+    case &quot;location.origin&quot;:
+        expected = &quot;'null'&quot;;
+        break;
+    case &quot;location.pathname&quot;:
+        expected = &quot;'blank'&quot;;
+        break;
+    case &quot;location.protocol&quot;:
+        expected = &quot;'about:'&quot;;
+        break;
+    case &quot;navigator.appCodeName&quot;:
+    case &quot;navigator.appName&quot;:
+    case &quot;navigator.hardwareConcurrency&quot;:
+    case &quot;navigator.language&quot;:
+    case &quot;navigator.onLine&quot;:
+    case &quot;navigator.platform&quot;:
+    case &quot;navigator.product&quot;:
+    case &quot;navigator.productSub&quot;:
+    case &quot;navigator.vendor&quot;:
+        expected = &quot;window.&quot; + propertyPath;
+        break;
+    case &quot;screen.orientation&quot;:
+        expected = &quot;'portrait-primary'&quot;;
+        break;
+    case &quot;history.scrollRestoration&quot;:
+        expected = &quot;'auto'&quot;;
+        break;
+    }
+
+    insertExpectedResult(path, expected);
+}
+
+function collectPropertiesHelper(object, windowHasBeenGCed, path)
+{
+    if (path.length &gt; 20)
+        throw 'Error: probably looping';
+
+    for (var property in object) {
+        // Skip internals properties, since they aren't web accessible.
+        if (property === 'internals')
+            continue;
+        path.push(property);
+        var type = typeof(object[property]);
+        if (type == &quot;object&quot;) {
+            if (object[property] === null) {
+                emitExpectedResult(path, &quot;null&quot;);
+            } else if (!object[property].Window
+                &amp;&amp; !(object[property] instanceof Node)
+                &amp;&amp; !(object[property] instanceof MimeTypeArray)
+                &amp;&amp; !(object[property] instanceof PluginArray)) {
+                // Skip some traversing through types that will end up in cycles...
+                collectPropertiesHelper(object[property], windowHasBeenGCed, path);
+            }
+        } else if (type == &quot;string&quot;) {
+            emitExpectedResult(path, &quot;''&quot;);
+        } else if (type == &quot;number&quot;) {
+            emitExpectedResult(path, &quot;0&quot;);
+        } else if (type == &quot;boolean&quot;) {
+            expected = &quot;false&quot;;
+            if (path == &quot;closed&quot; &amp;&amp; windowHasBeenGCed )
+                expected = &quot;true&quot;;
+            emitExpectedResult(path, expected);
+        }
+        path.pop();
+    }
+}
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacwk2TestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac-wk2/TestExpectations (192603 => 192604)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac-wk2/TestExpectations        2015-11-19 01:26:36 UTC (rev 192603)
+++ trunk/LayoutTests/platform/mac-wk2/TestExpectations        2015-11-19 01:42:12 UTC (rev 192604)
</span><span class="lines">@@ -351,6 +351,9 @@
</span><span class="cx"> 
</span><span class="cx"> [ Debug ] editing/undo/remove-css-property-and-remove-style.html [ Pass Failure ]
</span><span class="cx"> 
</span><ins>+# Test for WK1 only
+fast/dom/Window/property-access-on-cached-window-after-frame-removed.html [ Skip ]
+
</ins><span class="cx"> ### END OF (3) Unclassified failures
</span><span class="cx"> ########################################
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (192603 => 192604)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-11-19 01:26:36 UTC (rev 192603)
+++ trunk/Source/WebCore/ChangeLog        2015-11-19 01:42:12 UTC (rev 192604)
</span><span class="lines">@@ -1,3 +1,19 @@
</span><ins>+2015-11-18  Jiewen Tan  &lt;jiewen_tan@apple.com&gt;
+
+        [WK1] Crash loading Blink layout test fast/dom/Window/property-access-on-cached-window-after-frame-removed.html
+        https://bugs.webkit.org/show_bug.cgi?id=150198
+        &lt;rdar://problem/23136026&gt;
+
+        Reviewed by Brent Fulgham.
+
+        Test: fast/dom/Window/property-access-on-cached-window-after-frame-removed.html
+
+        Properties of a contentWindow could be accessed even if the frame who owns the window is
+        detached. Therefore, check whether the document loader is still alive before using it.
+
+        * page/PerformanceTiming.cpp:
+        (WebCore::PerformanceTiming::monotonicTimeToIntegerMilliseconds):
+
</ins><span class="cx"> 2015-11-18  Eric Carlson  &lt;eric.carlson@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         MediaStream: Implement MediaDevices.getSupportedConstraints
</span></span></pre></div>
<a id="trunkSourceWebCorepagePerformanceTimingcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/page/PerformanceTiming.cpp (192603 => 192604)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/page/PerformanceTiming.cpp        2015-11-19 01:26:36 UTC (rev 192603)
+++ trunk/Source/WebCore/page/PerformanceTiming.cpp        2015-11-19 01:42:12 UTC (rev 192604)
</span><span class="lines">@@ -340,9 +340,9 @@
</span><span class="cx"> unsigned long long PerformanceTiming::monotonicTimeToIntegerMilliseconds(double monotonicSeconds) const
</span><span class="cx"> {
</span><span class="cx">     ASSERT(monotonicSeconds &gt;= 0);
</span><del>-    const DocumentLoadTiming* timing = documentLoadTiming();
-    ASSERT(timing);
-    return toIntegerMilliseconds(timing-&gt;monotonicTimeToPseudoWallTime(monotonicSeconds));
</del><ins>+    if (const DocumentLoadTiming* timing = documentLoadTiming())
+        return toIntegerMilliseconds(timing-&gt;monotonicTimeToPseudoWallTime(monotonicSeconds));
+    return 0;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre></div>
<a id="trunkToolsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Tools/ChangeLog (192603 => 192604)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/ChangeLog        2015-11-19 01:26:36 UTC (rev 192603)
+++ trunk/Tools/ChangeLog        2015-11-19 01:42:12 UTC (rev 192604)
</span><span class="lines">@@ -1,3 +1,16 @@
</span><ins>+2015-11-18  Jiewen Tan  &lt;jiewen_tan@apple.com&gt;
+
+        [WK1] Crash loading Blink layout test fast/dom/Window/property-access-on-cached-window-after-frame-removed.html
+        https://bugs.webkit.org/show_bug.cgi?id=150198
+        &lt;rdar://problem/23136026&gt;
+
+        Reviewed by Brent Fulgham.
+
+        * WebKitTestRunner/InjectedBundle/mac/TestRunnerMac.mm:
+        (WTR::TestRunner::inspectorTestStubURL):
+        Since WebInspectorUI.framework is not available for iOS, the framework
+        and corresponding functions are disabled in iOS.
+
</ins><span class="cx"> 2015-11-18  Alexey Proskuryakov  &lt;ap@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [Mac] Swipe tests depend on user preferences
</span></span></pre></div>
<a id="trunkToolsWebKitTestRunnerInjectedBundlemacTestRunnerMacmm"></a>
<div class="modfile"><h4>Modified: trunk/Tools/WebKitTestRunner/InjectedBundle/mac/TestRunnerMac.mm (192603 => 192604)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Tools/WebKitTestRunner/InjectedBundle/mac/TestRunnerMac.mm        2015-11-19 01:26:36 UTC (rev 192603)
+++ trunk/Tools/WebKitTestRunner/InjectedBundle/mac/TestRunnerMac.mm        2015-11-19 01:42:12 UTC (rev 192604)
</span><span class="lines">@@ -28,9 +28,12 @@
</span><span class="cx"> 
</span><span class="cx"> #import &quot;InjectedBundle.h&quot;
</span><span class="cx"> #import &lt;JavaScriptCore/JSStringRefCF.h&gt;
</span><ins>+
+#if !PLATFORM(IOS)
</ins><span class="cx"> #import &lt;WebCore/SoftLinking.h&gt;
</span><span class="cx"> 
</span><span class="cx"> SOFT_LINK_STAGED_FRAMEWORK(WebInspectorUI, PrivateFrameworks, A)
</span><ins>+#endif
</ins><span class="cx"> 
</span><span class="cx"> namespace WTR {
</span><span class="cx"> 
</span><span class="lines">@@ -69,6 +72,9 @@
</span><span class="cx"> 
</span><span class="cx"> JSRetainPtr&lt;JSStringRef&gt; TestRunner::inspectorTestStubURL()
</span><span class="cx"> {
</span><ins>+#if PLATFORM(IOS)
+    return nullptr;
+#else
</ins><span class="cx">     // Call the soft link framework function to dlopen it, then CFBundleGetBundleWithIdentifier will work.
</span><span class="cx">     WebInspectorUILibrary();
</span><span class="cx"> 
</span><span class="lines">@@ -82,6 +88,7 @@
</span><span class="cx"> 
</span><span class="cx">     CFStringRef urlString = CFURLGetString(url.get());
</span><span class="cx">     return adopt(JSStringCreateWithCFString(urlString));
</span><ins>+#endif
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> } // namespace WTR
</span></span></pre>
</div>
</div>

</body>
</html>