Bug 76824
Summary: | [Qt] In the inspector it is not showing any dynamically loaded Javascript files | ||
---|---|---|---|
Product: | WebKit | Reporter: | andy.shaw |
Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Normal | CC: | bohdan.korniyenko, max.desyatov |
Priority: | P3 | Keywords: | Qt |
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
andy.shaw
In the inspector it is not showing any dynamically loaded Javascript files, this was working with the WebKit version with Qt 4.7.x but not with Qt 4.8.x.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
bohdan.korniyenko
--- /Users/user/QtCommercialSdk/Src/qt/480/src/3rdparty/webkit/Source/JavaScriptCore/parser/SourceProvider.h.orig 2012-03-02 10:48:40.000000000 +0200
+++ /Users/user/QtCommercialSdk/Src/qt/480/src/3rdparty/webkit/Source/JavaScriptCore/parser/SourceProvider.h 2012-03-01 18:59:45.000000000 +0200
@@ -82,6 +82,10 @@
public:
static PassRefPtr<UStringSourceProvider> create(const UString& source, const UString& url)
{
+ QRegExp rxlen("//[ \\t]*@[ \\t]*sourceURL[ \\t]*=[ \\t]*(\\S+).*$");
+ if (rxlen.indexIn(source.utf8().data()) > -1)
+ return adoptRef(new UStringSourceProvider(source, UString(rxlen.cap(1).toAscii().data())));
+
return adoptRef(new UStringSourceProvider(source, url));
}
Jocelyn Turcotte
=== 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.