diff --git a/mozilla/content/base/src/nsObjectLoadingContent.cpp b/mozilla/content/base/src/nsObjectLoadingContent.cpp index 3f04456f057..b345d72fc37 100644 --- a/mozilla/content/base/src/nsObjectLoadingContent.cpp +++ b/mozilla/content/base/src/nsObjectLoadingContent.cpp @@ -1075,8 +1075,11 @@ nsObjectLoadingContent::LoadObject(nsIURI* aURI, nsCAutoString overrideType; if ((caps & eOverrideServerType) && - ((!aTypeHint.IsEmpty() && IsSupportedPlugin(aTypeHint)) || + (!aTypeHint.IsEmpty() || (aURI && IsPluginEnabledByExtension(aURI, overrideType)))) { + NS_ASSERTION(aTypeHint.IsEmpty() ^ overrideType.IsEmpty(), + "Exactly one of aTypeHint and overrideType should be empty!"); + ObjectType newType; if (overrideType.IsEmpty()) { newType = GetTypeOfContent(aTypeHint); diff --git a/mozilla/toolkit/components/microformats/src/Microformats.js b/mozilla/toolkit/components/microformats/src/Microformats.js index 6c9a5ab3a47..b3f2294bf19 100644 --- a/mozilla/toolkit/components/microformats/src/Microformats.js +++ b/mozilla/toolkit/components/microformats/src/Microformats.js @@ -16,8 +16,7 @@ var Microformats = { * @param name The name of the microformat (required) * @param rootElement The DOM element at which to start searching (required) * @param options Literal object with the following options: - * recurseExternalFrames - Whether or not to search child frames - * that reference external pages (with a src attribute) + * recurseFrames - Whether or not to search child frames * for microformats (optional - defaults to true) * showHidden - Whether or not to add hidden microformat * (optional - defaults to false) @@ -49,8 +48,8 @@ var Microformats = { var defaultView = rootElement.defaultView || rootElement.ownerDocument.defaultView; var rootDocument = rootElement.ownerDocument || rootElement; - /* If recurseExternalFrames is undefined or true, look through all child frames for microformats */ - if (!options || !options.hasOwnProperty("recurseExternalFrames") || options.recurseExternalFrames) { + /* If recurseFrames is undefined or true, look through all child frames for microformats */ + if (!options || !options.hasOwnProperty("recurseFrames") || options.recurseFrames) { if (defaultView && defaultView.frames.length > 0) { for (let i=0; i < defaultView.frames.length; i++) { if (isAncestor(rootDocument, defaultView.frames[i].frameElement)) { @@ -119,8 +118,7 @@ var Microformats = { * @param name The name of the microformat (required) * @param rootElement The DOM element at which to start searching (required) * @param options Literal object with the following options: - * recurseExternalFrames - Whether or not to search child frames - * that reference external pages (with a src attribute) + * recurseFrames - Whether or not to search child frames * for microformats (optional - defaults to true) * showHidden - Whether or not to add hidden microformat * (optional - defaults to false)