diff --git a/content/shared/public/nsXULAtomList.h b/content/shared/public/nsXULAtomList.h
index 5bbc881536dc..fda597c811d1 100644
--- a/content/shared/public/nsXULAtomList.h
+++ b/content/shared/public/nsXULAtomList.h
@@ -296,3 +296,4 @@ XUL_ATOM(properties, "properties")
XUL_ATOM(sort, "sort")
XUL_ATOM(sortDirection, "sortDirection")
XUL_ATOM(sortActive, "sortActive")
+XUL_ATOM(selectedIndex, "selectedIndex")
diff --git a/editor/ui/composer/content/editor.js b/editor/ui/composer/content/editor.js
index e4b74b72fb3b..d35cbe44f2a6 100644
--- a/editor/ui/composer/content/editor.js
+++ b/editor/ui/composer/content/editor.js
@@ -1337,7 +1337,7 @@ function SetDisplayMode(mode)
if (mode == DisplayModeSource)
{
// Switch to the sourceWindow (second in the deck)
- gContentWindowDeck.setAttribute("index","1");
+ gContentWindowDeck.setAttribute("selectedIndex","1");
//Hide the formatting toolbar if not already hidden
gFormatToolbarHidden = gFormatToolbar.getAttribute("hidden");
@@ -1351,7 +1351,7 @@ function SetDisplayMode(mode)
else
{
// Switch to the normal editor (first in the deck)
- gContentWindowDeck.setAttribute("index","0");
+ gContentWindowDeck.setAttribute("selectedIndex","0");
// Restore menus and toolbars
if (gFormatToolbarHidden != "true")
diff --git a/editor/ui/composer/content/editor.xul b/editor/ui/composer/content/editor.xul
index f40655551edf..8b458fcf4d27 100644
--- a/editor/ui/composer/content/editor.xul
+++ b/editor/ui/composer/content/editor.xul
@@ -237,7 +237,7 @@
-
+
+ (function() { document.documentElement.rewind(); })
+ (function() { document.documentElement.advance(); })
+ (function() { document.documentElement.advance(); })
+ (function() { document.documentElement.cancel(); })
+
+ (function(event) {
+ if (document.documentElement.cancel())
+ event.preventDefault();
+ })
-
- // see bug 63370 for details
- var localeService = Components.classes["@mozilla.org/intl/nslocaleservice;1"]
- .getService(Components.interfaces.nsILocaleService);
- var stringBundleService = Components.classes["@mozilla.org/intl/stringbundle;1"].getService(Components.interfaces.nsIStringBundleService);
- var bundleURL = "chrome://global-platform/locale/wizard.properties";
- this._bundle = stringBundleService.createBundle(bundleURL, localeService.GetApplicationLocale());
-
- // get anonymous content references
- this._wizardHeader = document.getAnonymousElementByAttribute(this, "anonid", "Header");
- this._wizardButtons = document.getAnonymousElementByAttribute(this, "anonid", "Buttons");
- this._deck = document.getAnonymousElementByAttribute(this, "anonid", "Deck");
-
- this.initWizardButton("back");
- this.initWizardButton("next");
- this.initWizardButton("finish");
- this.initWizardButton("cancel");
-
- this.initPages();
-
- // get wizard event handlers
- var back = this.getAttribute("onwizardback");
- if (back)
- this._onBack = new Function("wizard", back);
- var next = this.getAttribute("onwizardnext");
- if (next)
- this._onNext = new Function("wizard", next);
- var cancel = this.getAttribute("onwizardcancel");
- if (cancel)
- this._onCancel = new Function("wizard", cancel);
- var finish = this.getAttribute("onwizardfinish");
- if (finish)
- this._onFinish = new Function("wizard", finish);
-
- window.addEventListener("close", this._cancelFunc, false);
-
- this.pageCount = this.childNodes.length;
- this.advance(this.childNodes[0].pageid);
- ]]>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ // see bug 63370 for details
+ var localeService = Components.classes["@mozilla.org/intl/nslocaleservice;1"]
+ .getService(Components.interfaces.nsILocaleService);
+ var stringBundleService = Components.classes["@mozilla.org/intl/stringbundle;1"].getService(Components.interfaces.nsIStringBundleService);
+ var bundleURL = "chrome://global-platform/locale/wizard.properties";
+ this._bundle = stringBundleService.createBundle(bundleURL, localeService.GetApplicationLocale());
+
+ // get anonymous content references
+ this._wizardHeader = document.getAnonymousElementByAttribute(this, "anonid", "Header");
+ this._wizardButtons = document.getAnonymousElementByAttribute(this, "anonid", "Buttons");
+ this._deck = document.getAnonymousElementByAttribute(this, "anonid", "Deck");
+
+ this._initWizardButton("back");
+ this._initWizardButton("next");
+ this._initWizardButton("finish");
+ this._initWizardButton("cancel");
+
+ this._initPages();
+
+ window.addEventListener("close", this._closeHandler, false);
+
+ this.pageCount = this.childNodes.length;
+ this.advance(this.childNodes[0].pageid);
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
@@ -318,38 +329,6 @@
-
-
-
-
-
-
-
-
-
-
-
@@ -357,8 +336,8 @@
@@ -371,12 +350,12 @@
-
+
-
-
+
+
-
+
@@ -389,9 +368,9 @@
@@ -404,7 +383,7 @@
@@ -421,17 +400,17 @@
-
-
+
+
-
+
-
+
-
+
diff --git a/xpfe/global/resources/content/xul.css b/xpfe/global/resources/content/xul.css
index 456d7e38086b..f78661054b9f 100644
--- a/xpfe/global/resources/content/xul.css
+++ b/xpfe/global/resources/content/xul.css
@@ -66,9 +66,10 @@ radiogroup {
-moz-user-focus: normal;
}
-/******** window ******/
+/******** window & page ******/
-window {
+window,
+page {
overflow: hidden;
}
@@ -272,6 +273,10 @@ tooltip {
-moz-binding: url("chrome://global/content/bindings/popup.xml#tooltips");
}
+.titletip {
+ -moz-binding: url("chrome://global/content/bindings/outliner.xml#titletip");
+}
+
/********** floating popups **********/
titlebar {
@@ -424,6 +429,7 @@ outlinercol[hidden="true"] {
deck {
display: -moz-deck;
+ -moz-binding: url("chrome://global/content/bindings/general.xml#deck");
}
stack, bulletinboard {