[prev in list] [next in list] [prev in thread] [next in thread] 

List:       htmlunit-develop
Subject:    [HtmlUnit] [htmlunit:bugs] Re: #1756 Make support for window.performance.timing
From:       "Michael Rose" <roseme () users ! sf ! net>
Date:       2016-05-26 15:32:57
Message-ID: /p/htmlunit/bugs/1756/a963c08f204f5cf8c814cf94f3997106ad058494.bugs () htmlunit ! p ! sourceforge ! net
[Download RAW message or body]

[Attachment #2 (multipart/related)]


--===============5116086810858369660==
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

Interesting. It must have something to do with my using it through Selenium.  I'll \
have to troubleshoot further.

Thanks for the reply.


---

** [bugs:#1756] Make support for window.performance.timing**

**Status:** closed
**Group:** 2.19
**Labels:** browser feature 
**Created:** Wed Mar 09, 2016 02:22 PM UTC by Natasha Lazarova
**Last Updated:** Thu Mar 10, 2016 05:41 PM UTC
**Owner:** RBRi


No browser supports window.performance.timing. Example, trying to load this url: \
https://www.kitkat.com/android/

throws the following Exception:

~~~~
Exception class=[net.sourceforge.htmlunit.corejs.javascript.WrappedException]
com.gargoylesoftware.htmlunit.ScriptException: Wrapped \
com.gargoylesoftware.htmlunit.ScriptException: Wrapped \
com.gargoylesoftware.htmlunit.ScriptException: Wrapped \
com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property \
"responseStart" from undefined (script in \
https://www.youtube.com/embed/OKOrkLxOBoY?controls=0&rel=0&showinfo=0&enablejsapi=1&origin=https%3A%2F%2Fwww.kitkat.com \
from (4, 94) to (4, 1380)#4)  at \
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:954)
  at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:628)
    
    ....
    ....
    ....
~~~~

which is originally caused by loading the js in an iframe containing a youtube link. \
This js tries to call window.performance.timing.responseStart, and crashes the whole \
page that is being loaded, as window.performance.timing is not implemented.


---

Sent from sourceforge.net because htmlunit-develop@lists.sourceforge.net is \
subscribed to https://sourceforge.net/p/htmlunit/bugs/

To unsubscribe from further messages, a project admin can change settings at \
https://sourceforge.net/p/htmlunit/admin/bugs/options.  Or, if this is a mailing \
                list, you can unsubscribe from the mailing list.
--===============5116086810858369660==
MIME-Version: 1.0
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: 7bit

<div class="markdown_content"><p>Interesting. It must have something to do with my \
using it through Selenium.  I'll have to troubleshoot further.</p> <p>Thanks for the \
reply.</p> <hr/>
<p><strong> <a class="alink strikethrough" \
href="https://sourceforge.net/p/htmlunit/bugs/1756/">[bugs:#1756]</a> Make support \
for window.performance.timing</strong></p> <p><strong>Status:</strong> closed<br/>
<strong>Group:</strong> 2.19<br/>
<strong>Labels:</strong> browser feature <br/>
<strong>Created:</strong> Wed Mar 09, 2016 02:22 PM UTC by Natasha Lazarova<br/>
<strong>Last Updated:</strong> Thu Mar 10, 2016 05:41 PM UTC<br/>
<strong>Owner:</strong> RBRi</p>
<p>No browser supports window.performance.timing. Example, trying to load this url: \
<a href="https://www.kitkat.com/android/" \
rel="nofollow">https://www.kitkat.com/android/</a></p> <p>throws the following \
Exception:</p> <div class="codehilite"><pre><span class="x">Exception \
class=[net.sourceforge.htmlunit.corejs.javascript.WrappedException]</span> <span \
class="x">com.gargoylesoftware.htmlunit.ScriptException: Wrapped \
com.gargoylesoftware.htmlunit.ScriptException: Wrapped \
com.gargoylesoftware.htmlunit.ScriptException: Wrapped \
com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot read property \
"responseStart" from undefined (script in \
https://www.youtube.com/embed/OKOrkLxOBoY?controls=0&amp;rel=0&amp;showinfo=0&amp;enablejsapi=1&amp;origin=https%3A%2F%2Fwww.kitkat.com \
from (4, 94) to (4, 1380)</span><span class="err">#</span><span class="x">4)</span> \
<span class="x">    at \
com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine</span><span \
class="p">$</span><span class="nv">HtmlUnitContextAction</span><span \
class="p">.</span><span class="nv">run</span><span class="p">(</span><span \
class="err">JavaScriptEngine.java:</span><span class="m">954</span><span \
class="p">)</span><span class="x"></span> <span class="x">    at \
net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:628)</span>

<span class="x">    ....</span>
<span class="x">    ....</span>
<span class="x">    ....</span>
</pre></div>


<p>which is originally caused by loading the js in an iframe containing a youtube \
link. This js tries to call window.performance.timing.responseStart, and crashes the \
whole page that is being loaded, as window.performance.timing is not implemented.</p> \
<hr/> <p>Sent from sourceforge.net because htmlunit-develop@lists.sourceforge.net is \
subscribed to <a href="https://sourceforge.net/p/htmlunit/bugs/">https://sourceforge.net/p/htmlunit/bugs/</a></p>
 <p>To unsubscribe from further messages, a project admin can change settings at <a \
href="https://sourceforge.net/p/htmlunit/admin/bugs/options.">https://sourceforge.net/p/htmlunit/admin/bugs/options.</a> \
                Or, if this is a mailing list, you can unsubscribe from the mailing \
                list.</p></div>
--===============5116086810858369660==--



------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j

_______________________________________________
HtmlUnit-develop mailing list
HtmlUnit-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic