| Index: third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp b/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
|
| index 562ce9f5cfdb0822a297f14d4eadaa4f0c3ca007..c252b26256de8a624ebb06e6dcdc2fd79019b6e0 100644
|
| --- a/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp
|
| @@ -509,24 +509,21 @@ void WebRemoteFrameImpl::willEnterFullscreen() {
|
| HTMLFrameOwnerElement* ownerElement =
|
| toHTMLFrameOwnerElement(frame()->owner());
|
|
|
| - // Call requestFullscreen() on |ownerElement| to make it the provisional
|
| - // fullscreen element in FullscreenController, and to prepare
|
| - // fullscreenchange events that will need to fire on it and its (local)
|
| - // ancestors. The events will be triggered if/when fullscreen is entered.
|
| + // Call |requestFullscreen()| on |ownerElement| to make it the pending
|
| + // fullscreen element in anticipation of the coming |didEnterFullscreen()|
|
| + // call.
|
| //
|
| - // Passing |forCrossProcessAncestor| to requestFullscreen is necessary
|
| - // because:
|
| - // - |ownerElement| will need :-webkit-full-screen-ancestor style in
|
| - // addition to :-webkit-full-screen.
|
| - // - there's no need to resend the ToggleFullscreen IPC to the browser
|
| - // process.
|
| + // PrefixedForCrossProcessDescendant is necessary because:
|
| + // - The fullscreen element ready check and other checks should be bypassed.
|
| + // - |ownerElement| will need :-webkit-full-screen-ancestor style in addition
|
| + // to :-webkit-full-screen.
|
| //
|
| // TODO(alexmos): currently, this assumes prefixed requests, but in the
|
| // future, this should plumb in information about which request type
|
| // (prefixed or unprefixed) to use for firing fullscreen events.
|
| - Fullscreen::requestFullscreen(*ownerElement,
|
| - Fullscreen::RequestType::Prefixed,
|
| - true /* forCrossProcessAncestor */);
|
| + Fullscreen::requestFullscreen(
|
| + *ownerElement,
|
| + Fullscreen::RequestType::PrefixedForCrossProcessDescendant);
|
| }
|
|
|
| WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope,
|
|
|