Chromium Code Reviews
Descriptionbluetooth: Fix crash when accepting location permission
http://crrev.com/2369673003 introduced code to close the chooser when the
window looses focus. This works great for when the user switches apps but
it sadly causes the chooser to get closed when the permission prompt opens
up. Then when the user accepts the permission request chrome crashes
because the chooser was closed.
Checks if the chooser is still opened before restarting the scan.
Changes the testing framework to simulate a focus change when requesting
permission and adds asserts to make sure native functions are not being
called after the native object has been destroyed.
BUG=661770
Committed: https://crrev.com/f7d18c0fc6b044c83e01f169e180835b6c4645da
Cr-Commit-Position: refs/heads/master@{#430197}
Patch Set 1 #Patch Set 2 : git cl try #
Total comments: 2
Patch Set 3 : Address juncai's comments #
Messages
Total messages: 21 (13 generated)
|
||||||||||||||||||||||||||||