Closed Bug 311466 Opened 19 years ago Closed 19 years ago

[mac] Open app in safe-mode if the option key is pressed during startup

Categories

(Toolkit :: Startup and Profile System, defect, P2)

PowerPC
macOS
defect

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: asaf, Assigned: asaf)

References

Details

Attachments

(1 file)

Except of using |firefox-bin -safe-mode| from the CL, we don't provide any easy
way to start the application in Safe Mode on OS X.

In SeaMonkey, pressing the option key during startup opens the Profile Manager,
it would be nice to morph the same gesture to safe-mode in Toolkit apps.
Nominating for 1.8, now that Safe Mode does something useful (bug 304403).
Status: NEW → ASSIGNED
Flags: blocking1.8rc1?
Priority: -- → P2
Target Milestone: --- → mozilla1.8beta5
Attached patch patchSplinter Review
Attachment #198784 - Flags: first-review?(benjamin)
Attachment #198784 - Flags: first-review?(benjamin) → first-review+
*** Bug 291223 has been marked as a duplicate of this bug. ***
trunk:
Checking in nsAppRunner.cpp;
/cvsroot/mozilla/toolkit/xre/nsAppRunner.cpp,v  <--  nsAppRunner.cpp
new revision: 1.120; previous revision: 1.119
done
Checking in nsCommandLineServiceMac.cpp;
/cvsroot/mozilla/toolkit/xre/nsCommandLineServiceMac.cpp,v  <-- 
nsCommandLineServiceMac.cpp
new revision: 1.4; previous revision: 1.3
don
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Attachment #198784 - Flags: approval1.8rc1?
Why don't we support this modifier key cross-platform?  It'd be nice if there
were a design doc on this safe mode UI.
I don't think that an option key is expected or useful to win/linux users, who
have start menu shortcuts and easy access to commandline flags.
While an option key modifier doesn't make sense, adding a "Open in Safe Mode" to
the context menu of the Firefox shortcut does. I think that's possible to do
when the shortcut is a system shortcut or somesuch, like the "Internet" one that
we overlay in the Start Menu.
Attachment #198784 - Flags: approval1.8rc1? → approval1.8rc1-
Flags: blocking1.8rc1? → blocking1.8rc1-
The option/alt key might not make sense, but shift is the de facto universal
"c'mon, gimme a break" key.
Target Milestone: mozilla1.8beta5 → mozilla1.9alpha1
(In reply to comment #5)
> Why don't we support this modifier key cross-platform?  

+1
Though win/linux users have other (relatively easy) ways to get into safe-mode I
don't see how adding this to other platforms would hurt. User support would be
easier - explaining how to get into this "safe-mode" is often hard enough.
According to http://developer.apple.com/documentation/Carbon/Conceptual/Carbon_Event_Manager/
Tasks/chapter_3_section_7.html GetCurrentKeyModifiers() will read modifier keys even if the application is 
in the background. This means a user switching to another app during launch may inadvertently trigger 
safe mode. Apple recommends calling GetCurrentEventKeyModifiers() instead.
Blocks: 320746
Attachment #198784 - Flags: approval-branch-1.8.1?(benjamin)
Attachment #198784 - Flags: approval-branch-1.8.1?(benjamin) → approval-branch-1.8.1+
Flags: in-litmus?
https://litmus.mozilla.org/show_test.cgi?id=5394 added to Litmus.
Flags: in-litmus? → in-litmus+
Component: XRE Startup → Startup and Profile System
QA Contact: nobody → startup
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: