Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-45842

Opening link in new window will crash webengine when user scripts are present

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1: Critical P1: Critical
    • None
    • 5.5.0 Alpha
    • WebEngine
    • None
    • Arch Linux
      Qt 5.5 Alpha1
      Qt Webengine from git (4/27/2015)

      I apologize in advance because I cannot seem to get the symbols to show up for the life of me. Here is the backtrace if it is of any value.

      Thread 1 (Thread 0x7fffe658d7c0 (LWP 18239)):
      #0  0x00007ffff1684d54 in QtWebEngineCore::WebContentsAdapter::webContents() const () from /usr/lib/libQt5WebEngineCore.so.5
      No symbol table info available.
      #1  0x00007ffff168178c in QtWebEngineCore::UserScriptControllerHost::addUserScript(QtWebEngineCore::UserScript const&, QtWebEngineCore::WebContentsAdapter*) () from /usr/lib/libQt5WebEngineCore.so.5
      No symbol table info available.
      #2  0x00007ffff67a10e3 in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
      No symbol table info available.
      #3  0x00007ffff74a91fc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
      No symbol table info available.
      #4  0x00007ffff74ae7f8 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
      No symbol table info available.
      #5  0x00007ffff6770d5b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
      No symbol table info available.
      #6  0x00007ffff67c832d in QTimerInfoList::activateTimers() () from /usr/lib/libQt5Core.so.5
      No symbol table info available.
      #7  0x00007ffff67c8771 in ?? () from /usr/lib/libQt5Core.so.5
      No symbol table info available.
      #8  0x00007ffff0bca9fd in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
      No symbol table info available.
      #9  0x00007ffff0bcace0 in ?? () from /usr/lib/libglib-2.0.so.0
      No symbol table info available.
      #10 0x00007ffff0bcad8c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
      No symbol table info available.
      #11 0x00007ffff67c9437 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
      No symbol table info available.
      #12 0x00007ffff676e742 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
      No symbol table info available.
      #13 0x00007ffff677656c in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
      No symbol table info available.
      #14 0x0000000000404a31 in main (argc=3, argv=0x7fffffffe878) at ../Browser/main.cpp:57
              app = <incomplete type>
              engine = <incomplete type>
              browserMode = {static null = {<No data fields>}, d = 0x823720}
              stonewareConfig = <incomplete type>
              startUrl = {static null = {<No data fields>}, d = 0xc7d160}
              webChannel = <incomplete type>
      

      The situation is that I have a WebView that has a WebEngineScript that puts the webchannel code in there.

       WebEngineScript {
              id: webChannelScript
              sourceCode: WebChannelCode
              injectionPoint: WebEngineScript.DocumentReady
              worldId: WebEngineScript.MainWorld
          }
      
          Component.onCompleted: {
              userScripts = [ webChannelScript ];
          }
      

      Everything operates correctly until a link opens in a new window, using:

      request.openIn(newWindow.view);
      

      If I remove the user assignment of the user script it will operate correctly again (abet without the user script working).

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            mibrunin Michael Bruning
            geiseri Ian Reinhart Geiser
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes