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

Side by Side Diff: Source/core/inspector/DebuggerScript.js

Issue 1306013004: [DevTools] Fixed content scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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 | « LayoutTests/inspector/sources/debugger/sources-panel-content-scripts-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 return { 172 return {
173 id: script.id, 173 id: script.id,
174 name: script.nameOrSourceURL(), 174 name: script.nameOrSourceURL(),
175 sourceURL: script.source_url, 175 sourceURL: script.source_url,
176 sourceMappingURL: script.source_mapping_url, 176 sourceMappingURL: script.source_mapping_url,
177 source: script.source, 177 source: script.source,
178 startLine: script.line_offset, 178 startLine: script.line_offset,
179 startColumn: script.column_offset, 179 startColumn: script.column_offset,
180 endLine: endLine, 180 endLine: endLine,
181 endColumn: endColumn, 181 endColumn: endColumn,
182 isContentScript: !!script.context_data && script.context_data.indexOf("[ injected,") === 0, 182 isContentScript: !!script.context_data && script.context_data.endsWith(" ,injected"),
183 isInternalScript: script.is_debugger_script 183 isInternalScript: script.is_debugger_script
184 }; 184 };
185 } 185 }
186 186
187 DebuggerScript.setBreakpoint = function(execState, info) 187 DebuggerScript.setBreakpoint = function(execState, info)
188 { 188 {
189 var positionAlignment = info.interstatementLocation ? Debug.BreakPositionAli gnment.BreakPosition : Debug.BreakPositionAlignment.Statement; 189 var positionAlignment = info.interstatementLocation ? Debug.BreakPositionAli gnment.BreakPosition : Debug.BreakPositionAlignment.Statement;
190 var breakId = Debug.setScriptBreakPointById(info.sourceID, info.lineNumber, info.columnNumber, info.condition, undefined, positionAlignment); 190 var breakId = Debug.setScriptBreakPointById(info.sourceID, info.lineNumber, info.columnNumber, info.condition, undefined, positionAlignment);
191 191
192 var locations = Debug.findBreakPointActualLocations(breakId); 192 var locations = Debug.findBreakPointActualLocations(breakId);
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 "parentPromise": eventData.parentPromise().value(), 585 "parentPromise": eventData.parentPromise().value(),
586 "status": eventData.status() 586 "status": eventData.status()
587 }; 587 };
588 } 588 }
589 589
590 // We never resolve Mirror by its handle so to avoid memory leaks caused by Mirr ors in the cache we disable it. 590 // We never resolve Mirror by its handle so to avoid memory leaks caused by Mirr ors in the cache we disable it.
591 ToggleMirrorCache(false); 591 ToggleMirrorCache(false);
592 592
593 return DebuggerScript; 593 return DebuggerScript;
594 })(); 594 })();
OLDNEW
« no previous file with comments | « LayoutTests/inspector/sources/debugger/sources-panel-content-scripts-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698