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

Loading remote workerscripts fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 4.7.0, 4.7.3, 5.5.0
    • None
    • N900 PR 1.3

    Description

      We noticed that QML workerscript example (http://doc.qt.nokia.com/4.7-snapshot/qml-workerscript.html#details) does not work if you load files from remote server. We had a qmlengine loading example qml file (http://<domain>/<path>/worker/main.qml) and it gave error:

      QFSFileEngine::open: No file name specified
      WorkerScript: Cannot find source file "http://<domain>/<path>/worker/script.js"

      Expected result would be that it manages to load the script.js in the same path. This assumption is based on general network transparency in QML.

      It seems that the implementation is written only for the local file case: http://qt.gitorious.org/qt/qt/blobs/master/src/declarative/qml/qdeclarativeworkerscript.cpp#line305

      This function is the same in master, 4.7, 4.8 and declarative-staging branches.

      Attachments

        For Gerrit Dashboard: QTBUG-19407
        # Subject Branch Project Status CR V

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            jaakko.tuosa Jaakko Tuosa
            Votes:
            7 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes