Title: [253162] trunk/Source/WebInspectorUI
- Revision
- 253162
- Author
- [email protected]
- Date
- 2019-12-05 12:18:42 -0800 (Thu, 05 Dec 2019)
Log Message
Web Inspector: move the "Add Breakpoint" context menu to be next to the blackboxing context menu item
https://bugs.webkit.org/show_bug.cgi?id=204833
Reviewed by Timothy Hatcher.
Both items are related to _javascript_ debugging, so they should be closer together.
* UserInterface/Views/ContextMenuUtilities.js:
(WI.appendContextMenuItemsForSourceCode):
Modified Paths
Diff
Modified: trunk/Source/WebInspectorUI/ChangeLog (253161 => 253162)
--- trunk/Source/WebInspectorUI/ChangeLog 2019-12-05 20:16:45 UTC (rev 253161)
+++ trunk/Source/WebInspectorUI/ChangeLog 2019-12-05 20:18:42 UTC (rev 253162)
@@ -1,5 +1,17 @@
2019-12-05 Devin Rousso <[email protected]>
+ Web Inspector: move the "Add Breakpoint" context menu to be next to the blackboxing context menu item
+ https://bugs.webkit.org/show_bug.cgi?id=204833
+
+ Reviewed by Timothy Hatcher.
+
+ Both items are related to _javascript_ debugging, so they should be closer together.
+
+ * UserInterface/Views/ContextMenuUtilities.js:
+ (WI.appendContextMenuItemsForSourceCode):
+
+2019-12-05 Devin Rousso <[email protected]>
+
Web Inspector: Support search on IndexedDB stores and indexes
https://bugs.webkit.org/show_bug.cgi?id=129208
<rdar://problem/16142046>
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ContextMenuUtilities.js (253161 => 253162)
--- trunk/Source/WebInspectorUI/UserInterface/Views/ContextMenuUtilities.js 2019-12-05 20:16:45 UTC (rev 253161)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ContextMenuUtilities.js 2019-12-05 20:18:42 UTC (rev 253162)
@@ -92,6 +92,19 @@
contextMenu.appendSeparator();
+ if (location && (sourceCode instanceof WI.Script || (sourceCode instanceof WI.Resource && sourceCode.type === WI.Resource.Type.Script && !sourceCode.isLocalResourceOverride))) {
+ let existingBreakpoint = WI.debuggerManager.breakpointForSourceCodeLocation(location);
+ if (existingBreakpoint) {
+ contextMenu.appendItem(WI.UIString("Delete Breakpoint"), () => {
+ WI.debuggerManager.removeBreakpoint(existingBreakpoint);
+ });
+ } else {
+ contextMenu.appendItem(WI.UIString("Add Breakpoint"), () => {
+ WI.debuggerManager.addBreakpoint(new WI.Breakpoint(location));
+ });
+ }
+ }
+
if (sourceCode.supportsScriptBlackboxing) {
let blackboxData = WI.debuggerManager.blackboxDataForSourceCode(sourceCode);
if (blackboxData && blackboxData.type === WI.DebuggerManager.BlackboxType.Pattern) {
@@ -144,21 +157,6 @@
});
contextMenu.appendSeparator();
-
- if (location && (sourceCode instanceof WI.Script || (sourceCode instanceof WI.Resource && sourceCode.type === WI.Resource.Type.Script && !sourceCode.isLocalResourceOverride))) {
- let existingBreakpoint = WI.debuggerManager.breakpointForSourceCodeLocation(location);
- if (existingBreakpoint) {
- contextMenu.appendItem(WI.UIString("Delete Breakpoint"), () => {
- WI.debuggerManager.removeBreakpoint(existingBreakpoint);
- });
- } else {
- contextMenu.appendItem(WI.UIString("Add Breakpoint"), () => {
- WI.debuggerManager.addBreakpoint(new WI.Breakpoint(location));
- });
- }
-
- contextMenu.appendSeparator();
- }
};
WI.appendContextMenuItemsForURL = function(contextMenu, url, options = {})
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes