From 49aaab45e55d3c592cf573c56e8d7a3fcd2c5e59 Mon Sep 17 00:00:00 2001 From: Frank Yan Date: Tue, 12 Apr 2011 20:54:26 -0700 Subject: [PATCH 001/509] Bug 502892 - disable non-functional html5 audio volume slider. r=dolske --- toolkit/content/widgets/videocontrols.xml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/toolkit/content/widgets/videocontrols.xml b/toolkit/content/widgets/videocontrols.xml index 6811f9b6d509..de2504ad7c3c 100644 --- a/toolkit/content/widgets/videocontrols.xml +++ b/toolkit/content/widgets/videocontrols.xml @@ -934,10 +934,12 @@ var self = this; this.muteButton.addEventListener("command", function() { self.toggleMute(); }, false); this.playButton.addEventListener("command", function() { self.togglePause(); }, false); - this.muteButton.addEventListener("mouseover", function(e) { self.onVolumeMouseInOut(e); }, false); - this.muteButton.addEventListener("mouseout", function(e) { self.onVolumeMouseInOut(e); }, false); - this.volumeStack.addEventListener("mouseover", function(e) { self.onVolumeMouseInOut(e); }, false); - this.volumeStack.addEventListener("mouseout", function(e) { self.onVolumeMouseInOut(e); }, false); + if (!this.isAudioOnly) { + this.muteButton.addEventListener("mouseover", function(e) { self.onVolumeMouseInOut(e); }, false); + this.muteButton.addEventListener("mouseout", function(e) { self.onVolumeMouseInOut(e); }, false); + this.volumeStack.addEventListener("mouseover", function(e) { self.onVolumeMouseInOut(e); }, false); + this.volumeStack.addEventListener("mouseout", function(e) { self.onVolumeMouseInOut(e); }, false); + } this.videocontrols.addEventListener("transitionend", function(e) { self.onTransitionEnd(e); }, false); From 703daa24142b9e6aeda1b290be320a0d03b2e9b8 Mon Sep 17 00:00:00 2001 From: Frank Yan Date: Tue, 12 Apr 2011 20:54:26 -0700 Subject: [PATCH 002/509] Bug 603646 - part 1: disable undo close tab when no browser window is active. r=dao --- browser/base/content/browser-sets.inc | 2 ++ browser/base/content/browser.xul | 2 ++ 2 files changed, 4 insertions(+) diff --git a/browser/base/content/browser-sets.inc b/browser/base/content/browser-sets.inc index ff0d083164c8..19a212a0774b 100644 --- a/browser/base/content/browser-sets.inc +++ b/browser/base/content/browser-sets.inc @@ -356,7 +356,9 @@ #endif +#ifdef FULL_BROWSER_WINDOW +#endif #ifdef XP_GNOME diff --git a/browser/base/content/browser.xul b/browser/base/content/browser.xul index 7788534ee5bd..2b395a7059a9 100644 --- a/browser/base/content/browser.xul +++ b/browser/base/content/browser.xul @@ -107,7 +107,9 @@ # All sets except for popupsets (commands, keys, stringbundles and broadcasters) *must* go into the # browser-sets.inc file for sharing with hiddenWindow.xul. +#define FULL_BROWSER_WINDOW #include browser-sets.inc +#undef FULL_BROWSER_WINDOW Date: Tue, 12 Apr 2011 23:33:01 -0700 Subject: [PATCH 003/509] Bug 641352 - Add nsHTMLTextAreaElement::IsValueEmpty() const. r=bz --- .../content/src/nsHTMLTextAreaElement.cpp | 30 ++++++++++++------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/content/html/content/src/nsHTMLTextAreaElement.cpp b/content/html/content/src/nsHTMLTextAreaElement.cpp index 1aae5adcc7b2..6271080e8fed 100644 --- a/content/html/content/src/nsHTMLTextAreaElement.cpp +++ b/content/html/content/src/nsHTMLTextAreaElement.cpp @@ -295,6 +295,13 @@ protected: * Get the mutable state of the element. */ PRBool IsMutable() const; + + /** + * Returns whether the current value is the empty string. + * + * @return whether the current value is the empty string. + */ + bool IsValueEmpty() const; }; @@ -1086,12 +1093,9 @@ nsHTMLTextAreaElement::IntrinsicState() const } if (HasAttr(kNameSpaceID_None, nsGkAtoms::placeholder) && - !nsContentUtils::IsFocusedContent((nsIContent*)(this))) { - nsAutoString value; - GetValueInternal(value, PR_TRUE); - if (value.IsEmpty()) { - state |= NS_EVENT_STATE_MOZ_PLACEHOLDER; - } + !nsContentUtils::IsFocusedContent((nsIContent*)(this)) && + IsValueEmpty()) { + state |= NS_EVENT_STATE_MOZ_PLACEHOLDER; } return state; @@ -1250,6 +1254,15 @@ nsHTMLTextAreaElement::IsMutable() const return (!HasAttr(kNameSpaceID_None, nsGkAtoms::readonly) && !IsDisabled()); } +bool +nsHTMLTextAreaElement::IsValueEmpty() const +{ + nsAutoString value; + GetValueInternal(value, PR_TRUE); + + return value.IsEmpty(); +} + // nsIConstraintValidation NS_IMETHODIMP @@ -1297,10 +1310,7 @@ nsHTMLTextAreaElement::IsValueMissing() const return PR_FALSE; } - nsAutoString value; - GetValueInternal(value, PR_TRUE); - - return value.IsEmpty(); + return IsValueEmpty(); } void From d22c04efbe25a7d8e7cd0e91d838fef312658c0f Mon Sep 17 00:00:00 2001 From: Mounir Lamouri Date: Tue, 12 Apr 2011 23:34:02 -0700 Subject: [PATCH 004/509] Bug 519592 - Attempt to fix intermittent failure in content/html/content/test/test_bug514856.html. r=ehsan --- .../html/content/test/bug514856_iframe.html | 2 +- content/html/content/test/test_bug514856.html | 46 +++++++++++-------- 2 files changed, 27 insertions(+), 21 deletions(-) diff --git a/content/html/content/test/bug514856_iframe.html b/content/html/content/test/bug514856_iframe.html index 2791923b2016..2abf9e91e24e 100644 --- a/content/html/content/test/bug514856_iframe.html +++ b/content/html/content/test/bug514856_iframe.html @@ -14,7 +14,7 @@ - diff --git a/content/html/content/test/test_bug514856.html b/content/html/content/test/test_bug514856.html index 7ce8462ff1c9..e917bfe01692 100644 --- a/content/html/content/test/test_bug514856.html +++ b/content/html/content/test/test_bug514856.html @@ -7,41 +7,45 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=514856 Test for Bug 514856 + - + Mozilla Bug 514856

-