Changeset 261183 in webkit


Ignore:
Timestamp:
May 5, 2020 11:26:23 AM (4 years ago)
Author:
Devin Rousso
Message:

Web Inspector: Uncaught Exception: undefined is not an object (evaluating 'this.InspectorAgent.initialized')
https://bugs.webkit.org/show_bug.cgi?id=211434

Reviewed by Joseph Pecoraro.

  • UserInterface/Protocol/Target.js:

(WI.Target.prototype.initialize):
Worker targets don't (and are not expected to) have an Inspector domain.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r261142 r261183  
     12020-05-05  Devin Rousso  <drousso@apple.com>
     2
     3        Web Inspector: Uncaught Exception: undefined is not an object (evaluating 'this.InspectorAgent.initialized')
     4        https://bugs.webkit.org/show_bug.cgi?id=211434
     5
     6        Reviewed by Joseph Pecoraro.
     7
     8        * UserInterface/Protocol/Target.js:
     9        (WI.Target.prototype.initialize):
     10        `Worker` targets don't (and are not expected to) have an `Inspector` domain.
     11
    1122020-05-04  Devin Rousso  <drousso@apple.com>
    213
  • trunk/Source/WebInspectorUI/UserInterface/Protocol/Target.js

    r261108 r261183  
    9696            // This allows an automatically paused backend to resume execution, but we want to ensure
    9797            // our breakpoints were already sent to that backend.
    98             this.InspectorAgent.initialized();
     98            if (this.hasDomain("Inspector"))
     99                this.InspectorAgent.initialized();
    99100        });
    100101
Note: See TracChangeset for help on using the changeset viewer.