[webkit-help] [wekbit] ask for HTML5 ServiceWorker develop tips
Youenn.Fablet at crf.canon.fr
Mon Feb 1 23:48:32 PST 2016
Related to question 1, you need to update the build system to:
- Let the binding generator should process your IDL file
- Compile the binding generated files (usually generated in WebKitBuild/(Release or Debug)/DerivedSources/WebCore/JSXX.h/JSXX.cpp)
This is relatively straightforward for CMake builds.
Some past commits may help you identify the files to update, http://trac.webkit.org/changeset/195954 for instance.
As of question 2, you may receive more feedback on webkit-dev mailing list.
I do not know whether there is any activity on service worker.
Personally, I find it interesting.
From: webkit-help-bounces at lists.webkit.org [mailto:webkit-help-bounces at lists.webkit.org] On Behalf Of xiaoxu
Sent: mardi 2 février 2016 08:15
To: webkit-help <webkit-help at lists.webkit.org>
Subject: [webkit-help] [wekbit] ask for HTML5 ServiceWorker develop tips
I am realizing the Service Worker function in HTML5, I want some suggestions and tips on how to do this work well.
I am now working in one company that developing browser based on webkit, not chromium. Because our browser have the demand to run web app. So we need to realizing the Service Worker in HTML5. And I have seen this function has been realized in the browser chromium, I want to realize this function according to chromium.
Here is the questions:
1 about IDL:
interface ServiceWorker :
readonly attribute USVString<http://heycam.github.io/webidl/#idl-USVString> scriptURL<https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-url-attribute>;
readonly attribute ServiceWorkerState<https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-state-enum> state<https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-state-attribute>;
void postMessage<https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-postmessage-method>(any message, optional sequence<Transferable<https://html.spec.whatwg.org/multipage/infrastructure.html#transferable>> transfer); //
event attribute EventHandler<https://html.spec.whatwg.org/multipage/webappapis.html#eventhandler> onstatechange<https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-onstatechange-attribute>; };
ServiceWorker<https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-interface> implements AbstractWorker<https://html.spec.whatwg.org/multipage/workers.html#abstractworker>;
when I new one file and .cpp, .h file and added to my project. There was errors like cannot find JSUSVString.h or JSTransferable.h, file name like this it can not find. But My question is How did it created these files and How do I fix questions like this?
2: Does webkit group have the plan to fulfill the service worker function and submit this function to one version of webkit release.
Above are my questions I want to address in the near future!
Thank you very much!
looking forward to your answer!
Xiaoxu Lian 廉晓旭
xiaoxulian at qq.com<mailto:xiaoxulian at qq.com>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-help