<!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>[189285] 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/189285">189285</a></dd>
<dt>Author</dt> <dd>ap@apple.com</dd>
<dt>Date</dt> <dd>2015-09-03 13:54:01 -0700 (Thu, 03 Sep 2015)</dd>
</dl>
<h3>Log Message</h3>
<pre>Test Russian ".рф" domain support
https://bugs.webkit.org/show_bug.cgi?id=148721
Reviewed by Darin Adler.
Source/WebCore:
Test: fast/url/user-visible/rf.html
* html/URLUtils.h: Made this header file work with Objective-C.
* WebCore.xcodeproj/project.pbxproj:
* bindings/scripts/CodeGeneratorJS.pm:
* testing/Internals.cpp:
(WebCore::Internals::getCurrentMediaControlsStatusForElement):
(WebCore::Internals::userVisibleString):
* testing/Internals.h:
* testing/Internals.idl:
* testing/Internals.mm: Added.
(WebCore::Internals::userVisibleString):
LayoutTests:
* TestExpectations:
* fast/url/user-visible: Added.
* fast/url/user-visible/rf-expected.txt: Added.
* fast/url/user-visible/rf.html: Added.
* platform/mac/TestExpectations:</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsTestExpectations">trunk/LayoutTests/TestExpectations</a></li>
<li><a href="#trunkLayoutTestsplatformmacTestExpectations">trunk/LayoutTests/platform/mac/TestExpectations</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreWebCorexcodeprojprojectpbxproj">trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptsCodeGeneratorJSpm">trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm</a></li>
<li><a href="#trunkSourceWebCorehtmlURLUtilsh">trunk/Source/WebCore/html/URLUtils.h</a></li>
<li><a href="#trunkSourceWebCoretestingInternalscpp">trunk/Source/WebCore/testing/Internals.cpp</a></li>
<li><a href="#trunkSourceWebCoretestingInternalsh">trunk/Source/WebCore/testing/Internals.h</a></li>
<li><a href="#trunkSourceWebCoretestingInternalsidl">trunk/Source/WebCore/testing/Internals.idl</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li>trunk/LayoutTests/fast/url/user-visible/</li>
<li><a href="#trunkLayoutTestsfasturluservisiblerfexpectedtxt">trunk/LayoutTests/fast/url/user-visible/rf-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfasturluservisiblerfhtml">trunk/LayoutTests/fast/url/user-visible/rf.html</a></li>
<li><a href="#trunkSourceWebCoretestingInternalsmm">trunk/Source/WebCore/testing/Internals.mm</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (189284 => 189285)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2015-09-03 20:32:35 UTC (rev 189284)
+++ trunk/LayoutTests/ChangeLog        2015-09-03 20:54:01 UTC (rev 189285)
</span><span class="lines">@@ -1,3 +1,16 @@
</span><ins>+2015-09-03 Alexey Proskuryakov <ap@apple.com>
+
+ Test Russian ".рф" domain support
+ https://bugs.webkit.org/show_bug.cgi?id=148721
+
+ Reviewed by Darin Adler.
+
+ * TestExpectations:
+ * fast/url/user-visible: Added.
+ * fast/url/user-visible/rf-expected.txt: Added.
+ * fast/url/user-visible/rf.html: Added.
+ * platform/mac/TestExpectations:
+
</ins><span class="cx"> 2015-09-03 Chris Dumez <cdumez@apple.com>
</span><span class="cx">
</span><span class="cx"> document.createEvent("eventname") should do a case-insensitive match on the event name
</span></span></pre></div>
<a id="trunkLayoutTestsTestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/TestExpectations (189284 => 189285)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/TestExpectations        2015-09-03 20:32:35 UTC (rev 189284)
+++ trunk/LayoutTests/TestExpectations        2015-09-03 20:54:01 UTC (rev 189285)
</span><span class="lines">@@ -20,6 +20,9 @@
</span><span class="cx"> fast/forms/search/search-padding-cancel-results-buttons.html [ Skip ]
</span><span class="cx"> fast/forms/search/search-results-hidden-crash.html [ Skip ]
</span><span class="cx">
</span><ins>+# This doesn't have to be platform-specific, but it's only implemented on Mac now.
+fast/url/user-visible [ Skip ]
+
</ins><span class="cx"> #//////////////////////////////////////////////////////////////////////////////////////////
</span><span class="cx"> # End platform-specific tests.
</span><span class="cx"> #//////////////////////////////////////////////////////////////////////////////////////////
</span></span></pre></div>
<a id="trunkLayoutTestsfasturluservisiblerfexpectedtxt"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/url/user-visible/rf-expected.txt (0 => 189285)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/url/user-visible/rf-expected.txt         (rev 0)
+++ trunk/LayoutTests/fast/url/user-visible/rf-expected.txt        2015-09-03 20:54:01 UTC (rev 189285)
</span><span class="lines">@@ -0,0 +1,17 @@
</span><ins>+Test IDN behavior for .рф top level domain.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS test('http://президент.рф/') is 'http://президент.рф/'
+PASS test('http://президент.рф./') is 'http://президент.рф./'
+PASS test('http://www.президент.рф/') is 'http://www.президент.рф/'
+PASS test('http://почта.президент.рф/') is 'http://почта.президент.рф/'
+PASS test('http://0ж9.рф/') is 'http://0ж9.рф/'
+PASS test('http://туда-сюда.рф/') is 'http://туда-сюда.рф/'
+PASS test('http://прeзидент.рф/') /* spoof: Roman 'e' */ is 'http://xn--e-htbdgf6aiiy.xn--p1ai/'
+PASS test('http://caxap.рф/') /* spoof: all characters in 'caxap' are Roman */ is 'http://caxap.xn--p1ai/'
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
</ins></span></pre></div>
<a id="trunkLayoutTestsfasturluservisiblerfhtml"></a>
<div class="addfile"><h4>Added: trunk/LayoutTests/fast/url/user-visible/rf.html (0 => 189285)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/url/user-visible/rf.html         (rev 0)
+++ trunk/LayoutTests/fast/url/user-visible/rf.html        2015-09-03 20:54:01 UTC (rev 189285)
</span><span class="lines">@@ -0,0 +1,30 @@
</span><ins>+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<script src="../../../resources/js-test-pre.js"></script>
+</head>
+<body>
+<script>
+
+description("Test IDN behavior for .рф top level domain.");
+
+function test(url)
+{
+ var domURL = new URL(url);
+ return internals.userVisibleString(domURL);
+}
+
+shouldBe("test('http://президент.рф/')", "'http://президент.рф/'");
+shouldBe("test('http://президент.рф./')", "'http://президент.рф./'");
+shouldBe("test('http://www.президент.рф/')", "'http://www.президент.рф/'");
+shouldBe("test('http://почта.президент.рф/')", "'http://почта.президент.рф/'");
+shouldBe("test('http://0ж9.рф/')", "'http://0ж9.рф/'");
+shouldBe("test('http://туда-сюда.рф/')", "'http://туда-сюда.рф/'");
+shouldBe("test('http://прeзидент.рф/') /* spoof: Roman 'e' */", "'http://xn--e-htbdgf6aiiy.xn--p1ai/'");
+shouldBe("test('http://caxap.рф/') /* spoof: all characters in 'caxap' are Roman */", "'http://caxap.xn--p1ai/'");
+
+</script>
+<script src="../../../resources/js-test-post.js"></script>
+</body>
+</html>
</ins></span></pre></div>
<a id="trunkLayoutTestsplatformmacTestExpectations"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/platform/mac/TestExpectations (189284 => 189285)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/platform/mac/TestExpectations        2015-09-03 20:32:35 UTC (rev 189284)
+++ trunk/LayoutTests/platform/mac/TestExpectations        2015-09-03 20:54:01 UTC (rev 189285)
</span><span class="lines">@@ -13,6 +13,8 @@
</span><span class="cx"> fast/forms/search/search-padding-cancel-results-buttons.html [ Pass ]
</span><span class="cx"> fast/forms/search/search-results-hidden-crash.html [ Pass ]
</span><span class="cx">
</span><ins>+fast/url/user-visible [ Pass ]
+
</ins><span class="cx"> #//////////////////////////////////////////////////////////////////////////////////////////
</span><span class="cx"> # End platform-specific directories.
</span><span class="cx"> #//////////////////////////////////////////////////////////////////////////////////////////
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (189284 => 189285)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-09-03 20:32:35 UTC (rev 189284)
+++ trunk/Source/WebCore/ChangeLog        2015-09-03 20:54:01 UTC (rev 189285)
</span><span class="lines">@@ -1,3 +1,24 @@
</span><ins>+2015-09-03 Alexey Proskuryakov <ap@apple.com>
+
+ Test Russian ".рф" domain support
+ https://bugs.webkit.org/show_bug.cgi?id=148721
+
+ Reviewed by Darin Adler.
+
+ Test: fast/url/user-visible/rf.html
+
+ * html/URLUtils.h: Made this header file work with Objective-C.
+
+ * WebCore.xcodeproj/project.pbxproj:
+ * bindings/scripts/CodeGeneratorJS.pm:
+ * testing/Internals.cpp:
+ (WebCore::Internals::getCurrentMediaControlsStatusForElement):
+ (WebCore::Internals::userVisibleString):
+ * testing/Internals.h:
+ * testing/Internals.idl:
+ * testing/Internals.mm: Added.
+ (WebCore::Internals::userVisibleString):
+
</ins><span class="cx"> 2015-09-03 Chris Dumez <cdumez@apple.com>
</span><span class="cx">
</span><span class="cx"> document.createEvent("eventname") should do a case-insensitive match on the event name
</span></span></pre></div>
<a id="trunkSourceWebCoreWebCorexcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (189284 => 189285)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2015-09-03 20:32:35 UTC (rev 189284)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj        2015-09-03 20:54:01 UTC (rev 189285)
</span><span class="lines">@@ -6168,6 +6168,7 @@
</span><span class="cx">                 E172AF70180F289500FBADB9 /* CryptoKeyUsage.h in Headers */ = {isa = PBXBuildFile; fileRef = E172AF6F180F289500FBADB9 /* CryptoKeyUsage.h */; };
</span><span class="cx">                 E172AF8F1811BC3700FBADB9 /* JSDOMPromise.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E172AF8D1811BC3700FBADB9 /* JSDOMPromise.cpp */; };
</span><span class="cx">                 E172AF901811BC3700FBADB9 /* JSDOMPromise.h in Headers */ = {isa = PBXBuildFile; fileRef = E172AF8E1811BC3700FBADB9 /* JSDOMPromise.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><ins>+                E179F0DA1B9774FE00ED0A27 /* Internals.mm in Sources */ = {isa = PBXBuildFile; fileRef = E179F0D91B9774FE00ED0A27 /* Internals.mm */; };
</ins><span class="cx">                 E17B491516A9B094001C8839 /* TransitionEvent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = E17B491316A9B093001C8839 /* TransitionEvent.cpp */; };
</span><span class="cx">                 E17B491616A9B094001C8839 /* TransitionEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = E17B491416A9B093001C8839 /* TransitionEvent.h */; };
</span><span class="cx">                 E17B492116A9B8FF001C8839 /* JSTransitionEvent.h in Headers */ = {isa = PBXBuildFile; fileRef = E17B491F16A9B8FF001C8839 /* JSTransitionEvent.h */; };
</span><span class="lines">@@ -13869,6 +13870,7 @@
</span><span class="cx">                 E172AF8D1811BC3700FBADB9 /* JSDOMPromise.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDOMPromise.cpp; sourceTree = "<group>"; };
</span><span class="cx">                 E172AF8E1811BC3700FBADB9 /* JSDOMPromise.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSDOMPromise.h; sourceTree = "<group>"; };
</span><span class="cx">                 E176580C180DF3A0005A96D1 /* OESElementIndexUint.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = OESElementIndexUint.idl; sourceTree = "<group>"; };
</span><ins>+                E179F0D91B9774FE00ED0A27 /* Internals.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = Internals.mm; sourceTree = "<group>"; };
</ins><span class="cx">                 E17B490B16A97269001C8839 /* TransitionEvent.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = TransitionEvent.idl; sourceTree = "<group>"; };
</span><span class="cx">                 E17B491316A9B093001C8839 /* TransitionEvent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = TransitionEvent.cpp; sourceTree = "<group>"; };
</span><span class="cx">                 E17B491416A9B093001C8839 /* TransitionEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TransitionEvent.h; sourceTree = "<group>"; };
</span><span class="lines">@@ -16059,6 +16061,7 @@
</span><span class="cx">                         children = (
</span><span class="cx">                                 41815C1B138319630057AAA4 /* js */,
</span><span class="cx">                                 417DA4CF13734326007C57FB /* Internals.cpp */,
</span><ins>+                                E179F0D91B9774FE00ED0A27 /* Internals.mm */,
</ins><span class="cx">                                 417DA4CE13734326007C57FB /* Internals.h */,
</span><span class="cx">                                 41813F9113818AD60057AAA4 /* Internals.idl */,
</span><span class="cx">                                 A7BF7EDC14C9175A0014489D /* InternalSettings.cpp */,
</span><span class="lines">@@ -27766,6 +27769,7 @@
</span><span class="cx">                                 53E29E5E167A8A1900586D3D /* InternalSettingsGenerated.cpp in Sources */,
</span><span class="cx">                                 417DA71D13735DFA007C57FB /* JSInternals.cpp in Sources */,
</span><span class="cx">                                 A740B5A714C935AF00A77FA4 /* JSInternalSettings.cpp in Sources */,
</span><ins>+                                E179F0DA1B9774FE00ED0A27 /* Internals.mm in Sources */,
</ins><span class="cx">                                 53ED3FDE167A88E7006762E6 /* JSInternalSettingsGenerated.cpp in Sources */,
</span><span class="cx">                                 A740B59714C935AF00A77FA4 /* JSMallocStatistics.cpp in Sources */,
</span><span class="cx">                                 CD5393D3175E018600C07123 /* JSMemoryInfo.cpp in Sources */,
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptsCodeGeneratorJSpm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm (189284 => 189285)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm        2015-09-03 20:32:35 UTC (rev 189284)
+++ trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm        2015-09-03 20:54:01 UTC (rev 189285)
</span><span class="lines">@@ -248,6 +248,7 @@
</span><span class="cx"> "JSCSSStyleDeclaration" => 1,
</span><span class="cx"> "JSDocument" => 1,
</span><span class="cx"> "JSDOMPath" => 1,
</span><ins>+ "JSDOMURL" => 1,
</ins><span class="cx"> "JSDOMWindow" => 1,
</span><span class="cx"> "JSElement" => 1,
</span><span class="cx"> "JSFile" => 1,
</span></span></pre></div>
<a id="trunkSourceWebCorehtmlURLUtilsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/html/URLUtils.h (189284 => 189285)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/html/URLUtils.h        2015-09-03 20:32:35 UTC (rev 189284)
+++ trunk/Source/WebCore/html/URLUtils.h        2015-09-03 20:54:01 UTC (rev 189285)
</span><span class="lines">@@ -245,7 +245,7 @@
</span><span class="cx"> if (!url.canSetPathname())
</span><span class="cx"> return;
</span><span class="cx">
</span><del>- if (value[0] == '/')
</del><ins>+ if (value[0U] == '/')
</ins><span class="cx"> url.setPath(value);
</span><span class="cx"> else
</span><span class="cx"> url.setPath("/" + value);
</span><span class="lines">@@ -264,7 +264,7 @@
</span><span class="cx"> void URLUtils<T>::setSearch(const String& value)
</span><span class="cx"> {
</span><span class="cx"> URL url = href();
</span><del>- String newSearch = (value[0] == '?') ? value.substring(1) : value;
</del><ins>+ String newSearch = (value[0U] == '?') ? value.substring(1) : value;
</ins><span class="cx"> // Make sure that '#' in the query does not leak to the hash.
</span><span class="cx"> url.setQuery(newSearch.replaceWithLiteral('#', "%23"));
</span><span class="cx">
</span><span class="lines">@@ -284,7 +284,7 @@
</span><span class="cx"> void URLUtils<T>::setHash(const String& value)
</span><span class="cx"> {
</span><span class="cx"> URL url = href();
</span><del>- if (value[0] == '#')
</del><ins>+ if (value[0U] == '#')
</ins><span class="cx"> url.setFragmentIdentifier(value.substring(1));
</span><span class="cx"> else
</span><span class="cx"> url.setFragmentIdentifier(value);
</span></span></pre></div>
<a id="trunkSourceWebCoretestingInternalscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/testing/Internals.cpp (189284 => 189285)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/testing/Internals.cpp        2015-09-03 20:32:35 UTC (rev 189284)
+++ trunk/Source/WebCore/testing/Internals.cpp        2015-09-03 20:54:01 UTC (rev 189285)
</span><span class="lines">@@ -3071,4 +3071,12 @@
</span><span class="cx"> #endif
</span><span class="cx"> }
</span><span class="cx">
</span><ins>+#if !PLATFORM(COCOA)
+String Internals::userVisibleString(const DOMURL*)
+{
+ // Not implemented in WebCore.
+ return String();
</ins><span class="cx"> }
</span><ins>+#endif
+
+}
</ins></span></pre></div>
<a id="trunkSourceWebCoretestingInternalsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/testing/Internals.h (189284 => 189285)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/testing/Internals.h        2015-09-03 20:32:35 UTC (rev 189284)
+++ trunk/Source/WebCore/testing/Internals.h        2015-09-03 20:54:01 UTC (rev 189285)
</span><span class="lines">@@ -46,6 +46,7 @@
</span><span class="cx"> class ClientRectList;
</span><span class="cx"> class DOMPath;
</span><span class="cx"> class DOMStringList;
</span><ins>+class DOMURL;
</ins><span class="cx"> class DOMWindow;
</span><span class="cx"> class Document;
</span><span class="cx"> class Element;
</span><span class="lines">@@ -433,6 +434,8 @@
</span><span class="cx">
</span><span class="cx"> String getCurrentMediaControlsStatusForElement(HTMLMediaElement*);
</span><span class="cx">
</span><ins>+ String userVisibleString(const DOMURL*);
+
</ins><span class="cx"> private:
</span><span class="cx"> explicit Internals(Document*);
</span><span class="cx"> Document* contextDocument() const;
</span></span></pre></div>
<a id="trunkSourceWebCoretestingInternalsidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/testing/Internals.idl (189284 => 189285)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/testing/Internals.idl        2015-09-03 20:32:35 UTC (rev 189284)
+++ trunk/Source/WebCore/testing/Internals.idl        2015-09-03 20:54:01 UTC (rev 189285)
</span><span class="lines">@@ -401,4 +401,6 @@
</span><span class="cx"> [RaisesException] DOMString pathStringWithShrinkWrappedRects(sequence<double> rectComponents, double radius);
</span><span class="cx">
</span><span class="cx"> DOMString getCurrentMediaControlsStatusForElement(HTMLMediaElement element);
</span><ins>+
+ DOMString userVisibleString(DOMURL url);
</ins><span class="cx"> };
</span></span></pre></div>
<a id="trunkSourceWebCoretestingInternalsmm"></a>
<div class="addfile"><h4>Added: trunk/Source/WebCore/testing/Internals.mm (0 => 189285)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/testing/Internals.mm         (rev 0)
+++ trunk/Source/WebCore/testing/Internals.mm        2015-09-03 20:54:01 UTC (rev 189285)
</span><span class="lines">@@ -0,0 +1,42 @@
</span><ins>+/*
+ * Copyright (C) 2015 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+#include "Internals.h"
+
+#include "DOMURL.h"
+#include "Document.h"
+#include "Editor.h"
+#include "EditorClient.h"
+#include "Frame.h"
+
+namespace WebCore {
+
+String Internals::userVisibleString(const DOMURL* url)
+{
+ return contextDocument()->frame()->editor().client()->userVisibleString(url->href());
+}
+
+}
</ins></span></pre>
</div>
</div>
</body>
</html>