Bug 598310 - Make "Work Offline" more discoverable in the app button menu for users who need it to recover from Firefox going offline automatically. r=gavin ui-r=faaborg a=blocking
authorDão Gottwald <dao@mozilla.com>
Fri, 24 Sep 2010 10:27:45 +0200
changeset 54616 9549708d2e9008bf57413df8e3811b495f37d4f6
parent 54615 b82884bf3be7fef484ec02a1261175b527abce57
child 54617 0c0e27537b72e2c98f6a65da0599997479d0a786
push id15956
push userdgottwald@mozilla.com
push dateFri, 24 Sep 2010 08:54:40 +0000
treeherdermozilla-central@9549708d2e90 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin, faaborg, blocking
bugs598310
milestone2.0b7pre
first release with
nightly linux32
9549708d2e90 / 4.0b7pre / 20100924030709 / files
nightly linux64
9549708d2e90 / 4.0b7pre / 20100924030706 / files
nightly mac
9549708d2e90 / 4.0b7pre / 20100924030716 / files
nightly win32
9549708d2e90 / 4.0b7pre / 20100924040732 / files
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
Bug 598310 - Make "Work Offline" more discoverable in the app button menu for users who need it to recover from Firefox going offline automatically. r=gavin ui-r=faaborg a=blocking
browser/base/content/browser.css
browser/base/content/browser.xul
--- a/browser/base/content/browser.css
+++ b/browser/base/content/browser.css
@@ -132,16 +132,20 @@ toolbar[mode="icons"] > #reload-button[d
 }
 
 .menuitem-iconic-tooltip,
 .menuitem-tooltip[type="checkbox"],
 .menuitem-tooltip[type="radio"] {
   -moz-binding: url("chrome://browser/content/urlbarBindings.xml#menuitem-iconic-tooltip");
 }
 
+#appmenu_offlineModeRecovery:not([checked=true]) {
+  display: none;
+}
+
 /* ::::: location bar ::::: */
 #urlbar {
   -moz-binding: url(chrome://browser/content/urlbarBindings.xml#urlbar);
 }
 
 #urlbar-progress {
   -moz-binding: url("chrome://global/content/bindings/progressmeter.xml#progressmeter");
 }
--- a/browser/base/content/browser.xul
+++ b/browser/base/content/browser.xul
@@ -484,16 +484,21 @@
           </hbox>
           <menuitem id="appmenu_privateBrowsing"
                     class="menuitem-iconic menuitem-iconic-tooltip"
                     label="&privateBrowsingCmd.start.label;"
                     startlabel="&privateBrowsingCmd.start.label;"
                     stoplabel="&privateBrowsingCmd.stop.label;"
                     command="Tools:PrivateBrowsing"
                     key="key_privatebrowsing"/>
+          <menuitem label="&goOfflineCmd.label;"
+                    id="appmenu_offlineModeRecovery"
+                    type="checkbox"
+                    observes="workOfflineMenuitemState"
+                    oncommand="BrowserOffline.toggleOfflineStatus();"/>
           <menuseparator class="appmenu-menuseparator"/>
           <hbox>
             <menuitem id="appmenu-edit-label"
                       label="&appMenuEdit.label;"
                       disabled="true"/>
             <toolbarbutton id="appmenu-cut"
                            class="appmenu-edit-button"
                            command="cmd_cut"