Title: [137737] trunk/Source/WebCore
- Revision
- 137737
- Author
- [email protected]
- Date
- 2012-12-14 03:16:05 -0800 (Fri, 14 Dec 2012)
Log Message
Web Inspector: Duplicate scripts appear in workspace when script was referenced by url with a fragment part.
https://bugs.webkit.org/show_bug.cgi?id=105004
Reviewed by Alexander Pavlov.
* inspector/front-end/NetworkUISourceCodeProvider.js:
(WebInspector.NetworkUISourceCodeProvider.prototype._parsedScriptSource):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (137736 => 137737)
--- trunk/Source/WebCore/ChangeLog 2012-12-14 10:56:24 UTC (rev 137736)
+++ trunk/Source/WebCore/ChangeLog 2012-12-14 11:16:05 UTC (rev 137737)
@@ -1,3 +1,13 @@
+2012-12-14 Vsevolod Vlasov <[email protected]>
+
+ Web Inspector: Duplicate scripts appear in workspace when script was referenced by url with a fragment part.
+ https://bugs.webkit.org/show_bug.cgi?id=105004
+
+ Reviewed by Alexander Pavlov.
+
+ * inspector/front-end/NetworkUISourceCodeProvider.js:
+ (WebInspector.NetworkUISourceCodeProvider.prototype._parsedScriptSource):
+
2012-12-14 Kunihiko Sakamoto <[email protected]>
Hours field of date/time input UI should respect step attribute
Modified: trunk/Source/WebCore/inspector/front-end/NetworkUISourceCodeProvider.js (137736 => 137737)
--- trunk/Source/WebCore/inspector/front-end/NetworkUISourceCodeProvider.js 2012-12-14 10:56:24 UTC (rev 137736)
+++ trunk/Source/WebCore/inspector/front-end/NetworkUISourceCodeProvider.js 2012-12-14 11:16:05 UTC (rev 137737)
@@ -78,7 +78,8 @@
// - scripts with explicit sourceURL comment;
// - dynamic scripts (script elements with src attribute) when inspector is opened after the script was loaded.
if (!script.hasSourceURL && !script.isContentScript) {
- if (WebInspector.resourceForURL(script.sourceURL) || WebInspector.networkLog.requestForURL(script.sourceURL))
+ var requestURL = script.sourceURL.replace(/#.*/, "");
+ if (WebInspector.resourceForURL(requestURL) || WebInspector.networkLog.requestForURL(requestURL))
return;
}
// Filter out embedder injected content scripts.
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes