Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(907)

Unified Diff: Source/core/inspector/InspectorDebuggerAgent.cpp

Issue 18580011: DevTools: Disable sourceUrl and SourceMappingUrl deprecation warnings for a few releases. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/inspector/InspectorDebuggerAgent.cpp
diff --git a/Source/core/inspector/InspectorDebuggerAgent.cpp b/Source/core/inspector/InspectorDebuggerAgent.cpp
index ad31830f2b6d06ffaa5dee76ed81a4c5a0dcb5ab..b3e2640ba86c553cea461d73e7dbed6ff232c356 100644
--- a/Source/core/inspector/InspectorDebuggerAgent.cpp
+++ b/Source/core/inspector/InspectorDebuggerAgent.cpp
@@ -666,8 +666,7 @@ String InspectorDebuggerAgent::sourceMapURLForScript(const Script& script)
bool deprecated;
String sourceMapURL = ContentSearchUtils::findSourceMapURL(script.source, ContentSearchUtils::JavaScriptMagicComment, &deprecated);
if (!sourceMapURL.isEmpty()) {
- if (deprecated)
- addConsoleMessage(NetworkMessageSource, WarningMessageLevel, "\"//@ sourceMappingURL=\" source mapping URL declaration is deprecated, \"//# sourceMappingURL=\" declaration should be used instead.", script.url);
+ // FIXME: add deprecated console message here.
return sourceMapURL;
}
@@ -692,8 +691,7 @@ void InspectorDebuggerAgent::didParseSource(const String& scriptId, const Script
if (!script.startLine && !script.startColumn) {
bool deprecated;
sourceURL = ContentSearchUtils::findSourceURL(script.source, ContentSearchUtils::JavaScriptMagicComment, &deprecated);
- if (deprecated)
- addConsoleMessage(NetworkMessageSource, WarningMessageLevel, "\"//@ sourceURL=\" source URL declaration is deprecated, \"//# sourceURL=\" declaration should be used instead.", script.url);
+ // FIXME: add deprecated console message here.
}
bool hasSourceURL = !sourceURL.isEmpty();
String scriptURL = hasSourceURL ? sourceURL : script.url;
« no previous file with comments | « LayoutTests/inspector/styles/stylesheet-source-url-comment-expected.txt ('k') | Source/core/inspector/InspectorPageAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698