[tbb-commits] [tor-browser] branch tor-browser-91.13.0esr-11.5-1 updated: Bug 1780348 - Exit fullscreen if DOMFullscreenChild is not able to continue the fullscreen transition; r=smaug, a=RyanVM
gitolite role
git at cupani.torproject.org
Thu Oct 6 08:03:58 UTC 2022
This is an automated email from the git hooks/post-receive script.
pierov pushed a commit to branch tor-browser-91.13.0esr-11.5-1
in repository tor-browser.
The following commit(s) were added to refs/heads/tor-browser-91.13.0esr-11.5-1 by this push:
new a81e14e5ee79 Bug 1780348 - Exit fullscreen if DOMFullscreenChild is not able to continue the fullscreen transition; r=smaug, a=RyanVM
a81e14e5ee79 is described below
commit a81e14e5ee7975305f1844c46142324039946270
Author: Edgar Chen <echen at mozilla.com>
AuthorDate: Mon Aug 8 20:06:32 2022 +0000
Bug 1780348 - Exit fullscreen if DOMFullscreenChild is not able to continue the fullscreen transition; r=smaug, a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D153807
---
browser/actors/DOMFullscreenChild.jsm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/browser/actors/DOMFullscreenChild.jsm b/browser/actors/DOMFullscreenChild.jsm
index b0f3769dfa57..008d1e6e5cb4 100644
--- a/browser/actors/DOMFullscreenChild.jsm
+++ b/browser/actors/DOMFullscreenChild.jsm
@@ -25,6 +25,13 @@ class DOMFullscreenChild extends JSWindowActorChild {
let remoteFrameBC = aMessage.data.remoteFrameBC;
if (remoteFrameBC) {
let remoteFrame = remoteFrameBC.embedderElement;
+ if (!remoteFrame) {
+ // This could happen when the page navigate away and trigger a
+ // process switching during fullscreen transition, tell the parent
+ // to just exit.
+ this.sendAsyncMessage("DOMFullscreen:Exit", {});
+ break;
+ }
this._isNotTheRequestSource = true;
windowUtils.remoteFrameFullscreenChanged(remoteFrame);
} else {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the tbb-commits
mailing list