<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Hello,<br>
<br>
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.
<br>
But MiniBrowser does not seem to have such feature. It is just stuck forever ;-(<br>
<br>
After a little digging I found this JSC API: JSContextGroupSetExecutionTimeLimit()<br>
I had to implement a JSC Watchdog back-end because it is not implemented for EFL, fair enough -&gt;
<a href="https://bugs.webkit.org/show_bug.cgi?id=147107" target="_blank">https://bugs.webkit.org/show_bug.cgi?id=147107</a> (ongoing)<br>
<br>
Now the JSContextGroupSetExecutionTimeLimit() have the expected behaviour.<br>
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.<br>
<br>
If you have any hints about this, I would be grateful.<br>
How to restart JavaScript execution? Where to look? Is it an EFL bug?<br>
<br>
Thanks,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Pascal Jacquemart<br>
<br>
</div>
</div>
</body>
</html>