add some debug output to investigate bug 522729 (on a CLOSED TREE)
authorTed Mielczarek <ted.mielczarek@gmail.com>
Wed, 11 Nov 2009 12:32:07 -0500
changeset 34773 1ba9b887563a9196ae1f64da79155b0145186a57
parent 34772 b00b441c641f8df8a5b50aa3f4b83a4348cf9b5a
child 34774 5477d3d7ee7ba48296d51960f8858ef4fc708689
push idunknown
push userunknown
push dateunknown
bugs522729
milestone1.9.3a1pre
add some debug output to investigate bug 522729 (on a CLOSED TREE)
build/autoconf/config.sub
toolkit/crashreporter/test/browser/browser_aboutCrashesResubmit.js
--- a/build/autoconf/config.sub
+++ b/build/autoconf/config.sub
@@ -1,15 +1,15 @@
 #! /bin/sh
 # Configuration validation subroutine script.
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
 #   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
 #   Free Software Foundation, Inc.
 
-timestamp='2009-08-19'
+timestamp='2009-11-11'
 
 # This file is (in principle) common to ALL GNU software.
 # The presence of a machine in this file suggests that SOME GNU software
 # can handle that machine.  It does not imply ALL GNU software can.
 #
 # This file is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # the Free Software Foundation; either version 2 of the License, or
@@ -121,17 +121,18 @@ esac
 
 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
 # Here we must recognize all the valid KERNEL-OS combinations.
 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
 case $maybe_os in
   nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
   uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
   kopensolaris*-gnu* | \
-  storm-chaos* | os2-emx* | rtmk-nova*)
+  storm-chaos* | os2-emx* | rtmk-nova* | \
+  wince-winmo* )
     os=-$maybe_os
     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
     ;;
   *)
     basic_machine=`echo $1 | sed 's/-[^-]*$//'`
     if [ $basic_machine != $1 ]
     then os=`echo $1 | sed 's/.*-/-/'`
     else os=; fi
@@ -1333,16 +1334,19 @@ case $os in
 		os=`echo $os | sed -e 's|sunos6|solaris3|'`
 		;;
 	-opened*)
 		os=-openedition
 		;;
         -os400*)
 		os=-os400
 		;;
+        -wince-winmo*)
+                os=-wince-winmo
+                ;;
 	-wince*)
 		os=-wince
 		;;
 	-osfrose*)
 		os=-osfrose
 		;;
 	-osf*)
 		os=-osf
--- a/toolkit/crashreporter/test/browser/browser_aboutCrashesResubmit.js
+++ b/toolkit/crashreporter/test/browser/browser_aboutCrashesResubmit.js
@@ -48,16 +48,17 @@ function check_crash_list(tab, crashes) 
  * Additionally, click "back" and verify that the link now points to our new
  */
 function check_submit_pending(tab, crashes) {
   let browser = gBrowser.getBrowserForTab(tab);
   let SubmittedCrash = null;
   let CrashID = null;
   let CrashURL = null;
   function csp_onload() {
+    dump('csp_onload, location = ' + browser.contentWindow.location + '\n');
     if (browser.contentWindow.location != 'about:crashes') {
       browser.removeEventListener("load", csp_onload, true);
       // loaded the crash report page
       ok(true, 'got submission onload');
       // grab the Crash ID here to verify later
       CrashID = browser.contentWindow.location.search.split("=")[1];
       CrashURL = browser.contentWindow.location.toString();
       // check the JSON content vs. what we submitted
@@ -101,21 +102,23 @@ function check_submit_pending(tab, crash
                   cleanup_and_finish();
                 });
   }
 
   // try submitting the pending report
   for each(let crash in crashes) {
     if (crash.pending) {
       SubmittedCrash = crash;
+      dump('check_submit_pending: trying to submit crash ' + crash.id + '\n');
       break;
     }
   }
   EventUtils.sendMouseEvent({type:'click'}, SubmittedCrash.id,
                             browser.contentWindow);
+  dump('check_submit_pending: sent mouse event to ' + SubmittedCrash.id + '\n');
 }
 
 function test() {
   waitForExplicitFinish();
   let appD = make_fake_appdir();
   let crD = appD.clone();
   crD.append("Crash Reports");
   let crashes = add_fake_crashes(crD, 1);