Skip to content

Commit

Permalink
Cherry-pick 261425@main (b1ff4ea). https://bugs.webkit.org/show_bug.c…
Browse files Browse the repository at this point in the history
…gi?id=253428

    [GTK][WPE] Remote Web Inspector: context menu does not work
    https://bugs.webkit.org/show_bug.cgi?id=253428

    Reviewed by Tim Nguyen.

    Context menu does not work in remote web inspector due to the error:
    'typeerror: Cannot call a class constructor without |new|'.

    This fix adds missing 'new' when SoftContextMenu class is created.

    * Source/WebInspectorUI/UserInterface/Base/BrowserInspectorFrontendHost.js:
    (window.InspectorFrontendHost.WI.BrowserInspectorFrontendHost.prototype.showContextMenu):

    Canonical link: https://commits.webkit.org/261425@main
  • Loading branch information
pgorszkowski-igalia authored and aperezdc committed Mar 13, 2023
1 parent c5420cf commit adae7c8
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -281,7 +281,7 @@ if (!window.InspectorFrontendHost) {

showContextMenu(event, items)
{
this._contextMenu = WI.SoftContextMenu(items);
this._contextMenu = new WI.SoftContextMenu(items);
this._contextMenu.show(event);
}

Expand Down

0 comments on commit adae7c8

Please sign in to comment.