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

Side by Side Diff: Source/devtools/front_end/bindings/NetworkProject.js

Issue 1318043003: DevTools: attempt to unflake http/tests/inspector/service-workers/service-workers-view.html. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 var debuggerModel = WebInspector.DebuggerModel.fromTarget(target); 403 var debuggerModel = WebInspector.DebuggerModel.fromTarget(target);
404 if (debuggerModel) { 404 if (debuggerModel) {
405 debuggerModel.removeEventListener(WebInspector.DebuggerModel.Events. ParsedScriptSource, this._parsedScriptSource, this); 405 debuggerModel.removeEventListener(WebInspector.DebuggerModel.Events. ParsedScriptSource, this._parsedScriptSource, this);
406 debuggerModel.removeEventListener(WebInspector.DebuggerModel.Events. FailedToParseScriptSource, this._parsedScriptSource, this); 406 debuggerModel.removeEventListener(WebInspector.DebuggerModel.Events. FailedToParseScriptSource, this._parsedScriptSource, this);
407 } 407 }
408 var cssModel = WebInspector.CSSStyleModel.fromTarget(target); 408 var cssModel = WebInspector.CSSStyleModel.fromTarget(target);
409 if (cssModel) { 409 if (cssModel) {
410 cssModel.removeEventListener(WebInspector.CSSStyleModel.Events.Style SheetAdded, this._styleSheetAdded, this); 410 cssModel.removeEventListener(WebInspector.CSSStyleModel.Events.Style SheetAdded, this._styleSheetAdded, this);
411 cssModel.removeEventListener(WebInspector.CSSStyleModel.Events.Style SheetRemoved, this._styleSheetRemoved, this); 411 cssModel.removeEventListener(WebInspector.CSSStyleModel.Events.Style SheetRemoved, this._styleSheetRemoved, this);
412 } 412 }
413 delete target[WebInspector.NetworkProject._networkProjectSymbol];
413 }, 414 },
414 415
415 _reset: function() 416 _reset: function()
416 { 417 {
417 this._processedURLs = {}; 418 this._processedURLs = {};
418 for (var projectId in this._projectDelegates) 419 for (var projectId in this._projectDelegates)
419 this._projectDelegates[projectId].reset(); 420 this._projectDelegates[projectId].reset();
420 this._projectDelegates = {}; 421 this._projectDelegates = {};
421 }, 422 },
422 423
423 __proto__: WebInspector.SDKObject.prototype 424 __proto__: WebInspector.SDKObject.prototype
424 } 425 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698