Merge lp:~abreu-alexandre/oxide/prevent-race-webcontents-unloads into lp:~oxide-developers/oxide/oxide.trunk
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 1069 | ||||
Proposed branch: | lp:~abreu-alexandre/oxide/prevent-race-webcontents-unloads | ||||
Merge into: | lp:~oxide-developers/oxide/oxide.trunk | ||||
Diff against target: |
54 lines (+24/-1) 2 files modified
shared/browser/media/oxide_media_web_contents_observer.h (+1/-1) shared/browser/oxide_web_contents_unloader.cc (+23/-0) |
||||
To merge this branch: | bzr merge lp:~abreu-alexandre/oxide/prevent-race-webcontents-unloads | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Chris Coulson | Approve | ||
Review via email: mp+258387@code.launchpad.net |
Commit message
Prevents deadlocking the ui process during the wait for unloads phase as the browser process is exiting. The issue happens quite reliably using AP tests that basically kill the whole process group and the renderers. The RVH Close() "loop" is being triggered but the flow can fail to properly complete w/ a CloseContents() in which case the UI process deadlocks.
Description of the change
Prevents deadlocking the ui process during the wait for unloads phase as the browser process is exiting. The issue happens quite reliably using AP tests that basically kill the whole process group and the renderers. The RVH Close() "loop" is being triggered but the flow can fail to properly complete w/ a CloseContents() in which case the UI process deadlocks.
Thanks, I've added some comments inline