Index: Source/WebCore/page/History.cpp |
=================================================================== |
--- Source/WebCore/page/History.cpp (revision 85529) |
+++ Source/WebCore/page/History.cpp (working copy) |
@@ -120,8 +120,7 @@ |
return; |
KURL fullURL = urlForState(urlString); |
- RefPtr<SecurityOrigin> origin = SecurityOrigin::create(fullURL); |
- if (!fullURL.isValid() || !m_frame->document()->securityOrigin()->isSameSchemeHostPort(origin.get())) { |
+ if (!fullURL.isValid() || !m_frame->document()->securityOrigin()->canRequest(fullURL)) { |
ec = SECURITY_ERR; |
return; |
} |