[HtmlUnit] [htmlunit:bugs] #1968 Function.prototype.toString shall return actual source code
RBRi via HtmlUnit-develop <[email protected]> Fri, 10 Mar 2023 18:40:03 -0000
| Newsgroups | gmane.comp.java.htmlunit.devel |
|---|---|
| Message-ID | </p/htmlunit/bugs/1968/fa7a425742175ff6879195449af9e3db42fe8693.bugs@htmlunit.p.sourceforge.net> |
This is a multi-part message in MIME format. --===============6815416716053616549== Content-Type: multipart/related; boundary="===============6343989112731631886==" This is a multi-part message in MIME format. --===============6343989112731631886== Content-Type: multipart/alternative; boundary="===============2894455198466618174==" MIME-Version: 1.0 --===============2894455198466618174== MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit This is a really hard one - but finally i found a solution. Version 3.0.0 will include a fix - you can follow https://github.com/HtmlUnit/htmlunit/issues/552 for the progress. --- ** [bugs:#1968] Function.prototype.toString shall return actual source code** **Status:** accepted **Group:** 2.31 **Created:** Sun Jun 17, 2018 11:49 AM UTC by Alex **Last Updated:** Fri Aug 10, 2018 06:18 AM UTC **Owner:** RBRi Some scripts make use of Function.prototype.toString and rely on it beeing the original source code especially newlines. This is due to some pattern matching done later via regexp. This breaks with the unparsing/decompiling that HTMLUNIT does. I therefore propose to store the original JS source and directly return it. This is the same as browsers do. Example: https://bugzilla.mozilla.org/show_bug.cgi?id=761723 --- Sent from sourceforge.net because [email protected] 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. --===============2894455198466618174== MIME-Version: 1.0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit <div class="markdown_content"><p>This is a really hard one - but finally i found a solution. Version 3.0.0 will include a fix - you can follow <a href="https://github.com/HtmlUnit/htmlunit/issues/552" rel="nofollow">https://github.com/HtmlUnit/htmlunit/issues/552</a> for the progress.</p> <hr/> <p><strong> <a class="alink" href="https://sourceforge.net/p/htmlunit/bugs/1968/">[bugs:#1968]</a> Function.prototype.toString shall return actual source code</strong></p> <p><strong>Status:</strong> accepted<br/> <strong>Group:</strong> 2.31<br/> <strong>Created:</strong> Sun Jun 17, 2018 11:49 AM UTC by Alex<br/> <strong>Last Updated:</strong> Fri Aug 10, 2018 06:18 AM UTC<br/> <strong>Owner:</strong> RBRi</p> <p>Some scripts make use of Function.prototype.toString and rely on it beeing the original source code especially newlines. This is due to some pattern matching done later via regexp. This breaks with the unparsing/decompiling that HTMLUNIT does.</p> <p>I therefore propose to store the original JS source and directly return it.</p> <p>This is the same as browsers do. Example: <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=761723" rel="nofollow">https://bugzilla.mozilla.org/show_bug.cgi?id=761723</a></p> <hr/> <p>Sent from sourceforge.net because [email protected] 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> --===============2894455198466618174==-- --===============6343989112731631886==-- --===============6815416716053616549== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============6815416716053616549== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ HtmlUnit-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/htmlunit-develop --===============6815416716053616549==--