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

Issue 11035067: Add loadCommit and loadStop Event (Closed)

Created:
8 years, 2 months ago by irobert
Modified:
8 years, 2 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Add loadCommit and loadStop Event. loadCommit notifies that a load has committed with event properties "url" and "isTopLevel". loadStop notifies that all loads in the tag (including all subframes) have completed, such that any progress indicator can complete, with no event properties. BUG=154125, 153537 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=162877

Patch Set 1 #

Patch Set 2 : Replace BrowserPlugin::DidNaviagte with BrowserPlugin::LoadCommit #

Patch Set 3 : Fix Bug in Test #

Patch Set 4 : Add LoadStop and LoadCommit Test #

Total comments: 16

Patch Set 5 : With improved approach to creating the event listeners #

Total comments: 4

Patch Set 6 : Fix Comments and Nits #

Total comments: 12

Patch Set 7 : Fix Test and Nits #

Total comments: 2

Patch Set 8 : Fix Conflict #

Patch Set 9 : Remove DidNavigate related Structure #

Patch Set 10 : Resolve Merge Conflict #

Patch Set 11 : Fix Comments #

Total comments: 13

Patch Set 12 : Fix DidNavigate Struct and Test #

Total comments: 6

Patch Set 13 : Fix Comments #

Total comments: 16

Patch Set 14 : Fix Server Error When Upload #

Patch Set 15 : Fix Merge Conflict #

Total comments: 6

Patch Set 16 : Fix Merge Conflict #

Patch Set 17 : Fix Conflict #

Patch Set 18 : Fix #

Patch Set 19 : Fix ShimSrcAttribute Test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -50 lines) Patch
M chrome/test/data/extensions/platform_apps/browser_tag_src_attribute/main.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -1 line 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +6 lines, -2 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_host_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +40 lines, -0 lines 0 comments Download
M content/common/browser_plugin_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +10 lines, -6 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +5 lines, -3 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +42 lines, -18 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +8 lines, -8 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_manager_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 15 16 2 chunks +5 lines, -3 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 15 16 4 chunks +16 lines, -9 lines 0 comments Download
M content/test/data/browser_plugin_embedder.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 15 16 17 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
irobert
8 years, 2 months ago (2012-10-05 21:52:00 UTC) #1
Charlie Reis
https://codereview.chromium.org/11035067/diff/21002/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): https://codereview.chromium.org/11035067/diff/21002/content/browser/browser_plugin/browser_plugin_guest.cc#newcode383 content/browser/browser_plugin/browser_plugin_guest.cc:383: RecordAction(UserMetricsAction("BrowserPlugin.Guest.DidCommit")); Let's stick with DidNavigate here, since we already ...
8 years, 2 months ago (2012-10-08 19:03:39 UTC) #2
Charlie Reis
Here's an improved approach to creating the event listeners: https://codereview.chromium.org/11086025/
8 years, 2 months ago (2012-10-10 18:40:08 UTC) #3
irobert1
Got it. On Wed, Oct 10, 2012 at 11:40 AM, <creis@chromium.org> wrote: > Here's an ...
8 years, 2 months ago (2012-10-10 20:56:56 UTC) #4
Fady Samuel
Please mark the bugs as Started.
8 years, 2 months ago (2012-10-10 22:34:39 UTC) #5
irobert
With improved approach to creating the event listeners https://codereview.chromium.org/11035067/diff/21002/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): https://codereview.chromium.org/11035067/diff/21002/content/browser/browser_plugin/browser_plugin_guest.cc#newcode383 content/browser/browser_plugin/browser_plugin_guest.cc:383: RecordAction(UserMetricsAction("BrowserPlugin.Guest.DidCommit")); ...
8 years, 2 months ago (2012-10-10 23:55:16 UTC) #6
Fady Samuel
http://codereview.chromium.org/11035067/diff/15004/content/browser/browser_plugin/browser_plugin_host_browsertest.cc File content/browser/browser_plugin/browser_plugin_host_browsertest.cc (right): http://codereview.chromium.org/11035067/diff/15004/content/browser/browser_plugin/browser_plugin_host_browsertest.cc#newcode745 content/browser/browser_plugin/browser_plugin_host_browsertest.cc:745: string16(), ASCIIToUTF16("isTopLevel")); The spacing is wrong here. It should ...
8 years, 2 months ago (2012-10-11 15:25:36 UTC) #7
irobert
Fix Nits and Comments http://codereview.chromium.org/11035067/diff/15004/content/browser/browser_plugin/browser_plugin_host_browsertest.cc File content/browser/browser_plugin/browser_plugin_host_browsertest.cc (right): http://codereview.chromium.org/11035067/diff/15004/content/browser/browser_plugin/browser_plugin_host_browsertest.cc#newcode745 content/browser/browser_plugin/browser_plugin_host_browsertest.cc:745: string16(), ASCIIToUTF16("isTopLevel")); On 2012/10/11 15:25:36, ...
8 years, 2 months ago (2012-10-11 16:50:44 UTC) #8
Charlie Reis
Great, I think we're almost there. And yes, I'll try to get Fady's CL approved ...
8 years, 2 months ago (2012-10-11 18:55:28 UTC) #9
irobert
Fix Test and Nits https://codereview.chromium.org/11035067/diff/15006/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): https://codereview.chromium.org/11035067/diff/15006/content/browser/browser_plugin/browser_plugin_guest.cc#newcode396 content/browser/browser_plugin/browser_plugin_guest.cc:396: // Inform its embedder of ...
8 years, 2 months ago (2012-10-11 20:45:48 UTC) #10
Charlie Reis
Thanks. Fady's CL has landed now (http://crrev.com/161414). Can you rebase and fix the merge conflicts? ...
8 years, 2 months ago (2012-10-11 21:56:33 UTC) #11
irobert
Fix Comment and Resolve Merge Conflict https://codereview.chromium.org/11035067/diff/29001/content/browser/browser_plugin/browser_plugin_host_browsertest.cc File content/browser/browser_plugin/browser_plugin_host_browsertest.cc (right): https://codereview.chromium.org/11035067/diff/29001/content/browser/browser_plugin/browser_plugin_host_browsertest.cc#newcode734 content/browser/browser_plugin/browser_plugin_host_browsertest.cc:734: const string16 expected_title ...
8 years, 2 months ago (2012-10-15 19:51:40 UTC) #12
Fady Samuel
https://codereview.chromium.org/11035067/diff/52001/content/browser/browser_plugin/browser_plugin_host_browsertest.cc File content/browser/browser_plugin/browser_plugin_host_browsertest.cc (right): https://codereview.chromium.org/11035067/diff/52001/content/browser/browser_plugin/browser_plugin_host_browsertest.cc#newcode803 content/browser/browser_plugin/browser_plugin_host_browsertest.cc:803: rvh->ExecuteJavascriptAndGetValue(string16(), ASCIIToUTF16( Please use ExecuteSyncJSFunction. https://codereview.chromium.org/11035067/diff/52001/content/browser/browser_plugin/browser_plugin_host_browsertest.cc#newcode822 content/browser/browser_plugin/browser_plugin_host_browsertest.cc:822: rvh->ExecuteJavascriptAndGetValue(string16(), ASCIIToUTF16( ...
8 years, 2 months ago (2012-10-15 19:59:20 UTC) #13
Charlie Reis
Agreed with Fady that we should keep that params object. http://codereview.chromium.org/11035067/diff/52001/content/test/data/browser_plugin_embedder.html File content/test/data/browser_plugin_embedder.html (right): http://codereview.chromium.org/11035067/diff/52001/content/test/data/browser_plugin_embedder.html#newcode14 ...
8 years, 2 months ago (2012-10-15 22:59:56 UTC) #14
irobert
Fix DidNavigate_Params and Test https://codereview.chromium.org/11035067/diff/52001/content/browser/browser_plugin/browser_plugin_host_browsertest.cc File content/browser/browser_plugin/browser_plugin_host_browsertest.cc (right): https://codereview.chromium.org/11035067/diff/52001/content/browser/browser_plugin/browser_plugin_host_browsertest.cc#newcode803 content/browser/browser_plugin/browser_plugin_host_browsertest.cc:803: rvh->ExecuteJavascriptAndGetValue(string16(), ASCIIToUTF16( On 2012/10/15 19:59:20, ...
8 years, 2 months ago (2012-10-16 01:26:39 UTC) #15
Fady Samuel
Another drive-by review :-) http://codereview.chromium.org/11035067/diff/44014/content/browser/browser_plugin/browser_plugin_guest.h File content/browser/browser_plugin/browser_plugin_guest.h (right): http://codereview.chromium.org/11035067/diff/44014/content/browser/browser_plugin/browser_plugin_guest.h#newcode122 content/browser/browser_plugin/browser_plugin_guest.h:122: RenderViewHost* render_view_host) OVERRIDE; Does this ...
8 years, 2 months ago (2012-10-16 01:40:00 UTC) #16
irobert
Fix Nits and Comments http://codereview.chromium.org/11035067/diff/44014/content/browser/browser_plugin/browser_plugin_guest.h File content/browser/browser_plugin/browser_plugin_guest.h (right): http://codereview.chromium.org/11035067/diff/44014/content/browser/browser_plugin/browser_plugin_guest.h#newcode122 content/browser/browser_plugin/browser_plugin_guest.h:122: RenderViewHost* render_view_host) OVERRIDE; On 2012/10/16 ...
8 years, 2 months ago (2012-10-16 20:10:09 UTC) #17
Charlie Reis
http://codereview.chromium.org/11035067/diff/59001/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): http://codereview.chromium.org/11035067/diff/59001/content/browser/browser_plugin/browser_plugin_guest.cc#newcode432 content/browser/browser_plugin/browser_plugin_guest.cc:432: RecordAction(UserMetricsAction("BrowserPlugin.Guest.DidCommit")); As before, please leave this as BrowserPlugin.Guest.DidNavigate. It's ...
8 years, 2 months ago (2012-10-16 21:17:55 UTC) #18
irobert
Fix Comments and Merge (Please Ignore the Patch 14 since I got a Server error ...
8 years, 2 months ago (2012-10-17 20:12:37 UTC) #19
Charlie Reis
Looks like a few issues from the merge conflict. Almost there! https://codereview.chromium.org/11035067/diff/84001/content/browser/browser_plugin/browser_plugin_host_browsertest.cc File content/browser/browser_plugin/browser_plugin_host_browsertest.cc (right): ...
8 years, 2 months ago (2012-10-17 21:27:08 UTC) #20
irobert
Fix Merge Conflict https://codereview.chromium.org/11035067/diff/84001/content/browser/browser_plugin/browser_plugin_host_browsertest.cc File content/browser/browser_plugin/browser_plugin_host_browsertest.cc (right): https://codereview.chromium.org/11035067/diff/84001/content/browser/browser_plugin/browser_plugin_host_browsertest.cc#newcode876 content/browser/browser_plugin/browser_plugin_host_browsertest.cc:876: // This test verifies that round ...
8 years, 2 months ago (2012-10-18 01:42:25 UTC) #21
Charlie Reis
LGTM. Hopefully we can land this without more conflicts, but we'll see what happens.
8 years, 2 months ago (2012-10-18 17:15:36 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/irobert@chromium.org/11035067/70005
8 years, 2 months ago (2012-10-18 17:15:51 UTC) #23
commit-bot: I haz the power
Failed to apply patch for content/renderer/browser_plugin/browser_plugin_manager_impl.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years, 2 months ago (2012-10-18 17:15:56 UTC) #24
irobert
Upload CL
8 years, 2 months ago (2012-10-18 18:13:40 UTC) #25
irobert
Fix
8 years, 2 months ago (2012-10-18 18:33:57 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/irobert@chromium.org/11035067/72020
8 years, 2 months ago (2012-10-18 18:52:38 UTC) #27
Fady Samuel
You need to update ShimSrcAttribute to listen for 'loadCommit', instead of 'navigation'.
8 years, 2 months ago (2012-10-18 19:35:45 UTC) #28
Charlie Reis
On 2012/10/18 19:35:45, Fady Samuel wrote: > You need to update ShimSrcAttribute to listen for ...
8 years, 2 months ago (2012-10-18 20:18:41 UTC) #29
irobert
On 2012/10/18 19:35:45, Fady Samuel wrote: > You need to update ShimSrcAttribute to listen for ...
8 years, 2 months ago (2012-10-18 20:53:18 UTC) #30
Charlie Reis
Great, LGTM. Fady, do you see anything else, or should we be safe to land?
8 years, 2 months ago (2012-10-18 21:22:15 UTC) #31
Fady Samuel
LGTM
8 years, 2 months ago (2012-10-18 21:24:33 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/irobert@chromium.org/11035067/65007
8 years, 2 months ago (2012-10-18 21:28:45 UTC) #33
commit-bot: I haz the power
8 years, 2 months ago (2012-10-19 00:56:14 UTC) #34
Change committed as 162877

Powered by Google App Engine
This is Rietveld 408576698