michael@0: function cleanup_and_finish() { michael@0: try { michael@0: cleanup_fake_appdir(); michael@0: } catch(ex) {} michael@0: Services.prefs.clearUserPref("breakpad.reportURL"); michael@0: gBrowser.removeTab(gBrowser.selectedTab); michael@0: finish(); michael@0: } michael@0: michael@0: /* michael@0: * check_crash_list michael@0: * michael@0: * Check that the list of crashes displayed by about:crashes matches michael@0: * the list of crashes that we placed in the pending+submitted directories. michael@0: */ michael@0: function check_crash_list(tab, crashes) { michael@0: let doc = gBrowser.getBrowserForTab(tab).contentDocument; michael@0: let crashlinks = doc.getElementById("tbody").getElementsByTagName("a"); michael@0: is(crashlinks.length, crashes.length, michael@0: "about:crashes lists correct number of crash reports"); michael@0: // no point in checking this if the lists aren't the same length michael@0: if (crashlinks.length == crashes.length) { michael@0: for(let i=0; i