mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 11:37:43 -10:00
Bug 1510690 - Do focus the content window from the actor when the toolbox closes. r=nchevobbe
No RDP request should be done when the toolbox closes as there no guarantee that the request will complete. Instead, such cleanup should be done by the actors. Differential Revision: https://phabricator.services.mozilla.com/D38309
This commit is contained in:
1 parent
f847c5455b
commit
b446e32dd9
4 files changed
+24
-9
No files matched your search
@@ -1135,6 +1135,9 @@ const browsingContextTargetPrototype = {
|
||||
options.serviceWorkersTestingEnabled
|
||||
);
|
||||
}
|
||||
if (typeof options.restoreFocus == "boolean") {
|
||||
this._restoreFocus = options.restoreFocus;
|
||||
}
|
||||
|
||||
// Reload if:
|
||||
// - there's an explicit `performReload` flag and it's true
|
||||
@@ -1157,6 +1160,9 @@ const browsingContextTargetPrototype = {
|
||||
this._setCacheDisabled(false);
|
||||
this._setServiceWorkersTestingEnabled(false);
|
||||
this._setPaintFlashingEnabled(false);
|
||||
if (this._restoreFocus) {
|
||||
this.window.focus();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user