Skip to content
  • Ratchanan Srirattanamet's avatar
    webbrowser: fix window.opener when sites use window.open() · 636dcff9
    Ratchanan Srirattanamet authored and Ratchanan Srirattanamet's avatar Ratchanan Srirattanamet committed
    Other than the requested URL and the type of the new view, a
    WebEngineNewViewRequest also contains a "link" to the original webview
    that calls window.open(), which allows Chromium to populate the opened
    webview's window.opener. Thus, we have to always use the passed request
    object and not just the URL when opening a new tab/window.
    
    Bug: https://gitlab.com/ubports/development/core/morph-browser/-/issues/568
    636dcff9