bug 654444 - Only include URL of active tab in content crash reports r=mfinkle

This commit is contained in:
Brad Lassey 2011-05-03 11:55:42 -04:00
parent 4c8c9bf766
commit a68b012a57

View File

@ -2416,13 +2416,13 @@ var ContentCrashObserver = {
// Spin through the open tabs and resurrect the out-of-process tabs. Resurrection
// does not auto-reload the content. We delay load the content as needed.
let URLs = []
Browser.tabs.forEach(function(aTab) {
if (aTab.browser.getAttribute("remote") == "true")
URLs.push(aTab.resurrect().data.entries[0].url);
aTab.resurrect();
});
let dumpID = aSubject.hasKey("dumpID") ? aSubject.getProperty("dumpID") : null;
let crashedURL = Browser.selectedTab.browser.__SS_data.entries[0].url;
// Execute the UI prompt after the notification has had a chance to return and close the child process
setTimeout(function(self) {
@ -2474,7 +2474,7 @@ var ContentCrashObserver = {
try {
// use 0x02 | 0x10 to open file for appending.
foStream.init(extra, 0x02 | 0x10, 0666, 0);
let data = "URL=" + URLs.join(" ") + "\n";
let data = "URL=" + crashedURL + "\n";
foStream.write(data, data.length);
foStream.close();
} catch (x) {
@ -2758,8 +2758,6 @@ Tab.prototype = {
browser.__SS_data = session.data;
browser.__SS_extdata = session.extra;
browser.__SS_restore = true;
return session;
},
_createBrowser: function _createBrowser(aURI, aInsertBefore) {