diff --git a/accessible/src/base/nsCoreUtils.cpp b/accessible/src/base/nsCoreUtils.cpp index 0a9f84f4973..602f2f4dcd0 100644 --- a/accessible/src/base/nsCoreUtils.cpp +++ b/accessible/src/base/nsCoreUtils.cpp @@ -23,11 +23,11 @@ #include "nsEventStateManager.h" #include "nsISelectionPrivate.h" #include "nsISelectionController.h" +#include "mozilla/dom/TouchEvent.h" #include "mozilla/MouseEvents.h" #include "mozilla/TouchEvents.h" #include "nsView.h" #include "nsGkAtoms.h" -#include "nsDOMTouchEvent.h" #include "nsComponentManagerUtils.h" @@ -141,7 +141,7 @@ nsCoreUtils::DispatchTouchEvent(uint32_t aEventType, int32_t aX, int32_t aY, nsIContent* aContent, nsIFrame* aFrame, nsIPresShell* aPresShell, nsIWidget* aRootWidget) { - if (!nsDOMTouchEvent::PrefEnabled()) + if (!dom::TouchEvent::PrefEnabled()) return; WidgetTouchEvent event(true, aEventType, aRootWidget); @@ -149,9 +149,8 @@ nsCoreUtils::DispatchTouchEvent(uint32_t aEventType, int32_t aX, int32_t aY, event.time = PR_IntervalNow(); // XXX: Touch has an identifier of -1 to hint that it is synthesized. - nsRefPtr t = - new mozilla::dom::Touch(-1, nsIntPoint(aX, aY), - nsIntPoint(1, 1), 0.0f, 1.0f); + nsRefPtr t = new dom::Touch(-1, nsIntPoint(aX, aY), + nsIntPoint(1, 1), 0.0f, 1.0f); t->SetTarget(aContent); event.touches.AppendElement(t); nsEventStatus status = nsEventStatus_eIgnore; diff --git a/accessible/src/generic/Accessible.cpp b/accessible/src/generic/Accessible.cpp index a9a35c44a3c..a525e7b9010 100644 --- a/accessible/src/generic/Accessible.cpp +++ b/accessible/src/generic/Accessible.cpp @@ -933,7 +933,6 @@ Accessible::GetBoundsRect(nsRect& aTotalBounds, nsIFrame** aBoundingFrame) if (canvasFrame) { *aBoundingFrame = canvasFrame; - nsPresContext* presContext = mDoc->PresContext(); aTotalBounds = *hitRegionRect; return; diff --git a/accessible/src/generic/HyperTextAccessible.cpp b/accessible/src/generic/HyperTextAccessible.cpp index feb57a7e94f..031a037f8dc 100644 --- a/accessible/src/generic/HyperTextAccessible.cpp +++ b/accessible/src/generic/HyperTextAccessible.cpp @@ -1791,7 +1791,6 @@ HyperTextAccessible::GetSpellTextAttribute(nsINode* aNode, return NS_OK; int32_t startHTOffset = 0, endHTOffset = 0; - nsresult rv = NS_OK; for (int32_t idx = 0; idx < rangeCount; idx++) { nsRange* range = domSel->GetRangeAt(idx); if (range->Collapsed()) diff --git a/browser/base/content/browser-sets.inc b/browser/base/content/browser-sets.inc index 68607ce9d28..21abe3eb6fb 100644 --- a/browser/base/content/browser-sets.inc +++ b/browser/base/content/browser-sets.inc @@ -50,6 +50,9 @@ +#ifdef XP_MACOSX + +#endif @@ -350,6 +353,9 @@ +#ifdef XP_MACOSX + +#endif diff --git a/browser/base/content/browser.xul b/browser/base/content/browser.xul index 3113cb8da72..64786cc40b3 100644 --- a/browser/base/content/browser.xul +++ b/browser/base/content/browser.xul @@ -973,7 +973,8 @@ - + diff --git a/browser/base/content/test/general/browser_bug537013.js b/browser/base/content/test/general/browser_bug537013.js index 4f8d0be6797..34e6dfbf8b0 100644 --- a/browser/base/content/test/general/browser_bug537013.js +++ b/browser/base/content/test/general/browser_bug537013.js @@ -11,6 +11,9 @@ let texts = [ "To err is human; to forgive is not company policy." ]; +let Clipboard = Cc["@mozilla.org/widget/clipboard;1"].getService(Ci.nsIClipboard); +let HasFindClipboard = Clipboard.supportsFindClipboard(); + function addTabWithText(aText, aCallback) { let newTab = gBrowser.addTab("data:text/html,

" + aText + "

"); tabs.push(newTab); @@ -19,6 +22,7 @@ function addTabWithText(aText, aCallback) { function setFindString(aString) { gFindBar.open(); + gFindBar._findField.focus(); gFindBar._findField.select(); EventUtils.sendString(aString); is(gFindBar._findField.value, aString, "Set the field correctly!"); @@ -61,7 +65,9 @@ function continueTests1() { // Confirm the first tab is still correct, ensure re-hiding works as expected gBrowser.selectedTab = tabs[0]; ok(!gFindBar.hidden, "First tab shows find bar!"); - is(gFindBar._findField.value, texts[0], "First tab persists find value!"); + // When the Find Clipboard is supported, this test not relevant. + if (!HasFindClipboard) + is(gFindBar._findField.value, texts[0], "First tab persists find value!"); ok(gFindBar.getElement("highlight").checked, "Highlight button state persists!"); @@ -94,8 +100,11 @@ function continueTests2() { ok(gFindBar.hidden, "Fourth tab doesn't show find bar!"); is(gFindBar, gBrowser.getFindBar(), "Find bar is right one!"); gFindBar.open(); - is(gFindBar._findField.value, texts[1], - "Fourth tab has second tab's find value!"); + // Disabled the following assertion due to intermittent failure on OSX 10.6 Debug. + if (!HasFindClipboard) { + is(gFindBar._findField.value, texts[1], + "Fourth tab has second tab's find value!"); + } newWindow = gBrowser.replaceTabWithWindow(tabs.pop()); whenDelayedStartupFinished(newWindow, checkNewWindow); @@ -104,8 +113,11 @@ function continueTests2() { // Test that findbar gets restored when a tab is moved to a new window. function checkNewWindow() { ok(!newWindow.gFindBar.hidden, "New window shows find bar!"); - is(newWindow.gFindBar._findField.value, texts[1], - "New window find bar has correct find value!"); + // Disabled the following assertion due to intermittent failure on OSX 10.6 Debug. + if (!HasFindClipboard) { + is(newWindow.gFindBar._findField.value, texts[1], + "New window find bar has correct find value!"); + } ok(!newWindow.gFindBar.getElement("find-next").disabled, "New window findbar has enabled buttons!"); newWindow.close(); diff --git a/browser/base/content/test/general/browser_bug567306.js b/browser/base/content/test/general/browser_bug567306.js index 1fa35efa851..f3507f66eea 100644 --- a/browser/base/content/test/general/browser_bug567306.js +++ b/browser/base/content/test/general/browser_bug567306.js @@ -2,7 +2,10 @@ * http://creativecommons.org/publicdomain/zero/1.0/ */ -let Ci = Components.interfaces; +const {Ci: interfaces, Cc: classes} = Components; + +let Clipboard = Cc["@mozilla.org/widget/clipboard;1"].getService(Ci.nsIClipboard); +let HasFindClipboard = Clipboard.supportsFindClipboard(); function test() { waitForExplicitFinish(); @@ -37,7 +40,10 @@ function onFocus(win) { let findBar = win.gFindBar; selectText(win.content); findBar.onFindCommand(); - is(findBar._findField.value, "Select Me", "Findbar is initialized with selection"); + // When the OS supports the Find Clipboard (OSX), the find field value is + // persisted across Fx sessions, thus not useful to test. + if (!HasFindClipboard) + is(findBar._findField.value, "Select Me", "Findbar is initialized with selection"); findBar.close(); win.close(); finish(); diff --git a/browser/components/customizableui/content/panelUI.inc.xul b/browser/components/customizableui/content/panelUI.inc.xul index 0093e363290..aecf46c3964 100644 --- a/browser/components/customizableui/content/panelUI.inc.xul +++ b/browser/components/customizableui/content/panelUI.inc.xul @@ -153,6 +153,11 @@ + + +