Title: [251376] trunk/Source/WebInspectorUI
- Revision
- 251376
- Author
- [email protected]
- Date
- 2019-10-21 13:09:25 -0700 (Mon, 21 Oct 2019)
Log Message
Web Inspector: replace all uses of `window.*Agent` with a target-specific call
https://bugs.webkit.org/show_bug.cgi?id=201149
Reviewed by Matt Baker.
Most of these were changed in r251227, but a few appear to have slipped through the cracks.
* UserInterface/Controllers/DebuggerManager.js:
(WI.DebuggerManager.prototype.debuggerDidResume):
* UserInterface/Views/SourceCodeTextEditor.js:
(WI.SourceCodeTextEditor.prototype._createTypeTokenAnnotator):
(WI.SourceCodeTextEditor.prototype._createBasicBlockAnnotator):
Modified Paths
Diff
Modified: trunk/Source/WebInspectorUI/ChangeLog (251375 => 251376)
--- trunk/Source/WebInspectorUI/ChangeLog 2019-10-21 20:00:24 UTC (rev 251375)
+++ trunk/Source/WebInspectorUI/ChangeLog 2019-10-21 20:09:25 UTC (rev 251376)
@@ -1,3 +1,18 @@
+2019-10-21 Devin Rousso <[email protected]>
+
+ Web Inspector: replace all uses of `window.*Agent` with a target-specific call
+ https://bugs.webkit.org/show_bug.cgi?id=201149
+
+ Reviewed by Matt Baker.
+
+ Most of these were changed in r251227, but a few appear to have slipped through the cracks.
+
+ * UserInterface/Controllers/DebuggerManager.js:
+ (WI.DebuggerManager.prototype.debuggerDidResume):
+ * UserInterface/Views/SourceCodeTextEditor.js:
+ (WI.SourceCodeTextEditor.prototype._createTypeTokenAnnotator):
+ (WI.SourceCodeTextEditor.prototype._createBasicBlockAnnotator):
+
2019-10-18 Devin Rousso <[email protected]>
Web Inspector: Elements: allow WebKit engineers to edit UserAgent shadow trees
Modified: trunk/Source/WebInspectorUI/UserInterface/Controllers/DebuggerManager.js (251375 => 251376)
--- trunk/Source/WebInspectorUI/UserInterface/Controllers/DebuggerManager.js 2019-10-21 20:00:24 UTC (rev 251375)
+++ trunk/Source/WebInspectorUI/UserInterface/Controllers/DebuggerManager.js 2019-10-21 20:09:25 UTC (rev 251376)
@@ -828,7 +828,7 @@
// 50ms, and treat it as a real resume if we haven't paused in that time frame.
// This delay ensures the user interface does not flash between brief steps
// or successive breakpoints.
- if (!target.DebuggerAgent.setPauseOnAssertions) {
+ if (!target.hasCommand("Debugger.setPauseOnAssertions")) {
this._delayedResumeTimeout = setTimeout(this._didResumeInternal.bind(this, target), 50);
return;
}
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.js (251375 => 251376)
--- trunk/Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.js 2019-10-21 20:00:24 UTC (rev 251375)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.js 2019-10-21 20:09:25 UTC (rev 251376)
@@ -2172,7 +2172,7 @@
_createTypeTokenAnnotator()
{
// COMPATIBILITY (iOS 8): Runtime.getRuntimeTypesForVariablesAtOffsets did not exist yet.
- if (!this.target.RuntimeAgent.getRuntimeTypesForVariablesAtOffsets)
+ if (!this.target.hasCommand("Runtime.getRuntimeTypesForVariablesAtOffsets"))
return;
var script = this._getAssociatedScript();
@@ -2185,7 +2185,7 @@
_createBasicBlockAnnotator()
{
// COMPATIBILITY (iOS 8): Runtime.getBasicBlocks did not exist yet.
- if (!this.target.RuntimeAgent.getBasicBlocks)
+ if (!this.target.hasCommand("Runtime.getBasicBlocks"))
return;
var script = this._getAssociatedScript();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes