tbogard%aol.net
7d6b0b15c0
Removed GetWebShellType as it is no longer in the nsIWebShell API. Rely on the docshell implementation of accessing the ChromeEventHandler, the parentContentListener, GetProtocolHandler(), GetTitle(), LoadURI(), LoadURIVia(), GetDocument(), GetCurrentURI(), GetPresContext(), GetPresShell(), and GetContentViewer(). Fixed a leak in SetTitle() when in frames. Introduced when I removed the passing along of the title to the parent (comPtrs would have prevented this leak).
...
git-svn-id: svn://10.0.0.236/trunk@56256 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-21 00:19:59 +00:00
tbogard%aol.net
552210fa4d
Fixed a couple of previously unitialized member variables. Implemented the setting and getting of the ChromeEventHandler attribute. Implemented the setting and getting of the title.
...
git-svn-id: svn://10.0.0.236/trunk@56251 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-21 00:11:33 +00:00
tbogard%aol.net
aed8e309c8
mParentContentListener is now held as a weak reference as it should be.
...
git-svn-id: svn://10.0.0.236/trunk@56250 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-21 00:09:48 +00:00
nisheeth%netscape.com
de968913c4
Removing ifdef MOZ_PERF_METRICS code from docshell. Does not affect build.
...
git-svn-id: svn://10.0.0.236/trunk@56242 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-20 23:22:17 +00:00
morse%netscape.com
6fa6d63278
add SelectDialog, bug=3110, coded by davidm, r=morse, a=chofmann
...
git-svn-id: svn://10.0.0.236/trunk@56217 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-19 18:32:21 +00:00
tbogard%aol.net
71a81af045
WebShell is now a subclass of docshell. This allows for a migration path to start taking things out of webshell. Removed many things from nsIWebShell interface. Removed many member variables to rely on the ones in docshell base class. Fixed bug number 13385 and 9995 by not setting the title of the parent frame when a title is set on a child.
...
git-svn-id: svn://10.0.0.236/trunk@56173 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-18 02:29:57 +00:00
tbogard%aol.net
95e07fc34c
Changed nsresult protected functions to be NS_IMETHOD so they would be virtual thus allowing proper subclassing. Updated the algorithm for FindItemWithName. Added ChromeEventHandler attribute getter and setter stubs.
...
git-svn-id: svn://10.0.0.236/trunk@56171 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-18 02:23:31 +00:00
tbogard%aol.net
505511aeb9
Now has an nsIChromeEventHandler attribute.
...
git-svn-id: svn://10.0.0.236/trunk@56170 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-18 02:20:35 +00:00
tbogard%aol.net
4bb65d9fff
Updated the algorithm documentation. Changed aRequestor to be an nsISupports rather than an nsIDocShellTreeItem since nsIDocShellTreeOwner will need to be passed as the requestor too.
...
git-svn-id: svn://10.0.0.236/trunk@56169 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-18 02:19:56 +00:00
tbogard%aol.net
f45f1035ef
updated comment.
...
git-svn-id: svn://10.0.0.236/trunk@56168 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-18 02:18:21 +00:00
ftang%netscape.com
e7619714a6
fix bug 21722. move charsetreload state clean up code from OnEndURLLoad to OnEndDocumentLoad. r=rpotts.
...
git-svn-id: svn://10.0.0.236/trunk@56053 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-15 21:26:12 +00:00
buster%netscape.com
5bef320ec8
initial checkin of idl files for header files that are already used (but not generated)
...
in the build. These idl files are NOT hooked up to the build yet.
git-svn-id: svn://10.0.0.236/trunk@56036 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-15 05:12:18 +00:00
danm%netscape.com
7fc2e6b04a
added deathgrip to survive window destruction during onload handler. part of fix for bug 19302. r:hyatt a:chofmann
...
git-svn-id: svn://10.0.0.236/trunk@56015 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-15 02:18:52 +00:00
pollmann%netscape.com
89f8ed5563
Bug 20315: Make non-iso charsets work in frameset documents. Fix 1/2: Propagate charset info through webshell reloads r=ftang a=chofmann
...
git-svn-id: svn://10.0.0.236/trunk@55935 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-13 22:41:09 +00:00
tbogard%aol.net
933fcf7691
Implemented changes to nsIDocShellTreeItem and nsIDocShellTreeNode interfaces. FindChildWithName and FindItemWithName. Work to fix bug 21287. r=shaver a=shaver.
...
git-svn-id: svn://10.0.0.236/trunk@55922 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-12 10:16:15 +00:00
tbogard%aol.net
2e299693a9
Implemented changes to nsIDocShellTreeItem and nsIDocShellTreeNode. FindItemWithName and FindChildWithName. Work to fix bug 21287. r=shaver a=shaver.
...
git-svn-id: svn://10.0.0.236/trunk@55921 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-12 10:15:26 +00:00
tbogard%aol.net
0807b27f4a
Added a parameter to FindChildWithName to know if it should recurse through the children. Also added a parameter to specify the calling treeItem to avoid circular recursion. Work to fix bug 21287. r=shaver a=shaver.
...
git-svn-id: svn://10.0.0.236/trunk@55920 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-12 10:14:41 +00:00
tbogard%aol.net
847ca747b9
Added the ability to find a docshellTreeItem with the given name per the API. Work to fix bug 21287. r=shaver a=shaver.
...
git-svn-id: svn://10.0.0.236/trunk@55919 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-12 10:13:00 +00:00
tbogard%aol.net
4503d0b854
Removed nsIDocShellContainer.idl, added nsIDocShellTreeOwner.idl.
...
git-svn-id: svn://10.0.0.236/trunk@55918 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-12 10:10:36 +00:00
tbogard%aol.net
1eb50dbb5a
Removed nsIDocShellContainer since it is no longer used and is replaced by nsIDocShellTreeNode.
...
git-svn-id: svn://10.0.0.236/trunk@55917 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-12 09:04:04 +00:00
tbogard%aol.net
17e69911b9
added files: mozilla/docshell/base/nsIDocShellTreeOwner.idl
...
git-svn-id: svn://10.0.0.236/trunk@55916 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-12 08:54:37 +00:00
tbogard%aol.net
51a5a2178c
removed files: mozilla/docshell/base/nsIDocShellContainer.idl
...
git-svn-id: svn://10.0.0.236/trunk@55915 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-12 08:54:02 +00:00
tbogard%aol.net
a7f2f7297e
Added nsIDocShellTreeItem.idl to the build removed nsIDocShellContainer.idl from the build.r=hyatt
...
git-svn-id: svn://10.0.0.236/trunk@55914 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-12 08:52:03 +00:00
tbogard%aol.net
7dd0882349
Adding a new interface.
...
git-svn-id: svn://10.0.0.236/trunk@55913 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-12 08:47:00 +00:00
buster%netscape.com
be158e5272
bug 21187
...
fixed the webshell leak in <textarea> and <input type=text|password>
the problem was the new nsWebShell::SetDocument() call was indirectly
causing nsHTMLDocument to instantiate a parser and fire off a parse.
bad circular references ensued. The fix is to use the "aCommand" param
to pass a hint to the nsHTMLDocument, telling it there's no need to
involve a parser.
in the simple case, we no longer leak webshells. That is, if you open
mozilla.exe, look at a page (whether it has a text control on it or
not), and shut down the app, no webshell is leaked. If I browse around,
sometimes we still leak a webshell somewhere. I haven't figured out
exactly where that is yet. A guess is history, which is in the process
of being reworked anyway.
r=mscott
a=chofmann
git-svn-id: svn://10.0.0.236/trunk@55797 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-09 07:21:34 +00:00
tbogard%aol.net
f01bf79f81
fix for 21113
...
git-svn-id: svn://10.0.0.236/trunk@55726 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 05:01:06 +00:00
tbogard%aol.net
a0be83af64
Fix for 21113.
...
git-svn-id: svn://10.0.0.236/trunk@55725 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 05:00:51 +00:00
tbogard%aol.net
4f5266923d
Added some methods to nsIDocShellTreeItem... It now understands the concept of being of the chrome or content type. Added convenience methods to traverse up the tree with a restriction of same item type.
...
git-svn-id: svn://10.0.0.236/trunk@55719 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 04:57:23 +00:00
tbogard%aol.net
811976b56b
Replaced includes and references to nsIScriptContextOwner with nsIScriptGlobalObjectOwner.
...
git-svn-id: svn://10.0.0.236/trunk@55716 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-08 04:54:33 +00:00
mscott%netscape.com
ea7c0c0563
Bug #20700 --> fix view source by converting back and forth between nsURILoadCommand's and the old string
...
style version.
Fixed a memory leak of the global window.
r=travis
git-svn-id: svn://10.0.0.236/trunk@55453 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-06 22:32:32 +00:00
mscott%netscape.com
8d56484c5e
Bug #20700 --> fix view source by converting back and forth between nsURILoadCommand's and the old string
...
style version.
r=travis
git-svn-id: svn://10.0.0.236/trunk@55452 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-06 22:32:06 +00:00
danm%netscape.com
947c3cd8c1
adjusting chrome for new _blank windows
...
git-svn-id: svn://10.0.0.236/trunk@55389 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-06 01:40:51 +00:00
tbogard%aol.net
4698adc719
Add nsXPIDLString.h include.
...
git-svn-id: svn://10.0.0.236/trunk@55191 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 12:10:31 +00:00
tbogard%aol.net
14bb6fa0ab
Fixed a couple of problems with FindChildWithName.
...
git-svn-id: svn://10.0.0.236/trunk@55189 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 11:22:54 +00:00
tbogard%aol.net
7645dfa57c
WebShell now implements the nsIDocShellTreeItem and nsIDocShellTreeNode interfaces.
...
git-svn-id: svn://10.0.0.236/trunk@55188 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 10:57:59 +00:00
tbogard%aol.net
c2b90e3bbb
Fixed logic problem with GetRootTreeItem.
...
git-svn-id: svn://10.0.0.236/trunk@55187 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 10:57:11 +00:00
tbogard%aol.net
2632a072f5
Re-ordered a couple of methods to be under the right interface section.
...
git-svn-id: svn://10.0.0.236/trunk@55186 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 10:35:43 +00:00
tbogard%aol.net
3549f77d57
Added the concept of the treeItem and node. This breaks up nsIDocShell a little bit.
...
git-svn-id: svn://10.0.0.236/trunk@55183 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 10:29:08 +00:00
tbogard%aol.net
b2fedc2225
added files: mozilla/docshell/base/nsIDocShellTreeItem.idl, mozilla/docshell/base/nsIDocShellTreeNode.idl
...
git-svn-id: svn://10.0.0.236/trunk@55181 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 10:04:09 +00:00
tbogard%aol.net
bdf7b78cd4
Adding nsIDocShellTreeItem.idl to be compiled.
...
git-svn-id: svn://10.0.0.236/trunk@55180 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 10:02:00 +00:00
tbogard%aol.net
ab67ca9638
Adding two new interfaces to deal with the docshell tree.
...
git-svn-id: svn://10.0.0.236/trunk@55179 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 10:00:23 +00:00
tbogard%aol.net
067920c238
1.) WebShell no longer implements nsIScriptContextOwner.
...
2.) WebShell now implements the new nsIScriptGlobalObjectOwner.
3.) WebShell supports GetInterface to nsIScriptGlobalObject.
4.) Documents no longer carry around a reference to nsIScriptContextOwner. Instead they hold on to a nsIScriptGlobalObject. nsIDocument::GetScriptContextOwner has now become nsIDocument::GetScriptGlobalObject(). Same change to the set methods.
git-svn-id: svn://10.0.0.236/trunk@55175 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 09:24:22 +00:00
mscott%netscape.com
82c4ad3f35
Fix a webshell leak! improper nsCOMPtr useage in DestroyChildren was causing us to leak
...
all child webshells!!! uhuh...that couldn't have been good
git-svn-id: svn://10.0.0.236/trunk@55112 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 23:46:00 +00:00
tbogard%aol.net
c494d95016
Added new interface nsIDocShellTreeNode that will replace nsIDocShellContainer.
...
git-svn-id: svn://10.0.0.236/trunk@55070 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 11:54:40 +00:00
tbogard%aol.net
d85ad8e6a8
Implemented the nsIBaseWindow::FocusAvailable. Hooked up the old nsIWebShellContainer::FocusAvailable to go through the new one.
...
git-svn-id: svn://10.0.0.236/trunk@55065 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 10:11:38 +00:00
tbogard%aol.net
ce40600633
Was acidentally incrementing the counter before requesting the element.
...
git-svn-id: svn://10.0.0.236/trunk@55063 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 10:05:17 +00:00
tbogard%aol.net
557ca2808d
Stubbed out the implementation of FocusAvailable in webshell as part of the nsIBaseWindow interface.
...
git-svn-id: svn://10.0.0.236/trunk@55061 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 09:43:07 +00:00
tbogard%aol.net
116c31c15c
Implemented the new FocusAvailable in docshell as part of the nsIBaseWindow interface.
...
git-svn-id: svn://10.0.0.236/trunk@55060 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 09:42:11 +00:00
mscott%netscape.com
efb225519d
Pass nsURILoadCommand's instead of char * around for the command associated with the url.
...
git-svn-id: svn://10.0.0.236/trunk@55046 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 07:09:06 +00:00
mscott%netscape.com
36a060eb5a
api synch with uri loader --> use nsURILoaderCommand
...
r=travis
git-svn-id: svn://10.0.0.236/trunk@55045 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-02 07:01:11 +00:00