Disable Notifications in Incognito
Blanket denying notifications and push messaging in incognito, via a
permissions infobar that always denies the permission once dismissed,
prevents websites from detecting incognito mode.
Depends on:
- https://codereview.chromium.org/1442083002
- https://codereview.chromium.org/1478433002
Known caveat: Prevents legitimate use of notifications in incognito :(
BUG=479679
We did chat and we discussed moving some stuff from DecidePermission to
RequestPermission so we don't need to have a third virtual method in there. Feel
free to do that in another CL.
johnme
Description was changed from ========== [NOT READY FOR REVIEW] Disable Notifications in Incognito Blanket denying ...
Description was changed from
==========
[NOT READY FOR REVIEW] Disable Notifications in Incognito
Blanket denying notifications and push messaging in incognito, via a
permissions infobar that always denies the permission once dismissed,
prevents websites from detecting incognito mode.
Depends on https://codereview.chromium.org/1442083002
Known caveats:
- Prevents legitimate use of notifications in incognito.
- Permission can still be granted on desktop from the Origin Info Bubble
after dismissing the infobar.
- Permission can still be granted on desktop by selecting "Allow all
sites to show notifications" in chrome://settings/content
- This patch makes permissions code harder to maintain :(
BUG=479679
==========
to
==========
Disable Notifications in Incognito
Blanket denying notifications and push messaging in incognito, via a
permissions infobar that always denies the permission once dismissed,
prevents websites from detecting incognito mode.
Depends on:
- https://codereview.chromium.org/1442083002
- https://codereview.chromium.org/1478433002
Known caveat: Prevents legitimate use of notifications in incognito :(
BUG=479679
==========
johnme
On 2015/11/20 21:18:29, Mounir Lamouri wrote: > We did chat and we discussed moving some ...
On 2015/11/20 21:18:29, Mounir Lamouri wrote:
> We did chat and we discussed moving some stuff from DecidePermission to
> RequestPermission so we don't need to have a third virtual method in there.
Feel
> free to do that in another CL.
Done. I wrote https://codereview.chromium.org/1478433002, and have updated this
CL to be based on it, which made it quite a bit cleaner. I no longer modify
chrome/browser/permissions/permission_context_base.cc or
chrome/browser/permissions/permission_queue_controller.cc.
mlamouri (slow - plz ping)
As far as permissions goes, the direction is good: with your refactoring, there is little ...
Issue 1441143006: Disable Notifications in Incognito
(Closed)
Created 5 years, 1 month ago by johnme
Modified 4 years, 11 months ago
Reviewers: mlamouri (slow - plz ping)
Base URL: https://chromium.googlesource.com/chromium/src.git@innoinherit
Comments: 24