 Chromium Code Reviews
 Chromium Code Reviews Issue 1699183003:
  [DevTools] Don't load sourcemap for blackboxed scripts  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@add-source-map-support-v3
    
  
    Issue 1699183003:
  [DevTools] Don't load sourcemap for blackboxed scripts  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@add-source-map-support-v3| 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 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 470 }, | 470 }, | 
| 471 | 471 | 
| 472 /** | 472 /** | 
| 473 * @return {boolean} | 473 * @return {boolean} | 
| 474 */ | 474 */ | 
| 475 hasSourceMapURL: function() | 475 hasSourceMapURL: function() | 
| 476 { | 476 { | 
| 477 return this._script && !!this._script.sourceMapURL; | 477 return this._script && !!this._script.sourceMapURL; | 
| 478 }, | 478 }, | 
| 479 | 479 | 
| 480 /** | |
| 481 * @return {boolean} | |
| 482 */ | |
| 483 isBlackboxed: function() | |
| 
dgozman
2016/02/20 02:50:32
Remove this, use isUISourceCodeBlackboxed.
 
kozy
2016/02/22 05:12:14
Done.
 | |
| 484 { | |
| 485 if (!this._script) | |
| 486 return false; | |
| 487 var location = this._resourceScriptMapping._debuggerModel.createRawLocat ion(this._script, 0, 0); | |
| 488 if (!location) | |
| 489 return false; | |
| 490 return WebInspector.blackboxManager.isBlackboxedRawLocation(location); | |
| 491 }, | |
| 492 | |
| 480 __proto__: WebInspector.Object.prototype | 493 __proto__: WebInspector.Object.prototype | 
| 481 } | 494 } | 
| OLD | NEW |