[Cross-posting to mozilla.dev.apps.seamonkey, Followup-To: mozilla.dev.apps.seamonkey]

Fri, 23 Sep 2011 11:23:50 -0700 (PDT), /chokito/:
On 23 Sep., 20:01, Stanimir Stamenkov wrote:
Fri, 23 Sep 2011 10:37:05 -0700 (PDT), /chokito/:
On 23 Sep., 19:31, Stanimir Stamenkov wrote:
Fri, 23 Sep 2011 10:13:05 -0700 (PDT), /chokito/:

In SeaMonkey 2.4 will
"javascript:self.resizeTo(1600,1000);self.moveTo(40,10);" doesn't
function.

In SeaMonkey scripts are not allowed to move or resize existing
windows by default.  You can enable it for yourself, if you really
like scripts taking over your windows:

Preferences: Advanced / Scripts & Plugins

Allow scripts to:
[x] Move or resize existing windows
...

In SeaMonkey 2.3.3 an earlier versions this will function!

FWIW, it wouldn't function even in SeaMonkey 1.* with my profile.
The only thing (from the available options) I've ever allowed
scripts to do is to change images.  I've just tried creating a new
profile with SeaMonkey 2.3.3 and I see the same default preferences:
no move or resize of existing windows is allowed.  I've already
pointed out you could change these preferences for yourself.

Here's my preferences: http://homepage.hispeed.ch/chokito/PrefSM2.4.png
I has this settings years ahead, function until I installed SeaMonkey
2.4!
This is definitively a bug in SeaMonkey 2.4!

I've now tried enabling the option of moving and resizing existing windows in my SeaMonkey 2.4 and I see that your javascript: pseudo-URL doesn't work when entered into the location bar. Then I've also remembered that I've already read <https://developer.mozilla.org/en/Firefox_6_for_developers#DOM>:

|   * For security reasons, data: and javascript: URIs no longer
| inherit the security context of the current page when the user
| enters them in the location bar; instead, a new, empty, security
| context is created. This means that script loaded by entering
| javascript: URIs in the location bar no longer has access to DOM
| methods and the like, for example. These URIs continue to work as
| before when used by script, however.

Trying it in Firefox 6 (which generally matches SeaMonkey 2.3) - it doesn't work, indeed (don't know why it has worked in SeaMonkey 2.3);

Trying it from a link in a page in Firefox 6 - it works (as prescribed);

Trying it from from a link in a page in SeaMonkey 2.4 - doesn't appear to work. So it really appears as problem in SeaMonkey, but you should have given more useful directions. It doesn't appear to work when executed from a regular script, even (see the attached example).

And an another bug is not fixed in SeaMonkey 2.4, see
https://groups.google.com/group/mozilla.dev.apps.seamonkey/browse_thread/thread/cd185954e9a978e5/f44d644a0bb90fcc?hl=de&lnk=gst&q=chokito#

Please keep irrelevant subjects in separate threads.  Thanks.

--
Stanimir
Title: _javascript_: test

Move

_______________________________________________
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey

Reply via email to