Title: [152623] trunk/Source/WebCore
Revision
152623
Author
[email protected]
Date
2013-07-14 23:11:14 -0700 (Sun, 14 Jul 2013)

Log Message

Origins with invalid ports are not marked as unique (118652)
https://bugs.webkit.org/show_bug.cgi?id=118652
<rdar://problem/14437753>

Reviewed by Sam Weinig.

* page/SecurityOrigin.cpp:
(WebCore::SecurityOrigin::create): Return a unique origin if the port is out of range.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (152622 => 152623)


--- trunk/Source/WebCore/ChangeLog	2013-07-15 01:27:20 UTC (rev 152622)
+++ trunk/Source/WebCore/ChangeLog	2013-07-15 06:11:14 UTC (rev 152623)
@@ -1,3 +1,14 @@
+2013-07-14  Jon Lee  <[email protected]>
+
+        Origins with invalid ports are not marked as unique (118652)
+        https://bugs.webkit.org/show_bug.cgi?id=118652
+        <rdar://problem/14437753>
+
+        Reviewed by Sam Weinig.
+
+        * page/SecurityOrigin.cpp:
+        (WebCore::SecurityOrigin::create): Return a unique origin if the port is out of range.
+
 2013-07-14  Ryosuke Niwa  <[email protected]>
 
         Another Qt build fix attempt after r152619.

Modified: trunk/Source/WebCore/page/SecurityOrigin.cpp (152622 => 152623)


--- trunk/Source/WebCore/page/SecurityOrigin.cpp	2013-07-15 01:27:20 UTC (rev 152622)
+++ trunk/Source/WebCore/page/SecurityOrigin.cpp	2013-07-15 06:11:14 UTC (rev 152623)
@@ -539,7 +539,7 @@
 PassRefPtr<SecurityOrigin> SecurityOrigin::create(const String& protocol, const String& host, int port)
 {
     if (port < 0 || port > MaxAllowedPort)
-        createUnique();
+        return createUnique();
     String decodedHost = decodeURLEscapeSequences(host);
     return create(KURL(KURL(), protocol + "://" + host + ":" + String::number(port) + "/"));
 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to