[Webkit-unassigned] [Bug 145080] New: Web Inspector: Tab Restoration incorrectly makes ContentViews "shown" in background tabs
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri May 15 16:21:58 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=145080
Bug ID: 145080
Summary: Web Inspector: Tab Restoration incorrectly makes
ContentViews "shown" in background tabs
Classification: Unclassified
Product: WebKit
Version: 528+ (Nightly build)
Hardware: All
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: Web Inspector
Assignee: webkit-unassigned at lists.webkit.org
Reporter: joepeck at webkit.org
CC: graouts at webkit.org, joepeck at webkit.org,
jonowells at apple.com, mattbaker at apple.com,
nvasilyev at apple.com, timothy at apple.com,
webkit-bug-importer at group.apple.com
* SUMMARY
Tab Restoration incorrectly makes ContentViews "shown" in background tabs.
There seem to a be a couple issues with tab restoration that may affect performance.
- Tab state restoration triggers "shown" twice on the current content view per-tab'
=> this seems like wasted work
- Tab state restoration leaves ContentViews as "visible" / "shown" in background tabs
=> if Type Annotators are enabled, this can mean constant ongoing polling, potentially for multiple editors in multiple tabs
* STEPS TO REPRODUCE
1. Inspect <http://bogojoker.com/shell/>
2. In Debugger Tab select the "easySlider.min.js" resource => creates a SourceCodeTextEditor
3. Enable the Type Profiler => enables Type Annotations
4. Switch to the Elements Tab => Type Annotations paused
5. Close Inspector => saves state of tabs
6. Open Inspector
=> Unexpectedly, the background Debugger tab's SourceCodeTextEditor had its "shown" called twice
=> Unexpectedly, the background Debugger tab's SourceCodeTextEditor is cluttering the protocol with type annotation updates.
* NOTES
- Duplicate calls to shown:
Views/SourceCodeTextEditor.js:100:20: CONSOLE LOG SourceCodeTextEditor.shown http://bogojoker.com/shell/
Views/SourceCodeTextEditor.js:101:22: CONSOLE TRACE
0: shown(Views/SourceCodeTextEditor.js:101:22)
1: shown(Views/TextResourceContentView.js:104:31)
2: prepareToShow(Models/BackForwardEntry.js:61:35)
3: _showEntry(Views/ContentViewContainer.js:472:28)
4: showBackForwardEntryForIndex(Views/ContentViewContainer.js:212:28)
5: showContentView(Views/ContentViewContainer.js:188:42)
6: _showContentViewForIdentifier(Views/ResourceClusterContentView.js:236:57)
7: restoreFromCookie(Views/ResourceClusterContentView.js:147:61)
8: _restoreFromCookie(Models/BackForwardEntry.js:78:43)
9: prepareToShow(Models/BackForwardEntry.js:57:32)
10: _showEntry(Views/ContentViewContainer.js:472:28)
11: showBackForwardEntryForIndex(Views/ContentViewContainer.js:212:28)
12: showContentView(Views/ContentViewContainer.js:188:42)
13: showContentViewForRepresentedObject(Views/ContentBrowser.js:168:58)
14: showDefaultContentViewForTreeElement(Views/NavigationSidebarPanel.js:196:64)
15: delayedWork(Views/ResourceSidebarPanel.js:192:58)
16: delayedWork([native code])
Views/SourceCodeTextEditor.js:100:20: CONSOLE LOG SourceCodeTextEditor.shown http://bogojoker.com/shell/
Views/SourceCodeTextEditor.js:101:22: CONSOLE TRACE
0: shown(Views/SourceCodeTextEditor.js:101:22)
1: shown(Views/TextResourceContentView.js:104:31)
2: prepareToShow(Models/BackForwardEntry.js:61:35)
3: _showEntry(Views/ContentViewContainer.js:472:28)
4: shown(Views/ContentViewContainer.js:425:24)
5: shown(Views/ClusterContentView.js:75:41)
6: shown(Views/ResourceClusterContentView.js:125:61)
7: prepareToShow(Models/BackForwardEntry.js:61:35)
8: _showEntry(Views/ContentViewContainer.js:472:28)
9: showBackForwardEntryForIndex(Views/ContentViewContainer.js:212:28)
10: showContentView(Views/ContentViewContainer.js:188:42)
11: showContentViewForRepresentedObject(Views/ContentBrowser.js:168:58)
12: showDefaultContentViewForTreeElement(Views/NavigationSidebarPanel.js:196:64)
13: delayedWork(Views/ResourceSidebarPanel.js:192:58)
14: delayedWork([native code])
--
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/20150515/510599cb/attachment.html>
More information about the webkit-unassigned
mailing list