|
|
Created:
6 years, 10 months ago by Greg Billock Modified:
6 years, 10 months ago CC:
chromium-reviews, markusheintz_ Base URL:
svn://svn.chromium.org/chrome/trunk/src Visibility:
Public. |
Description[WebsiteSettings] Fix bug in permission bubble manager to alter showing state when bubble is closed.
This bug meant that subsequent calls to AddRequest wouldn't show the bubble, since the manager still believed it was being shown.
R=leng@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251397
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252292
Patch Set 1 #
Total comments: 2
Patch Set 2 : . #Patch Set 3 : Rebase #Patch Set 4 : fix merge #Patch Set 5 : Retry after revert #Patch Set 6 : Rebase #
Messages
Total messages: 30 (0 generated)
lgtm Could you add a description of the bug this fixes? I suspect it was never showing a second bubble, but it would be nice to have it called out. https://codereview.chromium.org/162423002/diff/1/chrome/browser/ui/website_se... File chrome/browser/ui/website_settings/permission_bubble_manager_unittest.cc (right): https://codereview.chromium.org/162423002/diff/1/chrome/browser/ui/website_se... chrome/browser/ui/website_settings/permission_bubble_manager_unittest.cc:196: manager_->AddRequest(&request2_); It's not clear to me why you're adding request2 twice, because you're not checking that it wasn't shown, or granted. Perhaps add EXPECT_FALSE(request2_.granted_); after EXPECT_TRUE(request1_.granted_)?
+markusheintz for owners https://codereview.chromium.org/162423002/diff/1/chrome/browser/ui/website_se... File chrome/browser/ui/website_settings/permission_bubble_manager_unittest.cc (right): https://codereview.chromium.org/162423002/diff/1/chrome/browser/ui/website_se... chrome/browser/ui/website_settings/permission_bubble_manager_unittest.cc:196: manager_->AddRequest(&request2_); On 2014/02/13 01:12:45, leng wrote: > It's not clear to me why you're adding request2 twice, because you're not > checking that it wasn't shown, or granted. Perhaps add > EXPECT_FALSE(request2_.granted_); after EXPECT_TRUE(request1_.granted_)? Thanks. This was just exercising a log line to make sure the bug was there and that this fixed it.
LGTM
The CQ bit was checked by gbillock@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/162423002/50001
The CQ bit was unchecked by commit-bot@chromium.org
Failed to apply patch for chrome/browser/ui/website_settings/permission_bubble_manager.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file chrome/browser/ui/website_settings/permission_bubble_manager.cc Hunk #1 FAILED at 32. Hunk #2 succeeded at 169 with fuzz 2 (offset 45 lines). 1 out of 2 hunks FAILED -- saving rejects to file chrome/browser/ui/website_settings/permission_bubble_manager.cc.rej Patch: chrome/browser/ui/website_settings/permission_bubble_manager.cc Index: chrome/browser/ui/website_settings/permission_bubble_manager.cc diff --git a/chrome/browser/ui/website_settings/permission_bubble_manager.cc b/chrome/browser/ui/website_settings/permission_bubble_manager.cc index cb3df39d6b39ba73206ca70d492a2a430354a009..0e6a3bebf1ef7bef30c901874ec3ce05b806397d 100644 --- a/chrome/browser/ui/website_settings/permission_bubble_manager.cc +++ b/chrome/browser/ui/website_settings/permission_bubble_manager.cc @@ -32,7 +32,6 @@ void PermissionBubbleManager::AddRequest(PermissionBubbleRequest* request) { // with various states of the manager. if (view_ && !bubble_showing_) { - view_->SetDelegate(this); view_->Show(requests_, accept_state_, customization_mode_); bubble_showing_ = true; } @@ -124,10 +123,9 @@ void PermissionBubbleManager::Closing() { } void PermissionBubbleManager::FinalizeBubble() { - if (view_) { - view_->SetDelegate(NULL); + if (view_) view_->Hide(); - } + bubble_showing_ = false; std::vector<PermissionBubbleRequest*>::iterator di; for (di = requests_.begin(); di != requests_.end(); di++)
The CQ bit was checked by gbillock@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/162423002/160001
The CQ bit was checked by gbillock@chromium.org
Failed to trigger a try job on linux_chromeos HTTP Error 400: Bad Request
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/162423002/380001
The CQ bit was unchecked by commit-bot@chromium.org
Retried try job too often on win_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&nu...
The CQ bit was checked by gbillock@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/162423002/380001
The CQ bit was unchecked by commit-bot@chromium.org
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chro...
The CQ bit was checked by gbillock@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/162423002/380001
Message was sent while issue was closed.
Change committed as 251397
On 2014/02/14 19:48:51, I haz the power (commit-bot) wrote: > Change committed as 251397 [ RUN ] ImmersiveModeControllerAshTest.TabAndBrowserFullscreen Xlib: extension "RANDR" missing on display ":9". [21038:21038:0214/121606:1047752665:WARNING:native_view_host_aura.cc(71)] NativeViewHostAura::InstallClip is not implemented yet. [21038:21038:0214/121606:1047752835:WARNING:native_view_host_aura.cc(71)] NativeViewHostAura::InstallClip is not implemented yet. [21038:21038:0214/121606:1047752914:WARNING:native_view_host_aura.cc(71)] NativeViewHostAura::InstallClip is not implemented yet. Received signal 11 SEGV_MAPERR 00020000002d [0x7f0b3aa767ce] base::debug::StackTrace::StackTrace() [0x7f0b3aa76cf8] base::debug::(anonymous namespace)::StackDumpSignalHandler() [0x7f0b34340cb0] \u003Cunknown> [0x00000379579c] PermissionBubbleViewViews::~PermissionBubbleViewViews() Looks like the same problem as in 162713003. Going to get that going first.
The CQ bit was checked by gbillock@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/162423002/850001
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/162423002/850001
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/162423002/850001
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/162423002/850001
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/162423002/850001
Message was sent while issue was closed.
Change committed as 252292 |