Bug 175215 - Have navigator.serviceWorker() actually return a ServiceWorkerContainer object
Summary: Have navigator.serviceWorker() actually return a ServiceWorkerContainer object
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Brady Eidson
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-08-04 15:24 PDT by Brady Eidson
Modified: 2017-08-04 22:04 PDT (History)
7 users (show)

See Also:


Attachments
Patch (39.74 KB, patch)
2017-08-04 15:28 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews102 for mac-elcapitan (1.62 MB, application/zip)
2017-08-04 16:41 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews113 for mac-elcapitan (1.76 MB, application/zip)
2017-08-04 17:10 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews122 for ios-simulator-wk2 (1.18 MB, application/zip)
2017-08-04 17:28 PDT, Build Bot
no flags Details
Patch (41.26 KB, patch)
2017-08-04 19:15 PDT, Brady Eidson
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews103 for mac-elcapitan (1005.50 KB, application/zip)
2017-08-04 20:16 PDT, Build Bot
no flags Details
Archive of layout-test-results from ews114 for mac-elcapitan (1.75 MB, application/zip)
2017-08-04 20:37 PDT, Build Bot
no flags Details
Patch for EWS/Landing (38.91 KB, patch)
2017-08-04 20:45 PDT, Brady Eidson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brady Eidson 2017-08-04 15:24:25 PDT
Have navigator.serviceWorker() actually return a ServiceWorkerContainer object
Comment 1 Brady Eidson 2017-08-04 15:28:35 PDT
Created attachment 317303 [details]
Patch
Comment 2 youenn fablet 2017-08-04 15:36:39 PDT
Comment on attachment 317303 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=317303&action=review

> Source/WebCore/workers/ServiceWorkerContainer.cpp:66
> +    rejectLater(WTFMove(promise), "ready");

It seems unnecessary to reject later, why not doing it now?
Comment 3 Brady Eidson 2017-08-04 15:55:00 PDT
(In reply to youenn fablet from comment #2)
> Comment on attachment 317303 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=317303&action=review
> 
> > Source/WebCore/workers/ServiceWorkerContainer.cpp:66
> > +    rejectLater(WTFMove(promise), "ready");
> 
> It seems unnecessary to reject later, why not doing it now?

My experience with promises in our bindings is minimal - Do we definitely properly handle synchronous responses to promises in all cases?

I assumed the answer is "no" so I didn't go that route.

I'm not particularly concerned about this as this is true early scaffolding code. It will go away shortly!
Comment 4 youenn fablet 2017-08-04 15:57:36 PDT
> My experience with promises in our bindings is minimal - Do we definitely
> properly handle synchronous responses to promises in all cases?

Yes, this is correctly handled.
Comment 5 Build Bot 2017-08-04 16:41:21 PDT
Comment on attachment 317303 [details]
Patch

Attachment 317303 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/4255811

New failing tests:
imported/w3c/web-platform-tests/FileAPI/historical.https.html
Comment 6 Build Bot 2017-08-04 16:41:22 PDT
Created attachment 317308 [details]
Archive of layout-test-results from ews102 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 7 Build Bot 2017-08-04 17:10:24 PDT
Comment on attachment 317303 [details]
Patch

Attachment 317303 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/4255854

New failing tests:
imported/w3c/web-platform-tests/FileAPI/historical.https.html
Comment 8 Build Bot 2017-08-04 17:10:25 PDT
Created attachment 317316 [details]
Archive of layout-test-results from ews113 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews113  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 9 Build Bot 2017-08-04 17:28:32 PDT
Comment on attachment 317303 [details]
Patch

Attachment 317303 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/4255925

New failing tests:
http/tests/security/cross-origin-indexeddb.html
Comment 10 Build Bot 2017-08-04 17:28:34 PDT
Created attachment 317317 [details]
Archive of layout-test-results from ews122 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews122  Port: ios-simulator-wk2  Platform: Mac OS X 10.12.5
Comment 11 Brady Eidson 2017-08-04 19:08:54 PDT
(In reply to Build Bot from comment #9)
> 
> Attachment 317303 [details] did not pass ios-sim-ews (ios-simulator-wk2):
> 
> New failing tests:
> http/tests/security/cross-origin-indexeddb.html

Not caused by this.
Comment 12 Brady Eidson 2017-08-04 19:09:08 PDT
(In reply to Build Bot from comment #7)
> Comment on attachment 317303 [details]
> Patch
> 
> Attachment 317303 [details] did not pass mac-debug-ews (mac):
> Output: http://webkit-queues.webkit.org/results/4255854
> 
> New failing tests:
> imported/w3c/web-platform-tests/FileAPI/historical.https.html

This one probably is! Looking...
Comment 13 Brady Eidson 2017-08-04 19:12:47 PDT
(In reply to Brady Eidson from comment #12)
> (In reply to Build Bot from comment #7)
> > Comment on attachment 317303 [details]
> > Patch
> > 
> > Attachment 317303 [details] did not pass mac-debug-ews (mac):
> > Output: http://webkit-queues.webkit.org/results/4255854
> > 
> > New failing tests:
> > imported/w3c/web-platform-tests/FileAPI/historical.https.html
> 
> This one probably is! Looking...

Yup, WK1 results needed.
Comment 14 Brady Eidson 2017-08-04 19:15:04 PDT
Created attachment 317322 [details]
Patch
Comment 15 Build Bot 2017-08-04 20:16:45 PDT
Comment on attachment 317322 [details]
Patch

Attachment 317322 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.webkit.org/results/4256709

New failing tests:
imported/w3c/web-platform-tests/FileAPI/historical.https.html
Comment 16 Build Bot 2017-08-04 20:16:47 PDT
Created attachment 317324 [details]
Archive of layout-test-results from ews103 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews103  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 17 youenn fablet 2017-08-04 20:24:36 PDT
Since you might need to reupload a new patch, could you remove the rejectLater thing at the same time?
Comment 18 Build Bot 2017-08-04 20:37:24 PDT
Comment on attachment 317322 [details]
Patch

Attachment 317322 [details] did not pass mac-debug-ews (mac):
Output: http://webkit-queues.webkit.org/results/4256723

New failing tests:
imported/w3c/web-platform-tests/FileAPI/historical.https.html
Comment 19 Build Bot 2017-08-04 20:37:26 PDT
Created attachment 317325 [details]
Archive of layout-test-results from ews114 for mac-elcapitan

The attached test failures were seen while running run-webkit-tests on the mac-debug-ews.
Bot: ews114  Port: mac-elcapitan  Platform: Mac OS X 10.11.6
Comment 20 Brady Eidson 2017-08-04 20:45:54 PDT
Created attachment 317326 [details]
Patch for EWS/Landing
Comment 21 Brady Eidson 2017-08-04 20:46:28 PDT
(In reply to Brady Eidson from comment #20)
> Created attachment 317326 [details]
> Patch for EWS/Landing

Will CQ+ once EWS says 👍
Comment 22 WebKit Commit Bot 2017-08-04 21:59:52 PDT
Comment on attachment 317326 [details]
Patch for EWS/Landing

Clearing flags on attachment: 317326

Committed r220310: <http://trac.webkit.org/changeset/220310>
Comment 23 WebKit Commit Bot 2017-08-04 21:59:53 PDT
All reviewed patches have been landed.  Closing bug.
Comment 24 Radar WebKit Bug Importer 2017-08-04 22:00:42 PDT
<rdar://problem/33737977>
Comment 25 Brady Eidson 2017-08-04 22:04:18 PDT
(In reply to youenn fablet from comment #17)
> Since you might need to reupload a new patch, could you remove the
> rejectLater thing at the same time?

Ugh, sorry missed this in the middle of the layout test failure messages.

As mentioned, they're not long for this world. Be gone soon.