189 Commits

Author SHA1 Message Date
tbogard%aol.net
0025ce45a8 Implemented EnsureWebProgressListener(). You can now call GetInterface on the docshell to get to a nsIWebProgressListener interface.
git-svn-id: svn://10.0.0.236/trunk@64692 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-31 04:11:29 +00:00
tbogard%aol.net
4bf1724534 nsIDocShell::LoadURI now takes a nsIDocShellLoadInfo parameter to do fancier loads which include replacing current history slots and passing in a referrer. In the future more things may be set on the nsIDocShellLoadInfo interface. This allows us to not have to add a new parameter for every new type of load info that might be needed in different loads.
git-svn-id: svn://10.0.0.236/trunk@64626 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-30 22:38:32 +00:00
tbogard%aol.net
bb2ee1727c OnLoadingSite now takes a nsIChannel instead of a nsIURI. This allows us to get information out of the channel we may need such as the referrer. We now make sure we set the referrer during OnLoadingSite. Fixed a bug where the nsIWebProgressListener was getting found on the treeOwner even for frames. This was causing the the treeOwner to get notified of all actions happening in the children. Now we make sure to only set the listener for the top level frame.
git-svn-id: svn://10.0.0.236/trunk@64558 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-30 02:24:17 +00:00
tbogard%aol.net
b4a38897e0 Now properly enable retrieving the nsIWebProgressListener interface from the owning treeOwner. Added firing methods for all the methods in nsIWebProgressListener. onLocationChange is currently the only one that is validly firing however.
git-svn-id: svn://10.0.0.236/trunk@64486 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-29 10:29:58 +00:00
tbogard%aol.net
4539b31777 Provided implementation for Add and RemoveProgressListener.
git-svn-id: svn://10.0.0.236/trunk@64146 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-26 04:52:06 +00:00
tbogard%aol.net
ff337e0bcf Updated the loadURI methods to reflect changes in the nsIDocShell API. ::Reload() now makes sure to pass the type on to the InternalLoad() call. ::Destroy() makes sure to properly tear down the script objects by setting the docshell and owner on those to null. When Scrolling to an anchor, make sure to update the current URI. The ::InternalLoad function now is responsible for updating the mUpdateHistoryOnLoad member, rather than relying on callers to set it first. When loading the site, only apply histories if we mUpdateHistoryOnLoad is set. Stubbed out a new function ::ShouldPersistInSessionHistory() that allows us to put all the code in place for items pages that shouldn't be persisted in the list, meaning items that are overwritten when new ones are added.
git-svn-id: svn://10.0.0.236/trunk@64103 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-25 03:43:27 +00:00
tbogard%aol.net
4650052cfd Added support for setting a docShell into viewSource mode or viewNormal mode. Changed calls to creating the contentViewer to rely on the mode of the docshell for deciding the state it is in. Made docShell support the nsIWebProgress interface. Stubbed out the methods for it's implementation.
git-svn-id: svn://10.0.0.236/trunk@62851 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-14 04:36:55 +00:00
tbogard%aol.net
4bbd22ff42 HandleUnknownContentType is no longer a part of the nsIDocumentLoaderObserver interface. Added a member for stating if this docShell supports plugins or not.
git-svn-id: svn://10.0.0.236/trunk@62579 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-11 00:55:00 +00:00
tbogard%aol.net
48f5d54fae Don't rely on the parent widget to have a device context. Create and cache our own just like the old webShell wolrd. Since we have our own, it can now cache the zoom state too. bug #30625. r=jud, waterson a=jevering
git-svn-id: svn://10.0.0.236/trunk@62372 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-08 03:58:33 +00:00
mscott%netscape.com
6fd2ac0301 Bug #21358 --> Make sure we only call the on load handler ONCE per document. This prevents a nasty loop if
the onload handler tries to load an ftp url.
r=travis
a=jar


git-svn-id: svn://10.0.0.236/trunk@62295 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-07 06:02:04 +00:00
norris%netscape.com
d9654e0eb0 Fix 29541
r=travis,a=jar


git-svn-id: svn://10.0.0.236/trunk@62166 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-03 22:55:40 +00:00
tbogard%aol.net
b6a98c5648 DoContent now call CreateContentViewer on the docShell to get the viewer created. Implemented CreateContentViewer(), NewContentViewer(), and SetupNewViewer() methods in the docshell. This gets docshell setup to be able to create it's own content viewers for loads. This is work to getting session history stuff working and bug 13374. r=mscott a=jevering
git-svn-id: svn://10.0.0.236/trunk@61915 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-29 22:32:24 +00:00
pollmann%netscape.com
8a83557c05 Bug 28670: Move scroll methods from webshell to docshell r=travis a=rickg
git-svn-id: svn://10.0.0.236/trunk@61848 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-29 06:51:48 +00:00
tbogard%aol.net
e141343e8d mLoadCookie is now stored on the docshell instead of the contentListener. Started framing out the different parts of a load and management of session history and global history. Reload is now live. Work for 13374 and landing of new session history/ uriloading. r=mscott a=jevering
git-svn-id: svn://10.0.0.236/trunk@61580 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-24 04:15:22 +00:00
tbogard%aol.net
8ff5a96921 PDT+ Fix for Bug #27279. When the current docshell was asked to find an item of a given name, it failed to return out when it itself was the name being searched for. Also provided implementation for Set/ GetSessionHistory and and GetCurrentURI. None of these methods are called yet. Changed the mLoadCookie to only be on the contentListener. This will probably change to only be on the docshell, but regardless, there should only be one between the two of them. r=mscott, jar. a=jar
git-svn-id: svn://10.0.0.236/trunk@61168 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-17 02:03:02 +00:00
tbogard%aol.net
4388e873ba nsDocShell now implements the nsIWebNavigation interface. Added some stubbed code to Ensure that there is a content viewer. Also added stubbed code to Setup the content viewer when a new one is created. This will eventually replace the embed method. Removed the mCreated member as it is no longer needed. The destructor calls Destroy now to centralize the destruction code. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@60706 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-14 06:40:28 +00:00
tbogard%aol.net
718493179f Added GetTarget() to be used to resolve targetting.
git-svn-id: svn://10.0.0.236/trunk@59218 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-30 07:34:10 +00:00
rpotts%netscape.com
5870fbf96d Removed obsolete arguments from nsIDocumentLoaderObserver OnEndDocumentLoad and OnStartURLLoad.
git-svn-id: svn://10.0.0.236/trunk@56597 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-29 07:32: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
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
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
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
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
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
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
tbogard%aol.net
52d498cd64 nsDocShell now implements nsIScriptContextOwner.
git-svn-id: svn://10.0.0.236/trunk@54688 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-30 01:06:59 +00:00
tbogard%aol.net
1f92049a42 Changes to reflect the fact that the nsIDocShell API now has a GetPresShell. Used NS_STATIC_CAST on a comparison to 'this'. (Not Part of build).
git-svn-id: svn://10.0.0.236/trunk@54568 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-29 18:41:59 +00:00
tbogard%aol.net
f7854c4d17 Changes to get this compiling again.
git-svn-id: svn://10.0.0.236/trunk@54272 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-23 10:15:10 +00:00
buster%netscape.com
1e648d27d6 moved content-specific data and methods from nsIWebShell to appropriate content viewer interface
no bug number, this is for webshell redesign work
r=rickg, travis


git-svn-id: svn://10.0.0.236/trunk@53979 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-19 07:35:27 +00:00
warren%netscape.com
cbcd671c5d Removed the nsICapabilities interface in favor of nsIInterfaceRequestor.
git-svn-id: svn://10.0.0.236/trunk@53856 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-18 07:36:41 +00:00
warren%netscape.com
f77ab5063e Fix for bustage due to channel retargeting changes.
git-svn-id: svn://10.0.0.236/trunk@53767 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-17 09:22:47 +00:00
tbogard%aol.net
3374645a8a Got the code compiling again.
git-svn-id: svn://10.0.0.236/trunk@53763 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-17 08:57:00 +00:00
tbogard%aol.net
da2b769d83 Replaced nsIGenericWindow with nsIBaseWindow.
git-svn-id: svn://10.0.0.236/trunk@53762 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-17 08:45:28 +00:00
warren%netscape.com
d8627fe912 Necko API and implementation changes for retargeting. Needed for URL dispatching. r=mscott
git-svn-id: svn://10.0.0.236/trunk@53761 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-17 08:14:52 +00:00
tbogard%aol.net
bda092db4e nsIDocShell now has a readonly attribute for the currently loaded content viewer.
git-svn-id: svn://10.0.0.236/trunk@53563 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-15 22:54:47 +00:00
tbogard%aol.net
13b7290eca Removed QueryCapability to reflect removal in the nsIContentViewerContainer API. Changed call the nsIContentViewer::SetContainer() to cast to the right nsISupports.
git-svn-id: svn://10.0.0.236/trunk@53465 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-14 10:24:37 +00:00
tbogard%aol.net
80bdf7abcd Implemented a number of the Positioning / Sizing routines.
git-svn-id: svn://10.0.0.236/trunk@53421 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-13 08:09:16 +00:00
tbogard%aol.net
9504c337e6 Added CreateContentViewer and NewContentViewerObj methods for docShell.
git-svn-id: svn://10.0.0.236/trunk@53342 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-12 09:07:28 +00:00
tbogard%aol.net
59bdeee953 Now that we have decided that there is only one docshell for all content types, we needed to get rid of the base class/ content type implementation. This checkin takes and moves the nsDocShellBase to be nsDocShell. It now holds the nsIHTMLDocShell stuff. This will be going away. nsCDocShell was created to replace the previous nsCHTMLDocShell.
git-svn-id: svn://10.0.0.236/trunk@53337 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-12 07:28:25 +00:00