Changeset 183733 in webkit
- Timestamp:
- May 3, 2015 3:55:08 PM (9 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r183721 r183733 1 2015-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 1 14 2015-05-02 Matt Baker <mattbaker@apple.com> 2 15 -
trunk/Source/WebInspectorUI/UserInterface/Views/ContentViewContainer.js
r183713 r183733 175 175 for (var i = 0; i < removedEntries.length; ++i) { 176 176 // 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) { 178 178 return existingEntry.contentView === removedEntries[i].contentView; 179 179 }); 180 180 181 if (shouldDissociateContentView) 181 this._disassociateFromContentView(removedEntries[i] );182 this._disassociateFromContentView(removedEntries[i].contentView); 182 183 } 183 184
Note: See TracChangeset
for help on using the changeset viewer.