Changeset 183733 in webkit


Ignore:
Timestamp:
May 3, 2015 3:55:08 PM (9 years ago)
Author:
timothy@apple.com
Message:

Web Inspector: Exception under ContentViewContainer _disassociateFromContentView
https://bugs.webkit.org/show_bug.cgi?id=144546

Reviewed by Brian Burg.

  • UserInterface/Views/ContentViewContainer.js:

(WebInspector.ContentViewContainer.prototype.showContentView):
Make sure to pass the ContentView to _disassociateFromContentView. Also negate the result
of the _backForwardList.some(), since we don't want to dissociate if the content view is
still in the back-forward list.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r183721 r183733  
     12015-05-03  Timothy Hatcher  <timothy@apple.com>
     2
     3        Web Inspector: Exception under ContentViewContainer _disassociateFromContentView
     4        https://bugs.webkit.org/show_bug.cgi?id=144546
     5
     6        Reviewed by Brian Burg.
     7
     8        * UserInterface/Views/ContentViewContainer.js:
     9        (WebInspector.ContentViewContainer.prototype.showContentView):
     10        Make sure to pass the ContentView to _disassociateFromContentView. Also negate the result
     11        of the _backForwardList.some(), since we don't want to dissociate if the content view is
     12        still in the back-forward list.
     13
    1142015-05-02  Matt Baker  <mattbaker@apple.com>
    215
  • trunk/Source/WebInspectorUI/UserInterface/Views/ContentViewContainer.js

    r183713 r183733  
    175175        for (var i = 0; i < removedEntries.length; ++i) {
    176176            // Skip disassociation if this content view is still in the back/forward list.
    177             var shouldDissociateContentView = this._backForwardList.some(function(existingEntry) {
     177            var shouldDissociateContentView = !this._backForwardList.some(function(existingEntry) {
    178178                return existingEntry.contentView === removedEntries[i].contentView;
    179179            });
     180
    180181            if (shouldDissociateContentView)
    181                 this._disassociateFromContentView(removedEntries[i]);
     182                this._disassociateFromContentView(removedEntries[i].contentView);
    182183        }
    183184
Note: See TracChangeset for help on using the changeset viewer.