⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 248757 in webkit


Ignore:
Timestamp:
Aug 15, 2019, 6:58:38 PM (7 years ago)
Author:
Devin Rousso
Message:

Web Inspector: Uncaught Exception: TypeError: null is not an object (evaluating 'this._resource.initiatorSourceCodeLocation')
https://bugs.webkit.org/show_bug.cgi?id=200798

Reviewed by Joseph Pecoraro.

  • UserInterface/Views/ResourceDetailsSidebarPanel.js:

(WI.ResourceDetailsSidebarPanel.prototype.set resource):
(WI.ResourceDetailsSidebarPanel.prototype.layout):
Cancel the Throttler whenever the _resource is updated, as otherwise the Throttler may
fire later on with an unset _resource.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r248753 r248757  
     12019-08-15  Devin Rousso  <drousso@apple.com>
     2
     3        Web Inspector: Uncaught Exception: TypeError: null is not an object (evaluating 'this._resource.initiatorSourceCodeLocation')
     4        https://bugs.webkit.org/show_bug.cgi?id=200798
     5
     6        Reviewed by Joseph Pecoraro.
     7
     8        * UserInterface/Views/ResourceDetailsSidebarPanel.js:
     9        (WI.ResourceDetailsSidebarPanel.prototype.set resource):
     10        (WI.ResourceDetailsSidebarPanel.prototype.layout):
     11        Cancel the `Throttler` whenever the `_resource` is updated, as otherwise the `Throttler` may
     12        fire later on with an unset `_resource`.
     13
    1142019-08-15  Devin Rousso  <drousso@apple.com>
    215
  • trunk/Source/WebInspectorUI/UserInterface/Views/ResourceDetailsSidebarPanel.js

    r242017 r248757  
    8484        if (this._resource && this._needsToRemoveResourceEventListeners) {
    8585            this._resource.removeEventListener(null, null, this);
     86            this._refreshRelatedResourcesSectionThrottler.cancel();
    8687
    8788            this._needsToRemoveResourceEventListeners = false;
     
    212213        this._refreshImageSizeSection();
    213214        this._refreshRequestDataSection();
    214         this._refreshRelatedResourcesSection();
     215        this._refreshRelatedResourcesSectionThrottler.force();
    215216    }
    216217
Note: See TracChangeset for help on using the changeset viewer.