RESOLVED FIXED 13993
JavaScript error navigating pages on thread.gmane.org
https://bugs.webkit.org/show_bug.cgi?id=13993
Summary JavaScript error navigating pages on thread.gmane.org
David Kilzer (:ddkilzer)
Reported 2007-06-04 12:00:02 PDT
* SUMMARY JavaScript error occurs when clicking on messages on thread.gmane.org. * STEPS TO REPRODUCE 1. Launch Safari/WebKit. 2. Go to URL: http://thread.gmane.org/gmane.comp.version-control.git/49093 3. Click on any of the links in the top half of the page (including the one that is currently highlighted). * EXPECTED RESULTS No JavaScript error should occur. * ACTUAL RESULTS A JavaScript error occurs. (Doesn't seem to affect the rest of the page, though.) * REGRESSION This occurs on shipping Safari 2.0.4 (419.3) on Mac OS X 10.4.9 (8P135) as well, so is not a regression. Tested with a local debug build of WebKit r21967 with the above software. * NOTES JavaScript console: Can't find variable: gmane http://news.gmane.org/group/gmane.comp.version-control.git/thread=49093/force_load=t Line: 63
Attachments
Error log on firefox 2.0.0.4 (163.41 KB, image/tiff)
2007-06-05 06:46 PDT, Maxime BRITTO
no flags
Maxime BRITTO
Comment 1 2007-06-05 01:56:59 PDT
The errors at the indicated lines seems to come from missing quotes : <tr id="t0" onClick="setGroupArticle(0, 'gmane.comp.version-control.git'); return true;" class="read"><th>4 Jun 13:48</th><td>Bryan Childs</td><td class="s"><table><tr><td><img height=17 width=9 alt="*" src="/short/k2+l.png"></td><td><a id="w0" href="http://article.gmane.org/gmane.comp.version-control.git/49093" target="article" onClick="setGroupNavbar(0, gmane.comp.version-control.git); return false;">Git Vs. Svn for a project which *must* distribute binaries too.</a></td></tr></table></td></tr> The setGroupNavBar() call misses the quotes arround the group name. So the javascript intepreter is looking for a variable gmane with coponents (.comp.version-control.git) (maybe at the line 353 of the gnus.js javascript file).
David Kilzer (:ddkilzer)
Comment 2 2007-06-05 05:59:15 PDT
(In reply to comment #1) > The setGroupNavBar() call misses the quotes arround the group name. So the > javascript intepreter is looking for a variable gmane with coponents > (.comp.version-control.git) (maybe at the line 353 of the gnus.js javascript > file). That's a great first step! The next step is to write a stand-alone test case that reproduces the error every time on WebKit, the attach it to this bug. BTW, it would be very interesting to know how Firefox 2.0.0.4, Opera 9.x and MSIE 6/7 handle this same test case. Do they report a parsing error, too, using the test case, or do their JavaScript engines parse that argument as a string? Does the gmane.org web site return different HTML/JavaScript for them?
Maxime BRITTO
Comment 3 2007-06-05 06:46:29 PDT
Created attachment 14862 [details] Error log on firefox 2.0.0.4 The error exists in firefox too as you can see in the attachment. I think the problem is in the php page before the traduction in html by the server.
David Kilzer (:ddkilzer)
Comment 4 2007-06-05 06:58:18 PDT
(In reply to comment #3) > The error exists in firefox too as you can see in the attachment. > I think the problem is in the php page before the traduction in html by the > server. Yep, this is an evangelism issue.
David Kilzer (:ddkilzer)
Comment 5 2007-06-05 07:04:28 PDT
(In reply to comment #4) > Yep, this is an evangelism issue. Sent email to Lars Magne per the contact page: http://gmane.org/contact.php
David Kilzer (:ddkilzer)
Comment 6 2007-06-07 15:38:07 PDT
Fixed! Thanks Lars! And thanks for the analysis Maxime!
Maxime BRITTO
Comment 7 2007-06-08 01:11:13 PDT
(In reply to comment #6) > Fixed! Thanks Lars! And thanks for the analysis Maxime! > You're welcome :)
Note You need to log in before you can comment on or make changes to this bug.