Closed
Bug 159195
Opened 24 years ago
Closed 24 years ago
window.moveTo() causes an error: uncaught exception: Permission denied to call method Window.moveTo
Categories
(SeaMonkey :: Preferences, defect)
Tracking
(Not tracked)
VERIFIED
INVALID
People
(Reporter: wendenburg, Assigned: bugs)
Details
Attachments
(1 file)
|
218 bytes,
text/html
|
Details |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Macintosh; U; PPC; en-US; rv:1.1a) Gecko/20020611
BuildID: 2002061103
On the Mac OS 9.2.1 the javascript method moveTo() used for a window causes an
error: "uncaught exception: Permission denied to call method Window.moveTo". It
does not matter, if it is called for the main window or a popup.
I enabled all javascript-preferences like "Move or resize existing windows" and
restarted the computer - without effect.
I tried this out with a local test-html, so there should be no cross-domain
problems. Mozilla should move the window to the position depending on the params.
Reproducible: Always
Steps to Reproduce:
see the test-html
Expected Results: the window should move to screen-position x = 0, y = 0.
<html>
<head>
<title>moveTo test</title>
<script language="javascript1.2">
function moveIt(x,y) {
self.moveTo(x,y);
}
</script>
</head>
<body><a href="#" onclick="moveIt(0,0); return false;">move the moz</a></body>
</html>
Comment 1•24 years ago
|
||
Comment 2•24 years ago
|
||
Browser, not engine ---> DOM Level 0
The testcase WORKSFORME on Mac9.1 with Mozilla trunk build 20020715xx.
Joachim:
1. Could you try an up-to-date build and see if the problem goes away?
2. If it doesn't, try creating a new profile with the Profile Manager
Sometimes profiles get corrupted, and a new one might fix the problem -
Assignee: rogerl → jst
Component: JavaScript Engine → DOM Level 0
QA Contact: pschwartau → desale
Comment 4•24 years ago
|
||
Joachim, please look at your prefs.js and user.js files. Does one of the
disable access to moveTo? The pref would be something like
user_pref("capability.policy.default.Window.moveTo", "noAccess");
| Reporter | ||
Comment 5•24 years ago
|
||
hi, I found this in the prefs.js:
user_pref("capability.policy.default.Window.moveTo", "noAccess");
Tomorrow I will install 1.1b, kill the profile and tell You, if this helps.
Comment 6•24 years ago
|
||
Yeah, that line would do it.. Quit mozilla, delete that one line, restart. All
should be happy.
| Reporter | ||
Comment 7•24 years ago
|
||
yeah, I killed this profile an I am happy again. But what would a unexperienced
user do? Anyway, this is not a dom-, but a preference-problem.
Comment 8•24 years ago
|
||
Reassigning to Preferences component - do we know why this happens?
Joachim: you never added this pref yourself, did you?
user_pref("capability.policy.default.Window.moveTo", "noAccess");
Assignee: peterv → ben
Status: UNCONFIRMED → NEW
Component: DOM Level 0 → Preferences
Ever confirmed: true
QA Contact: desale → sairuh
| Reporter | ||
Comment 9•24 years ago
|
||
no, I never edited the prefs.js. All I did was enabling/disabling some
javascript preferences like "opening of unrequested windows" etc. I am also
wondering why I got this error message in the js-console, because now Mozilla
simply does nothing if I disable "moving or resizing of existing windows" an run
the example script.
Comment 10•24 years ago
|
||
I bet this happened by the user running one of the early builds that had the
pref panels for disabling various things like letting scripts move windows, open
windows, resize windows, and so on. The early versions of that code disabled
those features by denying access to those methods/properties by setting the
prefs that the security manager uses for deciding if a script has access to
methods/properties. Newer versions of this code doesn't use those prefs for
those settings, but if those settings were changed with one of the early builds
the pref(s) would've been left in the preference file. I don't think there's
anything we can really do about this, other than instructing users who happened
to change those settings with one of those builds to remove the prefs by hand.
I'm suggesting INVALID.
| Reporter | ||
Comment 11•24 years ago
|
||
I had several earlier Versions of Mozilla running, so this is possible
Comment 12•24 years ago
|
||
Yeah. If you used a 0.9.8 or so version, this would be a problem. Not much we
can really do about that....
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
Comment 13•24 years ago
|
||
mass-verification of Invalid bugs.
if you don't think the report is invalid, please check to see if it has already
been reported (it might be a duplicate instead). otherwise, make sure that there
are steps (a valid test case) that clearly display the issue as an unexpected
defect.
mail filter string for bugspam: SequoiadendronGiganteum
Status: RESOLVED → VERIFIED
Updated•22 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•