RESOLVED WORKSFORME 13466
REGRESSION: Some content missing from www.kyte.tv
https://bugs.webkit.org/show_bug.cgi?id=13466
Summary REGRESSION: Some content missing from www.kyte.tv
Charles Gaudette
Reported 2007-04-23 22:33:36 PDT
The content shows in Safari 2 .0.4 (419.3), but fails in WebKit r21060. The missing content is Flash, but the error seems to be the JavaScript. The page displays "Your Adobe Flash Plug-in is not up to date. Click here for more information.", but the Flash plugin works correctly on the site's own test page, http://www.kyte.tv/home/noflash.html . Terminal reports: [PID] http://www.kyte.tv/home/index.html line 276: TypeError: Undefined value This seems to me to be similar to http://bugs.webkit.org/show_bug.cgi?id=11375 , but not exactly.
Attachments
Mark Rowe (bdash)
Comment 1 2007-04-24 05:32:10 PDT
if (typeof HTMLElement != "undefined") { if(HTMLElement.prototype.__defineGetter__) { HTMLElement.prototype.__defineGetter__("innerText", function() { var tmp = this.innerHTML.replace(/<br>/gi, "\n"); ### <--- This line is throwing the exception. return tmp.replace(/<[^>]+>/g, "").replace(/&nbsp;/g, " "); }); HTMLElement.prototype.__defineSetter__("innerText", function(txtStr) { var parsedText = document.createTextNode(txtStr); this.innerHTML = ""; this.appendChild(parsedText); }); } if (HTMLElement.prototype.attachEvent==undefined) HTMLElement.prototype.attachEvent = window.attachEvent; if (HTMLElement.prototype.detachEvent==undefined) HTMLElement.prototype.detachEvent = window.detachEvent; }
David Kilzer (:ddkilzer)
Comment 2 2007-04-24 09:22:17 PDT
Regressions are P1.
Mark Rowe (bdash)
Comment 3 2007-04-27 02:58:18 PDT
Maxime BRITTO
Comment 4 2007-06-07 02:39:27 PDT
It seems to come from a script error. The developper in charge of this script used an / before the < at line 276. But the '<' doesn't need the '/' to be found. With this new line 276 : var tmp = this.innerHTML.replace(<br\s*[/]?\s*>/gi, "\n"); The script keep up loading and flash pugin is detected.But it still don't work because I just copied the index.html and script.js on my hard drive to test.
Maxime BRITTO
Comment 5 2007-06-07 03:03:36 PDT
(In reply to comment #4) > The script keep up loading and flash pugin is detected.But it still doesn't work > because I just copied the index.html and script.js on my hard drive to test. When I say it doesn't work it's just a security measure with an alert message blocking a local file from openning a distant adress through the flash pugin. Even after this alert, I can see the flash animation in the page, trying to connect.
Maxime BRITTO
Comment 6 2007-06-26 08:17:13 PDT
I can't reproduce this bug on Safari 3.0 and webkit r23789. They did change the line 276 which was the origyn of the problem. There is now two new JS errors but I can't see any visible consequences. I think it was an evangelism issue.
Oliver Hunt
Comment 7 2007-07-13 22:29:30 PDT
I can't see any problem with the flash, and the preceeding comment implies the bug was in the site rather than webkit
Note You need to log in before you can comment on or make changes to this bug.