Chrome Version: M59 and probably previous versions
OS: ChromeOS
What steps will reproduce the problem?
(1) On ChromeOS, make sure you have no exceptions in chrome://settings/contentExceptions#protectedContent
(2) Visit https://shaka-player-demo.appspot.com/demo/, you should see a prompt. Do not click anything on the prompt dialog.
(3) In the omnibox, type "www.google.com", and press "Enter".
What is the expected result?
The prompt was never allowed or blocked by the user, the result of the prompt should be "dismissed" or "ignored". Then the page navigates to google.com.
What happens instead?
Even though the focus is in the omnibox, pressing "Enter" caused "allow" to be pressed. As a result content setting to be updated (can be check by going to chrome://settings/contentExceptions#protectedContent again). Also navigation didn't happen. User could get confused.
Please use labels and text to provide additional information.
Callback when pressing "Enter":
#0 0x7f0a38d2459b base::debug::StackTrace::StackTrace()
#1 0x7f0a38d232dc base::debug::StackTrace::StackTrace()
#2 0x560353b3cd46 ProtectedMediaIdentifierPermissionContext::OnPlatformVerificationConsentResponse()
#3 0x560353b3f28c _ZN4base8internal13FunctorTraitsIM41ProtectedMediaIdentifierPermissionContextFvPN7content11WebContentsERK19PermissionRequestIDRK4GURLSB_RKNS_8CallbackIFv14ContentSettingELNS0_8CopyModeE1ELNS0_10RepeatModeE1EEEN8chromeos11attestation26PlatformVerificationDialog15ConsentResponseEEvE6InvokeIRKNS_7WeakPtrIS2_EEJRKS5_S8_SB_SB_SJ_SN_EEEvSP_OT_DpOT0_
#4 0x560353b3f08a _ZN4base8internal12InvokeHelperILb1EvE8MakeItSoIRKM41ProtectedMediaIdentifierPermissionContextFvPN7content11WebContentsERK19PermissionRequestIDRK4GURLSD_RKNS_8CallbackIFv14ContentSettingELNS0_8CopyModeE1ELNS0_10RepeatModeE1EEEN8chromeos11attestation26PlatformVerificationDialog15ConsentResponseEERKNS_7WeakPtrIS4_EEJRKS7_SA_SD_SD_SL_SP_EEEvOT_OT0_DpOT1_
#5 0x560353b3ef72 _ZN4base8internal7InvokerINS0_9BindStateIM41ProtectedMediaIdentifierPermissionContextFvPN7content11WebContentsERK19PermissionRequestIDRK4GURLSC_RKNS_8CallbackIFv14ContentSettingELNS0_8CopyModeE1ELNS0_10RepeatModeE1EEEN8chromeos11attestation26PlatformVerificationDialog15ConsentResponseEEJNS_7WeakPtrIS3_EES6_S7_SA_SA_SI_EEEFvSO_EE7RunImplIRKSQ_RKSt5tupleIJSS_S6_S7_SA_SA_SI_EEJLm0ELm1ELm2ELm3ELm4ELm5EEEEvOT_OT0_NS_13IndexSequenceIJXspT1_EEEEOSO_
#6 0x560353b3ed6c _ZN4base8internal7InvokerINS0_9BindStateIM41ProtectedMediaIdentifierPermissionContextFvPN7content11WebContentsERK19PermissionRequestIDRK4GURLSC_RKNS_8CallbackIFv14ContentSettingELNS0_8CopyModeE1ELNS0_10RepeatModeE1EEEN8chromeos11attestation26PlatformVerificationDialog15ConsentResponseEEJNS_7WeakPtrIS3_EES6_S7_SA_SA_SI_EEEFvSO_EE3RunEPNS0_13BindStateBaseEOSO_
#7 0x5603517c85a1 _ZNKR4base8CallbackIFvN11google_apis17DriveApiErrorCodeEELNS_8internal8CopyModeE1ELNS4_10RepeatModeE1EE3RunES2_
#8 0x5603525873f1 chromeos::attestation::PlatformVerificationDialog::Accept()
#9 0x7f0a2cbe0dcb views::DialogClientView::AcceptWindow()
#10 0x7f0a2cbe1cb0 views::DialogClientView::ButtonPressed()
#11 0x7f0a2cacbb97 views::Button::NotifyClick()
#12 0x7f0a2cacea17 views::CustomButton::NotifyClick()
#13 0x7f0a2cace2a7 views::CustomButton::AcceleratorPressed()
#14 0x7f0a35d9f847 ui::AcceleratorManager::Process()
#15 0x7f0a2cb6c00b views::FocusManager::ProcessAccelerator()
#16 0x7f0a2cb6b9ff views::FocusManager::OnKeyEvent()
#17 0x7f0a2cc183cb views::FocusManagerEventHandler::OnKeyEvent()
#18 0x7f0a2ecbc713 ui::EventHandler::OnEvent()
#19 0x7f0a2ecb84f0 ui::EventDispatcher::DispatchEvent()
#20 0x7f0a2ecb82a5 ui::EventDispatcher::DispatchEventToEventHandlers()
#21 0x7f0a2ecb7db4 ui::EventDispatcher::ProcessEvent()
#22 0x7f0a2ecb7be2 ui::EventDispatcherDelegate::DispatchEventToTarget()
#23 0x7f0a2ecb7ac2 ui::EventDispatcherDelegate::DispatchEvent()
#24 0x7f0a2ecbd581 ui::EventProcessor::OnEventFromSource()
#25 0x7f0a2ecbd6cc ui::EventProcessor::OnEventFromSource()
#26 0x7f0a2a01d548 ash::AshWindowTreeHostX11::DispatchKeyEventPostIME()
#27 0x7f0a2a01d5ac ash::AshWindowTreeHostX11::DispatchKeyEventPostIME()
#28 0x7f0a29feeee8 ash::WindowTreeHostManager::DispatchKeyEventPostIME()
#29 0x7f0a29feef2c ash::WindowTreeHostManager::DispatchKeyEventPostIME()
#30 0x7f0a2ec4b92b ui::InputMethodBase::DispatchKeyEventPostIME()
#31 0x7f0a2ec53165 ui::InputMethodChromeOS::ProcessUnfilteredKeyPressEvent()
#32 0x7f0a2ec52d85 ui::InputMethodChromeOS::DispatchKeyEvent()
#33 0x7f0a2ec53484 ui::InputMethodChromeOS::DispatchKeyEvent()
#34 0x7f0a2a01e41d ash::InputMethodEventHandler::OnKeyEvent()
#35 0x7f0a2ecbc713 ui::EventHandler::OnEvent()
#36 0x7f0a2ecb84f0 ui::EventDispatcher::DispatchEvent()
#37 0x7f0a2ecb82a5 ui::EventDispatcher::DispatchEventToEventHandlers()
#38 0x7f0a2ecb7db4 ui::EventDispatcher::ProcessEvent()
#39 0x7f0a2ecb7be2 ui::EventDispatcherDelegate::DispatchEventToTarget()
#40 0x7f0a2ecb7ac2 ui::EventDispatcherDelegate::DispatchEvent()
#41 0x7f0a2ecbd581 ui::EventProcessor::OnEventFromSource()
Comment 1 by xhw...@chromium.org
, May 5 2017