Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(672)

Issue 1372453002: Avoid a race condition in the Origin Info Bubble UI. (Closed)

Created:
5 years, 3 months ago by palmer
Modified:
5 years, 2 months ago
Reviewers:
felt, sadrul
CC:
chromium-reviews, markusheintz_, raymes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid a race condition in the Origin Info Bubble UI. The "N cookies from this site" link gets updated in real time (to update the value of N). That causes the link to lose click events and its tab index. Solve the problem by only updating the link text, rather than destroying and rebuilding the entire layout. BUG=535587 Committed: https://crrev.com/adbece4bf16af98918c7f422a0bd1edec78d0865 Cr-Commit-Position: refs/heads/master@{#351173}

Patch Set 1 #

Patch Set 2 : A proper fix. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -47 lines) Patch
M chrome/browser/ui/views/website_settings/website_settings_popup_view.cc View 1 2 chunks +47 lines, -47 lines 2 comments Download

Messages

Total messages: 9 (2 generated)
palmer
felt: PTAL and see if you can live with this sadrul: Any better ideas? :)
5 years, 3 months ago (2015-09-24 21:20:51 UTC) #2
palmer
felt: PTAL, this is a real (and simple) fix thanks to sadrul.
5 years, 2 months ago (2015-09-28 18:08:35 UTC) #3
felt
lgtm % question to make sure I understand https://codereview.chromium.org/1372453002/diff/20001/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc File chrome/browser/ui/views/website_settings/website_settings_popup_view.cc (right): https://codereview.chromium.org/1372453002/diff/20001/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc#newcode498 chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:498: cookie_dialog_link_->SetText(first_party_label_text); ...
5 years, 2 months ago (2015-09-28 20:47:40 UTC) #4
palmer
https://codereview.chromium.org/1372453002/diff/20001/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc File chrome/browser/ui/views/website_settings/website_settings_popup_view.cc (right): https://codereview.chromium.org/1372453002/diff/20001/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc#newcode498 chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:498: cookie_dialog_link_->SetText(first_party_label_text); > So this has the effect of updating ...
5 years, 2 months ago (2015-09-28 21:02:51 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1372453002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1372453002/20001
5 years, 2 months ago (2015-09-28 21:06:51 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 2 months ago (2015-09-28 22:37:09 UTC) #8
commit-bot: I haz the power
5 years, 2 months ago (2015-09-28 22:38:35 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/adbece4bf16af98918c7f422a0bd1edec78d0865
Cr-Commit-Position: refs/heads/master@{#351173}

Powered by Google App Engine
This is Rietveld 408576698