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

Issue 3436002: Add the onBeforeNavigate and onErrorOccured events to the webNavigation API. (Closed)

Created:
10 years, 3 months ago by jochen (gone - plz use gerrit)
Modified:
9 years, 7 months ago
Reviewers:
yzshen, Matt Perry
CC:
chromium-reviews, ben+cc_chromium.org, Erik does not do reviews, Paweł Hajdan Jr., Aaron Boodman, pam+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Add the onBeforeNavigate and onErrorOccured events to the webNavigation API. Also, rewrite the onCommitted event such that AUTO_SUBFRAME events are also registered. The frameId and the requestId fields are still unimplemented. Also, there occur navigation events after an error is reported. BUG=50943 TEST=WebNavigationEvents Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=59641

Patch Set 1 #

Patch Set 2 : updates #

Total comments: 12

Patch Set 3 : updates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+336 lines, -99 lines) Patch
M chrome/browser/extensions/extension_webnavigation_api.h View 2 chunks +21 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_webnavigation_api.cc View 1 2 4 chunks +71 lines, -13 lines 0 comments Download
M chrome/browser/tab_contents/provisional_load_details.h View 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/provisional_load_details.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/common/notification_type.h View 1 2 1 chunk +9 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/api_test/webnavigation/navigation/test.html View 1 2 1 chunk +201 lines, -78 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
jochen (gone - plz use gerrit)
please review.
10 years, 3 months ago (2010-09-14 14:20:22 UTC) #1
yzshen
http://codereview.chromium.org/3436002/diff/3001/2002 File chrome/browser/extensions/extension_webnavigation_api.cc (right): http://codereview.chromium.org/3436002/diff/3001/2002#newcode80 chrome/browser/extensions/extension_webnavigation_api.cc:80: dict->SetReal(keys::kTimeStampKey, base::Time::Now().ToDoubleT()); We need to convert time to millisenconds. ...
10 years, 3 months ago (2010-09-14 17:50:29 UTC) #2
jochen (gone - plz use gerrit)
http://codereview.chromium.org/3436002/diff/3001/2002 File chrome/browser/extensions/extension_webnavigation_api.cc (right): http://codereview.chromium.org/3436002/diff/3001/2002#newcode80 chrome/browser/extensions/extension_webnavigation_api.cc:80: dict->SetReal(keys::kTimeStampKey, base::Time::Now().ToDoubleT()); On 2010/09/14 17:50:29, yzshen wrote: > We ...
10 years, 3 months ago (2010-09-14 18:38:42 UTC) #3
yzshen
http://codereview.chromium.org/3436002/diff/3001/2002 File chrome/browser/extensions/extension_webnavigation_api.cc (right): http://codereview.chromium.org/3436002/diff/3001/2002#newcode80 chrome/browser/extensions/extension_webnavigation_api.cc:80: dict->SetReal(keys::kTimeStampKey, base::Time::Now().ToDoubleT()); On 2010/09/14 18:38:43, jochen wrote: > On ...
10 years, 3 months ago (2010-09-14 19:29:04 UTC) #4
Matt Perry
most stuff LG, but I disagree that AUTO_SUBFRAME events should be considered "navigations." Maybe Yuzhu ...
10 years, 3 months ago (2010-09-14 20:16:32 UTC) #5
jochen (gone - plz use gerrit)
On 2010/09/14 20:16:32, Matt Perry wrote: > most stuff LG, but I disagree that AUTO_SUBFRAME ...
10 years, 3 months ago (2010-09-15 14:37:16 UTC) #6
yzshen
http://codereview.chromium.org/3436002/diff/3001/2008 File chrome/test/data/extensions/api_test/webnavigation/navigation/test.html (right): http://codereview.chromium.org/3436002/diff/3001/2008#newcode21 chrome/test/data/extensions/api_test/webnavigation/navigation/test.html:21: console.log('---onBeforeNavigate: ' + details.url); On 2010/09/14 20:16:32, Matt Perry ...
10 years, 3 months ago (2010-09-15 16:24:38 UTC) #7
Matt Perry
LGTM http://codereview.chromium.org/3436002/diff/3001/2008 File chrome/test/data/extensions/api_test/webnavigation/navigation/test.html (right): http://codereview.chromium.org/3436002/diff/3001/2008#newcode180 chrome/test/data/extensions/api_test/webnavigation/navigation/test.html:180: url: getURL('iframe/b.html') }], On 2010/09/15 16:24:39, yzshen wrote: ...
10 years, 3 months ago (2010-09-15 18:00:03 UTC) #8
jochen (gone - plz use gerrit)
ok. Yuzhu, I'll change the behavior of onErrorOccurred in the next CL
10 years, 3 months ago (2010-09-16 12:41:42 UTC) #9
yzshen
10 years, 3 months ago (2010-09-16 16:36:40 UTC) #10
LGTM

Thanks. :)

On Thu, Sep 16, 2010 at 5:41 AM,  <jochen@chromium.org> wrote:
> ok.
>
> Yuzhu, I'll change the behavior of onErrorOccurred in the next CL
>
> http://codereview.chromium.org/3436002/show
>



-- 
Best regards,
Yuzhu Shen.

Powered by Google App Engine
This is Rietveld 408576698