Skip to content

Commit

Permalink
bug 573382 - allow xpcnativewrappers to not fail-out in chrome manife…
Browse files Browse the repository at this point in the history
…st - commit on SeaMonkey 2.1a2 RELBRANCH ONLY to enable backwards compat for keeping DOM inspector working

--HG--
branch : COMM193a5_20100623_RELBRANCH
  • Loading branch information
Callek committed Jun 21, 2010
1 parent 1af2f35 commit 28b3c7f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions chrome/src/nsChromeRegistry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1669,6 +1669,9 @@ nsChromeRegistry::ProcessManifestBuffer(char *buf, PRInt32 length,
NS_NAMED_LITERAL_STRING(kOs, "os");
NS_NAMED_LITERAL_STRING(kOsVersion, "osversion");

// Obsolete
NS_NAMED_LITERAL_STRING(kXPCNativeWrappers, "xpcnativewrappers");

nsCOMPtr<nsIIOService> io (do_GetIOService());
if (!io) return NS_ERROR_FAILURE;

Expand Down Expand Up @@ -1784,6 +1787,14 @@ nsChromeRegistry::ProcessManifestBuffer(char *buf, PRInt32 length,
CheckVersionFlag(kAppVersion, wtoken, appVersion, vc, stAppVersion))
continue;

PRBool xpcNativeWrappers = PR_TRUE; // Dummy for CheckFlag.
if (CheckFlag(kXPCNativeWrappers, wtoken, xpcNativeWrappers)) {
LogMessageWithContext(aManifest, line, nsIScriptError::warningFlag,
"Warning: Ignoring obsolete chrome registration modifier '%s'.",
token);
continue;
}

LogMessageWithContext(aManifest, line, nsIScriptError::warningFlag,
"Warning: Unrecognized chrome registration modifier '%s'.",
token);
Expand Down

0 comments on commit 28b3c7f

Please sign in to comment.