| Index: third_party/WebKit/Source/core/dom/Fullscreen.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Fullscreen.cpp b/third_party/WebKit/Source/core/dom/Fullscreen.cpp
|
| index bd4cda9a7616dadc8899a26cef5aa7f347ccdcca..e2398d48e5034f604f927bf9099f59b68da460dd 100644
|
| --- a/third_party/WebKit/Source/core/dom/Fullscreen.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Fullscreen.cpp
|
| @@ -58,16 +58,7 @@ static bool fullscreenIsAllowedForAllOwners(const Document& document)
|
| return false;
|
|
|
| for (const Frame* frame = document.frame(); frame->owner(); frame = frame->tree().parent()) {
|
| - // TODO(alexmos): The allowfullscreen attribute will need to be
|
| - // replicated for this to work with OOPIFs. For now, deny fullscreen
|
| - // access inside OOPIFs until https://crbug.com/550497 is fixed.
|
| - if (frame->owner()->isRemote())
|
| - return false;
|
| -
|
| - HTMLFrameOwnerElement* owner = toHTMLFrameOwnerElement(frame->owner());
|
| - if (!isHTMLIFrameElement(owner))
|
| - return false;
|
| - if (!owner->hasAttribute(allowfullscreenAttr))
|
| + if (!frame->owner()->allowFullscreen())
|
| return false;
|
| }
|
| return true;
|
|
|