Title: [252213] trunk/Source/WebInspectorUI
- Revision
- 252213
- Author
- [email protected]
- Date
- 2019-11-07 15:39:56 -0800 (Thu, 07 Nov 2019)
Log Message
Web Inspector: REGRESSION(r251958): console prompt is automatically focused when page is reloaded
https://bugs.webkit.org/show_bug.cgi?id=203932
Reviewed by Timothy Hatcher.
* UserInterface/Base/Main.js:
(WI._restoreCookieForOpenTabs):
Only attempt to autofocus when Web Inspector is first opened.
Modified Paths
Diff
Modified: trunk/Source/WebInspectorUI/ChangeLog (252212 => 252213)
--- trunk/Source/WebInspectorUI/ChangeLog 2019-11-07 23:24:35 UTC (rev 252212)
+++ trunk/Source/WebInspectorUI/ChangeLog 2019-11-07 23:39:56 UTC (rev 252213)
@@ -1,5 +1,16 @@
2019-11-07 Devin Rousso <[email protected]>
+ Web Inspector: REGRESSION(r251958): console prompt is automatically focused when page is reloaded
+ https://bugs.webkit.org/show_bug.cgi?id=203932
+
+ Reviewed by Timothy Hatcher.
+
+ * UserInterface/Base/Main.js:
+ (WI._restoreCookieForOpenTabs):
+ Only attempt to autofocus when Web Inspector is first opened.
+
+2019-11-07 Devin Rousso <[email protected]>
+
Web Inspector: REGRESSION(r250087): inspector/model/remote-object.html is timing out
https://bugs.webkit.org/show_bug.cgi?id=202934
<rdar://problem/56270900>
Modified: trunk/Source/WebInspectorUI/UserInterface/Base/Main.js (252212 => 252213)
--- trunk/Source/WebInspectorUI/UserInterface/Base/Main.js 2019-11-07 23:24:35 UTC (rev 252212)
+++ trunk/Source/WebInspectorUI/UserInterface/Base/Main.js 2019-11-07 23:39:56 UTC (rev 252213)
@@ -1571,13 +1571,16 @@
tabContentView.restoreStateFromCookie(restorationType);
}
- window.requestAnimationFrame(() => {
- if (WI.isContentAreaFocused() || WI.isShowingTimelineTab() || WI.isShowingAuditTab())
- return;
+ // Only attempt to autofocus when Web Inspector is first opened.
+ if (WI._didAutofocusConsolePrompt === undefined) {
+ window.requestAnimationFrame(() => {
+ if (WI.isContentAreaFocused() || WI.isShowingTimelineTab() || WI.isShowingAuditTab())
+ return;
- WI.quickConsole.prompt.focus();
- WI._didAutofocusConsolePrompt = true;
- });
+ WI.quickConsole.prompt.focus();
+ WI._didAutofocusConsolePrompt = true;
+ });
+ }
};
WI._saveCookieForOpenTabs = function()
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes