| 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
|
|
|