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

Issue 2726793002: PlzNavigate: Rewrite the url and frame type validation part of the external/wpt/service-workers/se… (Closed)

Created:
3 years, 9 months ago by ananta
Modified:
3 years, 9 months ago
Reviewers:
Nate Chapin, jam, jsbell
CC:
chromium-reviews, blink-reviews, blink-reviews-w3ctests_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: Rewrite the url and frame type validation part of the external/wpt/service-workers/service-worker/navigate-window.https.html layout test. This test expects the ServiceWorkerProviderHosts to be in a specific order which breaks with PlzNavigate due to precreated hosts. It seemed to be a better to rewrite the validation code to do an exhaustive match of the URLs and the frame types in the result list. BUG=697307 Review-Url: https://codereview.chromium.org/2726793002 Cr-Commit-Position: refs/heads/master@{#454455} Committed: https://chromium.googlesource.com/chromium/src/+/54e4fbdde6ae7aa7844a0d11489ba76c9f859afb

Patch Set 1 #

Patch Set 2 : Remove the bug from the filter and remove debug changes #

Patch Set 3 : Fix indent #

Patch Set 4 : More indent fixes #

Total comments: 6

Patch Set 5 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -10 lines) Patch
M third_party/WebKit/LayoutTests/FlagExpectations/enable-browser-side-navigation View 1 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/navigate-window.https.html View 1 2 3 4 2 chunks +15 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/navigate-window.https-expected.txt View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 20 (10 generated)
ananta
3 years, 9 months ago (2017-03-01 03:31:56 UTC) #3
Nate Chapin
This looks ok to me, but I'd prefer a sanity check from someone who knows ...
3 years, 9 months ago (2017-03-02 00:06:32 UTC) #8
ananta
On 2017/03/02 00:06:32, Nate Chapin wrote: > This looks ok to me, but I'd prefer ...
3 years, 9 months ago (2017-03-02 01:04:27 UTC) #9
jsbell
lgtm but... https://codereview.chromium.org/2726793002/diff/60001/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/navigate-window.https.html File third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/navigate-window.https.html (right): https://codereview.chromium.org/2726793002/diff/60001/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/navigate-window.https.html#newcode88 third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/navigate-window.https.html:88: // Check if the URLs and the ...
3 years, 9 months ago (2017-03-02 20:19:49 UTC) #10
ananta
https://codereview.chromium.org/2726793002/diff/60001/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/navigate-window.https.html File third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/navigate-window.https.html (right): https://codereview.chromium.org/2726793002/diff/60001/third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/navigate-window.https.html#newcode88 third_party/WebKit/LayoutTests/external/wpt/service-workers/service-worker/navigate-window.https.html:88: // Check if the URLs and the frame type ...
3 years, 9 months ago (2017-03-02 23:21:10 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2726793002/80001
3 years, 9 months ago (2017-03-02 23:25:12 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/54e4fbdde6ae7aa7844a0d11489ba76c9f859afb
3 years, 9 months ago (2017-03-03 00:53:41 UTC) #17
Marijn Kruisselbrink
" at question is whether there are ordering guarantees in the output of Clients.matchAll (https://www.w3.org/TR/service-workers/#clients-getall). ...
3 years, 9 months ago (2017-03-03 01:11:18 UTC) #18
falken
On 2017/03/02 01:04:27, ananta wrote: > On 2017/03/02 00:06:32, Nate Chapin wrote: > > This ...
3 years, 9 months ago (2017-03-03 01:44:08 UTC) #19
falken
3 years, 9 months ago (2017-03-03 01:45:47 UTC) #20
Message was sent while issue was closed.
On 2017/03/03 01:44:08, falken wrote:
> On 2017/03/02 01:04:27, ananta wrote:
> > On 2017/03/02 00:06:32, Nate Chapin wrote:
> > > This looks ok to me, but I'd prefer a sanity check from someone who knows
> > > service workers better.
> > > 
> > > jsbell@, would you mind looking at this, or pointing us at the right
person?
> > > AFAICT, at question is whether there are ordering guarantees in the output
> of
> > > Clients.matchAll (https://www.w3.org/TR/service-workers/#clients-getall).
My
> > > reading is no, but this wpt seems to enforce ordering.
> > 
> > The DidGetClients() function here
> >
>
https://cs.chromium.org/chromium/src/content/browser/service_worker/service_w...
> > sorts the list based on the active tabs showing up ahead. In PlzNavigate the
> > precreated hosts show up as active
> > before the rest.
> 
> That sorting is required by the spec:
> https://bugs.chromium.org/p/chromium/issues/detail?id=461411
> 
> I think mek is right, the spec guarantees an ordering for matchAll and the WPT
> test should be faithful to that. The WPT test is shared by Firefox and other
> browsers. Could we revert this change?

Ah, I see you just responded on the bug. Looking...

Powered by Google App Engine
This is Rietveld 408576698