[webkit-dev] Infinite JavaScript loop blocks the MiniBrowser

Geoffrey Garen ggaren at apple.com
Tue Jul 28 11:14:19 PDT 2015


Mark, do you know how to restart JavaScript after it has reached a watchdog time limit?

Geoff

> On Jul 28, 2015, at 9:09 AM, Pascal Jacquemart <p.jacquemart at samsung.com> wrote:
> 
> Hello,
> 
> I am trying to protect the MiniBrowser from executing faulty JavaScript code taking too much time / CPU. All browsers normally raise a pop-up allowing the user to stop the script and run away. 
> But MiniBrowser does not seem to have such feature. It is just stuck forever ;-(
> 
> After a little digging I found this JSC API: JSContextGroupSetExecutionTimeLimit()
> I had to implement a JSC Watchdog back-end because it is not implemented for EFL, fair enough -> https://bugs.webkit.org/show_bug.cgi?id=147107 <https://bugs.webkit.org/show_bug.cgi?id=147107> (ongoing)
> 
> Now the JSContextGroupSetExecutionTimeLimit() have the expected behaviour.
> I can stop the JavaScript execution and run away... Great but the big problem now is that the JavaScript won't restart. Even while loading other pages, the JavaScript remains disabled.
> 
> If you have any hints about this, I would be grateful.
> How to restart JavaScript execution? Where to look? Is it an EFL bug?
> 
> Thanks,                       Pascal Jacquemart
> 
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org <mailto:webkit-dev at lists.webkit.org>
> https://lists.webkit.org/mailman/listinfo/webkit-dev <https://lists.webkit.org/mailman/listinfo/webkit-dev>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-dev/attachments/20150728/a43fc3f3/attachment.html>


More information about the webkit-dev mailing list