summaryrefslogtreecommitdiffstats
path: root/toolkit
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/content/jar.mn2
-rw-r--r--toolkit/content/widgets/popup.xml13
-rw-r--r--toolkit/content/xul.css9
-rwxr-xr-xtoolkit/mozapps/installer/windows/nsis/common.nsh35
4 files changed, 30 insertions, 29 deletions
diff --git a/toolkit/content/jar.mn b/toolkit/content/jar.mn
index 8b7b35b61..d79403605 100644
--- a/toolkit/content/jar.mn
+++ b/toolkit/content/jar.mn
@@ -96,7 +96,7 @@ toolkit.jar:
content/global/bindings/menulist.xml (widgets/menulist.xml)
content/global/bindings/notification.xml (widgets/notification.xml)
content/global/bindings/numberbox.xml (widgets/numberbox.xml)
- content/global/bindings/popup.xml (widgets/popup.xml)
+* content/global/bindings/popup.xml (widgets/popup.xml)
* content/global/bindings/preferences.xml (widgets/preferences.xml)
content/global/bindings/progressmeter.xml (widgets/progressmeter.xml)
content/global/bindings/radio.xml (widgets/radio.xml)
diff --git a/toolkit/content/widgets/popup.xml b/toolkit/content/widgets/popup.xml
index bb1a5eeee..c8a395c40 100644
--- a/toolkit/content/widgets/popup.xml
+++ b/toolkit/content/widgets/popup.xml
@@ -25,8 +25,21 @@
</getter>
</property>
+#ifdef MOZ_WIDGET_GTK
+ <property name="state" readonly="true">
+ <getter>
+ <![CDATA[
+ if (this.hasAttribute('_moz-nativemenupopupstate'))
+ return this.getAttribute('_moz-nativemenupopupstate');
+ else
+ return this.popupBoxObject.popupState;
+ ]]>
+ </getter>
+ </property>
+#else
<property name="state" readonly="true"
onget="return this.popupBoxObject.popupState"/>
+#endif
<property name="triggerNode" readonly="true"
onget="return this.popupBoxObject.triggerNode"/>
diff --git a/toolkit/content/xul.css b/toolkit/content/xul.css
index 24a6713f9..0aa0d3a21 100644
--- a/toolkit/content/xul.css
+++ b/toolkit/content/xul.css
@@ -307,6 +307,15 @@ toolbar[type="menubar"][autohide="true"][inactive="true"]:not([customizing="true
}
%endif
+%ifdef MOZ_WIDGET_GTK
+window[shellshowingmenubar="true"] menubar,
+window[shellshowingmenubar="true"]
+toolbar[type="menubar"]:not([customizing="true"]) {
+ /* If a system-wide global menubar is in use, hide the XUL menubar. */
+ display: none !important;
+}
+%endif
+
toolbarseparator {
-moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbardecoration");
}
diff --git a/toolkit/mozapps/installer/windows/nsis/common.nsh b/toolkit/mozapps/installer/windows/nsis/common.nsh
index 57a25df9d..ed15a09f5 100755
--- a/toolkit/mozapps/installer/windows/nsis/common.nsh
+++ b/toolkit/mozapps/installer/windows/nsis/common.nsh
@@ -5120,6 +5120,9 @@
${GetParameters} $R8
+ ; Require elevation if the user can elevate
+ ${ElevateUAC}
+
${If} $R8 != ""
; Default install type
StrCpy $InstallType ${INSTALLTYPE_BASIC}
@@ -5172,28 +5175,14 @@
FileClose $R5
Delete $R6
${If} ${Errors}
- ; Attempt to elevate and then try again.
- ${ElevateUAC}
- GetTempFileName $R6 "$INSTDIR"
- FileOpen $R5 "$R6" w
- FileWrite $R5 "Write Access Test"
- FileClose $R5
- Delete $R6
- ${If} ${Errors}
- ; Nothing initialized so no need to call OnEndCommon
- Quit
- ${EndIf}
+ ; Nothing initialized so no need to call OnEndCommon
+ Quit
${EndIf}
${Else}
CreateDirectory "$INSTDIR"
${If} ${Errors}
- ; Attempt to elevate and then try again.
- ${ElevateUAC}
- CreateDirectory "$INSTDIR"
- ${If} ${Errors}
- ; Nothing initialized so no need to call OnEndCommon
- Quit
- ${EndIf}
+ ; Nothing initialized so no need to call OnEndCommon
+ Quit
${EndIf}
${EndIf}
@@ -5225,20 +5214,10 @@
${EndIf}
!endif
${EndIf}
- ${Else}
- ; If this isn't an INI install, we need to try to elevate now.
- ; We'll check the user's permission level later on to determine the
- ; default install path (which will be the real install path for /S).
- ; If an INI file is used, we try to elevate down that path when needed.
- ${ElevateUAC}
${EndUnless}
${EndIf}
ClearErrors
- ${IfNot} ${Silent}
- ${ElevateUAC}
- ${EndIf}
-
Pop $R5
Pop $R6
Pop $R7