Commit Graph

74690 Commits

Author SHA1 Message Date
axel%pike.org
d74f39e9bd Not part of the build, fixes QNames really ending when hitting whitespace 2001-01-09 20:56:28 +00:00
dcone%netscape.com
3b139c38ef Took outsome debug code which snuck in. 2001-01-09 20:41:05 +00:00
blakeross%telocity.com
67c4987db9 Fix 64458: JS strict warnings in treeBindings.xml. r=jrgm sr=hyatt 2001-01-09 20:36:22 +00:00
cmanske%netscape.com
88bec31c65 Use global overlay for 'Exit/Quit' menuitem, requiring moving of overlay includes, b=54584 2001-01-09 20:35:47 +00:00
cmanske%netscape.com
53ee884ff1 Added xul includes no longer included in editorOverlay.xul. Part of fix for 54584. r=ducarroz, sr=syd 2001-01-09 20:35:43 +00:00
jst%netscape.com
0e33a0e878 Fix crash in the XML error reporter (and doing some cleanup), the format string for printf'ing out numbers should be %d, not %s! r=harishd@netscape.com 2001-01-09 19:54:37 +00:00
chuang%netscape.com
b691466a6b Bug52084 Leaking all address book databases., sr=mscott 2001-01-09 19:27:32 +00:00
kestes%staff.mail.com
81e762f887 $previous_rec needed wider scope. I had accidentally narrowed the
scope when tixing the 'building' issue.
2001-01-09 15:43:39 +00:00
mkaply%us.ibm.com
130aed7d5d Stupid error in last checkin 2001-01-09 15:30:12 +00:00
nboyd%atg.com
b8ac59c406 Subject:
Re: Debugger problem
        Date:
             Mon, 08 Jan 2001 14:16:30 -0800
       From:
             Christopher Oliver <coliver@mminternet.com>
 Organization:
             Primary Interface LLC
         To:
             Kurt Westerfeld <kurt@ManagedObjects.com>
         CC:
             Norris Boyd <nboyd@atg.com>
  References:
             1 , 2 , 3




Kurt, Norris,

Yes, with the change to the shell this should be possible.  The problem before
was that if you loaded the same file with different relative path names, two
different windows in the debugger were created because everything (windows,
breakpoints, etc) is keyed off the source name.

The attached file contains the fix (and includes the workaround for
Desktop.getSelectedFrame).

There are still some bugs in transferring focus between the windows in the
Desktop.  I haven't had time to track down the problem or a solution.

Chris

Kurt Westerfeld wrote:

> I would point out that "Source Name" of a script isn't necessarily a
> filename.  In our system, scripts are run remotely from a script library
> that has no file system backing.  Canonicalizing the file names is really
> unnecessary.
>
> Can't you just modify JSDebugger to not care what the name of the file is?
> If access to the original script is unavailable except through the file
> system, I'd be surprised.
>
> ----- Original Message -----
> From: Christopher Oliver <coliver@mminternet.com>
> To: Kurt Westerfeld <kurt@ManagedObjects.com>
> Cc: Norris Boyd <nboyd@atg.com>
> Sent: Sunday, January 07, 2001 2:23 AM
> Subject: Re: Debugger problem
>
> > Hi Kurt,
> >
> > I rather would say that it is a problem with the processFile method in the
> > shell's Main class.  If you change the current working directory or the
> value
> > of the System property "user.dir" after compiling a script, relative path
> names
> > can become ambiguous.  Norris, would it be ok to modify the shell to
> > "canonicalize" the names of files it compiles?  That way the source name
> that
> > shows up in the stack and in DebuggableScript will always be unique.  For
> > example:
> >
> > public static void processFile(Context cx, Scriptable scope,
> >                                    String filename)
> >     {
> >             Reader in = null;
> >             try {
> >                 in = new PushbackReader(new FileReader(filename));
> >                 int c = in.read();
> >                 // Support the executable script #! syntax:  If
> >                 // the first line begins with a '#', treat the whole
> >                 // line as a comment.
> >                 if (c == '#') {
> >                     while ((c = in.read()) != -1) {
> >                         if (c == '\n' || c == '\r')
> >                             break;
> >                     }
> >                     ((PushbackReader) in).unread(c);
> >                 } else {
> >                     // No '#' line, just reopen the file and forget it
> >                     // ever happened.  OPT closing and reopening
> >                     // undoubtedly carries some cost.  Is this faster
> >                     // or slower than leaving the PushbackReader
> >                     // around?
> >                     in.close();
> >                     in = new FileReader(filename);
> >                 }
> >                 filename = new java.io.File(filename).getCanonicalPath();
> > <<<====== Add this
> >             }
> >             catch (FileNotFoundException ex) {
> >                 Context.reportError(ToolErrorReporter.getMessage(
> >                     "msg.couldnt.open",
> >                     filename));
> >                 exitCode = EXITCODE_FILE_NOT_FOUND;
> >                 return;
> >             } catch (IOException ioe) {
> >                 globalState.getErr().println(ioe.toString());
> >             }
> >
> >             // Here we evalute the entire contents of the file as
> >             // a script. Text is printed only if the print() function
> >             // is called.
> >             evaluateReader(cx, scope, in, filename, 1);
> >     }
> >
> >
> > Attached is *my* latest version of the debugger code.  Norris, have you
> made
> > any progress on cvs commit priveledges?  The attached version fixes a
> number of
> > GUI bugs:
> >
> > 1) If you undocked the Variables window and popped up the Context
> combo-box and
> > then closed the window with the system menu, the Context pop-up was not
> cleaned
> > up properly.
> > 2) The first time you minimize a file window it appeared to dissappear
> when you
> > tried to restore it.  This was due to the fact that I forgot to "pack" its
> > contents and as a result its requested size was 0x0.
> >
> > I also added a menu item to toggle whether to break on exceptions and one
> which
> > allows you to open (and compile) a JavaScript file without actually
> executing
> > it.
> >
> > I have also attached a Word document with some basic documentation for the
> > Debugger.
> >
> > Note that this version also includes all the changes to support debugging
> > scripts in the AWT dispatch thread.
> >
> > Chris
> >
> > Kurt Westerfeld wrote:
> >
> > > Hello.  I ran into a null pointer exception in JSDebugger tonight, and I
> > > thought I'd drop you a note.
> > >
> > > The problem line is 2336, where a breakpoint is hit.  To simulate, load
> the
> > > debugger using the command line syntax on a file that has not been
> resolved
> > > to cannonical path.
> > >
> > > Example,
> > >
> > >      jshell -debug -f \myfile.fs
> > >
> > > At any rate, the "handleCompilationDone" routine takes \myfile.fs and
> turns
> > > it into a canonical path.  If you hit a breakpoint in this file and say
> > > "go", when the breakpoint hits the file is not found, because the same
> > > canonical path resolution is not done.  The resolution seems dubious,
> since
> > > it is only done in the compilation done callback, but I don't know the
> best
> > > way to suggest a fix since it seems that code had some purpose.
> > >
> > > Anyway, thought you'd wanna know.
> > >
> > > ________________________________________________________________________
> > >   Kurt Westerfeld
> > >   Senior Software Architect
> > >   Managed Objects
> > >   mailto:kwester@ManagedObjects.com
> > >   703.770.7225
> > >   http://www.ManagedObjects.com
> > >
> > >   Managed Objects: manage technology > rule business
> >



   JSDebugger.java

                    Name:
                          JSDebugger.java
                    Type:
                          Java Class File (java/*)
                 Encoding:
                          base64
2001-01-09 14:10:40 +00:00
nboyd%atg.com
864bb13d47 Missed checkin of new file. 2001-01-09 13:39:22 +00:00
jst%netscape.com
d52533ca76 Removing unused file. 2001-01-09 06:52:13 +00:00
sspitzer%netscape.com
b03b252237 fix mac build bustage. sorry. 2001-01-09 05:56:18 +00:00
dougt%netscape.com
00d3cd613f Fixes dropped socket transport during shutdown. The xpcom fix causes the UI event queue to be processed one final time after services shutdown. The socket transport fix forces all remaining active transports to be canceled, then released. r= waterson@netscape.com && darin@netscape.com a=mscott@netscape.com. b=63565 2001-01-09 05:44:47 +00:00
sspitzer%netscape.com
2e8bbd91c4 fix #63181. implement nsNntpUrl::GetFolderCharset().
also, remove extra strdup from the implementions in nsImapUrl and nsMailboxUrl.
clean up nsNntpUrl::Set/GetNewsgroupName().  sr=bienvenu
2001-01-09 05:27:28 +00:00
jst%netscape.com
987e96df6b Removing declaration of a function that is no longer in mozilla. 2001-01-09 05:26:22 +00:00
jst%netscape.com
7d39502be2 removed files: mozilla/layout/xml/content/src/nsXMLDocumentType.cpp 2001-01-09 05:15:12 +00:00
jst%netscape.com
15e7a09cce Removing duplicated code from layout, nsDOMDocumentType does the same things nsXMLDocumentType does and the former is the one that is used. 2001-01-09 05:13:10 +00:00
sspitzer%netscape.com
ecd6c8cc82 fix for #64729. Delete toolbar button should become a Mark toolbar button
when viewing a news message.  sr=bienvenu
2001-01-09 05:11:45 +00:00
disttsc%bart.nl
5d6739fe6c Fix bug 64596: "starting mozilla with a URL breaks opening URLs in a new window", r=timeless, a=ben
I suck.
2001-01-09 04:22:09 +00:00
sspitzer%netscape.com
56966e37ae fix (again) #63992. now that checkboxes work correctly, I can
clean up my js and xul.  sr=bienvenu
2001-01-09 04:18:43 +00:00
disttsc%bart.nl
f197254c00 Make document load success/failure show on console again for non-debug builds, bug=64614, r=Pike, a=ben 2001-01-09 04:16:15 +00:00
jst%netscape.com
a1eb325b8b CVS removing old files that are no longer part of the build. 2001-01-09 03:30:23 +00:00
disttsc%bart.nl
778d9b65c0 Fix senna bustage, r=cls. (mental note: remember REQUIRES in Makefile.in). 2001-01-09 03:11:59 +00:00
jst%netscape.com
b74658e1ff Fixing bug 64642. This is a regression caused in my large content code reorg/cleanup that I did a few weeks ago, SetDocument on a from control was was forwarding the call to the wrong base class, it was calling nsGenericElement::SetDocument() in stead of nsGenericHTMLElement::SetDocument() and that caused style attributes to not get reparsed when form controls were added to a document. r=pollmann@netscape.com 2001-01-09 02:53:33 +00:00
blakeross%telocity.com
0d66b102a7 Fix 44676: spacebar to trigger buttons should behave more like win32 native buttons. r=saari sr=hyatt 2001-01-09 02:15:55 +00:00
darin%netscape.com
b0f7d5005d Fixes bug 64617. UA-string is incorrect on BeOS. patch=vegarwa@online.no,
r=darin, sr=mscott.
2001-01-09 02:03:16 +00:00
blakeross%telocity.com
0d67875dd8 Fix 64225, which caused 64138 and other annoyances. r=jag sr=hyatt 2001-01-09 01:37:15 +00:00
wtc%netscape.com
32fa8e0637 Bugzilla bug #64666: using a minus (-) in a scan set is not portable.
Thanks to Michael Kaply <mkaply@us.ibm.com> for the bug report and patch.
2001-01-09 01:31:56 +00:00
disttsc%bart.nl
8865de7afe Add support for showing keycode (VK_FOO) accelerators in menuitems. bug=47426, r=sspitzer,jst,saari, a=hyatt 2001-01-09 01:28:36 +00:00
jst%netscape.com
99150cedb1 Fixing bug 63943. Accessing .offsetXXX properties on elements must call FlushPendingNotifications() on the document and not only on the pres shell to make sure the sink flushes all its content so that frames exists for all elements. r=heikki@netscape.com, sr=rpotts@netscape.com 2001-01-09 01:26:05 +00:00
jst%netscape.com
474a9be591 Major cleanup of nsLocation.cpp, this also fixes bug 64041. sr=rpotts@netscape.com, r=dbaron@fas.harward.edu. 2001-01-09 01:16:36 +00:00
sspitzer%netscape.com
02630beaca Mark button now says "Mark" instead of "As Unread".
(going with 4.x mac instead of 4.x linux / win.)
#64660
sr=bienvenu
2001-01-09 01:08:48 +00:00
morse%netscape.com
4403527c45 bug 53352, domain cookies not handled correctly, r=pchen@netscape.com, sr=brendan@mozilla.org 2001-01-09 00:59:32 +00:00
peterlubczynski%netscape.com
d5465517e8 Top crash fix. Null pointer check on mDocument. bug 62579 a=av sr=buster 2001-01-09 00:39:46 +00:00
ducarroz%netscape.com
75a56e2368 Fix for bug 39627. Implementation of the print command. Also fix bug in nsMsgCompose::GetEditor who forget to addref the result. R=varada, SR=bienvenu 2001-01-09 00:15:22 +00:00
mkaply%us.ibm.com
65976958de #61253
r=javier, a=blizzard
Set system colors into color table
2001-01-09 00:05:03 +00:00
jst%netscape.com
657a77d24e Code cleanup, no bug. Make the implementations of methods whose return type is declared as NS_IMETHOD return NS_IMETHODIMP and not just nsresult. r=heikki@netscape.com 2001-01-09 00:03:42 +00:00
jst%netscape.com
75f4f0f6f9 Trivial code cleanup that removes the need for a kungFoDeathGrip. r=heikki@netscape.com 2001-01-08 23:43:56 +00:00
blakeross%telocity.com
24152d2912 Fix 63938: removing unused widget files. more to come. sr=cls 2001-01-08 23:26:42 +00:00
edburns%acm.org
31cf91aa4e Test cases. 2001-01-08 23:24:11 +00:00
edburns%acm.org
32ffa52599 Test cases 2001-01-08 23:19:07 +00:00
peterlubczynski%netscape.com
42fda587af removing dup of export of public nsIPrintContext.h 2001-01-08 23:02:14 +00:00
dcone%netscape.com
622457942e Took out a duplicate line. 2001-01-08 23:00:46 +00:00
mscott%netscape.com
906a56b051 change the case of two methods I changed. 2001-01-08 22:50:00 +00:00
mscott%netscape.com
77956474b4 Bug #34592 --> show over link status in the mail wndow. Move some global variables inside of the status feedback proto type.
r=sspitzer
sr=bienvenu
2001-01-08 22:49:22 +00:00
mscott%netscape.com
6174d27b2e Bug #34592 --> tweak the case of several IDL methods
r=sspitzer
sr=bienvenu
2001-01-08 22:48:27 +00:00
mscott%netscape.com
de2f7b2c3e fix JS warning in msgHdrViewOverlay.js. Thanks to maolson@earthlink.net for the patch.
sr=mscott
2001-01-08 22:47:03 +00:00
kestes%staff.mail.com
d1e1e7e363 fix problem which occurs in with some redhat users. 2001-01-08 22:36:21 +00:00
akkana%netscape.com
5ac2d51158 33088: pass wrap column in to SaveFile per API change 2001-01-08 22:33:52 +00:00