| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 WebInspector.BlackboxSupport = {} | 5 WebInspector.BlackboxSupport = {} |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * @param {string} url | 8 * @param {string} url |
| 9 * @return {string} | 9 * @return {string} |
| 10 */ | 10 */ |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 * @return {boolean} | 113 * @return {boolean} |
| 114 */ | 114 */ |
| 115 WebInspector.BlackboxSupport.isBlackboxed = function(url, isContentScript) | 115 WebInspector.BlackboxSupport.isBlackboxed = function(url, isContentScript) |
| 116 { | 116 { |
| 117 if (isContentScript && WebInspector.moduleSetting("skipContentScripts").get(
)) | 117 if (isContentScript && WebInspector.moduleSetting("skipContentScripts").get(
)) |
| 118 return true; | 118 return true; |
| 119 return WebInspector.BlackboxSupport.isBlackboxedURL(url); | 119 return WebInspector.BlackboxSupport.isBlackboxedURL(url); |
| 120 } | 120 } |
| 121 | 121 |
| 122 /** | 122 /** |
| 123 * @param {!WebInspector.DebuggerModel.Location} rawLocation |
| 124 * @return {boolean} |
| 125 */ |
| 126 WebInspector.BlackboxSupport.isBlackboxedScriptLocation = function(rawLocation) |
| 127 { |
| 128 var script = rawLocation.script(); |
| 129 |
| 130 if (WebInspector.BlackboxSupport.isBlackboxed(script.sourceURL, script.isCon
tentScript())) |
| 131 return true; |
| 132 |
| 133 var scriptUISourceCode = WebInspector.debuggerWorkspaceBinding.rawLocationTo
UILocation(rawLocation).uiSourceCode; |
| 134 return WebInspector.BlackboxSupport.isBlackboxedURL(scriptUISourceCode.url()
); |
| 135 } |
| 136 |
| 137 /** |
| 123 * @param {function(!WebInspector.Event)} listener | 138 * @param {function(!WebInspector.Event)} listener |
| 124 * @param {!Object=} thisObject | 139 * @param {!Object=} thisObject |
| 125 */ | 140 */ |
| 126 WebInspector.BlackboxSupport.addChangeListener = function(listener, thisObject) | 141 WebInspector.BlackboxSupport.addChangeListener = function(listener, thisObject) |
| 127 { | 142 { |
| 128 WebInspector.moduleSetting("skipStackFramesPattern").addChangeListener(liste
ner, thisObject); | 143 WebInspector.moduleSetting("skipStackFramesPattern").addChangeListener(liste
ner, thisObject); |
| 129 } | 144 } |
| 130 | 145 |
| 131 /** | 146 /** |
| 132 * @param {function(!WebInspector.Event)} listener | 147 * @param {function(!WebInspector.Event)} listener |
| 133 * @param {!Object=} thisObject | 148 * @param {!Object=} thisObject |
| 134 */ | 149 */ |
| 135 WebInspector.BlackboxSupport.removeChangeListener = function(listener, thisObjec
t) | 150 WebInspector.BlackboxSupport.removeChangeListener = function(listener, thisObjec
t) |
| 136 { | 151 { |
| 137 WebInspector.moduleSetting("skipStackFramesPattern").removeChangeListener(li
stener, thisObject); | 152 WebInspector.moduleSetting("skipStackFramesPattern").removeChangeListener(li
stener, thisObject); |
| 138 } | 153 } |
| OLD | NEW |