Closed
Bug 35703
Opened 25 years ago
Closed 3 years ago
Mac and Windows MoveTo doesn't work on DOM windows which persist screenX and screenY
Categories
(Core :: XUL, defect, P3)
Tracking
()
RESOLVED
DUPLICATE
of bug 509828
Future
People
(Reporter: slogan, Unassigned)
Details
(Keywords: platform-parity, Whiteboard: [nsbeta3-])
pParent->OpenDialog(jsContext, argv, 4, ppNewWindow);
JS_PopArguments(jsContext, mark);
if ( *ppNewWindow ) {
(*ppNewWindow)->MoveTo( staggerx, staggery );
}
The above code seems to work on Linux only, not Mac or Windows. We use this in
IM to stagger display IM windows. See also
http://scopus/bugsplat/show_bug.cgi?id=363370
Comment 1•25 years ago
|
||
I think travis was the last person who changed this code, reassigning.
Assignee: jst → travis
Build ID, please? JavaScript window.moveTo() is working on 2000-04-10-09-M15
build on Win95, and 2000-04-11-09-M15 on Win98. May be it's an NT issue only.
Assignee: travis → hyatt
Component: DOM Level 1 → XP Toolkit/Widgets: XUL
Priority: P3 → P2
Okay, I discovered something here. The Xul document being loaded has persist
attributes on the window xul for x and y. When we create new windows based on
this XUL, after the move, we end up stay at the same position as the previous
window (this happens maybe after the third new IM window, the first couple
work fine). I took away the persist stuff in the xul, and we started working
good again. So, somehow persist is triggering new windows to position themselves
based on a window with the same document that also has the persist attributes.
This only happens on mac and Windows. Assign to Hyatt. This breaks one of our
beta 2 features, making P2.
Comment 5•25 years ago
|
||
Could someone explain the severity, or lower it? There is no "major loss of
function" here that I can see.
Comment 6•25 years ago
|
||
nominating cuz syd says it prevents a required PR2 feature, but I don't see why
we couldn't live without the tiling.
Keywords: nsbeta2
Comment 7•25 years ago
|
||
Not required for Beta 2.
Reporter | ||
Comment 11•24 years ago
|
||
Nominating nsbeta3 because the depends bug is nsbeta3. Moving to nisheeth cause
I think this is a DOM issue.
Reporter | ||
Comment 12•24 years ago
|
||
nsCAutoString windowFeatures("chrome,dialog=no");
argv = JS_PushArguments(jsContext, &mark, "sssW", xul, name ? name : ""
,
(const
char*)windowFeatures, Args);
if(!argv)
return NS_ERROR_FAILURE;
pParent->OpenDialog(jsContext, argv, 4, ppNewWindow);
JS_PopArguments(jsContext, mark);
if ( *ppNewWindow ) {
(*ppNewWindow)->MoveTo( staggerx, staggery );
(*ppNewWindow)->SetScreenX( staggerx );
(*ppNewWindow)->SetScreenY( staggery );
}
At some point or another, either SetScreen[XY] has worked (it did last Saturday)
or MoveTo has worked. Now neither works. What is it about these that are so
unstable? Am I doing the wrong thing here to position to window?
Comment 13•24 years ago
|
||
Johnny, are you aware of changes that could have broken
MoveTo()/SetScreenX()/SetScreenY()?
Comment 14•24 years ago
|
||
Nope, no idea, what about danm? Ideas?
Comment 15•24 years ago
|
||
Marking nsbeta3+
Comment 16•24 years ago
|
||
Balancing nsbeta3+ bugs within XML/DOM team. Joki's back from sabbatical and is
ready to help out. Here's one for you, dude!
Assignee: nisheeth → joki
Status: ASSIGNED → NEW
Comment 17•24 years ago
|
||
At this point in the game, since this only affects cascading of instant
messaging windows, marking nsbeta3- and futuring.
Based on my conversation with Tom, MoveTo() does work properly from JS within a
document.
Summary: Mac and Windows MoveTo doesn't work on DOM windows → Mac and Windows MoveTo doesn't work on DOM windows from within IM
Whiteboard: [nsbeta3+] → [nsbeta3-]
Target Milestone: M18 → Future
Comment 18•21 years ago
|
||
Does this bug still exists with recent instant messaging windows and more recent
Mozilla versions?
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: gerardok → xptoolkit.widgets
Updated•15 years ago
|
Assignee: joki → nobody
Comment 19•15 years ago
|
||
This bug still exists.
If a window uses the persist attribute for screenX and screenY then calls to moveTo/moveBy just after opening the window are ignored.
Summary: Mac and Windows MoveTo doesn't work on DOM windows from within IM → Mac and Windows MoveTo doesn't work on DOM windows which persist screenX and screenY
Comment 20•6 years ago
|
||
Moving to p3 because no activity for at least 1 year(s).
See https://github.com/mozilla/bug-handling/blob/master/policy/triage-bugzilla.md#how-do-you-triage for more information
Priority: P2 → P3
Comment 21•3 years ago
|
||
Hey Florian,
This is a very old issue, could you check if this issue si still relevant today? Otherwise, we should close it. Thanks!
Flags: needinfo?(florian)
Comment 22•3 years ago
|
||
(In reply to Timea Cernea [:tbabos] from comment #21)
Hey Florian,
This is a very old issue, could you check if this issue si still relevant today? Otherwise, we should close it. Thanks!
I don't have a testcase to reproduce anymore. My bug 509828 comment 22 indicated I thought it could have been fixed there, so I'm going to close as a duplicate of bug 509828.
Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(florian)
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•