Bug 1284754 - modify typo error for the event openMediaWithExternalApp. r=jwwang
authorAlastor Wu <alwu@mozilla.com>
Wed, 06 Jul 2016 15:07:21 +0800
changeset 303797 83088b5375ae608ced05b3fb520ee86e1226341e
parent 303796 41313945285b38b498f6fe8eeef83dc98baa1c47
child 303798 a4abd7b926c7b248b5680191dbf6231fe7944a34
push id30458
push useralwu@mozilla.com
push dateWed, 06 Jul 2016 07:09:47 +0000
treeherderautoland@83088b5375ae [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwwang
bugs1284754
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1284754 - modify typo error for the event openMediaWithExternalApp. r=jwwang MozReview-Commit-ID: 1WeniGeQlqa
dom/html/HTMLMediaElement.cpp
mobile/android/chrome/content/browser.js
--- a/dom/html/HTMLMediaElement.cpp
+++ b/dom/html/HTMLMediaElement.cpp
@@ -5862,17 +5862,17 @@ HTMLMediaElement::OpenUnsupportedMediaWi
   // If media doesn't start playing, we don't need to open it.
   if (mPaused) {
     return;
   }
 
   LOG(LogLevel::Debug, ("Open unsupported type \'%s\' with external apps.",
       mMimeType.get()));
   nsContentUtils::DispatchTrustedEvent(OwnerDoc(), static_cast<nsIContent*>(this),
-                                       NS_LITERAL_STRING("OpenMediaWithExtenalApp"),
+                                       NS_LITERAL_STRING("OpenMediaWithExternalApp"),
                                        true,
                                        true);
 }
 
 static const char* VisibilityString(Visibility aVisibility) {
   switch(aVisibility) {
     case Visibility::UNTRACKED: {
       return "UNTRACKED";
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -4688,17 +4688,17 @@ var BrowserEventHandler = {
       Services.obs.addObserver(this, "dom-touch-listener-added", false);
       BrowserApp.deck.addEventListener("touchstart", this, true);
     } else {
       BrowserApp.deck.addEventListener("touchend", this, true);
     }
 
     BrowserApp.deck.addEventListener("DOMUpdatePageReport", PopupBlockerObserver.onUpdatePageReport, false);
     BrowserApp.deck.addEventListener("MozMouseHittest", this, true);
-    BrowserApp.deck.addEventListener("OpenMediaWithExtenalApp", this, true);
+    BrowserApp.deck.addEventListener("OpenMediaWithExternalApp", this, true);
 
     InitLater(() => BrowserApp.deck.addEventListener("click", InputWidgetHelper, true));
     InitLater(() => BrowserApp.deck.addEventListener("click", SelectHelper, true));
 
     // ReaderViews support backPress listeners.
     Messaging.addListener(() => {
       return Reader.onBackPress(BrowserApp.selectedTab.id);
     }, "Browser:OnBackPressed");
@@ -4712,17 +4712,17 @@ var BrowserEventHandler = {
       case 'touchend':
         if (this._inCluster) {
           aEvent.preventDefault();
         }
         break;
       case 'MozMouseHittest':
         this._handleRetargetedTouchStart(aEvent);
         break;
-      case 'OpenMediaWithExtenalApp':
+      case 'OpenMediaWithExternalApp':
         ExternalApps.openExternal(aEvent.target);
         break;
     }
   },
 
   _handleTouchStart: function(aEvent) {
     if (!BrowserApp.isBrowserContentDocumentDisplayed() || aEvent.touches.length > 1 || aEvent.defaultPrevented)
       return;