From eaa4a7e58936b613e334d242de8fb91ee32aebe1 Mon Sep 17 00:00:00 2001 From: Alastor Wu Date: Wed, 6 Jul 2016 15:07:21 +0800 Subject: [PATCH] Bug 1284754 - modify typo error for the event openMediaWithExternalApp. r=jwwang MozReview-Commit-ID: 1WeniGeQlqa --HG-- extra : rebase_source : bfd3a68dfcc917d82495369ee70ca9c6351f10a3 --- dom/html/HTMLMediaElement.cpp | 2 +- mobile/android/chrome/content/browser.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dom/html/HTMLMediaElement.cpp b/dom/html/HTMLMediaElement.cpp index 94c60fe1ae96..77edffd35935 100644 --- a/dom/html/HTMLMediaElement.cpp +++ b/dom/html/HTMLMediaElement.cpp @@ -5867,7 +5867,7 @@ HTMLMediaElement::OpenUnsupportedMediaWithExtenalAppIfNeeded() LOG(LogLevel::Debug, ("Open unsupported type \'%s\' with external apps.", mMimeType.get())); nsContentUtils::DispatchTrustedEvent(OwnerDoc(), static_cast(this), - NS_LITERAL_STRING("OpenMediaWithExtenalApp"), + NS_LITERAL_STRING("OpenMediaWithExternalApp"), true, true); } diff --git a/mobile/android/chrome/content/browser.js b/mobile/android/chrome/content/browser.js index c92101a97d05..4a4031c16ca0 100644 --- a/mobile/android/chrome/content/browser.js +++ b/mobile/android/chrome/content/browser.js @@ -4693,7 +4693,7 @@ var BrowserEventHandler = { 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)); @@ -4717,7 +4717,7 @@ var BrowserEventHandler = { case 'MozMouseHittest': this._handleRetargetedTouchStart(aEvent); break; - case 'OpenMediaWithExtenalApp': + case 'OpenMediaWithExternalApp': ExternalApps.openExternal(aEvent.target); break; }