⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 276681 in webkit


Ignore:
Timestamp:
Apr 27, 2021, 5:04:53 PM (5 years ago)
Author:
Patrick Angle
Message:

Web Inspector: Rename "Open in New Tab" context menu item to "Open in New Window"
​https://bugs.webkit.org/show_bug.cgi?id=225125

Reviewed by BJ Burg.

Update the context menu item label, as the "Open in..." context menu item opens the target item in a new window,
not a new tab.

  • Localizations/en.lproj/localizedStrings.js:
  • UserInterface/Views/ContextMenuUtilities.js:

(WI.appendContextMenuItemsForURL):

Location:
trunk/Source/WebInspectorUI
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r276680 r276681  
     12021-04-27  Patrick Angle  <pangle@apple.com>
     2
     3        Web Inspector: Rename "Open in New Tab" context menu item to "Open in New Window"
     4        https://bugs.webkit.org/show_bug.cgi?id=225125
     5
     6        Reviewed by BJ Burg.
     7
     8        Update the context menu item label, as the "Open in..." context menu item opens the target item in a new window,
     9        not a new tab.
     10
     11        * Localizations/en.lproj/localizedStrings.js:
     12        * UserInterface/Views/ContextMenuUtilities.js:
     13        (WI.appendContextMenuItemsForURL):
     14
    1152021-04-27  Patrick Angle  <pangle@apple.com>
    216
  • trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js

    r275982 r276681  
    10221022localizedStrings["Only show visual actions"] = "Only show visual actions";
    10231023localizedStrings["Open"] = "Open";
    1024 localizedStrings["Open in New Tab"] = "Open in New Tab";
     1024/* Context menu item for opening the target item in a new window. */
     1025localizedStrings["Open in New Window @ Context Menu Item"] = "Open in New Window";
    10251026localizedStrings["Option-click to show source"] = "Option-click to show source";
    10261027localizedStrings["Options"] = "Options";
  • trunk/Source/WebInspectorUI/UserInterface/Views/ContextMenuUtilities.js

    r274229 r276681  
    213213
    214214    if (!url.startsWith("javascript:") && !url.startsWith("data:")) {
    215         contextMenu.appendItem(WI.UIString("Open in New Tab"), () => {
     215        contextMenu.appendItem(WI.UIString("Open in New Window", "Open in New Window @ Context Menu Item", "Context menu item for opening the target item in a new window."), () => {
    216216            const frame = null;
    217217            WI.openURL(url, frame, {alwaysOpenExternally: true});
Note: See TracChangeset for help on using the changeset viewer.