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

Unified Diff: Source/devtools/front_end/CSSStyleModel.js

Issue 221033003: DevTools: disable CSS agent on disconnect. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: A better fix. Created 6 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
« no previous file with comments | « Source/core/inspector/InspectorCSSAgent.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/CSSStyleModel.js
diff --git a/Source/devtools/front_end/CSSStyleModel.js b/Source/devtools/front_end/CSSStyleModel.js
index e83204509a24e566cc538952693d9706490aeecb..b165d6ea16da68cc3cb00ddddc2d98bda1839b8a 100644
--- a/Source/devtools/front_end/CSSStyleModel.js
+++ b/Source/devtools/front_end/CSSStyleModel.js
@@ -459,6 +459,8 @@ WebInspector.CSSStyleModel.prototype = {
{
var header = this._styleSheetIdToHeader[id];
console.assert(header);
+ if (!header)
+ return;
delete this._styleSheetIdToHeader[id];
var url = header.resourceURL();
var frameIdToStyleSheetIds = this._styleSheetIdsForURL[url];
« no previous file with comments | « Source/core/inspector/InspectorCSSAgent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698