Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: third_party/WebKit/WebCore/page/SecurityOrigin.cpp

Issue 8109: Return securityToken to SecurityOrigin (Closed) Base URL: svn://chrome-svn/chrome/branches/chrome_webkit_merge_branch/src/
Patch Set: '' Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/WebCore/page/SecurityOrigin.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/WebCore/page/SecurityOrigin.cpp
===================================================================
--- third_party/WebKit/WebCore/page/SecurityOrigin.cpp (revision 3814)
+++ third_party/WebKit/WebCore/page/SecurityOrigin.cpp (working copy)
@@ -301,4 +301,22 @@
return true;
}
+String SecurityOrigin::securityToken() const
+{
+ if (isEmpty())
+ return String();
+
+ if (m_noAccess)
+ return String();
+
+ if (m_domainWasSetInDOM) {
+ // We could encode the document.domain state into the security token,
+ // but this is an uncommon case and leads to complexity. We're better
+ // off sending these accesses down the slow path.
+ return String();
+ }
+
+ return toString();
+}
+
} // namespace WebCore
« no previous file with comments | « third_party/WebKit/WebCore/page/SecurityOrigin.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698