Changeset 251376 in webkit


Ignore:
Timestamp:
Oct 21, 2019 1:09:25 PM (4 years ago)
Author:
Devin Rousso
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):

Location:
trunk/Source/WebInspectorUI
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r251306 r251376  
     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 Matt Baker.
     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
  • trunk/Source/WebInspectorUI/UserInterface/Controllers/DebuggerManager.js

    r251227 r251376  
    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;
  • trunk/Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.js

    r251227 r251376  
    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
     
    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
Note: See TracChangeset for help on using the changeset viewer.