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

Issue 8095007: Defer loading of audio/video tags while prerendering. (Closed)

Created:
9 years, 2 months ago by Shishir
Modified:
9 years ago
CC:
chromium-reviews, hclam+watch_chromium.org, dpranke+watch-content_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, jam, brettw-cc_chromium.org, acolwell+watch_chromium.org, annacc+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, ajwong+watch_chromium.org, vrk (LEFT CHROMIUM)
Visibility:
Public.

Description

Defer loading of audio/video tags while prerendering. BUG=98690 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113742

Patch Set 1 #

Total comments: 27

Patch Set 2 : Addressing Andrew's comments #

Total comments: 22

Patch Set 3 : Adding more tests and addressing all comments. #

Total comments: 4

Patch Set 4 : Addressing Andrews comments. #

Patch Set 5 : Syncing with depot. #

Total comments: 17

Patch Set 6 : Addressing Andrew's style comments. #

Total comments: 2

Patch Set 7 : Fixing comment. #

Total comments: 10

Patch Set 8 : Addressing Dominic's comments. #

Total comments: 19

Patch Set 9 : Addressing Chris's comments. #

Patch Set 10 : Adding test for loadStart and stalled events. #

Patch Set 11 : Adding "+webkit/media" to chrome/renderer/DEFS. #

Total comments: 3

Patch Set 12 : Adding missing OVERRIDEs. #

Patch Set 13 : Removing sleep from test. #

Patch Set 14 : Upload for commit. #

Patch Set 15 : Retrying upload for commit. #

Total comments: 2

Patch Set 16 : Addressing Jam's comments. #

Total comments: 2

Patch Set 17 : Fixing a small nit. #

Patch Set 18 : Removing prerender_html5_audio test for now. #

Patch Set 19 : Rebase for submit. #

Patch Set 20 : Rebasing #

Patch Set 21 : Fixing test for release build. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+510 lines, -61 lines) Patch
M chrome/browser/prerender/prerender_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +49 lines, -9 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/DEPS View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +19 lines, -0 lines 0 comments Download
M chrome/renderer/prerender/prerender_helper.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/renderer/prerender/prerender_helper.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -11 lines 0 comments Download
A chrome/renderer/prerender/prerender_webmediaplayer.h View 1 2 3 4 5 6 7 8 9 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/renderer/prerender/prerender_webmediaplayer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +76 lines, -0 lines 0 comments Download
A chrome/test/data/prerender/prerender_html5_audio_autoplay.html View 1 2 3 4 5 6 7 8 9 1 chunk +23 lines, -0 lines 0 comments Download
A chrome/test/data/prerender/prerender_html5_audio_jsplay.html View 1 2 3 4 5 6 7 8 9 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/test/data/prerender/prerender_html5_common.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +85 lines, -0 lines 0 comments Download
M chrome/test/data/prerender/prerender_html5_video.html View 1 2 3 4 5 6 7 8 9 1 chunk +17 lines, -9 lines 0 comments Download
A chrome/test/data/prerender/prerender_html5_video_network.html View 1 2 3 4 5 6 7 8 9 1 chunk +27 lines, -0 lines 0 comments Download
M chrome/test/data/prerender/prerender_html5_video_script.html View 1 2 3 4 5 6 7 8 9 1 chunk +27 lines, -15 lines 0 comments Download
M content/public/renderer/content_renderer_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +27 lines, -0 lines 0 comments Download
M content/renderer/mock_content_renderer_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +9 lines, -0 lines 0 comments Download
M content/renderer/mock_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +12 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +17 lines, -11 lines 0 comments Download
M content/shell/shell_content_renderer_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +9 lines, -0 lines 0 comments Download
M content/shell/shell_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +12 lines, -0 lines 0 comments Download
M net/tools/testserver/testserver.py View 1 2 3 4 5 6 1 chunk +6 lines, -3 lines 0 comments Download

Messages

Total messages: 46 (0 generated)
Shishir
Initial implementation for comments.
9 years, 2 months ago (2011-09-30 19:45:57 UTC) #1
cbentzel
I definitely suggest getting someone who knows the media stack to take a look and ...
9 years, 2 months ago (2011-10-01 02:08:36 UTC) #2
scherkus (not reviewing)
nits overall I'm not entirely sure if it'll work -- it's hard to tease out ...
9 years, 2 months ago (2011-10-03 18:19:45 UTC) #3
Shishir
Hi Andrew, Thanks for the quick review. I have addressed your comments below. I have ...
9 years, 2 months ago (2011-10-04 23:02:39 UTC) #4
scherkus (not reviewing)
overall it's looking good one thing I'm not sure on how to handle are progress/stalled ...
9 years, 2 months ago (2011-10-05 20:21:58 UTC) #5
ddorwin
drive-by nit http://codereview.chromium.org/8095007/diff/7001/chrome/renderer/prerender/prerender_helper.h File chrome/renderer/prerender/prerender_helper.h (left): http://codereview.chromium.org/8095007/diff/7001/chrome/renderer/prerender/prerender_helper.h#oldcode44 chrome/renderer/prerender/prerender_helper.h:44: WebKit::WebMediaPlayerClient* client) OVERRIDE; Remove the forward declaration ...
9 years, 2 months ago (2011-10-10 22:19:45 UTC) #6
Shishir
Hi Andrew, Sorry I got a bit delayed on this. I have addressed your comments ...
9 years, 2 months ago (2011-10-20 21:20:39 UTC) #7
scherkus (not reviewing)
nits on tests also you should take a look at what avi@ did w/ WebMediaPlayerDelegate ...
9 years, 2 months ago (2011-10-24 18:30:43 UTC) #8
Shishir
Hi Andrew, I looked at the CL about the WebMediaPlayer delegate, but I am not ...
9 years, 1 month ago (2011-10-31 21:16:31 UTC) #9
scherkus (not reviewing)
few nits/sanity checks but overall looking good! http://codereview.chromium.org/8095007/diff/39001/chrome/browser/prerender/prerender_browsertest.cc File chrome/browser/prerender/prerender_browsertest.cc (right): http://codereview.chromium.org/8095007/diff/39001/chrome/browser/prerender/prerender_browsertest.cc#newcode1310 chrome/browser/prerender/prerender_browsertest.cc:1310: // Checks ...
9 years, 1 month ago (2011-11-08 06:21:05 UTC) #10
Shishir
Hi Andrew, I am unable to make this CL work on the trybots. It doesnt ...
9 years, 1 month ago (2011-11-09 22:27:46 UTC) #11
Shishir
The trybots seem to be doing ok. The win breakages look unrelated.
9 years, 1 month ago (2011-11-10 01:42:10 UTC) #12
scherkus (not reviewing)
LGTM w/ one nit http://codereview.chromium.org/8095007/diff/46001/net/tools/testserver/testserver.py File net/tools/testserver/testserver.py (right): http://codereview.chromium.org/8095007/diff/46001/net/tools/testserver/testserver.py#newcode944 net/tools/testserver/testserver.py:944: end = len(data) if this ...
9 years, 1 month ago (2011-11-10 07:47:58 UTC) #13
Shishir
+akalin for net/tools/testserver/... changes. http://codereview.chromium.org/8095007/diff/46001/net/tools/testserver/testserver.py File net/tools/testserver/testserver.py (right): http://codereview.chromium.org/8095007/diff/46001/net/tools/testserver/testserver.py#newcode944 net/tools/testserver/testserver.py:944: end = len(data) On 2011/11/10 ...
9 years, 1 month ago (2011-11-14 19:27:23 UTC) #14
dominich
http://codereview.chromium.org/8095007/diff/52001/chrome/renderer/prerender/prerender_webmediaplayer.cc File chrome/renderer/prerender/prerender_webmediaplayer.cc (right): http://codereview.chromium.org/8095007/diff/52001/chrome/renderer/prerender/prerender_webmediaplayer.cc#newcode68 chrome/renderer/prerender/prerender_webmediaplayer.cc:68: if (url_to_load_.get()) { nit: remove these braces http://codereview.chromium.org/8095007/diff/52001/chrome/renderer/prerender/prerender_webmediaplayer.h File ...
9 years, 1 month ago (2011-11-14 19:40:35 UTC) #15
Shishir
http://codereview.chromium.org/8095007/diff/52001/chrome/renderer/prerender/prerender_webmediaplayer.cc File chrome/renderer/prerender/prerender_webmediaplayer.cc (right): http://codereview.chromium.org/8095007/diff/52001/chrome/renderer/prerender/prerender_webmediaplayer.cc#newcode68 chrome/renderer/prerender/prerender_webmediaplayer.cc:68: if (url_to_load_.get()) { On 2011/11/14 19:40:35, dominich wrote: > ...
9 years, 1 month ago (2011-11-14 19:51:53 UTC) #16
dominich
LGTM modulo nit http://codereview.chromium.org/8095007/diff/54005/content/public/renderer/content_renderer_client.h File content/public/renderer/content_renderer_client.h (right): http://codereview.chromium.org/8095007/diff/54005/content/public/renderer/content_renderer_client.h#newcode112 content/public/renderer/content_renderer_client.h:112: virtual void OverrideCreateWebMediaPlayer( It might be ...
9 years, 1 month ago (2011-11-14 19:55:02 UTC) #17
tburkard
LGTM
9 years, 1 month ago (2011-11-14 20:23:36 UTC) #18
cbentzel
Please update the TEST= field in the CL description. This looks pretty good. Most of ...
9 years, 1 month ago (2011-11-15 18:55:32 UTC) #19
cbentzel
Also - what happens if the media has a preload attribute but not autoplay. Will ...
9 years, 1 month ago (2011-11-15 18:57:16 UTC) #20
scherkus (not reviewing)
http://codereview.chromium.org/8095007/diff/54005/chrome/renderer/prerender/prerender_webmediaplayer.cc File chrome/renderer/prerender/prerender_webmediaplayer.cc (right): http://codereview.chromium.org/8095007/diff/54005/chrome/renderer/prerender/prerender_webmediaplayer.cc#newcode39 chrome/renderer/prerender/prerender_webmediaplayer.cc:39: url_to_load_.reset(new WebKit::WebURL(url)); On 2011/11/15 18:55:33, cbentzel wrote: > Will ...
9 years, 1 month ago (2011-11-16 02:02:23 UTC) #21
akalin
willchan's a better reviewer for the testserver stuff than me.
9 years, 1 month ago (2011-11-17 03:37:10 UTC) #22
Shishir
http://codereview.chromium.org/8095007/diff/54005/chrome/browser/prerender/prerender_browsertest.cc File chrome/browser/prerender/prerender_browsertest.cc (right): http://codereview.chromium.org/8095007/diff/54005/chrome/browser/prerender/prerender_browsertest.cc#newcode1278 chrome/browser/prerender/prerender_browsertest.cc:1278: string16 expected_title = ASCIIToUTF16("PASS"); On 2011/11/15 18:55:33, cbentzel wrote: ...
9 years, 1 month ago (2011-11-17 21:18:48 UTC) #23
willchan no longer on Chromium
lgtm
9 years, 1 month ago (2011-11-17 21:38:44 UTC) #24
scherkus (not reviewing)
http://codereview.chromium.org/8095007/diff/54005/chrome/test/data/prerender/prerender_html5_common.js File chrome/test/data/prerender/prerender_html5_common.js (right): http://codereview.chromium.org/8095007/diff/54005/chrome/test/data/prerender/prerender_html5_common.js#newcode16 chrome/test/data/prerender/prerender_html5_common.js:16: console.log(e.type); On 2011/11/17 21:18:49, Shishir wrote: > On 2011/11/15 ...
9 years, 1 month ago (2011-11-17 23:27:49 UTC) #25
cbentzel
On 2011/11/17 23:27:49, scherkus wrote: > http://codereview.chromium.org/8095007/diff/54005/chrome/test/data/prerender/prerender_html5_common.js > File chrome/test/data/prerender/prerender_html5_common.js (right): > > http://codereview.chromium.org/8095007/diff/54005/chrome/test/data/prerender/prerender_html5_common.js#newcode16 > ...
9 years, 1 month ago (2011-11-18 16:07:40 UTC) #26
scherkus (not reviewing)
On 2011/11/18 16:07:40, cbentzel wrote: > On 2011/11/17 23:27:49, scherkus wrote: > > > http://codereview.chromium.org/8095007/diff/54005/chrome/test/data/prerender/prerender_html5_common.js ...
9 years, 1 month ago (2011-11-18 23:37:52 UTC) #27
Shishir
Added relevant tests. The new test uses a sleep I am not too thrilled about, ...
9 years, 1 month ago (2011-11-22 00:45:16 UTC) #28
scherkus (not reviewing)
http://codereview.chromium.org/8095007/diff/75001/chrome/test/data/prerender/prerender_html5_common.js File chrome/test/data/prerender/prerender_html5_common.js (right): http://codereview.chromium.org/8095007/diff/75001/chrome/test/data/prerender/prerender_html5_common.js#newcode83 chrome/test/data/prerender/prerender_html5_common.js:83: sleep(5000); // Stalled happens after 3000 ms. there's no ...
9 years, 1 month ago (2011-11-23 01:43:31 UTC) #29
scherkus (not reviewing)
9 years, 1 month ago (2011-11-23 01:43:39 UTC) #30
Shishir
http://codereview.chromium.org/8095007/diff/75001/chrome/test/data/prerender/prerender_html5_common.js File chrome/test/data/prerender/prerender_html5_common.js (right): http://codereview.chromium.org/8095007/diff/75001/chrome/test/data/prerender/prerender_html5_common.js#newcode83 chrome/test/data/prerender/prerender_html5_common.js:83: sleep(5000); // Stalled happens after 3000 ms. On 2011/11/23 ...
9 years, 1 month ago (2011-11-23 01:48:36 UTC) #31
scherkus (not reviewing)
LGTM -- I won't hold you up on tests or anything and will defer to ...
9 years ago (2011-12-01 05:38:13 UTC) #32
Shishir
Fixed the sleep issue. Dont know how I didnt see the fix before.
9 years ago (2011-12-01 22:50:09 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shishir@chromium.org/8095007/86001
9 years ago (2011-12-02 23:31:58 UTC) #34
commit-bot: I haz the power
Can't process patch for file chrome/test/data/prerender/prerender_html5_audio.html. File's status is None, patchset upload is incomplete.
9 years ago (2011-12-02 23:32:03 UTC) #35
Shishir
Adding jam for: content/public/renderer/content_renderer_client.h content/renderer/mock_content_renderer_client.cc content/renderer/render_view_impl.cc content/renderer/mock_content_renderer_client.h
9 years ago (2011-12-02 23:49:05 UTC) #36
jam
http://codereview.chromium.org/8095007/diff/97001/content/public/renderer/content_renderer_client.h File content/public/renderer/content_renderer_client.h (right): http://codereview.chromium.org/8095007/diff/97001/content/public/renderer/content_renderer_client.h#newcode108 content/public/renderer/content_renderer_client.h:108: virtual bool ShouldOverrideCreateWebMediaPlayer(RenderView* view) = 0; we try to ...
9 years ago (2011-12-03 00:39:08 UTC) #37
Shishir
http://codereview.chromium.org/8095007/diff/97001/content/public/renderer/content_renderer_client.h File content/public/renderer/content_renderer_client.h (right): http://codereview.chromium.org/8095007/diff/97001/content/public/renderer/content_renderer_client.h#newcode108 content/public/renderer/content_renderer_client.h:108: virtual bool ShouldOverrideCreateWebMediaPlayer(RenderView* view) = 0; On 2011/12/03 00:39:08, ...
9 years ago (2011-12-05 22:23:06 UTC) #38
jam
lgtm with nit http://codereview.chromium.org/8095007/diff/99001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): http://codereview.chromium.org/8095007/diff/99001/chrome/renderer/chrome_content_renderer_client.cc#newcode286 chrome/renderer/chrome_content_renderer_client.cc:286: *player = NULL; nit: since this ...
9 years ago (2011-12-05 22:40:16 UTC) #39
Shishir
http://codereview.chromium.org/8095007/diff/99001/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc (right): http://codereview.chromium.org/8095007/diff/99001/chrome/renderer/chrome_content_renderer_client.cc#newcode286 chrome/renderer/chrome_content_renderer_client.cc:286: *player = NULL; On 2011/12/05 22:40:17, John Abd-El-Malek wrote: ...
9 years ago (2011-12-05 22:46:20 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shishir@chromium.org/8095007/107001
9 years ago (2011-12-07 22:24:12 UTC) #41
commit-bot: I haz the power
Try job failure for 8095007-107001 (retry) on linux_rel for step "browser_tests". It's a second try, ...
9 years ago (2011-12-07 23:38:19 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shishir@chromium.org/8095007/112001
9 years ago (2011-12-08 22:37:05 UTC) #43
commit-bot: I haz the power
Try job failure for 8095007-112001 (retry) on linux_rel for step "browser_tests". It's a second try, ...
9 years ago (2011-12-08 23:42:25 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shishir@chromium.org/8095007/114002
9 years ago (2011-12-09 00:04:49 UTC) #45
commit-bot: I haz the power
9 years ago (2011-12-09 02:45:47 UTC) #46
Change committed as 113742

Powered by Google App Engine
This is Rietveld 408576698