[Webkit-unassigned] [Bug 9017] Weather2.css incorrectly sniffed as JavaScript resource @ www.live.com

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Sat May 20 14:59:41 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=9017





------- Comment #1 from ggaren at apple.com  2006-05-20 14:59 PDT -------
Strangely, it looks like the JS code creates a script element to load the CSS
file:

URL: "http://www.live.com/1.0.7.122/gadgets/Weather/Weather2.css"

(gdb) p this->Node::toString(exec).ascii()
$44 = 0x138d9c00 "\n{\n  el = document.createElement(\"script\");\n 
el.onreadystatechange = doCallback;\n  el.src = o.url;\n  if
(!Web.Browser.isIE())\n    {\n      el.readyState = \"loaded\";\n     
doCallback();\n    }\n}"

So the question is, why does the JS code take this path in Safari but not FF?
Or does FF just know that CSS is CSS, even if it's loaded into a script
element? (Seems unlikely.)


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list