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

QWebEngineSettings::LocalContentCanAccessRemoteUrls and QWebEngineSettings::LocalContentCanAccessFileUrls doesn't work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.5.1
    • WebEngine
    • Desktop Linux

    Description

      To reproduce the problem please run the attached application without shadow build.
      Expected result would be:
      XMLHttpRequest displays a list of topics and Qt logo is visible.

      Current result:
      The debugger logs:

      Seems like:

          bool enableLocalFileStuff = true; 
          QWebEngineSettings::globalSettings()->setAttribute(QWebEngineSettings::LocalContentCanAccessFileUrls, enableLocalFileStuff);
          QWebEngineSettings::globalSettings()->setAttribute(QWebEngineSettings::LocalContentCanAccessRemoteUrls, enableLocalFileStuff);
      

      doesn't work.

      Attachments

        Activity

          People

            mibrunin Michael Bruning
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: