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

Issue 1335303004: ServiceWorker: Fix the bug in navigate() if windowclient is nested frame. (Closed)

Created:
5 years, 3 months ago by zino
Modified:
5 years, 2 months ago
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, nhiroki, darin-cc_chromium.org, horo+watch_chromium.org, kinuko+serviceworker, kinuko+watch, blink-worker-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ServiceWorker: Fix the bug in navigate() if windowclient is nested frame. In the current implementation, calling navigate() method, the top level page instead of the subframe page will always navigate even though the windowclient is nested frame type such as <iframe>. This change is fixing the bug by passing the frame_tree_node_id of the subframe to WebContents::OpenURL(). Releated CLs: - http://crrev.com/1202453002 (chromium) - http://crrev.com/1196193003 (blink) - http://crrev.com/1211253007 (layout test) BUG=500911 Committed: https://crrev.com/3cd134a8b280b6561fac0b70305254b7f442b0f9 Cr-Commit-Position: refs/heads/master@{#350990}

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 2

Patch Set 4 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -12 lines) Patch
M content/browser/service_worker/service_worker_version.cc View 1 2 3 7 chunks +27 lines, -12 lines 0 comments Download

Messages

Total messages: 25 (7 generated)
zino
PTAL, While I was writing the test codes for navigate() method, I found the problem. ...
5 years, 3 months ago (2015-09-14 06:26:38 UTC) #2
zino
On 2015/09/14 06:26:38, zino wrote: > PTAL, > > While I was writing the test ...
5 years, 3 months ago (2015-09-16 07:05:36 UTC) #3
nhiroki
Sorry for my late reply. Looks good overall from ServiceWorker's point of view. I'm not ...
5 years, 3 months ago (2015-09-16 08:00:19 UTC) #4
zino
+ Avi@, nick@ as reviewers for navigation. Could you please review this? (nhiroki@, Thanks!)
5 years, 3 months ago (2015-09-16 10:39:30 UTC) #7
Charlie Reis
Drive by for navigation API question. https://codereview.chromium.org/1335303004/diff/1/content/browser/service_worker/service_worker_version.cc File content/browser/service_worker/service_worker_version.cc (right): https://codereview.chromium.org/1335303004/diff/1/content/browser/service_worker/service_worker_version.cc#newcode271 content/browser/service_worker/service_worker_version.cc:271: render_frame_host->Navigate(common_params, StartNavigationParams(), It's ...
5 years, 3 months ago (2015-09-16 18:58:46 UTC) #9
zino
Reviewers, Thank you for review and I addressed all of comments. Could you review again? ...
5 years, 3 months ago (2015-09-17 01:27:45 UTC) #10
Avi (use Gerrit)
On 2015/09/17 01:27:45, zino wrote: > Reviewers, > > Thank you for review and I ...
5 years, 3 months ago (2015-09-17 15:22:44 UTC) #11
Charlie Reis
Please write a test for this if possible. Also, one question below about a possible ...
5 years, 3 months ago (2015-09-17 17:14:34 UTC) #12
Avi (use Gerrit)
On 2015/09/17 17:14:34, Charlie Reis wrote: > Please write a test for this if possible. ...
5 years, 3 months ago (2015-09-17 18:07:29 UTC) #13
zino
Reviewers, PTAL. There is already a layout test for this. If it's not enough, do ...
5 years, 3 months ago (2015-09-22 08:01:14 UTC) #14
zino
On 2015/09/22 08:01:14, zino wrote: > Reviewers, PTAL. > > There is already a layout ...
5 years, 3 months ago (2015-09-24 12:01:29 UTC) #15
Charlie Reis
Sorry for the delay. LGTM with nit, since you have a layout test for it. ...
5 years, 3 months ago (2015-09-24 18:36:58 UTC) #16
zino
No problem. Thank you for review! :) https://codereview.chromium.org/1335303004/diff/40001/content/browser/service_worker/service_worker_version.cc File content/browser/service_worker/service_worker_version.cc (right): https://codereview.chromium.org/1335303004/diff/40001/content/browser/service_worker/service_worker_version.cc#newcode242 content/browser/service_worker/service_worker_version.cc:242: void DidOpenURL(const ...
5 years, 2 months ago (2015-09-25 01:08:30 UTC) #18
zino
Avi@, On 2015/09/17 18:07:29, Avi wrote: > Re my question, I don't want to hold ...
5 years, 2 months ago (2015-09-25 01:11:07 UTC) #19
Avi (use Gerrit)
On 2015/09/25 01:11:07, zino wrote: > Avi@, > > On 2015/09/17 18:07:29, Avi wrote: > ...
5 years, 2 months ago (2015-09-25 14:29:03 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1335303004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1335303004/80001
5 years, 2 months ago (2015-09-26 06:37:44 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:80001)
5 years, 2 months ago (2015-09-26 07:42:52 UTC) #24
commit-bot: I haz the power
5 years, 2 months ago (2015-09-26 07:43:35 UTC) #25
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/3cd134a8b280b6561fac0b70305254b7f442b0f9
Cr-Commit-Position: refs/heads/master@{#350990}

Powered by Google App Engine
This is Rietveld 408576698