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

Issue 799783002: Dismiss permission bubble request if it's a duplicate (Closed)

Created:
6 years ago by felt
Modified:
5 years, 10 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Dismiss permission bubble request if it's a duplicate Currently seeing a crash when two iframes from the same origin request the same permission. The issue arises because they have the same ID and therefore the same entry in the hash map, which makes the request_ptr destruct. This CL cancels the second (redundant) permission request. BUG=433877 Committed: https://crrev.com/5d8a530b942dd6786cbe7a484b8b6a9ce9fe2499 Cr-Commit-Position: refs/heads/master@{#313673}

Patch Set 1 #

Patch Set 2 : Cleaning up style #

Patch Set 3 : Add DCHECK #

Total comments: 2

Patch Set 4 : Remove DCHECK #

Patch Set 5 : Whitespace fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -0 lines) Patch
M chrome/browser/content_settings/permission_context_base.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (5 generated)
felt
Markus, Groby, PTAL. Also I have a question for you. This fixes the crash but ...
6 years ago (2014-12-12 05:42:44 UTC) #3
markusheintz_
On 2014/12/12 05:42:44, felt wrote: > Markus, Groby, > > PTAL. Also I have a ...
6 years ago (2014-12-12 09:53:32 UTC) #4
groby-ooo-7-16
If you want callbacks executed, here's what I'd do: First, get rid of pending_bubbles_. It's ...
6 years ago (2014-12-12 18:54:09 UTC) #6
felt
On 2014/12/12 18:54:09, groby wrote: > If you want callbacks executed, here's what I'd do: ...
6 years ago (2014-12-12 19:12:50 UTC) #7
groby-ooo-7-16
You might be biting off more than you think with changing the Manager :) Some ...
6 years ago (2014-12-12 19:25:39 UTC) #8
chromium-reviews
The way I understand it this should not happen, two iframes from the same domain ...
6 years ago (2014-12-15 09:49:36 UTC) #9
chromium-reviews
+Mounir and Peter who have been refactoring notfications as well. On Mon, Dec 15, 2014 ...
6 years ago (2014-12-15 09:55:42 UTC) #10
groby-ooo-7-16
On 2014/12/15 09:49:36, chromium-reviews wrote: > > First, get rid of pending_bubbles_. It's only used ...
6 years ago (2014-12-15 19:33:12 UTC) #11
Miguel Garcia
I see, in that case, yes this is correct. On Mon, Dec 15, 2014 at ...
6 years ago (2014-12-16 10:09:02 UTC) #12
felt
markusheintz_@, ready for your review. I've modified the CL to have a DCHECK as well ...
5 years, 11 months ago (2015-01-27 21:53:52 UTC) #13
markusheintz_
LGTM
5 years, 10 months ago (2015-01-28 21:06:13 UTC) #14
groby-ooo-7-16
I hate being that person, but... https://codereview.chromium.org/799783002/diff/40001/chrome/browser/content_settings/permission_context_base.cc File chrome/browser/content_settings/permission_context_base.cc (right): https://codereview.chromium.org/799783002/diff/40001/chrome/browser/content_settings/permission_context_base.cc#newcode123 chrome/browser/content_settings/permission_context_base.cc:123: DCHECK(pending_bubbles_.get(id.ToString()) != NULL); ...
5 years, 10 months ago (2015-01-28 22:47:00 UTC) #15
felt
A few notes of mine. * groby@ suggested getting rid of pending_bubbles_ and killing the ...
5 years, 10 months ago (2015-01-29 06:06:06 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/799783002/80001
5 years, 10 months ago (2015-01-29 06:07:12 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 10 months ago (2015-01-29 06:57:55 UTC) #19
commit-bot: I haz the power
5 years, 10 months ago (2015-01-29 07:00:09 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/5d8a530b942dd6786cbe7a484b8b6a9ce9fe2499
Cr-Commit-Position: refs/heads/master@{#313673}

Powered by Google App Engine
This is Rietveld 408576698