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

Unified Diff: third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js

Issue 2779703004: DevTools: carefully cleanup CSS sourcemaps (Closed)
Patch Set: fix tests Created 3 years, 9 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: third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js b/third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js
index 9b5ac7edfad0835e38bc187d595f968473c8d482..39bac4694ef9e1ce6455596dc7e2ca06eca02c71 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/NetworkProject.js
@@ -198,11 +198,22 @@ Bindings.NetworkProject = class extends SDK.SDKObject {
}
/**
+ * @param {string} url
+ * @param {string} frameId
+ * @param {boolean} isContentScript
+ */
+ removeSourceMapFile(url, frameId, isContentScript) {
+ this._removeFileForURL(url, frameId, isContentScript);
+ }
+
+ /**
* @param {string} frameId
* @param {string} url
+ * @param {boolean} isContentScript
*/
- _removeFileForURL(frameId, url) {
- var project = this._workspaceProjects.get(Bindings.NetworkProject.projectId(this.target(), frameId, false));
+ _removeFileForURL(url, frameId, isContentScript) {
+ var project =
+ this._workspaceProjects.get(Bindings.NetworkProject.projectId(this.target(), frameId, isContentScript));
if (!project)
return;
project.removeFile(url);
@@ -285,7 +296,7 @@ Bindings.NetworkProject = class extends SDK.SDKObject {
if (header.isInline && !header.hasSourceURL && header.origin !== 'inspector')
return;
- this._removeFileForURL(header.frameId, header.resourceURL());
+ this._removeFileForURL(header.resourceURL(), header.frameId, false);
}
/**

Powered by Google App Engine
This is Rietveld 408576698