Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Issue 2394653002: Disable download for overlay panel content (Closed)

Created:
4 years, 2 months ago by qinmin
Modified:
4 years, 2 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-reviews-html_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, eric.carlson_apple.com, feature-media-reviews_chromium.org, fs, gasubic, jam, kinuko+watch, mlamouri+watch-content_chromium.org, mlamouri+watch-blink_chromium.org, nasko+codewatch_chromium.org, nessy, Srirama, vcarbune.chromium
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Disable download for overlay panel content When content is overlayed(eg. reader mode), enabling download is quite troublesome. The main issue is that download may cause infobar to show up. As a result, this CL disables download for overlay content. Currently it only affects the download button on media controls. Will disable other elements in later CLs if I found that they can trigger download. Because the media control download button uses an internal css, cannot use distilledpage.css to hide it. BUG=650738 Committed: https://crrev.com/72e8bd0573fe18014855175b6983232b35b35208 Cr-Commit-Position: refs/heads/master@{#426863}

Patch Set 1 #

Patch Set 2 : rename disableDownload to hideDownloadUI #

Total comments: 2

Patch Set 3 : nit #

Patch Set 4 : rebase and add layout test #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -4 lines) Patch
M chrome/browser/android/bottombar/overlay_panel_content.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 3 chunks +5 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 3 chunks +9 lines, -0 lines 0 comments Download
M content/public/browser/web_contents.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/common/common_param_traits_macros.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/web_preferences.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/common/web_preferences.cc View 1 2 3 4 1 chunk +4 lines, -3 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/media/video-controls-hide-download-ui.html View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/Settings.in View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp View 1 2 3 4 3 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebSettingsImpl.cpp View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebSettings.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 60 (27 generated)
qinmin
+mlamouri, mdjones for code review +aelias, jochen for OWNER
4 years, 2 months ago (2016-10-04 22:17:25 UTC) #2
aelias_OOO_until_Jul13
The name makes it sound like it disables more than it does. Could you rename ...
4 years, 2 months ago (2016-10-04 22:19:51 UTC) #3
aelias_OOO_until_Jul13
It also looks like you linked the wrong bug.
4 years, 2 months ago (2016-10-04 22:20:50 UTC) #4
qinmin
Done. Renamed the boolean to hire DownloadUI. The crbug is the right one. The crash ...
4 years, 2 months ago (2016-10-04 22:42:58 UTC) #5
qinmin
On 2016/10/04 22:42:58, qinmin wrote: > Done. Renamed the boolean to hire DownloadUI. > sorry, ...
4 years, 2 months ago (2016-10-04 22:43:45 UTC) #6
aelias_OOO_until_Jul13
lgtm, still needs OWNERS from jochen@ https://codereview.chromium.org/2394653002/diff/20001/third_party/WebKit/public/web/WebSettings.h File third_party/WebKit/public/web/WebSettings.h (right): https://codereview.chromium.org/2394653002/diff/20001/third_party/WebKit/public/web/WebSettings.h#newcode167 third_party/WebKit/public/web/WebSettings.h:167: virtual void setHideDownloadUI(bool) ...
4 years, 2 months ago (2016-10-04 23:09:56 UTC) #7
mdjones
lgtm
4 years, 2 months ago (2016-10-04 23:16:45 UTC) #8
mlamouri (slow - plz ping)
+eae@ can we set a stylesheet as UA stylesheet in order to access internal stuff?
4 years, 2 months ago (2016-10-05 16:33:11 UTC) #10
eae
On 2016/10/05 16:33:11, mlamouri wrote: > +eae@ can we set a stylesheet as UA stylesheet ...
4 years, 2 months ago (2016-10-05 16:39:55 UTC) #11
qinmin
On 2016/10/05 16:33:11, mlamouri wrote: > +eae@ can we set a stylesheet as UA stylesheet ...
4 years, 2 months ago (2016-10-05 17:08:14 UTC) #12
qinmin
https://codereview.chromium.org/2394653002/diff/20001/third_party/WebKit/public/web/WebSettings.h File third_party/WebKit/public/web/WebSettings.h (right): https://codereview.chromium.org/2394653002/diff/20001/third_party/WebKit/public/web/WebSettings.h#newcode167 third_party/WebKit/public/web/WebSettings.h:167: virtual void setHideDownloadUI(bool) = 0; On 2016/10/04 23:09:56, aelias ...
4 years, 2 months ago (2016-10-05 21:18:18 UTC) #13
mlamouri (slow - plz ping)
On 2016/10/05 at 16:39:55, eae wrote: > On 2016/10/05 16:33:11, mlamouri wrote: > > +eae@ ...
4 years, 2 months ago (2016-10-06 15:52:06 UTC) #14
qinmin
On 2016/10/06 15:52:06, mlamouri wrote: > On 2016/10/05 at 16:39:55, eae wrote: > > On ...
4 years, 2 months ago (2016-10-06 18:55:41 UTC) #15
eae
On 2016/10/06 18:55:41, qinmin wrote: > On 2016/10/06 15:52:06, mlamouri wrote: > > On 2016/10/05 ...
4 years, 2 months ago (2016-10-06 18:58:49 UTC) #16
mlamouri (slow - plz ping)
+tansell@
4 years, 2 months ago (2016-10-07 12:47:58 UTC) #18
Tim Ansell (dont use)
On 2016/10/07 12:47:58, mlamouri wrote: > +tansell@ I don't actually know anything about how the ...
4 years, 2 months ago (2016-10-07 15:13:11 UTC) #19
qinmin
timloh@, can you answer mlamouri's earlier question: Is it possible for some chromium's code to ...
4 years, 2 months ago (2016-10-07 19:47:12 UTC) #21
Timothy Loh
On 2016/10/07 19:47:12, qinmin wrote: > timloh@, can you answer mlamouri's earlier question: > Is ...
4 years, 2 months ago (2016-10-12 02:50:19 UTC) #24
Timothy Loh
There's some discussion about being able to disable the downloads button in https://bugs.chromium.org/p/chromium/issues/detail?id=650174
4 years, 2 months ago (2016-10-12 03:16:32 UTC) #25
qinmin
jochen@, mlamouri@, since there is no way for chromium to mark a css as UA ...
4 years, 2 months ago (2016-10-12 17:14:55 UTC) #26
jochen (gone - plz use gerrit)
can we have a test please?
4 years, 2 months ago (2016-10-14 09:07:04 UTC) #27
mlamouri (slow - plz ping)
lgtm with tests
4 years, 2 months ago (2016-10-14 17:18:44 UTC) #28
qinmin
@jochen, layout test added, PTAL again
4 years, 2 months ago (2016-10-17 22:56:55 UTC) #29
qinmin
+tsepez for content/public/common/common_param_traits_macros.h OWNER
4 years, 2 months ago (2016-10-17 23:00:09 UTC) #31
Tom Sepez
OWNER LGTM.
4 years, 2 months ago (2016-10-17 23:57:44 UTC) #32
jochen (gone - plz use gerrit)
lgtm
4 years, 2 months ago (2016-10-19 14:34:29 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2394653002/50001
4 years, 2 months ago (2016-10-19 17:02:01 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/90248) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 2 months ago (2016-10-19 17:04:45 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2394653002/70001
4 years, 2 months ago (2016-10-20 16:55:22 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/316181)
4 years, 2 months ago (2016-10-20 18:48:18 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2394653002/110001
4 years, 2 months ago (2016-10-21 19:06:22 UTC) #56
commit-bot: I haz the power
Committed patchset #5 (id:110001)
4 years, 2 months ago (2016-10-21 19:36:05 UTC) #58
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 19:45:00 UTC) #60
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/72e8bd0573fe18014855175b6983232b35b35208
Cr-Commit-Position: refs/heads/master@{#426863}

Powered by Google App Engine
This is Rietveld 408576698