Bug 94362

Summary: [Qt] QWebView::setHtml doesn't load external JS and CSS files
Product: WebKit Reporter: Dmitry Shachnev <mitya57>
Component: WebKit QtAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal    
Priority: P3    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
URL: https://bugreports.qt-project.org/browse/QTBUG-26883

Description Dmitry Shachnev 2012-08-17 10:52:01 PDT
[ I'm not sure if it's a bug in Qt or QtWebKit, so reported to both bugtrackers ]

For example, if I have a QString html containing source of HTML page and it contains

    <link rel="stylesheet" type="text/css" href="style.css">

reference in <head>, and a QWebView webView, and I set HTML code using webView.setHtml(html), it won't be loaded and applied.

The same happens if there's a JS reference included using

    <script type="text/javascript" src="script.js">

(in my case, it's MathJax).
Comment 1 Jocelyn Turcotte 2014-02-03 03:22:07 PST
=== Bulk closing of Qt bugs ===

If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary.

If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.