Arthur TOUMASSIAN | 26 May 14:14 2016
Picon

WebRTC support

Hi,

I saw that WebRTC feature is being developed (already done for webkitGetUserMedia). I was wondering if you can approximately say when it will be in testing or ready state?

Thanks!
<div><div dir="ltr">Hi,<br><br>I saw that WebRTC feature is being developed (already done for webkitGetUserMedia). I was wondering if you can approximately say when it will be in testing or ready state?<div><br></div>
<div>Thanks!</div> 		 	   		  </div></div>
Konstantin Tokarev | 22 Apr 18:29 2016
Picon

Are RunLoop::Timer::start() and stop() expected to be thread safe?

Hello,

Are RunLoop::Timer::start() and stop() expected to be thread safe?

For example, VideoRenderRequestScheduler[1] uses Timer::startOneShot() with zero interval as a mean
to run task in other thread, which can be cancelled. Timer is initialized with RunLoop::main(), and
startOneShot(0) is called from differenet thread.

This approach works at least for GTK and EFL ports, however I'm wondering if this is a correct way to do in
principle, or there is better approach which does not involve starting Timer from different thread.

[1] WebCore/platform/graphics/gstreamer/VideoSinkGStreamer.cpp

--

-- 
Regards,
Konstantin
Krishnan | 9 Apr 15:40 2016
Picon
Gravatar

Sending custom signals from WebProcess

Hi all,

I need to send some notification to UI Process from WebProcess. Is there any  I could send custom GTK signals from my Web Process so that I could connect to that signal in UI process.

I have read about sending "User script messages" using webkit_dom_dom_window_webkit_message_handlers_post_message.  But these api's not present in my version of webkit2gtk. Is there any alternative methods present in previous version of webkit ?


Thanks,
Krishnan M
<div><div dir="ltr">
<div>
<div>
<div>Hi all,<br><br>
</div>I need to send some notification to UI Process from WebProcess. Is there any&nbsp; I could send custom GTK signals from my Web Process so that I could connect to that signal in UI process.<br><br>
</div>I have read about <span class=""><span>sending "User script messages" using </span></span>webkit_dom_dom_window_webkit_message_handlers_post_message.&nbsp; But these api's not present in my version of webkit2gtk. Is there any alternative methods present in previous version of webkit ?<br><br><br>
</div>
<div>Thanks,<br>
</div>
<div>Krishnan M<br>
</div>
</div></div>
Antonio Gomes | 5 Apr 17:06 2016

Re: [webkit-dev] DumpRenderTree objects not getting inserted in window object

It would be helpful if you could detail a bit more about what specific
port of WebKit you are using, and what kind of modification you have
done.

PS: Usually crosspost'ing to different mailing lists is not
recommended. I have BCC'ed webkit-dev.

On Tue, Apr 5, 2016 at 8:11 AM, ankit srivastav <ank.cpp@...> wrote:
> We are using webkit as one of our module i.e. building webkit with our own
> application.
> Migrated from revision 164362 to 187486.
> In revision 164362 DumpRenderTree test cases were working fine.
> Now we have used Cmake build tool to build our system.
> Modified the build files and compiled the webkit.
>
> But now windows.testRunner and window.eventSender object is not working.
>
> Debugged the code , found that JS API is being used to inject testRunner and
> eventSender object in window object.
> JSObject.h putDirect () function is getting called correctly.
>
> Can some one provide any idea what has been changed internally?
> Any pointers are welcome.
>
> TIA,
> Ankit
>
>
>
>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev@...
> https://lists.webkit.org/mailman/listinfo/webkit-dev
>
ankit srivastav | 5 Apr 14:11 2016
Picon

DumpRenderTree objects not getting inserted in window object

We are using webkit as one of our module i.e. building webkit with our own application.
Migrated from revision 164362 to 187486.
In revision 164362 DumpRenderTree test cases were working fine.
Now we have used Cmake build tool to build our system.
Modified the build files and compiled the webkit.

But now windows.testRunner and window.eventSender object is not working.

Debugged the code , found that JS API is being used to inject testRunner and eventSender object in window object.
JSObject.h putDirect () function is getting called correctly.

Can some one provide any idea what has been changed internally?
Any pointers are welcome.

TIA,
Ankit



<div><div dir="ltr">
<div>We are using webkit as one of our module i.e. building webkit with our own application.</div>Migrated from revision 164362 to 187486.<div>In revision 164362 DumpRenderTree test cases were working fine.</div>
<div>Now we have used Cmake build tool to build our system.</div>
<div>Modified the build files and compiled the webkit.</div>
<div><br></div>
<div>But now windows.testRunner and window.eventSender object is not working.</div>
<div><br></div>
<div>Debugged the code , found that JS API is being used to inject testRunner and eventSender object in window object.</div>
<div>JSObject.h putDirect () function is getting called correctly.</div>
<div><br></div>
<div>Can some one provide any idea what has been changed internally?</div>
<div>Any pointers are welcome.</div>
<div><br></div>
<div>TIA,</div>
<div>Ankit</div>
<div><br></div>
<div><br></div>
<div><br></div>
</div></div>
Brian Barnes | 28 Mar 07:28 2016
Picon

Slow Performance on Ray Tracing and Pointer Lock

I put in two bug reports (25254565 and 25254546) in the bug reporter for these.

I’m working on a javascript 3D engine where every pixel, sound, normal, spec, shadow map, etc, is dynamically created.  It’s in the early stage, but Safari has a couple problems.

The software has two stages: one, where it creates all the assets, and then the second, where it uses them to play a game.  Chrome, FF, and Safari run the second part well (but sometimes Safari has a little more trouble with in-between frame GCs, but it’s pretty good all around.)  The first part gives Safari fits, and most notably when the system ray-traces the map surfaces to build a light map.  For a good sized map it takes about a minute on Chrome or FF, but Safari takes well over 8 minutes.  In that one piece it’s surprisingly inefficient in Safari.

The second point is that there seems to be absolutely no public discussion on Pointer Lock, which is something I’ve obviously need and seems to be part of the spec now.  You feature list on the safari blog doesn’t have it.  Is this coming?  Is there anything I should be aware of expecting it to be there (i.e., it’s part of some fight, not that you could tell me, anyway!)

Thanks!

Here’s the software, feel free to use it to test you’re new javascript builds, it very much stresses the system:


[>] Brian
<div>I put in two bug reports (25254565 and 25254546) in the bug reporter for these.<div class=""><br class=""></div>
<div class="">I&rsquo;m working on a javascript 3D engine where every pixel, sound, normal, spec, shadow map, etc, is dynamically created. &nbsp;It&rsquo;s in the early stage, but Safari has a couple problems.</div>
<div class=""><br class=""></div>
<div class="">The software has two stages: one, where it creates all the assets, and then the second, where it uses them to play a game. &nbsp;Chrome, FF, and Safari run the second part well (but sometimes Safari has a little more trouble with in-between frame GCs, but it&rsquo;s pretty good all around.) &nbsp;The first part gives Safari fits, and most notably when the system ray-traces the map surfaces to build a light map. &nbsp;For a good sized map it takes about a minute on Chrome or FF, but Safari takes well over 8 minutes. &nbsp;In that one piece it&rsquo;s surprisingly inefficient in Safari.</div>
<div class=""><br class=""></div>
<div class="">The second point is that there seems to be absolutely no public discussion on Pointer Lock, which is something I&rsquo;ve obviously need and seems to be part of the spec now. &nbsp;You feature list on the safari blog doesn&rsquo;t have it. &nbsp;Is this coming? &nbsp;Is there anything I should be aware of expecting it to be there (i.e., it&rsquo;s part of some fight, not that you could tell me, anyway!)</div>
<div class=""><br class=""></div>
<div class="">Thanks!</div>
<div class=""><br class=""></div>
<div class="">Here&rsquo;s the software, feel free to use it to test you&rsquo;re new javascript builds, it very much stresses the system:</div>
<div class=""><br class=""></div>
<div class=""><a href="http://www.klinksoftware.com/ws/" class="">http://www.klinksoftware.com/ws/</a></div>
<div class=""><br class=""></div>
<div class="">[&gt;] Brian</div>
</div>
xiaoxu | 28 Mar 02:56 2016

Need help about debug webkitProcess using XCode

Hi all,
I want some help about how to debug webProcess in XCode.

Recently I compiled browser based on webkit2 successfully, and I could debug minibrowser process through some settings. But what I want to do is to debug webprocess, as I want to using debugging method to understand webprocess better. 
The question is when I want to attach the webprocess to debug, I could not find this process. 

So my question here is how to find and attach webprocess to debug when I run minibrowser process, and if there might be some settings to do when I want to build webprocess, how could I set the XCode.

This is my question, looking forward to your answer and suggestion. Thank you very much!

Have a nice day!

------------------
Xiaoxu Lian 廉晓旭
tel:18601749056
xiaoxulian <at> qq.com
 
<div>
<div>Hi all,</div>
<div>I want some help about how to debug webProcess in XCode.</div>
<div><br></div>
<div>Recently I compiled browser based on webkit2 successfully, and I could debug minibrowser process through some settings. But what I want to do is to debug webprocess, as I want to using debugging method to understand webprocess better.&nbsp;</div>
<div>The question is when I want to attach the webprocess to debug, I could not find this process.&nbsp;</div>
<div><br></div>
<div>So my question here is how to find and attach webprocess to debug when I run minibrowser process, and if there might be some settings to do when I want to build webprocess, how could I set the XCode.</div>
<div><br></div>
<div>This is my question, looking forward to your answer and suggestion. Thank you very much!</div>
<div><br></div>
<div>Have a nice day!</div>
<div><br></div>
<div>
<div>------------------</div>
<div>Xiaoxu Lian &#24265;&#26195;&#26093;<div>tel:18601749056</div>
<div>xiaoxulian <at> qq.com</div>
</div>
</div>
<div>&nbsp;</div>
</div>
Aeva Palecek | 25 Mar 21:21 2016

having trouble getting simple extensions working (C++)

Hello!

I'm attempting to use WebKit2GTK+ to allow me to write behaviors in C 
and expose bindings for those functions to a JavaScript environment.

I've put together a very minimal base code for this here 
https://github.com/Aeva/webkit2gtk-experiment.  Everything seems to 
build ok, but I am unable to find any evidence that the extension is 
actually getting loaded.  Nothing is being written to stdout by the 
extension, nor does "myCFunction" appear in the 'window' object of the 
page's javascript environment as expected.

I've been able to find an igalia blog post that talk about extensions 
and it was helpful getting this far, though it only contains very 
partial sources so I had to guess on how it should all fit together.  I 
also found a simple web browser that has one extension, and I used it 
as a reference https://github.com/vain/lariza but in building and 
tinkering with the browser, I'm not 100% convince the extensions are 
loading there either.

So I guess, what I'm hoping to find out:

 1) is there a simple canonical example somewhere of how to write and 
use extensions and verify that they are working?

 2) if anyone has the time to look at a very small base code, is there 
anything obviously wrong with the code in my repository linked above?

 3) if I'm completely on the wrong track, is there a simpler way to 
expose C functions to js in webkit2gtk+?

Thanks for your time,
Aeva Palecek

Konstantin Tokarev | 14 Mar 20:45 2016
Picon

Best way to construct WTF::Vector<uint8_t> from const char array of known size

Hello,

I have cryptographic digest function which returns result in a form equivalent to const char* of known size.
Is there any way to construct WTF::Vector<uint8_t> from it without resorting to memcpy?

--

-- 
Regards,
Konstantin
xiaoxu | 3 Feb 12:33 2016

[webkit]ask for help on how to build webkit using XCode

Hi all,
I confronted many problems when I was building webkit using Xcode, and I don't the exact method about how to build webkit in Xcode.

So could someone tell me the exact method about this, to make sure I can build webkit using Xcode successfully!

I want to build webkit successfully because I want to debug the source code so that I can learn the source code more clearly.

Now I am using XCode version 7.2.


Thank you very much!
------------------
Xiaoxu Lian 
tel:18601749056
xiaoxulian <at> qq.com
 
<div>
<div>Hi all,</div>
<div>I confronted many problems when I was building webkit using Xcode, and I don't the exact method about how to build webkit in Xcode.</div>
<div><br></div>
<div>So could someone tell me the exact method about this, to make sure I can build webkit using Xcode successfully!</div>
<div><br></div>
<div>I want to build webkit successfully because I want to debug the source code so that I can learn the source code more clearly.</div>
<div><br></div>
<div>Now I am using XCode version 7.2.</div>
<div><br></div>
<div><br></div>
<div>Thank you very much!</div>
<div>
<div>------------------</div>
<div>Xiaoxu Lian&nbsp;<div>tel:18601749056</div>
<div>xiaoxulian <at> qq.com</div>
</div>
</div>
<div>&nbsp;</div>
</div>
xiaoxu | 2 Feb 08:15 2016

[wekbit] ask for HTML5 ServiceWorker develop tips

Hi all,

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:
[Exposed=(Window,Worker)]
 interface ServiceWorker
 readonly attribute USVString scriptURL;
 readonly attribute ServiceWorkerState state
 void postMessage(any message, optional sequence<Transferable> transfer); // 
event attribute EventHandler onstatechange; }; 

 enum ServiceWorkerState 
 "installing", 
 "installed",
"activating", 
 "activated", 
 "redundant" 
};

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 廉晓旭
tel:18601749056
xiaoxulian <at> qq.com
 
<div>
<div>Hi all,</div>
<div><br></div>
<div>I am realizing the Service Worker function in HTML5, I want some suggestions and tips on how to do this work well.</div>
<div><br></div>
<div>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.</div>
<div><br></div>
<div>Here is the questions:</div>
<div><br></div>
<div>1 about IDL:</div>
<div><span>[Exposed=(Window,Worker)]</span></div>
<div>
<span>&nbsp;interface </span>ServiceWorker<span> :&nbsp;</span>
</div>
<div>
<a href="https://dom.spec.whatwg.org/#eventtarget">EventTarget</a><span>&nbsp;</span>
</div>
<div><span>{&nbsp;</span></div>
<div>
<span>&nbsp;readonly attribute </span><a href="http://heycam.github.io/webidl/#idl-USVString">USVString</a><span> </span><a href="https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-url-attribute">scriptURL</a><span>;</span>
</div>
<div>
<span>&nbsp;readonly attribute </span><a href="https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-state-enum">ServiceWorkerState</a><span> </span><a href="https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-state-attribute">state</a><span>;&nbsp;</span>
</div>
<div>
<span>&nbsp;void </span><a href="https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-postmessage-method">postMessage</a><span>(any </span>message<span>, optional sequence&lt;</span><a href="https://html.spec.whatwg.org/multipage/infrastructure.html#transferable">Transferable</a><span>&gt; </span>transfer<span>);

  //&nbsp;</span>
</div>
<div>
<span>event
  attribute </span><a href="https://html.spec.whatwg.org/multipage/webappapis.html#eventhandler">EventHandler</a><span> </span><a href="https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-onstatechange-attribute">onstatechange</a><span>;
};&nbsp;</span>
</div>
<div>
<a href="https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#service-worker-interface">ServiceWorker</a><span> implements </span><a href="https://html.spec.whatwg.org/multipage/workers.html#abstractworker">AbstractWorker</a><span>;&nbsp;</span>
</div>
<div><span><br></span></div>
<div>
<span>&nbsp;enum </span>ServiceWorkerState<span>&nbsp;</span>
</div>
<div><span>{&nbsp;</span></div>
<div><span>&nbsp;"installing",&nbsp;</span></div>
<div><span>&nbsp;"installed",</span></div>
<div><span>"activating",&nbsp;</span></div>
<div><span>&nbsp;"activated",&nbsp;</span></div>
<div><span>&nbsp;"redundant"&nbsp;</span></div>
<div><span>};</span></div>
<div><br></div>
<div><span>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?</span></div>
<div><span><br></span></div>
<div><span>2: Does webkit group have the plan to fulfill the service worker function and submit this function to one version of webkit release.</span></div>
<div><span><br></span></div>
<div><span>Above are my questions I want to address in the near future!</span></div>
<div><span><br></span></div>
<div><span>Thank you very much!</span></div>
<div><span>looking forward to your answer!</span></div>
<div><br></div>
<div>
<div>------------------</div>
<div>Xiaoxu Lian &#24265;&#26195;&#26093;<div>tel:18601749056</div>
<div>xiaoxulian <at> qq.com</div>
</div>
</div>
<div>&nbsp;</div>
</div>

Gmane