| Index: third_party/WebKit/Source/core/dom/Document.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
|
| index 39ce0cb0dbac74e1fd8cd706b5aa4f2fa15390d0..8f94337853bf0c44fb09989987ec28779edb7af1 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -5711,6 +5711,16 @@ void Document::updateSecurityOrigin(PassRefPtr<SecurityOrigin> origin) {
|
| didUpdateSecurityOrigin();
|
| }
|
|
|
| +String Document::origin() const {
|
| + return getSecurityOrigin()->toString();
|
| +}
|
| +
|
| +String Document::suborigin() const {
|
| + return getSecurityOrigin()->hasSuborigin()
|
| + ? getSecurityOrigin()->suborigin()->name()
|
| + : String();
|
| +}
|
| +
|
| void Document::didUpdateSecurityOrigin() {
|
| if (!m_frame)
|
| return;
|
|
|