| Index: third_party/WebKit/Source/core/frame/UseCounter.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/UseCounter.cpp b/third_party/WebKit/Source/core/frame/UseCounter.cpp
|
| index fb5b10670ed70e5eba1e36336e580c56851bf0de..d0bd56bd08244de9d7622c72f894eac7f03dfa6d 100644
|
| --- a/third_party/WebKit/Source/core/frame/UseCounter.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/UseCounter.cpp
|
| @@ -730,6 +730,18 @@ void UseCounter::countDeprecationIfNotPrivateScript(v8::Isolate* isolate, Execut
|
| UseCounter::countDeprecation(context, feature);
|
| }
|
|
|
| +void UseCounter::countCrossOriginIframe(const Document& document, Feature feature)
|
| +{
|
| + Frame* frame = document.frame();
|
| + if (!frame)
|
| + return;
|
| + // Check to see if the frame can script into the top level document.
|
| + SecurityOrigin* securityOrigin = frame->securityContext()->securityOrigin();
|
| + Frame* top = frame->tree().top();
|
| + if (top && !securityOrigin->canAccess(top->securityContext()->securityOrigin()))
|
| + count(frame, feature);
|
| +}
|
| +
|
| static const char* milestoneString(int milestone)
|
| {
|
| switch (milestone) {
|
|
|