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

Issue 981623003: Plugin Power Saver: Implement srcset syntax for posters. (Closed)

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

Description

Plugin Power Saver: Implement srcset syntax for posters. The objective of the patch is that the poster attribute for plugins can support high-dpi images via the img srcset syntax, i.e. <param name="poster" value="poster1x.png 1x, poster2x.png 2x" /> BUG=457333 Committed: https://crrev.com/bacf2a1a5b79f59460b1258a502f9f889f18e59f Cr-Commit-Position: refs/heads/master@{#319689}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Patch Set 6 : Add device scale factor hackery. #

Total comments: 8

Patch Set 7 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -31 lines) Patch
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 4 chunks +15 lines, -17 lines 0 comments Download
M chrome/renderer/plugins/chrome_plugin_placeholder.h View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M chrome/renderer/plugins/chrome_plugin_placeholder.cc View 1 2 3 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/renderer/plugins/plugin_preroller.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/resources/plugin_poster.html View 1 2 3 4 5 2 chunks +14 lines, -6 lines 0 comments Download
M components/plugins/renderer/plugin_placeholder.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M components/plugins/renderer/webview_plugin.cc View 1 2 3 4 5 6 2 chunks +13 lines, -2 lines 2 comments Download

Messages

Total messages: 26 (6 generated)
tommycli
bauerb/tsepez: PTAL Not sure of this approach. Has some security implications. Goal is in patch ...
5 years, 9 months ago (2015-03-04 19:55:17 UTC) #3
Tom Sepez
On 2015/03/04 19:55:17, tommycli wrote: > bauerb/tsepez: PTAL > > Not sure of this approach. ...
5 years, 9 months ago (2015-03-04 20:55:02 UTC) #4
tommycli
On 2015/03/04 20:55:02, Tom Sepez wrote: > On 2015/03/04 19:55:17, tommycli wrote: > > bauerb/tsepez: ...
5 years, 9 months ago (2015-03-04 21:40:37 UTC) #5
Bernhard Bauer
https://codereview.chromium.org/981623003/diff/40001/chrome/renderer/plugins/chrome_plugin_placeholder.cc File chrome/renderer/plugins/chrome_plugin_placeholder.cc (right): https://codereview.chromium.org/981623003/diff/40001/chrome/renderer/plugins/chrome_plugin_placeholder.cc#newcode179 chrome/renderer/plugins/chrome_plugin_placeholder.cc:179: placeholder_url.is_valid() ? placeholder_url On 2015/03/04 19:55:17, tommycli wrote: > ...
5 years, 9 months ago (2015-03-05 09:12:52 UTC) #6
tommycli
bauerb: Your suggestion solved the issue! PTAL Thanks! https://codereview.chromium.org/981623003/diff/40001/chrome/renderer/plugins/chrome_plugin_placeholder.cc File chrome/renderer/plugins/chrome_plugin_placeholder.cc (right): https://codereview.chromium.org/981623003/diff/40001/chrome/renderer/plugins/chrome_plugin_placeholder.cc#newcode179 chrome/renderer/plugins/chrome_plugin_placeholder.cc:179: placeholder_url.is_valid() ...
5 years, 9 months ago (2015-03-05 19:49:12 UTC) #7
Tom Sepez
LGTM from security perspective. https://codereview.chromium.org/981623003/diff/60001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/981623003/diff/60001/chrome/renderer/chrome_content_renderer_client.cc#newcode317 chrome/renderer/chrome_content_renderer_client.cc:317: std::string GetPluginInstancePoster(const blink::WebPluginParams& params) { ...
5 years, 9 months ago (2015-03-05 20:28:42 UTC) #8
Bernhard Bauer
lgtm
5 years, 9 months ago (2015-03-05 20:29:43 UTC) #9
tommycli
tsepez: Thanks for review! https://codereview.chromium.org/981623003/diff/60001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): https://codereview.chromium.org/981623003/diff/60001/chrome/renderer/chrome_content_renderer_client.cc#newcode317 chrome/renderer/chrome_content_renderer_client.cc:317: std::string GetPluginInstancePoster(const blink::WebPluginParams& params) { ...
5 years, 9 months ago (2015-03-06 00:17:31 UTC) #10
tommycli
bauerb: Could you take another look at the additions in Patchset 6? To load the ...
5 years, 9 months ago (2015-03-06 00:19:24 UTC) #11
Bernhard Bauer
Seem reasonable to me if it works, but I'm absolutely no expert on Blink and ...
5 years, 9 months ago (2015-03-06 10:13:00 UTC) #12
tommycli
jbroman: Do you mind taking a look at the painting logic added between Patchsets 5 ...
5 years, 9 months ago (2015-03-06 17:16:42 UTC) #14
jbroman
https://codereview.chromium.org/981623003/diff/100001/chrome/renderer/resources/plugin_poster.html File chrome/renderer/resources/plugin_poster.html (right): https://codereview.chromium.org/981623003/diff/100001/chrome/renderer/resources/plugin_poster.html#newcode60 chrome/renderer/resources/plugin_poster.html:60: <img id="poster" i18n-values="srcset:poster"> I see you have security signoff, ...
5 years, 9 months ago (2015-03-06 20:25:49 UTC) #15
tommycli
jbroman: Thanks! https://codereview.chromium.org/981623003/diff/100001/chrome/renderer/resources/plugin_poster.html File chrome/renderer/resources/plugin_poster.html (right): https://codereview.chromium.org/981623003/diff/100001/chrome/renderer/resources/plugin_poster.html#newcode60 chrome/renderer/resources/plugin_poster.html:60: <img id="poster" i18n-values="srcset:poster"> On 2015/03/06 20:25:49, jbroman ...
5 years, 9 months ago (2015-03-06 21:30:55 UTC) #16
tommycli
thestig: May I have an owner review for: chrome/renderer/chrome_content_renderer_client.cc chrome/renderer/resources/plugin_poster.html
5 years, 9 months ago (2015-03-06 21:34:12 UTC) #18
Lei Zhang
lgtm
5 years, 9 months ago (2015-03-06 21:40:11 UTC) #19
tommycli
jbroman: I made changes based on your suggestions. Did you want to take another look ...
5 years, 9 months ago (2015-03-06 22:48:06 UTC) #20
jbroman
(non-owner) LGTM https://codereview.chromium.org/981623003/diff/100001/chrome/renderer/resources/plugin_poster.html File chrome/renderer/resources/plugin_poster.html (right): https://codereview.chromium.org/981623003/diff/100001/chrome/renderer/resources/plugin_poster.html#newcode60 chrome/renderer/resources/plugin_poster.html:60: <img id="poster" i18n-values="srcset:poster"> On 2015/03/06 21:30:55, tommycli ...
5 years, 9 months ago (2015-03-07 03:56:02 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/981623003/120001
5 years, 9 months ago (2015-03-09 17:29:21 UTC) #24
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 9 months ago (2015-03-09 18:20:30 UTC) #25
commit-bot: I haz the power
5 years, 9 months ago (2015-03-09 18:21:58 UTC) #26
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/bacf2a1a5b79f59460b1258a502f9f889f18e59f
Cr-Commit-Position: refs/heads/master@{#319689}

Powered by Google App Engine
This is Rietveld 408576698