Closed Bug 1140183 Opened 9 years ago Closed 9 years ago

Disable the safe-mode key trigger (shift on win, option on mac) using an environment variable

Categories

(Toolkit :: Startup and Profile System, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla39
Tracking Status
firefox39 --- fixed

People

(Reporter: jruderman, Assigned: jruderman)

References

(Blocks 1 open bug)

Details

(Whiteboard: MOZ_DISABLE_SAFE_MODE_KEY)

Attachments

(1 file)

Attached patch patchSplinter Review
The safe-mode key makes it annoying to run tests on a workstation, especially tests that start many browser instances. This patch follows the precedent of bug 745154 by adding an environment variable to disable the safe mode trigger.

This does not fix bug 507782, bug 539403, or bug 653410.
Attachment #8573591 - Flags: review?(ehsan)
Assignee: nobody → jruderman
This could also be useful to address bug 1090478 comment 3.
Blocks: 1090478
Status: NEW → ASSIGNED
Comment on attachment 8573591 [details] [diff] [review]
patch

Review of attachment 8573591 [details] [diff] [review]:
-----------------------------------------------------------------

::: toolkit/xre/nsAppRunner.cpp
@@ +3305,5 @@
>    }
>  #endif
>  
>  #ifdef XP_MACOSX
> +  if ((GetCurrentEventKeyModifiers() & optionKey) && !EnvHasValue("MOZ_DISABLE_SAFE_MODE_KEY"))

Nit: please break into two lines.
Attachment #8573591 - Flags: review?(ehsan) → review+
https://hg.mozilla.org/mozilla-central/rev/b6ea1fa736a3
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Whiteboard: MOZ_DISABLE_SAFE_MODE_KEY
@Jesse

Just for the poor souls in my track.

To set that env variable on macos, create the file /etc/launchd.conf and enter (or append if exists) this line:

setenv MOZ_DISABLE_SAFE_MODE_KEY 1

save, reboot and you should be good to go.
@horvath.agoston's tip doesn't work on High Sierra.
(In reply to sashabe from comment #6)
> @horvath.agoston's tip doesn't work on High Sierra.

However, this recommendation https://stackoverflow.com/a/47252708/102397 has worked for me.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: