[Webkit-unassigned] [Bug 168105] New: Web Inspector: ContentViewContainer can have redundant back-forward entries content view close
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Feb 9 22:11:21 PST 2017
https://bugs.webkit.org/show_bug.cgi?id=168105
Bug ID: 168105
Summary: Web Inspector: ContentViewContainer can have redundant
back-forward entries content view close
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: All
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: Web Inspector
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mattbaker at apple.com
CC: inspector-bugzilla-changes at group.apple.com
Summary:
ContentViewContainer can have redundant back-forward entries content view close. The container guards against adding a BackForwardEntry with the same ContentView/cookie as the current entry, but doesn't check that consecutive entries are unique after replacing/splicing an entry in the list.
Note:
This doesn't seem to cause any bad behavior, but it can make ContentViewContainer debugging unnecessarily complicated and would be nice to fix.
Steps to Reproduce:
1. Open Inspector
2. Switch back and forth between two tabs (Debugger/Elements) multiple times.
3. Open Inspector²
4. Console prompt: `WebInspector.tabBrowser._contentViewContainer._backForwardList`
=> Outputs something like:
BackForwardEntry {_listeners: null, _contentView: ElementsTabContentView, _tombstone: false, _cookie: {}, _scrollPositions: []}
BackForwardEntry {_listeners: null, _contentView: DebuggerTabContentView, _tombstone: false, _cookie: {}, _scrollPositions: []}
BackForwardEntry {_listeners: null, _contentView: ElementsTabContentView, _tombstone: false, _cookie: {}, _scrollPositions: []}
BackForwardEntry {_listeners: null, _contentView: DebuggerTabContentView, _tombstone: false, _cookie: {}, _scrollPositions: []}
BackForwardEntry {_listeners: null, _contentView: ElementsTabContentView, _tombstone: false, _cookie: {}, _scrollPositions: []}
BackForwardEntry {_listeners: null, _contentView: DebuggerTabContentView, _tombstone: false, _cookie: {}, _scrollPositions: []}
...
5. Close Elements tab
6. Re-run script in Inspector²
=> Expected:
BackForwardEntry {_listeners: null, _contentView: DebuggerTabContentView, _tombstone: false, _cookie: {}, _scrollPositions: []}
=> Actual:
BackForwardEntry {_listeners: null, _contentView: DebuggerTabContentView, _tombstone: false, _cookie: {}, _scrollPositions: []}
BackForwardEntry {_listeners: null, _contentView: DebuggerTabContentView, _tombstone: false, _cookie: {}, _scrollPositions: []}
BackForwardEntry {_listeners: null, _contentView: DebuggerTabContentView, _tombstone: false, _cookie: {}, _scrollPositions: []}
...
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170210/60564440/attachment.html>
More information about the webkit-unassigned
mailing list