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

Issue 1156043002: chrome.tabs.onUpdated doesn't called with 'loading' twice.

Created:
5 years, 7 months ago by limasdf
Modified:
5 years, 5 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

chrome.tabs.onUpdated doesn't called with 'loading' twice. - Adding several tests for in-page navigations. - tabs.onUpdate() doesn't have 'loading' status if previous tabs.onUpdate() have 'loading'. BUG=465709 TEST=browser_tests --gtest_filter=ExtensionApiTest.TabsOnUpdated

Patch Set 1 : #

Total comments: 4

Patch Set 2 : #

Total comments: 17

Patch Set 3 : #

Total comments: 1

Patch Set 4 : DO NOT SUBMIT/ having only Update() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -50 lines) Patch
M chrome/browser/extensions/api/tabs/tabs_event_router.h View 1 2 3 2 chunks +5 lines, -19 lines 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_event_router.cc View 1 2 3 5 chunks +23 lines, -31 lines 0 comments Download
A chrome/test/data/extensions/api_test/tabs/on_updated/historyPushState/a.html View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/tabs/on_updated/historyPushState/a.js View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/tabs/on_updated/historyPushStateUpdateUrl/a.html View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/tabs/on_updated/historyPushStateUpdateUrl/a.js View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/tabs/on_updated/historyReplaceState/a.html View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/tabs/on_updated/historyReplaceState/a.js View 1 3 1 chunk +11 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/tabs/on_updated/historyReplaceStateUpdateUrl/a.html View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/tabs/on_updated/historyReplaceStateUpdateUrl/a.js View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/tabs/on_updated/test.js View 1 3 1 chunk +48 lines, -0 lines 0 comments Download

Messages

Total messages: 49 (34 generated)
limasdf
PTAL when you have time.
5 years, 7 months ago (2015-05-25 13:42:27 UTC) #4
not at google - send to devlin
Two more things: 1. Add a test. 2. I'm actually thinking that the bug here ...
5 years, 7 months ago (2015-05-27 15:59:15 UTC) #5
not at google - send to devlin
On 2015/05/27 15:59:15, kalman wrote: > Two more things: > 1. Add a test. > ...
5 years, 6 months ago (2015-05-28 15:08:18 UTC) #6
limasdf
On 2015/05/28 15:08:18, kalman wrote: > On 2015/05/27 15:59:15, kalman wrote: > > Two more ...
5 years, 6 months ago (2015-05-28 16:03:34 UTC) #7
not at google - send to devlin
On 2015/05/28 16:03:34, limasdf wrote: > On 2015/05/28 15:08:18, kalman wrote: > > On 2015/05/27 ...
5 years, 6 months ago (2015-05-28 16:06:55 UTC) #8
limasdf
> 1. Add a test. Done. > Correction: I should have read the API docs, ...
5 years, 5 months ago (2015-07-01 12:37:54 UTC) #18
limasdf
On 2015/07/01 12:37:54, limasdf wrote: > > 1. Add a test. > Done. > > ...
5 years, 5 months ago (2015-07-01 15:22:23 UTC) #19
not at google - send to devlin
Lots of comments here, sorry. https://codereview.chromium.org/1156043002/diff/240001/chrome/browser/extensions/api/tabs/tabs_event_router.cc File chrome/browser/extensions/api/tabs/tabs_event_router.cc (right): https://codereview.chromium.org/1156043002/diff/240001/chrome/browser/extensions/api/tabs/tabs_event_router.cc#newcode107 chrome/browser/extensions/api/tabs/tabs_event_router.cc:107: base::DictionaryValue* changed_properties = new ...
5 years, 5 months ago (2015-07-01 15:57:15 UTC) #20
limasdf
when you have time - Sorry I think this CL doesn't looks good. But it ...
5 years, 5 months ago (2015-07-06 17:14:44 UTC) #40
not at google - send to devlin
https://codereview.chromium.org/1156043002/diff/240001/chrome/browser/extensions/api/tabs/tabs_event_router.cc File chrome/browser/extensions/api/tabs/tabs_event_router.cc (right): https://codereview.chromium.org/1156043002/diff/240001/chrome/browser/extensions/api/tabs/tabs_event_router.cc#newcode428 chrome/browser/extensions/api/tabs/tabs_event_router.cc:428: changed_properties.reset(entry->UpdateUrl(contents)); On 2015/07/06 17:14:44, limasdf wrote: > On 2015/07/01 ...
5 years, 5 months ago (2015-07-06 19:33:19 UTC) #41
not at google - send to devlin
On 2015/07/06 17:14:44, limasdf wrote: > when you have time - > > Sorry I ...
5 years, 5 months ago (2015-07-06 19:36:16 UTC) #42
limasdf
Sorry. I have struggled to make single Update() function. but failed. we might need to ...
5 years, 5 months ago (2015-07-21 18:28:55 UTC) #46
not at google - send to devlin
On 2015/07/21 18:28:55, limasdf wrote: > Sorry. I have struggled to make single Update() function. ...
5 years, 5 months ago (2015-07-21 20:46:42 UTC) #47
limasdf
On 2015/07/21 20:46:42, kalman wrote: > On 2015/07/21 18:28:55, limasdf wrote: > > Sorry. I ...
5 years, 5 months ago (2015-07-22 05:34:32 UTC) #48
not at google - send to devlin
5 years, 5 months ago (2015-07-22 16:27:58 UTC) #49
> > What about if you have http://example.com open (or whatever), then press F5?
> Does that
> > go from complete -> loading? Did it before?
> 
> when pressing F5. my patch set #4 does *NOT* go from complete -> loading.
> on Chrome 43, it goes from complete -> loading
> 
> I think the root problem is WebContents::IsLoading() return value could be
> changed several time when loading single web page.
> (even with chrome://newtab)

Could the chrome://newtab be redirects?

It's not clear to me what the correct behavior should be - I guess we should
just aim for backwards compatibility, and if that means not ever reporting a
complete --> loading change then so be it (though I think it would be more
correct to report the change).

Powered by Google App Engine
This is Rietveld 408576698