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

PDF viewer only works in the fist tab

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.13
    • Fix Version/s: 5.13.0 Beta3
    • Component/s: WebEngine
    • Labels:
      None
    • Platform/s:
      All
    • Commits:
      29589c46b00df37d508dc1af0aa9c74a1d0bf056 (qt/qtwebengine/dev)

      Description

      Steps to reproduce:

      1. Start simplebrowser
      2. Open any page in the first tab
      3. Open a new tab
      4. Load pdf into the new tab

      Expected Result:

      PDF Viewer shows the pdf.

      Actual Result:

      PDF Viewer doesn't show anything (gray background). Errors in console:

      js: Not allowed to load local resource: chrome://resources/css/text_defaults_md.css
      js: Not allowed to load local resource: chrome://resources/html/polymer.html
      js: Not allowed to load local resource: chrome://resources/cr_elements/cr_dialog/cr_dialog.html                                                                                      
      js: Not allowed to load local resource: chrome://resources/cr_elements/hidden_style_css.html                                                                                         
      js: Not allowed to load local resource: chrome://resources/cr_elements/paper_button_style_css.html                                                                                   
      js: Not allowed to load local resource: chrome://resources/polymer/v1_0/paper-button/paper-button.html                                                                               
      js: Not allowed to load local resource: chrome://resources/html/assert.html
      js: Not allowed to load local resource: chrome://resources/html/util.html
      js: Not allowed to load local resource: chrome://resources/cr_elements/cr_input/cr_input.html                                                                                        
      js: Not allowed to load local resource: chrome://resources/cr_elements/shared_style_css.html                                                                                         
      js: Not allowed to load local resource: chrome://resources/cr_elements/shared_vars_css.html                                                                                          
      js: Not allowed to load local resource: chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button.html                                                                     
      js: Not allowed to load local resource: chrome://resources/polymer/v1_0/paper-progress/paper-progress.html                                                                           
      js: Not allowed to load local resource: chrome://resources/cr_elements/icons.html
      js: Not allowed to load local resource: chrome://resources/polymer/v1_0/paper-styles/color.html                                                                                      
      js: Uncaught ReferenceError: Polymer is not defined
      js: Uncaught ReferenceError: Polymer is not defined
      js: Not allowed to load local resource: chrome://resources/polymer/v1_0/iron-iconset-svg/iron-iconset-svg.html                                                                       
      js: Not allowed to load local resource: chrome://resources/polymer/v1_0/paper-fab/paper-fab.html                                                                                     
      js: Uncaught ReferenceError: Polymer is not defined
      js: Uncaught ReferenceError: Polymer is not defined
      js: Not allowed to load local resource: chrome://resources/polymer/v1_0/paper-ripple/paper-ripple.html                                                                               
      js: Uncaught ReferenceError: Polymer is not defined
      js: Uncaught ReferenceError: Polymer is not defined
      js: Uncaught ReferenceError: Polymer is not defined
      js: Uncaught ReferenceError: Polymer is not defined
      js: Uncaught ReferenceError: Polymer is not defined
      js: Uncaught ReferenceError: Polymer is not defined
      js: Not allowed to load local resource: chrome://resources/js/assert.js
      js: Not allowed to load local resource: chrome://resources/js/load_time_data.js
      js: Not allowed to load local resource: chrome://resources/js/util.js
      js: Not allowed to load local resource: chrome://resources/js/promise_resolver.js
      js: Uncaught (in promise) ReferenceError: PromiseResolver is not defined
      

      After loading a pdf into the first tab, the pdf viewer starts to work in other tabs too.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              mibrunin Michael Bruning
              Reporter:
              pvarga Peter Varga
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes