Changeset 204846 in webkit
- Timestamp:
- Aug 23, 2016 12:00:49 PM (8 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r204775 r204846 1 2016-08-23 Devin Rousso <dcrousso+webkit@gmail.com> 2 3 Web Inspector: No open/copy src resource in context menu 4 https://bugs.webkit.org/show_bug.cgi?id=159028 5 6 Reviewed by Joseph Pecoraro. 7 8 * Localizations/en.lproj/localizedStrings.js: 9 10 * UserInterface/Views/DOMTreeElement.js: 11 (WebInspector.DOMTreeElement.prototype._populateTagContextMenu): 12 Add options in the context menu of link attributes of DOM nodes to 13 - Open in New Tab 14 - Reveal in Resources Tab 15 - Copy Link Address 16 1 17 2016-08-23 Devin Rousso <dcrousso+webkit@gmail.com> 2 18 -
trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js
r204775 r204846 198 198 localizedStrings["Controls"] = "Controls"; 199 199 localizedStrings["Cookies"] = "Cookies"; 200 localizedStrings["Copy Link Address"] = "Copy Link Address"; 200 201 localizedStrings["Copy Path to Property"] = "Copy Path to Property"; 201 202 localizedStrings["Copy Row"] = "Copy Row"; … … 517 518 localizedStrings["Opacity"] = "Opacity"; 518 519 localizedStrings["Open"] = "Open"; 520 localizedStrings["Open in New Tab"] = "Open in New Tab"; 519 521 localizedStrings["Option-click to show all units"] = "Option-click to show all units"; 520 522 localizedStrings["Option-click to show all values"] = "Option-click to show all values"; … … 607 609 localizedStrings["Reveal in Debugger Tab"] = "Reveal in Debugger Tab"; 608 610 localizedStrings["Reveal in Original Resource"] = "Reveal in Original Resource"; 611 localizedStrings["Reveal in Resources Tab"] = "Reveal in Resources Tab"; 609 612 localizedStrings["Right"] = "Right"; 610 613 localizedStrings["Role"] = "Role"; -
trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeElement.js
r204370 r204846 644 644 _populateTagContextMenu(contextMenu, event) 645 645 { 646 varnode = this.representedObject;646 let node = this.representedObject; 647 647 if (!node.isInUserAgentShadowTree()) { 648 var attribute = event.target.enclosingNodeOrSelfWithClass("html-attribute"); 648 let attribute = event.target.enclosingNodeOrSelfWithClass("html-attribute"); 649 650 if (event.target && event.target.tagName === "A") { 651 let url = event.target.href; 652 653 contextMenu.appendItem(WebInspector.UIString("Open in New Tab"), () => { 654 const frame = null; 655 const alwaysOpenExternally = true; 656 WebInspector.openURL(url, frame, alwaysOpenExternally); 657 }); 658 659 if (WebInspector.frameResourceManager.resourceForURL(url)) { 660 contextMenu.appendItem(WebInspector.UIString("Reveal in Resources Tab"), () => { 661 let frame = WebInspector.frameResourceManager.frameForIdentifier(node.frameIdentifier); 662 WebInspector.openURL(url, frame); 663 }); 664 } 665 666 contextMenu.appendItem(WebInspector.UIString("Copy Link Address"), () => { 667 InspectorFrontendHost.copyText(url); 668 }); 669 670 contextMenu.appendSeparator(); 671 } 649 672 650 673 // Add attribute-related actions. … … 657 680 658 681 if (WebInspector.cssStyleManager.canForcePseudoClasses()) { 659 varpseudoSubMenu = contextMenu.appendSubMenuItem(WebInspector.UIString("Forced Pseudo-Classes"));682 let pseudoSubMenu = contextMenu.appendSubMenuItem(WebInspector.UIString("Forced Pseudo-Classes")); 660 683 this._populateForcedPseudoStateItems(pseudoSubMenu); 661 684 contextMenu.appendSeparator();
Note: See TracChangeset
for help on using the changeset viewer.