Commit Graph

752 Commits

Author SHA1 Message Date
tbogard%aol.net
a89ca4614f Creation of the docshell now uses the generic factory rather than it's own private Create method for instantiation of the nsDocShell class. 2000-04-21 23:31:42 +00:00
tbogard%aol.net
6a5f8828fe Removed some old ifdef 0 code. Removed some unused variables. Some cleanup to OnStart and OnEndDocumentLoad to get ready to move them over to the progress interface code. 2000-04-21 23:31:41 +00:00
tbogard%aol.net
97d40fe46e Made the constructor public to allow the generic factory to be used for creation. Removed the static Create. Removed EnsureGlobalHistory. Global History is now instantiated on startup. Changed GetStringBundle to GetPromptAndStringBundle since most people are always wanting to get both the prompt and the string bundle. 2000-04-21 23:31:40 +00:00
tbogard%aol.net
c6657ce589 Fixed the duplicates in the enum. 2000-04-21 23:23:17 +00:00
scc%netscape.com
3008372aa4 making string conversions explicit 2000-04-21 02:35:42 +00:00
cls%seawood.org
1d7f5fa1be Fixed SHARED_LIBRARY_LIBS dependency in docshell/build.
Removed extraneous ; makefiles target.
Thanks to Justin Morey <justin@68k.org> for the patch.
2000-04-21 01:14:45 +00:00
radha%netscape.com
8e68019d0d update session history too with the title when title gets set. 2000-04-20 23:14:53 +00:00
danm%netscape.com
d0d8c4d5c3 dist...chrome restructuring 2000-04-19 21:42:30 +00:00
tbogard%aol.net
3f0fb9d531 Remove unused variable. 2000-04-18 23:31:26 +00:00
tbogard%aol.net
3f9ad66e83 Don't persist "about:blank" in the session history. 2000-04-18 23:30:02 +00:00
waterson%netscape.com
548a65c864 Back out changes my changes to nsILinkHandler because of performance problems. 2000-04-18 04:34:20 +00:00
scc%netscape.com
e213406534 making string conversions explicit 2000-04-17 11:24:01 +00:00
tbogard%aol.net
2440048faf Added more code to ShouldAddToGlobalHistory to properly weed out items such as "about", "imap", "news", and "mailbox" schemes from getting put into global history. 2000-04-17 05:54:09 +00:00
tbogard%aol.net
2c074d1071 If the same page is being loaded twice, don't add it twice to session history. 2000-04-17 02:17:42 +00:00
tbogard%aol.net
6df22d2672 Making docShell not assert when global history can't be added. Someone is doing something stupid in viewer right that makes the service fail. 2000-04-16 13:01:28 +00:00
tbogard%aol.net
7d683f82c0 Making the addref and release thread safe. 2000-04-16 13:00:52 +00:00
tbogard%aol.net
a6539625bc DocShell is now handling all the loading and navigation. The new session history is now being used in place of the old. 2000-04-16 11:18:41 +00:00
tbogard%aol.net
c701f711d3 Cached the globalHistory service as it is called a lot especially when dealing with links up in the webshell. Fixed a bug in GetInterface where we were failing to do an else if so if you were requesting a nsIURIContentListener you ended up clearing out the object. 2000-04-16 08:39:15 +00:00
andreas.otte%primus-online.de
75684271dc fix bug 34863 [Local Harddisks not found if I tried with C: without \], check for a drive in nsDocShell::ConvertFileToStringURI, r=gagan@netscape.com 2000-04-16 07:11:43 +00:00
tbogard%aol.net
2e31c41c86 Removed the GetCanGoBack and GetCanGoForward calls from GoBack and GoForward respectively. The session history calls to get the next and previous entry will properly return error codes if navigtion in the desired direction isn't possible. 2000-04-16 05:16:16 +00:00
tbogard%aol.net
a1fc1e4925 Make sure we properly notify of window activity starting and stoping. 2000-04-16 05:09:07 +00:00
mccabe%netscape.com
71eac1e422 Modify nsIScriptGlobalObjectOwner::ReportScriptError to take an nsIScriptError interface, rather than separate message, file, line arguments.
Fix implementations and their callers, and restore error printing to stderr even when the error is successfully logged to the console service, to make life easier for people who go to the trouble to invoke Mozilla with -console.
2000-04-15 01:56:47 +00:00
waterson%netscape.com
a06a8ee723 Bug 12493. Change nsILinkHandler interface to take an nsIURI object instead of a string. This allows necko to canonify URIs before passing them back to global history. r=travis,pierre 2000-04-13 19:55:47 +00:00
jdunn%netscape.com
51a10465c5 newline for hp 2000-04-13 13:35:54 +00:00
tbogard%aol.net
f0456d1d48 Moved the implementation of nsIRefreshURI into the docShell. Reordered CreateFixupURI to try simply creating the URI before actually doing any munging. Stop now calls CancelRefreshURITimers. String version of LoadURI now properly puts up error boxes for missing protocols. 2000-04-13 03:11:44 +00:00
tbogard%aol.net
59d7f8bbee Moved the implementation of nsIRefreshURI into the docShell. When the webShell is getting destructed make sure we call Destroy. 2000-04-13 03:11:25 +00:00
tbogard%aol.net
a9bcbb88da Make DocShell link with the timer library so it can call NS_NewTimer. 2000-04-13 03:05:35 +00:00
tbogard%aol.net
d196ece817 WebShell no longer creates the plugin host. nsObjectFrame now gets it from the service manager instead of trying to get it from the webshell. 2000-04-13 02:56:05 +00:00
tbogard%aol.net
2ed55be1d9 Implemented SetFocus. 2000-04-13 02:54:38 +00:00
tbogard%aol.net
8b1af3fb93 Provided implementation for the file fixup work. 2000-04-12 10:06:58 +00:00
tbogard%aol.net
fee486f4b4 Put the GetInterface for the uriContentListener into an ifndef for DOCSHELL_LOAD so when DOCSHELL_LOADING is turned on, we get the right handler. 2000-04-12 10:00:04 +00:00
tbogard%aol.net
e3719b0e45 Removed the file fixup and completely rely on docShell fro Creating the uri. 2000-04-12 09:46:40 +00:00
tbogard%aol.net
2dceb450dd Checks for when progress is called after docShell goes away. This is now going to be valid with changes made to the way the uriLoader and necko do cancelling. Bug #35505 2000-04-12 01:59:15 +00:00
tbogard%aol.net
fea7ec5577 Added an attribute for holding the charset info to be used during a load. 2000-04-12 00:07:04 +00:00
tbogard%aol.net
fdd6a9fca7 Provided implementation for CreateFixupURI. Added needed parameters to DoURILoad and finished implementation. InternalLoad now takes needed parameters as well. 2000-04-11 23:52:42 +00:00
tbogard%aol.net
eec64dfa81 Removed nsIWebShellContainer methods that are no longer part of the interface. Removed convertFileToURL and convertURLToFileCharset as the implementation in docShell is now relied upon. LoadURL now largely relies on docShell's CreateFixupURI to get a uri. No longer call nsIWebShellContainer::BeginLoadURL or EndLoadURL as the nsIWebProgressListener interface provides all these needed listeners. No longer call nsIWebShellContainer::WillLoadURL as the uriLoader code provides the ability to cancel or stop a load from happening. DoLoadURL now relies on the implementation in docShell for talking to the uriloader. Fixed a bug with nsWebShell::GoTo pointed out by Conrad. 2000-04-11 23:52:28 +00:00
mscott%netscape.com
3e63dc7696 backing out my bug fix because it appears to have broken the page cycler.
thanks to sspitzer for helping me figure this out.
2000-04-07 21:36:09 +00:00
mscott%netscape.com
9d80021e58 Bug #34769 --> don't set the refferer as the original url on the channel in the webshell.
r=warren
a=leaf
2000-04-07 19:25:42 +00:00
tbogard%aol.net
8a51e5cc71 Seems the conditional as a parameter was too much for speedracer's little brain. 2000-04-04 03:31:57 +00:00
tbogard%aol.net
e9faf678e6 CreateContentViewer() and NewContentViewer() no longer take the uri loading command as a parameter since they don't use it. InternalLoad now takes a window target parameter. DoURILoad now takes the uriloader command and a window target. 2000-04-04 00:04:04 +00:00
tbogard%aol.net
77e5d29db7 Removed some old code that was ifdefed out. Removed the isMail test in webshell as that path is no longer being hit due to the fact that "mailto" does succeed in creating a nsIURI. Changed InternalLoadURI due to changes in the docshell parameter list. 2000-04-04 00:03:11 +00:00
tbogard%aol.net
3513381fd4 The layoutState is actually a nsILayoutHistoryState not just an nsISupports. 2000-04-03 00:47:15 +00:00
erik%netscape.com
711e3a3feb bug 30022; added Set/Get TextZoom for enlarging/reducing fonts only 2000-04-02 21:53:46 +00:00
mscott%netscape.com
d1be445324 Make sure nsIWebProgressListener is added to the GetInterface method for docshell. 2000-04-02 21:00:26 +00:00
tbogard%aol.net
afb0749506 Updated documentation to be clear about ownership model of the parentURIContentListener. 2000-04-02 20:31:12 +00:00
tbogard%aol.net
76af657407 My webshell, your diet is working, you've lost some more weight..... Removed one of the LoadURL calls and combined it with the other. Removed the localIP address parameter as it is not used and is not the way we will specify binding. Removed ProgressLoadURL as it is no longer needed (the rest of nsIWebShellContainer will go away when we finish landing the nsIWebProgressListener interfaces.) Removed CaptureHistoryState and GetHistoryState. Prompter is now retrieved through the correct path, up the treeOwner. 2000-04-02 01:19:27 +00:00
tbogard%aol.net
553f4a01dc Removed the unused mViewSource member. Fixed ::InternalLoad to call ::LoadURI instead of LoadURL since destroying and then re-creating the uri is pointless when it's passed in for us. Not to mention if the person calling this load had actually setup listeners on this uri then this information would be lost (which is actually causing bug 34167). 2000-04-01 23:28:31 +00:00
nisheeth%netscape.com
0111dba11b Fix for bug 15086. These changes bring us up to date with the Feb 2000 XLink Working Draft. Thanks a lot to Heikki (heikki@citec.fi) for providing these patches. 2000-04-01 00:39:15 +00:00
tbogard%aol.net
b5a86d525b Removed all the LoadURL methods from the webshell API. Added a new API to allow loading for the old session history. This is needed until the new session history is online. 2000-04-01 00:29:36 +00:00
mccabe%netscape.com
bd22a269de Error reporting mechanisms for nsDocShell (xul js and content js) and mosJSComponentLoader (JS components) now pipe error objects to the JavaScript console. 2000-03-31 11:19:51 +00:00
tbogard%aol.net
c9d2a7b3e3 Implemented EnsureWebProgressListener(). You can now call GetInterface on the docshell to get to a nsIWebProgressListener interface. 2000-03-31 04:11:29 +00:00
tbogard%aol.net
3d1c2bc802 The OverLink handler no longer caches the current over and target link to ensure we aren't called for the same link more than once. The lower level is assuring we aren't execpt in on case where a popup is up and then you move over links. This is a small case. Since string copies were actually showing up on some profiles I'm removing this caching of the string for some small amount of performance and bloat benefit as well as code cleanup. 2000-03-31 02:47:04 +00:00
tbogard%aol.net
79db91104f Slight re-ordering of the destruction of the children. First we kill the content viewer then release our children. 2000-03-31 01:19:28 +00:00
tbogard%aol.net
8250367c11 Rely on the docshell for the implementation of destroy. 2000-03-31 00:15:55 +00:00
tbogard%aol.net
9e620e29bb Fully implement nsDocShell::Destroy() so that webShell can rely on it for it's implementation. 2000-03-31 00:15:17 +00:00
tbogard%aol.net
4ac35be0c1 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. 2000-03-30 22:38:32 +00:00
tbogard%aol.net
3017bddeba Added a CreateLoadInfo to nsIDocShell to facilitate creating a loadInfo object without having to go through xpcom. This also allows the docshell to do any setup it may need to do. 2000-03-30 12:52:02 +00:00
tbogard%aol.net
178b1b8056 Finished implementing nsDocShellLoadInfo and hooked up to the build. 2000-03-30 12:38:18 +00:00
tbogard%aol.net
718352fd03 First checkin of the docShellLoadInfo objects. 2000-03-30 12:32:18 +00:00
tbogard%aol.net
a530f7e971 added files: mozilla/docshell/base/nsIDocShellLoadInfo.idl 2000-03-30 12:31:21 +00:00
tbogard%aol.net
ef8a3147ca Adding nsIDocShellLoadInfo.idl to the make system. 2000-03-30 12:29:51 +00:00
tbogard%aol.net
a1eec12f2e Adding the new docShellLoadInfo interface that will be used for starting loads. 2000-03-30 12:29:11 +00:00
tbogard%aol.net
c709b46a64 the RefreshURI code now talks in terms of nsIURI instead of strings. Removed unused member variable mScrollPref. Cleaned refreshData up to follow xpcom rules better and to deal with nsIURI instead of strings. It also now talks in terms of docshells instead of webshells. 2000-03-30 05:02:28 +00:00
tbogard%aol.net
17d9db5925 OnLoadingSite now takes a channel instead of a uri. Also we now don't set the currentURI or the referrer during a normal load in DoLoadURL. We make sure to do it after the content has been targetted which is when DoContent is called. 2000-03-30 02:24:18 +00:00
tbogard%aol.net
59c2f71b03 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. 2000-03-30 02:24:17 +00:00
tbogard%aol.net
3ff6fe1c16 Provided implementation for the nsIWebProgressListener interface. 2000-03-29 10:32:45 +00:00
tbogard%aol.net
b619aa5e94 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. 2000-03-29 10:29:58 +00:00
alecf%netscape.com
4cafca9923 remove unnecessary nsIPref.idl dependancies 2000-03-29 09:50:07 +00:00
warren%netscape.com
9a009d0b48 Better fix for SetOriginalURI nsCOMPtr problem. 2000-03-29 06:43:04 +00:00
tbogard%aol.net
d90f2af42a Adding nsWebProgressListener to the build. 2000-03-29 05:58:24 +00:00
warren%netscape.com
617b29d2e6 Fixed linux nsCOMPtr bustage. 2000-03-29 05:40:47 +00:00
tbogard%aol.net
08025989fb First checkin of this class. This will be the home of the webProgressListener for the uriloader loads. 2000-03-29 05:33:09 +00:00
warren%netscape.com
727f312b32 Necko API changes: primarily nsIChannel, changing initialization parameters to accessors. Got javascript: evaluation to happen at the right time (when AsyncRead is called) as well as on the right thread. 2000-03-29 03:58:50 +00:00
jdunn%netscape.com
0ac4d34291 fixing build bustage
a= ducarroz@netscape.com
2000-03-28 01:38:40 +00:00
tbogard%aol.net
e0307d4810 Removed the command member from the nsIWebShellServices inteface as it is no longer needed. InternalLoad now has implementation that works in cases other than just the session history loading. 2000-03-27 02:35:05 +00:00
scc%netscape.com
c3b7672d97 small changes to clients of string converting APIs 2000-03-26 10:23:40 +00:00
tbogard%aol.net
55c5691f92 Provided implementation for Add and RemoveProgressListener. 2000-03-26 04:52:06 +00:00
cls%seawood.org
9959ab5232 Some compilers (HP-UX) don't like it when the file doesn't end in a newline. 2000-03-25 07:58:28 +00:00
tbogard%aol.net
d2c195372b Removed the Set and GetPresContext as they were not being used. 2000-03-25 03:43:58 +00:00
tbogard%aol.net
79738b793f 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. 2000-03-25 03:43:27 +00:00
tbogard%aol.net
1607d36c6a Removed the loadURIVia as it is not needed. Setting the binding will be done through a setup, not through each load. loadURI now takes a referrer URI as the second paramater. We weren't doing anything with the presContext so that was removed (it was put there early before the design all fleshed out.) 2000-03-25 03:42:49 +00:00
pollmann%netscape.com
0be5605d38 Bug 32702: Rename GetHistoryState to CaptureHistoryState (as it is), and add GetHistoryState method, r=nisheeth 2000-03-24 03:36:58 +00:00
tbogard%aol.net
85c3c56959 Adding implementation for the new method OnStartURIOpen on nsIURIContentListener. 2000-03-24 01:04:47 +00:00
tbogard%aol.net
bd5b532ce6 Adding implementation for the new method OnStartURIOpen on nsIURIContentListener. 2000-03-24 00:26:51 +00:00
radha%netscape.com
7bf54b8cf1 Fix for bug #s 28758, 29609. When loading a url over and over again, it is added
to SH each time there by causing multiple entries for that url in go menu.
r=law
2000-03-23 23:00:17 +00:00
norris%netscape.com
d2401d0be5 Fix a number of security bugs. (I can't see the numbers at home because
they have restricted visibility.)
r=mstoltz
2000-03-18 17:48:12 +00:00
mccabe%netscape.com
a1a082d9b2 Add [noscript] to a number of non-scriptable attributes in [scriptable] interfaces. (They're not scriptable, because they refer to native types.) This is in preparation for a new compile-time check in xpidl to require the [noscript] annotation for attributes, as it is required for methods.
Preparatory to fix to 11454.

r=jband
2000-03-17 23:47:48 +00:00
scc%netscape.com
ef27072d80 replaced use of private type with |getter_AddRefs|, r=travis 2000-03-17 01:19:33 +00:00
jband%netscape.com
e6b52c42dd fix typo in user message. bug 31950. You'd think we'd know how to spell netscape! 2000-03-16 05:45:16 +00:00
tbogard%aol.net
2596a179ae Call SetOverLink instead of SetJSStatus when over a link. 2000-03-16 01:02:23 +00:00
pavlov%netscape.com
1bb4ef637c forward declare the interface instead of using ptr native for nsIDocumentLoaderObserver r=rginda 2000-03-15 08:41:52 +00:00
tbogard%aol.net
aa2e47677e Removed unused parameter. 2000-03-14 08:53:46 +00:00
tbogard%aol.net
e12818d171 When setting the viewMode, dont' do a reload if there isn't already an URL loaded. 2000-03-14 06:30:30 +00:00
tbogard%aol.net
3997f63321 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. 2000-03-14 04:36:55 +00:00
tbogard%aol.net
25a752064a Added support for setting a docShell into viewSource mode or viewNormal mode. 2000-03-14 04:35:37 +00:00
rickg%netscape.com
ffe78e83e5 removed calls to deprecated string methods 2000-03-12 09:14:14 +00:00
tbogard%aol.net
299e2bdb1c Removed include of "windows.h". I'm sure at one point it was needed, but it should not need to be as webShell is XP code. 2000-03-12 06:34:30 +00:00
tbogard%aol.net
de89e55b72 Added overides for the Session History navigation in docShell. Removed some old ones that were recently removed from nsIWebShell. 2000-03-11 12:02:06 +00:00
tbogard%aol.net
f1ce4f6a5b Temporarily disable the assertion since it really is aggrevated on viewer. 2000-03-11 11:56:33 +00:00
norris%netscape.com
5add6838c7 Fix Linux bustage. 2000-03-11 03:20:25 +00:00