Source/WebInspectorUI/ChangeLog

 12019-10-21 Devin Rousso <drousso@apple.com>
 2
 3 Web Inspector: replace all uses of `window.*Agent` with a target-specific call
 4 https://bugs.webkit.org/show_bug.cgi?id=201149
 5
 6 Reviewed by NOBODY (OOPS!).
 7
 8 Most of these were changed in r251227, but a few appear to have slipped through the cracks.
 9
 10 * UserInterface/Controllers/DebuggerManager.js:
 11 (WI.DebuggerManager.prototype.debuggerDidResume):
 12 * UserInterface/Views/SourceCodeTextEditor.js:
 13 (WI.SourceCodeTextEditor.prototype._createTypeTokenAnnotator):
 14 (WI.SourceCodeTextEditor.prototype._createBasicBlockAnnotator):
 15
1162019-10-18 Devin Rousso <drousso@apple.com>
217
318 Web Inspector: Elements: allow WebKit engineers to edit UserAgent shadow trees

Source/WebInspectorUI/UserInterface/Controllers/DebuggerManager.js

@@WI.DebuggerManager = class DebuggerManager extends WI.Object
828828 // 50ms, and treat it as a real resume if we haven't paused in that time frame.
829829 // This delay ensures the user interface does not flash between brief steps
830830 // or successive breakpoints.
831  if (!target.DebuggerAgent.setPauseOnAssertions) {
 831 if (!target.hasCommand("Debugger.setPauseOnAssertions")) {
832832 this._delayedResumeTimeout = setTimeout(this._didResumeInternal.bind(this, target), 50);
833833 return;
834834 }

Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.js

@@WI.SourceCodeTextEditor = class SourceCodeTextEditor extends WI.TextEditor
21722172 _createTypeTokenAnnotator()
21732173 {
21742174 // COMPATIBILITY (iOS 8): Runtime.getRuntimeTypesForVariablesAtOffsets did not exist yet.
2175  if (!this.target.RuntimeAgent.getRuntimeTypesForVariablesAtOffsets)
 2175 if (!this.target.hasCommand("Runtime.getRuntimeTypesForVariablesAtOffsets"))
21762176 return;
21772177
21782178 var script = this._getAssociatedScript();

@@WI.SourceCodeTextEditor = class SourceCodeTextEditor extends WI.TextEditor
21852185 _createBasicBlockAnnotator()
21862186 {
21872187 // COMPATIBILITY (iOS 8): Runtime.getBasicBlocks did not exist yet.
2188  if (!this.target.RuntimeAgent.getBasicBlocks)
 2188 if (!this.target.hasCommand("Runtime.getBasicBlocks"))
21892189 return;
21902190
21912191 var script = this._getAssociatedScript();