Chromium Code Reviews
DescriptionRemove WebContents::WasHidden() calls in chrome::AddRestoredTab() and TabLoader
Currently session restore does:
1. Create a tab with WebContents::CreateParams::initially_hidden=true
2. Call WebContents::WasHidden in chrome::AddRestoredTab(), even though
it was never shown
3. Call WebContents::WasHidden a second time in
TabLoader::LoadNextTab(), after asking the NavigationController to
LoadIfNecessary()
The calls are unbalanced, and violate a comment in RenderWidgetHostView,
saying "It is not legal to call Hide() multiple times in a row."
AddRestoredTab doesn't need to call WasHidden because it derives a value
for WebContents::CreateParams::initially_hidden from its |select|
argument.
BUG=590981
Patch Set 1 #Patch Set 2 : checking does not work - no RWHV #Patch Set 3 : Also remove from TabLoader, fix RenderWidgetHostViewMac #
Messages
Total messages: 3 (3 generated)
|
|||||||||||||||||||||||||||||||||||||