Closed
Bug 391885
Opened 18 years ago
Closed 18 years ago
Infinity is no longer defined in browser
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
VERIFIED
DUPLICATE
of bug 392305
People
(Reporter: jruderman, Unassigned)
References
()
Details
(Keywords: regression, testcase)
Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.9a8pre) Gecko/2007081118 Minefield/3.0a8pre
Error: Infinity is not defined
Source File: javascript:alert(Infinity)
Line: 1
Works fine in the command-line JavaScript shell, but broken in the browser.
Flags: blocking1.9?
Comment 1•18 years ago
|
||
This WFM in Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.9a8pre) Gecko/2007081104 Minefield/3.0a8pre.
| Reporter | ||
Comment 2•18 years ago
|
||
Looks like I'm getting a security error along with the "Infinity is not defined" message:
Security Error: Content at javascript:alert(Infinity) may not load data from http://www.squarefree.com/start/.
Error: Infinity is not defined
Source File: javascript:alert(Infinity)
Line: 1
Upon more investigation, I realized that it's only broken for sites that match a CAPS policy. I have a CAPS policy to allow www.squarefree.com to link to file: URLs, so it's broken there. I had NoScript installed at one point, and it added these prefs, so it's broken at a bunch more sites:
user_pref("capability.policy.maonoscript.javascript.enabled", "allAccess");
user_pref("capability.policy.maonoscript.sites", "flashgot.net google.com googlesyndication.com hotmail.com informaction.com live.com maone.net mozilla.com mozilla.org mozillazine.org msn.com noscript.net passport.com passport.net passportimages.com yahoo.com yimg.com about:blank about:config about:credits about:neterror about:plugins chrome: file://flashgot.net file://google.com file://googlesyndication.com file://hotmail.com file://informaction.com file://live.com file://maone.net file://mozilla.com file://mozilla.org file://mozillazine.org file://msn.com file://noscript.net file://passport.com file://passport.net file://passportimages.com file://yahoo.com file://yimg.com http://flashgot.net http://google.com http://googlesyndication.com http://hotmail.com http://informaction.com http://live.com http://maone.net http://mozilla.com http://mozilla.org http://mozillazine.org http://msn.com http://noscript.net http://passport.com http://passport.net http://passportimages.com http://yahoo.com http://yimg.com https://flashgot.net https://google.com https://googlesyndication.com https://hotmail.com https://informaction.com https://live.com https://maone.net https://mozilla.com https://mozilla.org https://mozillazine.org https://msn.com https://noscript.net https://passport.com https://passport.net https://passportimages.com https://yahoo.com https://yimg.com resource:");
The weird thing is that accessing things like "document.body" works fine, and even "NaN" works fine. What's special about "Infinity"?
It's not just broken for bookmarklets; I've seen it break for external scripts as well.
Comment 3•18 years ago
|
||
I get Infinity is not defined (and mostly blank content under headings) on http://video.google.com/ without any security errors.
OS: Mac OS X → All
Hardware: PC → All
Comment 4•18 years ago
|
||
Duping forward to the bug that fixed this.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
| Reporter | ||
Comment 5•18 years ago
|
||
Verified as a dup -- this works correctly on trunk now.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•