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

Side by Side Diff: Source/devtools/front_end/sdk/NetworkManager.js

Issue 1095943002: DevTools: [console] Logged promise rejections do not change state once handled (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: comments addressed Created 5 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 networkRequest.fetchedViaServiceWorker = true; 172 networkRequest.fetchedViaServiceWorker = true;
173 173
174 if (response.fromDiskCache) 174 if (response.fromDiskCache)
175 networkRequest.setFromDiskCache(); 175 networkRequest.setFromDiskCache();
176 networkRequest.timing = response.timing; 176 networkRequest.timing = response.timing;
177 177
178 networkRequest.protocol = response.protocol; 178 networkRequest.protocol = response.protocol;
179 179
180 if (!this._mimeTypeIsConsistentWithType(networkRequest)) { 180 if (!this._mimeTypeIsConsistentWithType(networkRequest)) {
181 var consoleModel = this._manager._target.consoleModel; 181 var consoleModel = this._manager._target.consoleModel;
182 consoleModel.addMessage(new WebInspector.ConsoleMessage(consoleModel .target(), WebInspector.ConsoleMessage.MessageSource.Network, 182 consoleModel.addMessage(new WebInspector.ConsoleMessage(consoleModel .target(), 0, WebInspector.ConsoleMessage.MessageSource.Network,
183 WebInspector.ConsoleMessage.MessageLevel.Log, 183 WebInspector.ConsoleMessage.MessageLevel.Log,
184 WebInspector.UIString("Resource interpreted as %s but transferre d with MIME type %s: \"%s\".", networkRequest.resourceType().title(), networkReq uest.mimeType, networkRequest.url), 184 WebInspector.UIString("Resource interpreted as %s but transferre d with MIME type %s: \"%s\".", networkRequest.resourceType().title(), networkReq uest.mimeType, networkRequest.url),
185 WebInspector.ConsoleMessage.MessageType.Log, 185 WebInspector.ConsoleMessage.MessageType.Log,
186 "", 186 "",
187 0, 187 0,
188 0, 188 0,
189 networkRequest.requestId)); 189 networkRequest.requestId));
190 } 190 }
191 }, 191 },
192 192
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 target.networkAgent().emulateNetworkConditions(this._networkConditio ns.offline, this._networkConditions.latency, 642 target.networkAgent().emulateNetworkConditions(this._networkConditio ns.offline, this._networkConditions.latency,
643 this._networkConditions.throughput, this._networkConditions.thro ughput); 643 this._networkConditions.throughput, this._networkConditions.thro ughput);
644 } 644 }
645 } 645 }
646 } 646 }
647 647
648 /** 648 /**
649 * @type {!WebInspector.MultitargetNetworkManager} 649 * @type {!WebInspector.MultitargetNetworkManager}
650 */ 650 */
651 WebInspector.multitargetNetworkManager; 651 WebInspector.multitargetNetworkManager;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698