diff --git a/Makefile.in b/Makefile.in index 4eb5d26b9cce..0076ada21aaf 100644 --- a/Makefile.in +++ b/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = . +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/Makefile.in b/accessible/Makefile.in index ba8fcfc10345..022644d94c86 100644 --- a/accessible/Makefile.in +++ b/accessible/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = .. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/build/Makefile.in b/accessible/build/Makefile.in index 74444cc7699f..6eac32010fb2 100644 --- a/accessible/build/Makefile.in +++ b/accessible/build/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/public/Makefile.in b/accessible/public/Makefile.in index e721119b4432..36e92f5bbbfe 100644 --- a/accessible/public/Makefile.in +++ b/accessible/public/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/public/ia2/Makefile.in b/accessible/public/ia2/Makefile.in index 6f232fd89d6f..504c2c0077ca 100644 --- a/accessible/public/ia2/Makefile.in +++ b/accessible/public/ia2/Makefile.in @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/public/msaa/Makefile.in b/accessible/public/msaa/Makefile.in index 905dff2439d0..2055ad2fb039 100644 --- a/accessible/public/msaa/Makefile.in +++ b/accessible/public/msaa/Makefile.in @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/src/Makefile.in b/accessible/src/Makefile.in index 1902bf08f6d9..6ec39aa61b08 100644 --- a/accessible/src/Makefile.in +++ b/accessible/src/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/src/atk/Makefile.in b/accessible/src/atk/Makefile.in index 4968e5868314..abdcb3c3105e 100644 --- a/accessible/src/atk/Makefile.in +++ b/accessible/src/atk/Makefile.in @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/src/base/Makefile.in b/accessible/src/base/Makefile.in index ee7306e2a535..f74d2b0029b3 100644 --- a/accessible/src/base/Makefile.in +++ b/accessible/src/base/Makefile.in @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/src/base/StyleInfo.cpp b/accessible/src/base/StyleInfo.cpp index 14a203980ba4..74da80083da1 100644 --- a/accessible/src/base/StyleInfo.cpp +++ b/accessible/src/base/StyleInfo.cpp @@ -8,6 +8,7 @@ #include "mozilla/dom/Element.h" #include "nsComputedDOMStyle.h" +#include "nsIFrame.h" using namespace mozilla; using namespace mozilla::a11y; diff --git a/accessible/src/generic/BaseAccessibles.cpp b/accessible/src/generic/BaseAccessibles.cpp index aa24ee6f4bcb..80af31543fba 100644 --- a/accessible/src/generic/BaseAccessibles.cpp +++ b/accessible/src/generic/BaseAccessibles.cpp @@ -15,7 +15,6 @@ #include "nsGUIEvent.h" #include "nsILink.h" -#include "nsIFrame.h" #include "nsINameSpaceManager.h" #include "nsIURI.h" diff --git a/accessible/src/generic/Makefile.in b/accessible/src/generic/Makefile.in index ed36feddcf68..dd7a57d427d9 100644 --- a/accessible/src/generic/Makefile.in +++ b/accessible/src/generic/Makefile.in @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this file # You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/src/generic/RootAccessible.cpp b/accessible/src/generic/RootAccessible.cpp index 198971761b29..b4d50e8de845 100644 --- a/accessible/src/generic/RootAccessible.cpp +++ b/accessible/src/generic/RootAccessible.cpp @@ -26,24 +26,13 @@ #include "mozilla/dom/Element.h" #include "nsIAccessibleRelation.h" -#include "nsIDocShell.h" #include "nsIDocShellTreeItem.h" -#include "nsIDocShellTreeNode.h" #include "nsIDocShellTreeOwner.h" -#include "nsIDOMElement.h" -#include "nsIDOMEventListener.h" #include "nsIDOMEventTarget.h" -#include "nsIDOMHTMLAnchorElement.h" -#include "nsIDOMHTMLImageElement.h" -#include "nsIDOMHTMLInputElement.h" -#include "nsIDOMHTMLSelectElement.h" #include "nsIDOMDataContainerEvent.h" -#include "nsIDOMNSEvent.h" #include "nsIDOMXULMultSelectCntrlEl.h" -#include "nsIDOMXULPopupElement.h" #include "nsIDocument.h" #include "nsEventListenerManager.h" -#include "nsIFrame.h" #include "nsIInterfaceRequestorUtils.h" #include "nsIServiceManager.h" #include "nsPIDOMWindow.h" @@ -262,9 +251,9 @@ RootAccessible::DocumentActivated(DocAccessible* aDocument) NS_IMETHODIMP RootAccessible::HandleEvent(nsIDOMEvent* aDOMEvent) { - nsCOMPtr DOMNSEvent(do_QueryInterface(aDOMEvent)); + MOZ_ASSERT(aDOMEvent); nsCOMPtr DOMEventTarget; - DOMNSEvent->GetOriginalTarget(getter_AddRefs(DOMEventTarget)); + aDOMEvent->GetOriginalTarget(getter_AddRefs(DOMEventTarget)); nsCOMPtr origTargetNode(do_QueryInterface(DOMEventTarget)); if (!origTargetNode) return NS_OK; @@ -299,9 +288,9 @@ RootAccessible::HandleEvent(nsIDOMEvent* aDOMEvent) void RootAccessible::ProcessDOMEvent(nsIDOMEvent* aDOMEvent) { - nsCOMPtr DOMNSEvent(do_QueryInterface(aDOMEvent)); + MOZ_ASSERT(aDOMEvent); nsCOMPtr DOMEventTarget; - DOMNSEvent->GetOriginalTarget(getter_AddRefs(DOMEventTarget)); + aDOMEvent->GetOriginalTarget(getter_AddRefs(DOMEventTarget)); nsCOMPtr origTargetNode(do_QueryInterface(DOMEventTarget)); nsAutoString eventType; diff --git a/accessible/src/html/Makefile.in b/accessible/src/html/Makefile.in index 78c9d0b643dc..b5b76bdcc4f0 100644 --- a/accessible/src/html/Makefile.in +++ b/accessible/src/html/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/src/jsat/Makefile.in b/accessible/src/jsat/Makefile.in index 6b510e2d49a0..397021d1dfcf 100644 --- a/accessible/src/jsat/Makefile.in +++ b/accessible/src/jsat/Makefile.in @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/src/mac/Makefile.in b/accessible/src/mac/Makefile.in index 7deb2db4ed8d..8a55afedef4a 100644 --- a/accessible/src/mac/Makefile.in +++ b/accessible/src/mac/Makefile.in @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/src/msaa/DocAccessibleWrap.cpp b/accessible/src/msaa/DocAccessibleWrap.cpp index 9d3d54d55d40..88a69bd259a1 100644 --- a/accessible/src/msaa/DocAccessibleWrap.cpp +++ b/accessible/src/msaa/DocAccessibleWrap.cpp @@ -17,7 +17,6 @@ #include "nsIDocShell.h" #include "nsIDocShellTreeNode.h" -#include "nsIFrame.h" #include "nsIInterfaceRequestorUtils.h" #include "nsISelectionController.h" #include "nsIServiceManager.h" diff --git a/accessible/src/msaa/Makefile.in b/accessible/src/msaa/Makefile.in index 0b842bf6dd49..2722e474e29e 100644 --- a/accessible/src/msaa/Makefile.in +++ b/accessible/src/msaa/Makefile.in @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/src/msaa/nsAccessNodeWrap.cpp b/accessible/src/msaa/nsAccessNodeWrap.cpp index 9d24ac6c3e1c..b3059c252973 100644 --- a/accessible/src/msaa/nsAccessNodeWrap.cpp +++ b/accessible/src/msaa/nsAccessNodeWrap.cpp @@ -20,7 +20,6 @@ #include "nsAttrName.h" #include "nsIDOMNodeList.h" #include "nsIDOMHTMLElement.h" -#include "nsIFrame.h" #include "nsINameSpaceManager.h" #include "nsPIDOMWindow.h" #include "nsIServiceManager.h" diff --git a/accessible/src/other/Makefile.in b/accessible/src/other/Makefile.in index d76ad6465cd0..865676f29fcc 100644 --- a/accessible/src/other/Makefile.in +++ b/accessible/src/other/Makefile.in @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/src/windows/Makefile.in b/accessible/src/windows/Makefile.in index cf648a322f98..40e85e280f73 100644 --- a/accessible/src/windows/Makefile.in +++ b/accessible/src/windows/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/src/windows/uia/Makefile.in b/accessible/src/windows/uia/Makefile.in index cf1907668ffa..3208c05c0f77 100644 --- a/accessible/src/windows/uia/Makefile.in +++ b/accessible/src/windows/uia/Makefile.in @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/src/xforms/Makefile.in b/accessible/src/xforms/Makefile.in index 6c5131a6cbe2..dca5e3e91ab3 100644 --- a/accessible/src/xforms/Makefile.in +++ b/accessible/src/xforms/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/src/xpcom/Makefile.in b/accessible/src/xpcom/Makefile.in index d773db053092..74374da148e3 100644 --- a/accessible/src/xpcom/Makefile.in +++ b/accessible/src/xpcom/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/src/xul/Makefile.in b/accessible/src/xul/Makefile.in index 9685643f083d..0b0e22cac721 100644 --- a/accessible/src/xul/Makefile.in +++ b/accessible/src/xul/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/src/xul/XULTabAccessible.cpp b/accessible/src/xul/XULTabAccessible.cpp index e7d7a1dad4d0..89bb95470d49 100644 --- a/accessible/src/xul/XULTabAccessible.cpp +++ b/accessible/src/xul/XULTabAccessible.cpp @@ -13,7 +13,6 @@ // NOTE: alphabetically ordered #include "nsIAccessibleRelation.h" #include "nsIDocument.h" -#include "nsIFrame.h" #include "nsIDOMDocument.h" #include "nsIDOMXULSelectCntrlEl.h" #include "nsIDOMXULSelectCntrlItemEl.h" diff --git a/accessible/tests/Makefile.in b/accessible/tests/Makefile.in index ff16fb88c9ff..6622a085059e 100644 --- a/accessible/tests/Makefile.in +++ b/accessible/tests/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/tests/mochitest/Makefile.in b/accessible/tests/mochitest/Makefile.in index 7862e2dc5577..261a6ed51722 100644 --- a/accessible/tests/mochitest/Makefile.in +++ b/accessible/tests/mochitest/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/tests/mochitest/actions/Makefile.in b/accessible/tests/mochitest/actions/Makefile.in index bf0b092b921f..f421d1adb031 100644 --- a/accessible/tests/mochitest/actions/Makefile.in +++ b/accessible/tests/mochitest/actions/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/tests/mochitest/attributes/Makefile.in b/accessible/tests/mochitest/attributes/Makefile.in index 3ca209f63983..76f179a7350f 100644 --- a/accessible/tests/mochitest/attributes/Makefile.in +++ b/accessible/tests/mochitest/attributes/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/tests/mochitest/bounds/Makefile.in b/accessible/tests/mochitest/bounds/Makefile.in index e1fabc591af3..42d8b07631e3 100644 --- a/accessible/tests/mochitest/bounds/Makefile.in +++ b/accessible/tests/mochitest/bounds/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/tests/mochitest/editabletext/Makefile.in b/accessible/tests/mochitest/editabletext/Makefile.in index 9d1898a85433..1e3507203044 100644 --- a/accessible/tests/mochitest/editabletext/Makefile.in +++ b/accessible/tests/mochitest/editabletext/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/tests/mochitest/elm/Makefile.in b/accessible/tests/mochitest/elm/Makefile.in index 0dce10af5dd5..76c5eb5b11d5 100644 --- a/accessible/tests/mochitest/elm/Makefile.in +++ b/accessible/tests/mochitest/elm/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/tests/mochitest/events/Makefile.in b/accessible/tests/mochitest/events/Makefile.in index cdb67c46046e..06b3e408c85b 100644 --- a/accessible/tests/mochitest/events/Makefile.in +++ b/accessible/tests/mochitest/events/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/tests/mochitest/focus/Makefile.in b/accessible/tests/mochitest/focus/Makefile.in index 558a9aacedab..1ccaabbc6352 100644 --- a/accessible/tests/mochitest/focus/Makefile.in +++ b/accessible/tests/mochitest/focus/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/tests/mochitest/hittest/Makefile.in b/accessible/tests/mochitest/hittest/Makefile.in index 51679ad187da..997a2169c1cd 100644 --- a/accessible/tests/mochitest/hittest/Makefile.in +++ b/accessible/tests/mochitest/hittest/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/tests/mochitest/hyperlink/Makefile.in b/accessible/tests/mochitest/hyperlink/Makefile.in index 884be06ab714..96b32ee9a799 100644 --- a/accessible/tests/mochitest/hyperlink/Makefile.in +++ b/accessible/tests/mochitest/hyperlink/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/tests/mochitest/hypertext/Makefile.in b/accessible/tests/mochitest/hypertext/Makefile.in index 43a4a53b1779..9821aab7779d 100644 --- a/accessible/tests/mochitest/hypertext/Makefile.in +++ b/accessible/tests/mochitest/hypertext/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/tests/mochitest/name/Makefile.in b/accessible/tests/mochitest/name/Makefile.in index abe9bb79d2fa..79d4e869b0ee 100644 --- a/accessible/tests/mochitest/name/Makefile.in +++ b/accessible/tests/mochitest/name/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/tests/mochitest/pivot/Makefile.in b/accessible/tests/mochitest/pivot/Makefile.in index a9ae640f71ba..cb9c01b7f767 100644 --- a/accessible/tests/mochitest/pivot/Makefile.in +++ b/accessible/tests/mochitest/pivot/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/tests/mochitest/relations/Makefile.in b/accessible/tests/mochitest/relations/Makefile.in index 0e5a0ed3582c..29dd608b6a6b 100644 --- a/accessible/tests/mochitest/relations/Makefile.in +++ b/accessible/tests/mochitest/relations/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/tests/mochitest/role/Makefile.in b/accessible/tests/mochitest/role/Makefile.in index c6182e8238f2..89e70f0c5f8a 100644 --- a/accessible/tests/mochitest/role/Makefile.in +++ b/accessible/tests/mochitest/role/Makefile.in @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/tests/mochitest/selectable/Makefile.in b/accessible/tests/mochitest/selectable/Makefile.in index d6d9436d36af..55014433d110 100644 --- a/accessible/tests/mochitest/selectable/Makefile.in +++ b/accessible/tests/mochitest/selectable/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/tests/mochitest/states/Makefile.in b/accessible/tests/mochitest/states/Makefile.in index 082d4783ec48..14f3b2e4bff3 100644 --- a/accessible/tests/mochitest/states/Makefile.in +++ b/accessible/tests/mochitest/states/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/tests/mochitest/table/Makefile.in b/accessible/tests/mochitest/table/Makefile.in index f2d00547e222..92d17a9c52d5 100644 --- a/accessible/tests/mochitest/table/Makefile.in +++ b/accessible/tests/mochitest/table/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/tests/mochitest/text/Makefile.in b/accessible/tests/mochitest/text/Makefile.in index 198b86134913..f130fc3d3b87 100644 --- a/accessible/tests/mochitest/text/Makefile.in +++ b/accessible/tests/mochitest/text/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/tests/mochitest/textcaret/Makefile.in b/accessible/tests/mochitest/textcaret/Makefile.in index ca65c9ad67b4..3aa8ac38cc10 100644 --- a/accessible/tests/mochitest/textcaret/Makefile.in +++ b/accessible/tests/mochitest/textcaret/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/tests/mochitest/textselection/Makefile.in b/accessible/tests/mochitest/textselection/Makefile.in index 3eea1b9068b2..eb85e634c2f1 100644 --- a/accessible/tests/mochitest/textselection/Makefile.in +++ b/accessible/tests/mochitest/textselection/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/tests/mochitest/tree/Makefile.in b/accessible/tests/mochitest/tree/Makefile.in index 2fd113df3940..2662891bd00c 100644 --- a/accessible/tests/mochitest/tree/Makefile.in +++ b/accessible/tests/mochitest/tree/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/tests/mochitest/treeupdate/Makefile.in b/accessible/tests/mochitest/treeupdate/Makefile.in index fb8d97ac3d57..849c699eeac7 100644 --- a/accessible/tests/mochitest/treeupdate/Makefile.in +++ b/accessible/tests/mochitest/treeupdate/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/accessible/tests/mochitest/value/Makefile.in b/accessible/tests/mochitest/value/Makefile.in index 9e827c4bf84f..6af9fcc2c677 100644 --- a/accessible/tests/mochitest/value/Makefile.in +++ b/accessible/tests/mochitest/value/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/aclocal.m4 b/aclocal.m4 index c1e6c07bd7fa..cd4dfea19a10 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1,8 +1,9 @@ dnl dnl Local autoconf macros used with mozilla dnl The contents of this file are under the Public Domain. -dnl +dnl +builtin(include, build/autoconf/config.status.m4)dnl builtin(include, build/autoconf/toolchain.m4)dnl builtin(include, build/autoconf/ccache.m4)dnl builtin(include, build/autoconf/nspr.m4)dnl @@ -22,6 +23,7 @@ builtin(include, build/autoconf/expandlibs.m4)dnl builtin(include, build/autoconf/arch.m4)dnl builtin(include, build/autoconf/android.m4)dnl builtin(include, build/autoconf/zlib.m4)dnl +builtin(include, build/autoconf/linux.m4)dnl MOZ_PROG_CHECKMSYS() diff --git a/allmakefiles.sh b/allmakefiles.sh index 5e21b10d7ed7..c2e6b3b3e2eb 100755 --- a/allmakefiles.sh +++ b/allmakefiles.sh @@ -25,6 +25,7 @@ fi # Common makefiles used by everyone add_makefiles " +mozilla-config.h Makefile build/Makefile build/pgo/Makefile @@ -121,7 +122,6 @@ fi if [ "$ENABLE_TESTS" ]; then add_makefiles " - build/autoconf/test/Makefile config/makefiles/test/Makefile config/tests/makefiles/autodeps/Makefile config/tests/src-simple/Makefile diff --git a/b2g/Makefile.in b/b2g/Makefile.in index 6fa4ddc43701..7d17e123e1bd 100644 --- a/b2g/Makefile.in +++ b/b2g/Makefile.in @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = .. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/b2g/app/Makefile.in b/b2g/app/Makefile.in index 75f47480c8d0..c7b26e6a55a6 100644 --- a/b2g/app/Makefile.in +++ b/b2g/app/Makefile.in @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/b2g/app/b2g.js b/b2g/app/b2g.js index 9a5e63a712c2..7e33bcaa1cf7 100644 --- a/b2g/app/b2g.js +++ b/b2g/app/b2g.js @@ -68,7 +68,6 @@ pref("mozilla.widget.force-24bpp", true); pref("mozilla.widget.use-buffer-pixmap", true); pref("mozilla.widget.disable-native-theme", true); pref("layout.reflow.synthMouseMove", false); -pref("dom.send_after_paint_to_content", true); /* download manager (don't show the window or alert) */ pref("browser.download.useDownloadDir", true); @@ -481,3 +480,18 @@ pref("javascript.options.mem.log", true); // Increase mark slice time from 10ms to 30ms pref("javascript.options.mem.gc_incremental_slice_ms", 30); + +// Show/Hide scrollbars when active/inactive +pref("ui.showHideScrollbars", 1); + +// Enable the ProcessPriorityManager, and give processes with no visible +// documents a 1s grace period before they're eligible to be marked as +// background. +pref("dom.ipc.processPriorityManager.enabled", true); +pref("dom.ipc.processPriorityManager.gracePeriodMS", 1000); +pref("hal.processPriorityManager.gonk.masterOomAdjust", 0); +pref("hal.processPriorityManager.gonk.foregroundOomAdjust", 1); +pref("hal.processPriorityManager.gonk.backgroundOomAdjust", 2); +pref("hal.processPriorityManager.gonk.masterNice", -1); +pref("hal.processPriorityManager.gonk.foregroundNice", 0); +pref("hal.processPriorityManager.gonk.backgroundNice", 10); diff --git a/b2g/branding/official/Makefile.in b/b2g/branding/official/Makefile.in index 62c1937e4648..35ffc39b103d 100644 --- a/b2g/branding/official/Makefile.in +++ b/b2g/branding/official/Makefile.in @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/b2g/branding/official/content/Makefile.in b/b2g/branding/official/content/Makefile.in index d904db48d518..44788ba11c4c 100644 --- a/b2g/branding/official/content/Makefile.in +++ b/b2g/branding/official/content/Makefile.in @@ -5,7 +5,7 @@ # Branding Makefile # - jars chrome artwork -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/b2g/branding/official/locales/Makefile.in b/b2g/branding/official/locales/Makefile.in index 864636cce8ed..2839d474fe52 100644 --- a/b2g/branding/official/locales/Makefile.in +++ b/b2g/branding/official/locales/Makefile.in @@ -2,11 +2,11 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ -relativesrcdir = b2g/branding/official/locales +relativesrcdir = @relativesrcdir@ include $(DEPTH)/config/autoconf.mk diff --git a/b2g/branding/unofficial/Makefile.in b/b2g/branding/unofficial/Makefile.in index 62c1937e4648..35ffc39b103d 100644 --- a/b2g/branding/unofficial/Makefile.in +++ b/b2g/branding/unofficial/Makefile.in @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/b2g/branding/unofficial/content/Makefile.in b/b2g/branding/unofficial/content/Makefile.in index 3dedb72df1e4..7ffd29e10afe 100644 --- a/b2g/branding/unofficial/content/Makefile.in +++ b/b2g/branding/unofficial/content/Makefile.in @@ -5,7 +5,7 @@ # Branding Makefile # - jars chrome artwork -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/b2g/branding/unofficial/locales/Makefile.in b/b2g/branding/unofficial/locales/Makefile.in index 002c6498d0ce..2839d474fe52 100644 --- a/b2g/branding/unofficial/locales/Makefile.in +++ b/b2g/branding/unofficial/locales/Makefile.in @@ -2,11 +2,11 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ -relativesrcdir = b2g/branding/unofficial/locales +relativesrcdir = @relativesrcdir@ include $(DEPTH)/config/autoconf.mk diff --git a/b2g/chrome/Makefile.in b/b2g/chrome/Makefile.in index bdca6afdec9a..d816fe52e224 100644 --- a/b2g/chrome/Makefile.in +++ b/b2g/chrome/Makefile.in @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/b2g/chrome/content/content.css b/b2g/chrome/content/content.css index 9a045cdbd34b..77dd90a4dfe4 100644 --- a/b2g/chrome/content/content.css +++ b/b2g/chrome/content/content.css @@ -11,23 +11,19 @@ xul|window xul|scrollbar { } html xul|scrollbar { - display: block; -} - -xul|scrollbar[orient="vertical"] { -moz-appearance: none !important; position: relative; - margin-left: -8px; - min-width: 8px; - max-width: 8px; background-color: transparent !important; background-image: none !important; border: 0px solid transparent !important; + z-index: 2147483647; + opacity: 1; } -xul|scrollbar[orient="vertical"]:-moz-locale-dir(rtl) { - margin-left: 2px; - margin-right: -10px; +xul|scrollbar[orient="vertical"] { + -moz-margin-start: -8px; + min-width: 8px; + max-width: 8px; } xul|scrollbar[orient="vertical"] xul|thumb { @@ -36,14 +32,9 @@ xul|scrollbar[orient="vertical"] xul|thumb { } xul|scrollbar[orient="horizontal"] { - -moz-appearance: none !important; - position: relative; + margin-top: -8px; min-height: 8px; max-height: 8px; - margin-top: -8px; - background-color: transparent !important; - background-image: none !important; - border: 0px solid transparent !important; } xul|scrollbar[orient="horizontal"] xul|thumb { @@ -51,9 +42,10 @@ xul|scrollbar[orient="horizontal"] xul|thumb { min-height: 6px !important; } -xul|scrollbox { - overflow-y: scroll; - overflow-x: scroll; +xul|scrollbar:not([active="true"]), +xul|scrollbar[disabled] { + opacity: 0; + -moz-transition: opacity 1s ease; } xul|scrollbarbutton { diff --git a/b2g/components/Makefile.in b/b2g/components/Makefile.in index 12b27ae65028..f06178a7f648 100644 --- a/b2g/components/Makefile.in +++ b/b2g/components/Makefile.in @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/b2g/installer/Makefile.in b/b2g/installer/Makefile.in index 67a8111e735b..9bb1de88f527 100644 --- a/b2g/installer/Makefile.in +++ b/b2g/installer/Makefile.in @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/b2g/installer/package-manifest.in b/b2g/installer/package-manifest.in index 4a0cdd2d8b0f..097717e73e5a 100644 --- a/b2g/installer/package-manifest.in +++ b/b2g/installer/package-manifest.in @@ -686,3 +686,7 @@ bin/components/@DLL_PREFIX@nkgnomevfs@DLL_SUFFIX@ @BINPATH@/components/ActivitiesGlue.js @BINPATH@/components/ProcessGlobal.js @BINPATH@/components/ContentHandler.js + +#ifdef XP_MACOSX +@BINPATH@/@DLL_PREFIX@plugin_child_interpose@DLL_SUFFIX@ +#endif diff --git a/b2g/locales/Makefile.in b/b2g/locales/Makefile.in index 1f069a53c28b..54428e41bc40 100644 --- a/b2g/locales/Makefile.in +++ b/b2g/locales/Makefile.in @@ -3,11 +3,11 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ -relativesrcdir = b2g/locales +relativesrcdir = @relativesrcdir@ include $(DEPTH)/config/autoconf.mk diff --git a/browser/Makefile.in b/browser/Makefile.in index d3d2e3bea65b..0f8dddbf2870 100644 --- a/browser/Makefile.in +++ b/browser/Makefile.in @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = .. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/browser/app/Makefile.in b/browser/app/Makefile.in index f57c7a2fa8a9..0d3ab5e4af25 100644 --- a/browser/app/Makefile.in +++ b/browser/app/Makefile.in @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/browser/app/blocklist.xml b/browser/app/blocklist.xml index 06e39b889cc2..e94fb3494a92 100644 --- a/browser/app/blocklist.xml +++ b/browser/app/blocklist.xml @@ -1,5 +1,5 @@ - + @@ -299,6 +299,10 @@ + + + + @@ -415,6 +419,9 @@ + + + diff --git a/browser/app/profile/extensions/Makefile.in b/browser/app/profile/extensions/Makefile.in index 0cf924535410..fb9a5d1c9bb6 100644 --- a/browser/app/profile/extensions/Makefile.in +++ b/browser/app/profile/extensions/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/browser/app/profile/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/Makefile.in b/browser/app/profile/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/Makefile.in index 6a31f74128d7..9f245b98b9ab 100644 --- a/browser/app/profile/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/Makefile.in +++ b/browser/app/profile/extensions/{972ce4c6-7e08-4474-a285-3208198ce6fd}/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../../../../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/browser/base/Makefile.in b/browser/base/Makefile.in index 7ee8843299b2..ff343c440eed 100644 --- a/browser/base/Makefile.in +++ b/browser/base/Makefile.in @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -DEPTH = ../.. +DEPTH = @DEPTH@ topsrcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ diff --git a/browser/base/content/browser-social.js b/browser/base/content/browser-social.js index 078e607c8dc7..5fa88f5c3b1e 100644 --- a/browser/base/content/browser-social.js +++ b/browser/base/content/browser-social.js @@ -406,6 +406,13 @@ var SocialSidebar = { return Services.prefs.getBoolPref("social.sidebar.open"); }, + dispatchEvent: function(aType, aDetail) { + let sbrowser = document.getElementById("social-sidebar-browser"); + let evt = sbrowser.contentDocument.createEvent("CustomEvent"); + evt.initCustomEvent(aType, true, true, aDetail ? aDetail : {}); + sbrowser.contentDocument.documentElement.dispatchEvent(evt); + }, + updateSidebar: function SocialSidebar_updateSidebar() { // Hide the toggle menu item if the sidebar cannot appear let command = document.getElementById("Social:ToggleSidebar"); @@ -418,17 +425,29 @@ var SocialSidebar = { broadcaster.hidden = hideSidebar; command.setAttribute("checked", !hideSidebar); - // If the sidebar is hidden, unload its document - // XXX this results in a poor UX, we should revisit let sbrowser = document.getElementById("social-sidebar-browser"); - if (broadcaster.hidden) { - sbrowser.removeAttribute("origin"); - sbrowser.setAttribute("src", "about:blank"); - return; + if (hideSidebar) { + this.dispatchEvent("sidebarhide"); + // If we're disabled, unload the sidebar content + if (!this.canShow) { + sbrowser.removeAttribute("origin"); + sbrowser.setAttribute("src", "about:blank"); + } + } else { + // Make sure the right sidebar URL is loaded + if (sbrowser.getAttribute("origin") != Social.provider.origin) { + sbrowser.setAttribute("origin", Social.provider.origin); + sbrowser.setAttribute("src", Social.provider.sidebarURL); + sbrowser.addEventListener("load", function sidebarOnShow() { + sbrowser.removeEventListener("load", sidebarOnShow); + // let load finish, then fire our event + setTimeout(function () { + SocialSidebar.dispatchEvent("sidebarshow"); + }, 0); + }); + } else { + this.dispatchEvent("sidebarshow"); + } } - - // Load the sidebar document - sbrowser.setAttribute("origin", Social.provider.origin); - sbrowser.setAttribute("src", Social.provider.sidebarURL); } } diff --git a/browser/base/content/browser.xul b/browser/base/content/browser.xul index 76fe11d488fa..94b3ffcb1259 100644 --- a/browser/base/content/browser.xul +++ b/browser/base/content/browser.xul @@ -658,6 +658,7 @@