Closed
Bug 145956
Opened 23 years ago
Closed 23 years ago
problem with mouseovers using change of .src property
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
CLOSED
INVALID
People
(Reporter: prisma01, Assigned: rogerl)
References
()
Details
Since Mozilla 1.0 rc1 many mouseovers generate several js errors:
Error: uncaught exception: Permission denied to get property HTMLImageElement.src
or
Error: home2 is not defined
Source File: http://www.dlrg.de/Gliederung/Schleswig-Holstein/Kiel/legende.html
Line: 47
Even if I declare home2 correctly the second error remains!
These mouseovers run with NS4, Opera, IE4/5/6 and Mozilla up to 0.99.
Another example page wold be http://www.theregister.co.uk/ . It seems to be
exactly the same problem...
![]() |
||
Comment 1•23 years ago
|
||
You disabled image rollovers in preferences at some point. Quit Mozilla, open
up prefs.js, delete the line that sets the access policy for Image.src to
"noAccess", then restart Mozilla.
That will allow sites to access image.src again.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
Comment 2•23 years ago
|
||
Marking Verified.
If I add the following line to my "all.js" file:
pref("capability.policy.default.HTMLImageElement.src", "noAccess");
and restart Mozilla, I get the same error as Sebastian reported:
Error: uncaught exception: Permission denied to get property HTMLImageElement.src
If I change that line to "allAccess" and restart Mozilla, I don't get the error -
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 3•23 years ago
|
||
Thx a lot!
This helped me a lot!
I just wonder where/when I changed the policy for the image.src object...
Status: VERIFIED → CLOSED
You need to log in
before you can comment on or make changes to this bug.
Description
•