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
@@ -763,6 +763,15 @@ Toolbox.prototype = {
|
||||
|
||||
await promise.all([splitConsolePromise, framesPromise]);
|
||||
|
||||
// Request the actor to restore the focus to the content page once the
|
||||
// target is detached. This typically happens when the console closes.
|
||||
// We restore the focus as it may have been stolen by the console input.
|
||||
await this.target.reconfigure({
|
||||
options: {
|
||||
restoreFocus: true,
|
||||
},
|
||||
});
|
||||
|
||||
// Lazily connect to the profiler here and don't wait for it to complete,
|
||||
// used to intercept console.profile calls before the performance tools are open.
|
||||
const performanceFrontConnection = this.initPerformance();
|
||||
|
||||
Reference in new issue
Block a user