| OLD | NEW |
| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 }, | 189 }, |
| 190 | 190 |
| 191 /** | 191 /** |
| 192 * @param {!WebInspector.Script} script | 192 * @param {!WebInspector.Script} script |
| 193 */ | 193 */ |
| 194 _processScript: function(script) | 194 _processScript: function(script) |
| 195 { | 195 { |
| 196 if (WebInspector.blackboxManager.isBlackboxedURL(script.sourceURL, scrip
t.isContentScript())) | 196 if (WebInspector.blackboxManager.isBlackboxedURL(script.sourceURL, scrip
t.isContentScript())) |
| 197 return; | 197 return; |
| 198 // Create stub UISourceCode for the time source mapping is being loaded. | 198 // Create stub UISourceCode for the time source mapping is being loaded. |
| 199 var stubUISourceCode = this._stubProject.addContentProvider(script.sourc
eURL, new WebInspector.StaticContentProvider(WebInspector.resourceTypes.Script,
"\n\n\n\n\n// Please wait a bit.\n// Compiled script is not shown while source m
ap is being loaded!", script.sourceURL)); | 199 var stubUISourceCode = this._stubProject.addContentProvider(script.sourc
eURL, new WebInspector.StaticContentProvider(script.sourceURL, WebInspector.reso
urceTypes.Script, Promise.resolve("\n\n\n\n\n// Please wait a bit.\n// Compiled
script is not shown while source map is being loaded!"))); |
| 200 this._stubUISourceCodes.set(script.scriptId, stubUISourceCode); | 200 this._stubUISourceCodes.set(script.scriptId, stubUISourceCode); |
| 201 | 201 |
| 202 this._debuggerWorkspaceBinding.pushSourceMapping(script, this); | 202 this._debuggerWorkspaceBinding.pushSourceMapping(script, this); |
| 203 this._loadSourceMapForScript(script).then(this._sourceMapLoaded.bind(thi
s, script, stubUISourceCode.url())); | 203 this._loadSourceMapForScript(script).then(this._sourceMapLoaded.bind(thi
s, script, stubUISourceCode.url())); |
| 204 }, | 204 }, |
| 205 | 205 |
| 206 /** | 206 /** |
| 207 * @param {!WebInspector.Script} script | 207 * @param {!WebInspector.Script} script |
| 208 * @param {string} uiSourceCodePath | 208 * @param {string} uiSourceCodePath |
| 209 * @param {?WebInspector.TextSourceMap} sourceMap | 209 * @param {?WebInspector.TextSourceMap} sourceMap |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 this._sourceMapForScriptId.clear() | 382 this._sourceMapForScriptId.clear() |
| 383 this._scriptForSourceMap.clear(); | 383 this._scriptForSourceMap.clear(); |
| 384 this._sourceMapForURL.clear(); | 384 this._sourceMapForURL.clear(); |
| 385 }, | 385 }, |
| 386 | 386 |
| 387 dispose: function() | 387 dispose: function() |
| 388 { | 388 { |
| 389 this._workspace.removeEventListener(WebInspector.Workspace.Events.UISour
ceCodeAdded, this._uiSourceCodeAddedToWorkspace, this); | 389 this._workspace.removeEventListener(WebInspector.Workspace.Events.UISour
ceCodeAdded, this._uiSourceCodeAddedToWorkspace, this); |
| 390 } | 390 } |
| 391 } | 391 } |
| OLD | NEW |