Closed Bug 944825 Opened 11 years ago Closed 11 years ago

Relaunch in Windows 8 style nightly should prompt for default on Holly if not already default.

Categories

(Firefox for Metro Graveyard :: Browser, defect, P2)

x86_64
Windows 8.1
defect

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 28

People

(Reporter: bbondy, Assigned: emtwo)

References

Details

(Whiteboard: [block28] feature=defect c=tbd u=tbd p=1)

Attachments

(1 file)

Holly's menu item for Relaunch in Windows 8 style Nightly should prompt for default if not already default.


Basically do the exact same thing you're already doing with the Australis front end code.

The code on Holly is what's going to be uplifted to Aurora.

p=1
Priority: -- → P2
QA Contact: jbecerra
Whiteboard: [block28] feature=defect c=tbd u=tbd p=1
Also added a check to hide the button if not in win8.
Attachment #8341239 - Flags: review?(netzen)
Comment on attachment 8341239 [details] [diff] [review]
v1: Prompt for default when attempting to switch to Metro

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

::: browser/base/content/browser.js
@@ +2513,5 @@
> +  let isDefault = shell.isDefaultBrowser(false, false);
> +
> +  if (isDefault) {
> +    let appStartup = Components.classes["@mozilla.org/toolkit/app-startup;1"].
> +    getService(Components.interfaces.nsIAppStartup);

nit: indent getService

@@ +2515,5 @@
> +  if (isDefault) {
> +    let appStartup = Components.classes["@mozilla.org/toolkit/app-startup;1"].
> +    getService(Components.interfaces.nsIAppStartup);
> +
> +    Services.prefs.setBoolPref('browser.sessionstore.resume_session_once', true);

nit: use " since you use it for the other strings.
Attachment #8341239 - Flags: review?(netzen) → review+
Does this need to land anywhere else or can we close out the bug?
Flags: needinfo?(netzen)
I don't think so, I think we already prompt for it on m-c Australis. Feel free to close.
Flags: needinfo?(netzen)
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 28
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: