Bug 178812 - [Service Worker] Add stubs for serviceWorkerClient.type
Summary: [Service Worker] Add stubs for serviceWorkerClient.type
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: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks: 178794 178816
  Show dependency treegraph
 
Reported: 2017-10-25 10:38 PDT by Chris Dumez
Modified: 2017-11-15 12:51 PST (History)
4 users (show)

See Also:


Attachments
Patch (14.85 KB, patch)
2017-10-25 10:40 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (11.21 KB, text/plain)
2017-10-25 11:10 PDT, Chris Dumez
no flags Details
Patch (14.64 KB, patch)
2017-10-25 11:25 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (16.69 KB, patch)
2017-10-25 12:08 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2017-10-25 10:38:36 PDT
Replace FrameType with ClientType to match the latest specification:
- https://w3c.github.io/ServiceWorker/#enumdef-clienttype
Comment 1 Chris Dumez 2017-10-25 10:40:20 PDT
Created attachment 324846 [details]
Patch
Comment 2 Chris Dumez 2017-10-25 11:10:48 PDT
Created attachment 324851 [details]
Patch
Comment 3 Ben Kelly 2017-10-25 11:12:49 PDT
Please note, neither chrome or firefox has removed FrameType.  It might get added back.  See:

https://github.com/w3c/ServiceWorker/issues/732#issuecomment-291056364
Comment 4 Chris Dumez 2017-10-25 11:19:19 PDT
Comment on attachment 324846 [details]
Patch

Ok, will keep frameType for now. Just add type.
Comment 5 Chris Dumez 2017-10-25 11:25:43 PDT
Created attachment 324855 [details]
Patch
Comment 6 youenn fablet 2017-10-25 11:45:40 PDT
Comment on attachment 324855 [details]
Patch

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

> Source/WebCore/ChangeLog:9
> +        - ttps://w3c.github.io/ServiceWorker/#enumdef-clienttype

s//ttps/https

> Source/WebCore/ChangeLog:19
> +        * workers/service/ServiceWorkerClientType.h: Copied from Source/WebCore/workers/service/ServiceWorkerClient.idl.

Added

> Source/WebCore/WebCore.xcodeproj/project.pbxproj:2924
> +		8369FDFC1FA102E300C1FF1F /* ServiceWorkerClientType.h in Headers */ = {isa = PBXBuildFile; fileRef = 8369FDFB1FA102CB00C1FF1F /* ServiceWorkerClientType.h */; };

Shouldn't there also be some JSServiceWorkerClientType. files added?
Comment 7 Chris Dumez 2017-10-25 12:08:25 PDT
Created attachment 324862 [details]
Patch
Comment 8 Chris Dumez 2017-10-25 12:36:13 PDT
Comment on attachment 324862 [details]
Patch

Clearing flags on attachment: 324862

Committed r223973: <https://trac.webkit.org/changeset/223973>
Comment 9 Chris Dumez 2017-10-25 12:36:15 PDT
All reviewed patches have been landed.  Closing bug.
Comment 10 Radar WebKit Bug Importer 2017-11-15 12:51:07 PST
<rdar://problem/35568284>