New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 874520 link

Starred by 1 user

Issue metadata

Status: Available
Owner:
Last visit > 30 days ago
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

Settings: default browser browser proxy isn't actually using promise as expected

Project Member Reported by scottchen@chromium.org, Aug 15

Issue description

Labels: -Pri-3 Pri-2
Owner: scottchen@chromium.org
Status: Started (was: Available)
Owner: ----
Status: Available (was: Started)
Owner: scottchen@chromium.org
Status: Started (was: Available)
Status: Fixed (was: Started)
Status: Available (was: Fixed)
Re-opening this. We originally wanted to convert the backend code to be able to resolve a cr.sendWithPromise, but tommycli@ pointed out a theoretically-possible race condition, so we removed the frontend promise usage instead.

Now, another frontend element[1] also needs to use the same logic and the code is more complex than necessary. Upon further investigating, we noticed that the usage flow doesn't allow for the theoretic race condition to happen (i.e. setDefaultBrowser cannot be called while still waiting for requestDefaultBrowserStatus to resolve), so reopening this bug for a second attempt to make the backend work with a promise instead.

[1]https://chromium-review.googlesource.com/c/chromium/src/+/1297283

Sign in to add a comment