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

Issue 903683005: Always prompt for permission on fullscreen and mouse lock on file:// URLs (Closed)

Created:
5 years, 10 months ago by estark
Modified:
5 years, 10 months ago
CC:
chromium-reviews, scheib+watch_chromium.org, dcheng, lgarron
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Before this change, fullscreen and mouse lock were allowed on file:// URLs without giving the user a chance to Allow or Deny them and without showing any persistent UI. This change makes it so that users are always prompted with persistent UI on file:// URLs. There is no way to remember the preference to show or hide the persistent permission bubble because file:// URLs lack a clear origin concept. BUG=455953, 455882 TEST=Download http://adrifelt.github.io/demos/all-permissions (right click, Save As). Open the downloaded file in Chrome. Click "Fullscreen": a permissions bubble should have "Dismiss" and "Exit full screen" buttons, where "Dismiss" just dismisses the bubble. If you click Dismiss, the bubble should again show up when you enter fullscreen a second time. For Pointer Lock, the bubble should show Allow and Deny buttons, and the mouse should not be locked until you click Allow. Clicking Allow or Deny should not affect the behavior of the bubble if you press Pointer Lock again. Committed: https://crrev.com/6eca4fd0c63d0b31729e35ad883fb07b27dfca73 Cr-Commit-Position: refs/heads/master@{#316322}

Patch Set 1 #

Patch Set 2 : removed accidentally committed unnecessary include #

Total comments: 4

Patch Set 3 : Always ask before going fullscreen or pointer lock on file:// #

Patch Set 4 : style fixes #

Patch Set 5 : add a comment #

Patch Set 6 : add unit test for permissions menu for fullscreen/mouse lock on file:// #

Total comments: 9

Patch Set 7 : Add comments #

Patch Set 8 : Updated Mac UI for fullscreen on file:// URLs #

Total comments: 17

Patch Set 9 : style fixes and remove unused includes #

Total comments: 4

Patch Set 10 : tweak unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -32 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/exclusive_access/exclusive_access_bubble.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/exclusive_access/exclusive_access_bubble.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.cc View 1 2 3 4 5 6 7 8 3 chunks +35 lines, -4 lines 0 comments Download
M chrome/browser/ui/exclusive_access/fullscreen_controller.cc View 1 2 3 4 5 6 2 chunks +17 lines, -4 lines 0 comments Download
M chrome/browser/ui/exclusive_access/fullscreen_controller_browsertest.cc View 1 2 3 4 5 6 7 8 3 chunks +25 lines, -8 lines 0 comments Download
M chrome/browser/ui/exclusive_access/mouse_lock_controller.cc View 1 2 3 4 5 6 2 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/exclusive_access_bubble_views.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/website_settings/permission_menu_model.cc View 1 2 2 chunks +15 lines, -4 lines 0 comments Download
M chrome/browser/ui/website_settings/permission_menu_model_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +24 lines, -3 lines 0 comments Download

Messages

Total messages: 47 (10 generated)
estark
This CL disables fullscreen and pointer lock for file:// URLs, instead of just allowing them ...
5 years, 10 months ago (2015-02-10 01:12:45 UTC) #2
scheib
Disabling the feature entirely seems overkill. I don't have access the the bug and can't ...
5 years, 10 months ago (2015-02-10 01:20:01 UTC) #4
meacer
On 2015/02/10 01:20:01, scheib wrote: > Disabling the feature entirely seems overkill. I don't have ...
5 years, 10 months ago (2015-02-10 01:26:03 UTC) #5
estark
On 2015/02/10 01:26:03, Mustafa Emre Acer wrote: > On 2015/02/10 01:20:01, scheib wrote: > > ...
5 years, 10 months ago (2015-02-10 01:29:21 UTC) #6
meacer
I've CC'ed scheib@ on the bug so that he can see it. Feel free to ...
5 years, 10 months ago (2015-02-10 01:47:21 UTC) #7
scheib
On 2015/02/10 01:29:21, emily wrote: > On 2015/02/10 01:26:03, Mustafa Emre Acer wrote: > > ...
5 years, 10 months ago (2015-02-10 04:03:14 UTC) #8
estark
On 2015/02/10 04:03:14, scheib wrote: > On 2015/02/10 01:29:21, emily wrote: > > On 2015/02/10 ...
5 years, 10 months ago (2015-02-10 04:49:58 UTC) #9
meacer
On 2015/02/10 04:03:14, scheib wrote: > On 2015/02/10 01:29:21, emily wrote: > > On 2015/02/10 ...
5 years, 10 months ago (2015-02-10 04:55:44 UTC) #10
lgarron
On 2015/02/10 at 04:55:44, meacer wrote: > On 2015/02/10 04:03:14, scheib wrote: > > On ...
5 years, 10 months ago (2015-02-10 06:10:01 UTC) #11
estark
On 2015/02/10 06:10:01, lgarron wrote: > On 2015/02/10 at 04:55:44, meacer wrote: > > On ...
5 years, 10 months ago (2015-02-10 06:51:30 UTC) #12
estark
https://codereview.chromium.org/903683005/diff/20001/chrome/browser/ui/exclusive_access/fullscreen_controller.cc File chrome/browser/ui/exclusive_access/fullscreen_controller.cc (right): https://codereview.chromium.org/903683005/diff/20001/chrome/browser/ui/exclusive_access/fullscreen_controller.cc#newcode118 chrome/browser/ui/exclusive_access/fullscreen_controller.cc:118: } On 2015/02/10 01:47:21, Mustafa Emre Acer wrote: > ...
5 years, 10 months ago (2015-02-10 17:49:23 UTC) #13
scheib
On 2015/02/10 06:51:30, emily wrote: > On 2015/02/10 06:10:01, lgarron wrote: > > On 2015/02/10 ...
5 years, 10 months ago (2015-02-10 17:57:01 UTC) #14
meacer
> I disagree. Allow permits fullscreen without persistent UI providing a visual > indication that ...
5 years, 10 months ago (2015-02-10 18:28:09 UTC) #15
estark
Here's a new attempt that always prompts on file:// URLs. It shows a Dismiss button ...
5 years, 10 months ago (2015-02-11 00:27:42 UTC) #16
scheib
Great, I'll review soon. On 2015/02/11 00:27:42, emily wrote: > Here's a new attempt that ...
5 years, 10 months ago (2015-02-11 00:43:00 UTC) #17
meacer
Thanks Emily, I think this is looking good. I'll defer the review to Vincent since ...
5 years, 10 months ago (2015-02-11 00:45:33 UTC) #18
scheib
lgtm I suggest adding more comments. Please update the change description as the patch no ...
5 years, 10 months ago (2015-02-11 16:48:34 UTC) #19
scheib
Oh, and I didn't see any change to Mac -- if you haven't yet you ...
5 years, 10 months ago (2015-02-11 16:49:29 UTC) #20
estark
On 2015/02/11 16:48:34, scheib wrote: > lgtm > > I suggest adding more comments. > ...
5 years, 10 months ago (2015-02-11 21:21:17 UTC) #22
estark
https://codereview.chromium.org/903683005/diff/100001/chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.cc File chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.cc (right): https://codereview.chromium.org/903683005/diff/100001/chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.cc#newcode116 chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.cc:116: // the user is opting to just Dimiss the ...
5 years, 10 months ago (2015-02-11 21:21:59 UTC) #23
meacer
LGTM too. Thanks for fixing this! https://codereview.chromium.org/903683005/diff/100001/chrome/browser/ui/website_settings/permission_menu_model.cc File chrome/browser/ui/website_settings/permission_menu_model.cc (right): https://codereview.chromium.org/903683005/diff/100001/chrome/browser/ui/website_settings/permission_menu_model.cc#newcode51 chrome/browser/ui/website_settings/permission_menu_model.cc:51: url.SchemeIsFile(); On 2015/02/11 ...
5 years, 10 months ago (2015-02-11 21:39:51 UTC) #24
scheib
lgtm still (hmm, patch after lgtm notices...) And thanks from me as well - good ...
5 years, 10 months ago (2015-02-11 21:48:11 UTC) #25
estark
On 2015/02/11 16:49:29, scheib wrote: > Oh, and I didn't see any change to Mac ...
5 years, 10 months ago (2015-02-11 23:00:24 UTC) #27
scheib
lgtm
5 years, 10 months ago (2015-02-11 23:02:43 UTC) #28
estark
groby@: Could you please review changes in chrome/browser/ui/cocoa? markusheintz@: Could you please review changes in ...
5 years, 10 months ago (2015-02-11 23:03:27 UTC) #30
msw
lgtm with nits, and I'm relying on others to review the details of permission_menu_model.cc more ...
5 years, 10 months ago (2015-02-12 00:07:59 UTC) #31
groby-ooo-7-16
c/b/ui/cocoa LGTM w/nit https://codereview.chromium.org/903683005/diff/140001/chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm File chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm (right): https://codereview.chromium.org/903683005/diff/140001/chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm#newcode265 chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm:265: // Update the title of allowButton_ ...
5 years, 10 months ago (2015-02-12 00:54:34 UTC) #32
estark
https://codereview.chromium.org/903683005/diff/140001/chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm File chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm (right): https://codereview.chromium.org/903683005/diff/140001/chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm#newcode265 chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.mm:265: // Update the title of allowButton_ and denyButton_ according ...
5 years, 10 months ago (2015-02-12 02:33:10 UTC) #34
msw
https://codereview.chromium.org/903683005/diff/160001/chrome/browser/ui/website_settings/permission_menu_model_unittest.cc File chrome/browser/ui/website_settings/permission_menu_model_unittest.cc (right): https://codereview.chromium.org/903683005/diff/160001/chrome/browser/ui/website_settings/permission_menu_model_unittest.cc#newcode5 chrome/browser/ui/website_settings/permission_menu_model_unittest.cc:5: #include "base/strings/utf_string_conversions.h" nit: is this actually needed? https://codereview.chromium.org/903683005/diff/160001/chrome/browser/ui/website_settings/permission_menu_model_unittest.cc#newcode70 chrome/browser/ui/website_settings/permission_menu_model_unittest.cc:70: ...
5 years, 10 months ago (2015-02-12 21:09:48 UTC) #36
estark
https://codereview.chromium.org/903683005/diff/160001/chrome/browser/ui/website_settings/permission_menu_model_unittest.cc File chrome/browser/ui/website_settings/permission_menu_model_unittest.cc (right): https://codereview.chromium.org/903683005/diff/160001/chrome/browser/ui/website_settings/permission_menu_model_unittest.cc#newcode5 chrome/browser/ui/website_settings/permission_menu_model_unittest.cc:5: #include "base/strings/utf_string_conversions.h" On 2015/02/12 21:09:48, msw wrote: > nit: ...
5 years, 10 months ago (2015-02-12 21:39:15 UTC) #37
msw
lgtm. I hope someone knowledgeable reviewed permission_menu_model.cc
5 years, 10 months ago (2015-02-12 23:07:46 UTC) #38
markusheintz_
On 2015/02/12 23:07:46, msw wrote: > lgtm. I hope someone knowledgeable reviewed permission_menu_model.cc permissions_menu_mode* LGTM
5 years, 10 months ago (2015-02-13 14:12:39 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/903683005/180001
5 years, 10 months ago (2015-02-13 22:38:56 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/903683005/180001
5 years, 10 months ago (2015-02-13 22:40:55 UTC) #44
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 10 months ago (2015-02-13 23:27:02 UTC) #45
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/6eca4fd0c63d0b31729e35ad883fb07b27dfca73 Cr-Commit-Position: refs/heads/master@{#316322}
5 years, 10 months ago (2015-02-13 23:27:40 UTC) #46
estark
5 years, 10 months ago (2015-02-13 23:29:00 UTC) #47
Message was sent while issue was closed.
Woohoo, my very first commit!! Thanks so much for the feedback and help,
everyone :)

Powered by Google App Engine
This is Rietveld 408576698