зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1057663
- Make sure content process crashes always get reported (r=felipe)
This commit is contained in:
Родитель
a38518d345
Коммит
d282184f34
|
@ -11,3 +11,7 @@ function parseQueryString() {
|
|||
}
|
||||
|
||||
document.title = parseQueryString();
|
||||
|
||||
// Error pages are loaded as LOAD_BACKGROUND, so they don't get load events.
|
||||
var event = new CustomEvent("AboutTabCrashedLoad", {bubbles:true});
|
||||
document.dispatchEvent(event);
|
||||
|
|
|
@ -1017,6 +1017,12 @@ var gBrowserInit = {
|
|||
}
|
||||
});
|
||||
|
||||
gBrowser.addEventListener("AboutTabCrashedLoad", function(event) {
|
||||
#ifdef MOZ_CRASHREPORTER
|
||||
TabCrashReporter.onAboutTabCrashedLoad(gBrowser.getBrowserForDocument(event.target));
|
||||
#endif
|
||||
}, false, true);
|
||||
|
||||
if (uriToLoad && uriToLoad != "about:blank") {
|
||||
if (uriToLoad instanceof Ci.nsISupportsArray) {
|
||||
let count = uriToLoad.Count();
|
||||
|
@ -4044,11 +4050,6 @@ var TabsProgressListener = {
|
|||
if (event.target.documentElement)
|
||||
event.target.documentElement.removeAttribute("hasBrowserHandlers");
|
||||
}, true);
|
||||
|
||||
#ifdef MOZ_CRASHREPORTER
|
||||
if (doc.documentURI.startsWith("about:tabcrashed"))
|
||||
TabCrashReporter.onAboutTabCrashedLoad(aBrowser);
|
||||
#endif
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче