Repository navigation
Queue navigation in browser dock to fix deadlock - #556
Conversation
|
I wonder if it would also be good to schedule the call to reload the page in
In general we need to detach code that runs as part of the browser event loop or handles a browser event from code that runs as part of the main event loop, so that the "current" event handler can always finish and does not nest events within events. |
|
You might want to add the following as motivation/context to the commit message:
|
The current YouTube dock implementation uses a `urlChanged` event as the trigger to refresh the chat dock opportunistically, as authentication cookies might now be present and the chat dock could end up in a "logged-in" state. This reload itself will trigger the `onBeforeBrowse` event handler however, which then attempts to acquire the global lock held by the outer `onBeforeBrowse` handler and thus deadlocks the application. Deferring the `urlChanged` event to the next iteration of the event loop allows `onBeforeBrowse` to finish to completion and release the lock.
f0151c9 to
eb05639
Compare
Description
Queue navigation of browser docks.
Motivation and Context
Qt and CEF like to fight each other's queues.
Fixes a deadlock when attempting to log into YouTube Service Integration.
Fix found by @prgmitchell and verified by both Mitchell and myself.
How Has This Been Tested?
Log into YouTube account on macOS.
Types of changes
Checklist: