Description[Aura] Fix regressions breaking embedded flash fullscreen.
1. Set WindowType to "control" in RWHVAura::InitAsChild(). Previously, the window type was not being set, and this caused a NOTREACHED() crash at ash/wm/stacking_controller.cc:101.
2. Infinite loop freezing the browser when entering fullscreen: In WebView, AttachWebContents() and DetachWebContents() were being indirectly called from FOR_EACH_OBSERVER(). Because they were calling WebContentsObserver::Observe(), the FOR_EACH_OBSERVER loop would never terminate.
3. Clean-up: Eliminated WebView::web_contents_ member since WebView inherits from WebContentsObserver, which already has it.
TEST=Run chrome with and without --embed-flash-fullscreen command-line arg, and test switching tabs, flash fullscreen, keyboard focus, etc. Tested on Win and Linux Aura builds.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243725
Patch Set 1 #
Total comments: 2
Patch Set 2 : rebase #
Messages
Total messages: 8 (0 generated)
|