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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/bindings/BlackboxSupport.js

Issue 1649553002: [DevTools] Support source map with blackboxing in call frame sidebar, console (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/components/DebuggerPresentationUtils.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 { 105 {
106 var regex = WebInspector.moduleSetting("skipStackFramesPattern").asRegExp(); 106 var regex = WebInspector.moduleSetting("skipStackFramesPattern").asRegExp();
107 return regex && regex.test(url); 107 return regex && regex.test(url);
108 } 108 }
109 109
110 /** 110 /**
111 * @param {string} url 111 * @param {string} url
112 * @param {boolean} isContentScript 112 * @param {boolean} isContentScript
113 * @return {boolean} 113 * @return {boolean}
114 */ 114 */
115 WebInspector.BlackboxSupport.isBlackboxed = function(url, isContentScript) 115 WebInspector.BlackboxSupport.isBlackboxed = function(url, isContentScript)
pfeldman 2016/01/28 01:20:03 Does it ever make sense for the client to call int
kozy 2016/01/28 02:35:48 There is usage in TimelineFlameChart.js [1] [1] h
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 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/components/DebuggerPresentationUtils.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698