Closed Bug 257011 Opened 20 years ago Closed 20 years ago

advanced.system.supportDDEExec pref ineffective

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: danm.moz, Assigned: benjamin)

References

Details

Mozilla is supposed to reuse an extant window to open an URL handed it from an
external application if the pref

user_pref("advanced.system.supportDDEExec", true)

has been set (this is the default value). Recent trunk builds of Firefox seem to
always open URLs in a new window, as if the pref were set to false, regardless
of its setting. Restoring this functionality would arguably fix the largest part
of bug 172962.

NB: Surprisingly I couldn't find this bug among the bunches of already opened
DDE bugs. The DDE/Single-Window universe is a complicated place, with extensions
and OS settings and I don't know what else all vying for attention. I suspect
this behaviour was lost while fixing something else but it's kind of sorely missed.
Note Firefox 0.9.3 is also affected.
I don't understand why a pref named "SupportDDEExec" would affect whether we
open in a current window or a new window. Maybe it's just historical accident. I
specifically removed this code from Firefox during semi-single-profile work
because in Seamonkey the behavior is non-deteministic, depending on whether you
have already selected a profile or not (which affects the pref, though there is
no pref observer).
http://lxr.mozilla.org/aviarybranch/source/xpfe/bootstrap/nsNativeAppSupportWin.cpp#2055

How does this change the codepaths that are being used? I told Blake that this
might be affecting the bug where firefox opens two windows, and he had dome some
hacking in this code... we should ask him what he found.
Whiteboard: DUPEME
Flags: blocking-aviary1.0?
Since you removed the code, this one's yours, Benjamin. BTW I agree it's the
most unlikely name for a preference controlling whether the browser opens a new
window. As far as I know that was the only effect of this code.
Assignee: general → bsmedberg
Component: Browser-General → General
Product: Browser → Firefox
Whiteboard: DUPEME
On the other hand the new-window-or-not functionality is being taken over by bug
172962. Closing WONTFIX and dependent on that bug.
No longer blocks: 172962
Status: NEW → RESOLVED
Closed: 20 years ago
Depends on: 172962
Resolution: --- → WONTFIX
Flags: blocking-aviary1.0?
You need to log in before you can comment on or make changes to this bug.