| OLD | NEW |
| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 if (error) { | 122 if (error) { |
| 123 this._cachedResourcesProcessed = true; | 123 this._cachedResourcesProcessed = true; |
| 124 this.dispatchEventToListeners(WebInspector.ResourceTreeModel.EventTy
pes.CachedResourcesLoaded); | 124 this.dispatchEventToListeners(WebInspector.ResourceTreeModel.EventTy
pes.CachedResourcesLoaded); |
| 125 return; | 125 return; |
| 126 } | 126 } |
| 127 | 127 |
| 128 this.dispatchEventToListeners(WebInspector.ResourceTreeModel.EventTypes.
WillLoadCachedResources); | 128 this.dispatchEventToListeners(WebInspector.ResourceTreeModel.EventTypes.
WillLoadCachedResources); |
| 129 this._inspectedPageURL = mainFramePayload.frame.url; | 129 this._inspectedPageURL = mainFramePayload.frame.url; |
| 130 | 130 |
| 131 // Do not process SW resources. | 131 // Do not process SW resources. |
| 132 if (this.target().isPage()) | 132 if (this.target().hasBrowserCapability()) |
| 133 this._addFramesRecursively(null, mainFramePayload); | 133 this._addFramesRecursively(null, mainFramePayload); |
| 134 else | 134 else |
| 135 this._addSecurityOrigin(mainFramePayload.frame.securityOrigin); | 135 this._addSecurityOrigin(mainFramePayload.frame.securityOrigin); |
| 136 | 136 |
| 137 this._dispatchInspectedURLChanged(); | 137 this._dispatchInspectedURLChanged(); |
| 138 this._cachedResourcesProcessed = true; | 138 this._cachedResourcesProcessed = true; |
| 139 this.dispatchEventToListeners(WebInspector.ResourceTreeModel.EventTypes.
CachedResourcesLoaded); | 139 this.dispatchEventToListeners(WebInspector.ResourceTreeModel.EventTypes.
CachedResourcesLoaded); |
| 140 }, | 140 }, |
| 141 | 141 |
| 142 /** | 142 /** |
| (...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 971 }, | 971 }, |
| 972 | 972 |
| 973 /** | 973 /** |
| 974 * @override | 974 * @override |
| 975 */ | 975 */ |
| 976 interstitialHidden: function() | 976 interstitialHidden: function() |
| 977 { | 977 { |
| 978 // Frontend is not interested in interstitials. | 978 // Frontend is not interested in interstitials. |
| 979 } | 979 } |
| 980 } | 980 } |
| OLD | NEW |