mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset a76600c2820b (bug 1240651) for ES test failures
This commit is contained in:
parent
9e7718e34d
commit
e10220539b
@ -7,9 +7,6 @@
|
||||
#include "mozilla/BasePrincipal.h"
|
||||
|
||||
#include "nsDocShell.h"
|
||||
#ifdef MOZ_CRASHREPORTER
|
||||
#include "nsExceptionHandler.h"
|
||||
#endif
|
||||
#include "nsIAddonPolicyService.h"
|
||||
#include "nsIContentSecurityPolicy.h"
|
||||
#include "nsIObjectInputStream.h"
|
||||
@ -124,15 +121,7 @@ OriginAttributes::CreateSuffix(nsACString& aStr) const
|
||||
}
|
||||
|
||||
if (!mAddonId.IsEmpty()) {
|
||||
// if invalid format of mAddonId is found, annotate this into crash report.
|
||||
if (mAddonId.FindCharInSet(dom::quota::QuotaManager::kReplaceChars) != kNotFound) {
|
||||
#ifdef MOZ_CRASHREPORTER
|
||||
CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("Crash_AddonId"),
|
||||
NS_ConvertUTF16toUTF8(mAddonId));
|
||||
#endif
|
||||
MOZ_CRASH("Invalid mAddonId.");
|
||||
}
|
||||
|
||||
MOZ_RELEASE_ASSERT(mAddonId.FindCharInSet(dom::quota::QuotaManager::kReplaceChars) == kNotFound);
|
||||
params->Set(NS_LITERAL_STRING("addonId"), mAddonId);
|
||||
}
|
||||
|
||||
|
@ -160,16 +160,6 @@ var Service = {
|
||||
this.uuidMap.set(uuid, extension);
|
||||
this.aps.setAddonLoadURICallback(extension.id, this.checkAddonMayLoad.bind(this, extension));
|
||||
this.aps.setAddonLocalizeCallback(extension.id, extension.localize.bind(extension));
|
||||
|
||||
// Annotate extensions into crash report.
|
||||
try {
|
||||
let uuids = "";
|
||||
for (let [uuid, extension] of this.uuidMap) {
|
||||
uuids += "[" + uuid + ", " + extension.id + "],";
|
||||
}
|
||||
|
||||
Services.appinfo.annotateCrashReport("Extensions", uuids);
|
||||
} catch (e) { }
|
||||
},
|
||||
|
||||
// Called when an extension is unloaded.
|
||||
|
Loading…
Reference in New Issue
Block a user