dougt%netscape.com
7af79c83df
Revising nsIChannel to allow for overlapped i/o. This consists of three parts:
...
1. Factoring nsIChannel into a protocol specific part, the nsIChannel, and a socket specific, the nsITransport.
2. Derive the nsIChannel from a nsIRequest.
2. Changes the notification system from necko and the URILoader to pass the nsIRequest interface instead of nsIChannel interface.
This goal stems from wanting to be able to have active AsyncRead and AsyncWrite operations on nsSocketTransport.
This is desired because it would greatly simplify the task of maintaining persistent/reusable socket connections
for FTP, HTTP, and Imap (and potentially other protocols). The problem with the existing nsIChannel interface is
that it does not allow one to selectively suspend just one of the read or write operations while keeping the other active.
The full details of the change on written up in the netlib newsgroup.
r=darin@netscape.com
sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@86717 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-10 00:16:26 +00:00
akkana%netscape.com
8d173621f0
56296: Disable popping up new window on target=, pref controlled. r=dveditz, sr=brendan
...
git-svn-id: svn://10.0.0.236/trunk@85601 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-27 01:08:36 +00:00
locka%iol.ie
149cc8d129
Changed docshell so it turns the mouse pointer "busy" in the associated window while it is loading a document. Removed the hack in the navigator chrome that used the throbber status to set the busy pointer. b=30375 sr=rpotts@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@85571 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-26 12:35:32 +00:00
rpotts%netscape.com
227a3f4981
bug #15345 (sr=mscott). Replaced nsIDocumentLoaderObserver with nsIWebProgressListener... Also some whitespace cleanup :-)
...
git-svn-id: svn://10.0.0.236/trunk@83916 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-20 23:18:03 +00:00
locka%iol.ie
fc5ff9fc9c
Moved URI fixup code out of docshell and into a global service. b=51702, sr=waterson@netscape.com
...
git-svn-id: svn://10.0.0.236/trunk@82434 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-08 21:00:37 +00:00
radha%netscape.com
948853ce46
More fixes for bug # 46828. r=pollmann sr=rpotts
...
git-svn-id: svn://10.0.0.236/trunk@82220 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-02 06:34:44 +00:00
mscott%netscape.com
17e47fb76c
Bug #47636 --> add methods to convert back and forth between a nsIDocShellLoadTypeInfo
...
and a docshell load tye. Unify nsIURILoadCommand and nsIDocShellLoadType enums so they
can be treated as the same type.
r=radha, sr=rpotts
git-svn-id: svn://10.0.0.236/trunk@80965 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 23:17:02 +00:00
locka%iol.ie
b3b9b2c9a7
Changes to loadURI & reload methods on nsIDocShell, nsIWebNavigation. b=50949, r=radha, a=radha
...
git-svn-id: svn://10.0.0.236/trunk@79623 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-20 12:23:53 +00:00
rpotts%netscape.com
ec1ad68225
bug #37434 . Added an attribute to nsIDocShellLoadInfo to indicate whether the active document should be stopped immediately...
...
git-svn-id: svn://10.0.0.236/trunk@78654 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-10 06:00:46 +00:00
edburns%acm.org
f4ed6ebe07
This was tested on win32, and is known to build on win32 and solaris.
...
Right now, nsIPluginManager::PostURL() has parameters for
postHeadersLength and postHeaders. However, nothing is being done with
these parameters. This bug fix utilizes these params for their intended
purpose: to allow the plugin the ability to add HTTP headers to a POST
data stream.
Important assumptions made by this fix:
* postHeadersLength is the correct length for postHeaders.
* postHeaders is a buffer of headers in the form
"HeaderName: HeaderValue\r\n"
each header, including the last, MUST be followed by "\r\n".
To affect this fix I had to modify the following files:
M docshell/base/nsDocShell.cpp
M docshell/base/nsDocShell.h
M docshell/base/nsWebShell.cpp
M modules/plugin/nglsrc/nsPluginViewer.cpp
M docshell/base/nsWebShell.h
M layout/html/base/src/nsObjectFrame.cpp
M modules/plugin/nglsrc/nsIPluginInstanceOwner.h
M modules/plugin/nglsrc/nsPluginHostImpl.cpp
M modules/plugin/nglsrc/nsPluginInstancePeer.cpp
M webshell/public/nsILinkHandler.h
Basically, it involved clearing a path so the headers arguments can make
it down to nsIPluginInstanceOwner::GetURL()'s implementation in
nsObjectFrame.cpp, where an nsIInputStream is made of the headers.
git-svn-id: svn://10.0.0.236/trunk@78153 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-05 19:03:56 +00:00
mscott%netscape.com
8f2702399e
Bug #32387,47365, 46331, 46338, 23734 --> reset the load type when we get a redirected url so it gets added to
...
session history properly. Only add to session history if the url resulted in document being
loaded.
r=radha
git-svn-id: svn://10.0.0.236/trunk@77944 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-01 22:34:19 +00:00
mstoltz%netscape.com
fc5da7534f
Fixing exploits involving changing the location of a window and getting the wrong principal. Bug 48723, r=vidur
...
git-svn-id: svn://10.0.0.236/trunk@77748 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-31 05:53:32 +00:00
locka%iol.ie
09805179ae
API changes for embedding. b=46847, r=dougt, a=valeski
...
git-svn-id: svn://10.0.0.236/trunk@77213 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-25 18:39:46 +00:00
valeski%netscape.com
194dc0bbee
moving the docshell lib to the components dir and macro'izing some decls. 45723
...
git-svn-id: svn://10.0.0.236/trunk@74432 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 02:57:05 +00:00
rpotts%netscape.com
f002160c22
More session history cleanup... Reorganizing the code and removing SH_IN_FRAMES ifdefs... (r=radha)
...
git-svn-id: svn://10.0.0.236/trunk@73881 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 05:17:49 +00:00
rpotts%netscape.com
bc20fd3c03
Moved session history methods from nsIWebNavigation into a new interface called nsIDocShellHistory. Also made docshells persist layout state before being destroyed (this is necesssary for framesets).
...
git-svn-id: svn://10.0.0.236/trunk@73703 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 23:10:29 +00:00
radha%netscape.com
8949f863cb
Enabling feature "Session History in frameset pages". bug # 36547. Reviewer for this checkin
...
as well as several previous checkins related to this bug is rpotts.
git-svn-id: svn://10.0.0.236/trunk@73654 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-04 18:51:14 +00:00
valeski%netscape.com
d2709265b5
39474. r=rpotts,mscott. We now can load a stream directly into the uri loader (bypassing necko). built and pre-checkin tested on linux and win
...
git-svn-id: svn://10.0.0.236/trunk@73603 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 23:39:30 +00:00
radha%netscape.com
c8ae707155
More code for feature 36547. CODE NOT PART OF THE BUILD. Will provide reviewer when
...
feature is enabled.
git-svn-id: svn://10.0.0.236/trunk@73539 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 21:48:18 +00:00
radha%netscape.com
83f086107a
More checkins for feature bug 36547. CODE NOT PART OF THE BUILD. reviewer will be provided
...
when feature is enabled.
git-svn-id: svn://10.0.0.236/trunk@73125 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 23:54:30 +00:00
mscott%netscape.com
c89cf4f0fc
Bug #30157 --> add the ability to launch urls using OS default protocol handlers. You must set a pref to
...
enable this behavior.
r=valeski
git-svn-id: svn://10.0.0.236/trunk@73030 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 04:44:36 +00:00
mscott%netscape.com
c7232c80dc
Bug #10802 --> expose load types to load info class so callers can set the load type
...
this is needed to implement things like open attachment so we can make the doc shell
think a user click happened when it talks to the uriloader.
I removed two boolean fields which were representing two load types. Simplified the api by allowing you
to pass in any of our load types.
r=valeski
git-svn-id: svn://10.0.0.236/trunk@72909 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 07:22:23 +00:00
rpotts%netscape.com
d40c34e0a8
DocShell cleanup. Removed the implementation of the unused nsIDocSHell::SetDocument() method and moved the implementation responsibility to the nsIContentViewer
...
git-svn-id: svn://10.0.0.236/trunk@72889 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 05:38:07 +00:00
radha%netscape.com
228d30b9de
More code for feature bug 36547. CODE NOT PART OF TEH BUILD. reviewer will be provided when the feature is enabled.
...
git-svn-id: svn://10.0.0.236/trunk@72888 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 05:36:13 +00:00
radha%netscape.com
48f3b6c24f
More checkins for feature bug 36547. r=self(module owner) All code in this checkin are unused
...
ie., feature not enabled.
git-svn-id: svn://10.0.0.236/trunk@72743 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 06:40:08 +00:00
rpotts%netscape.com
7a02e24f0f
Made the nsDocShell a nsIWebProgressListener. This is a first step for the Session History changes and ultimately removing the nsIDocumentLoaderObserver interface...
...
git-svn-id: svn://10.0.0.236/trunk@72644 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 07:59:45 +00:00
rpotts%netscape.com
406f61beb3
Reworked the nsIWebProgress interfaces and implementation...
...
git-svn-id: svn://10.0.0.236/trunk@72533 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-19 05:54:37 +00:00
mstoltz%netscape.com
ab175b2de3
Fix for bug 31818. Dogfood. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@72152 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-13 23:56:30 +00:00
ruslan%netscape.com
b71f202bd0
Fix 41269. WIP on 31189. r/a=gagan
...
git-svn-id: svn://10.0.0.236/trunk@71387 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-02 21:02:31 +00:00
hyatt%netscape.com
2c36f54e77
Adding support for weak references on docshells.
...
git-svn-id: svn://10.0.0.236/trunk@71024 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-28 09:25:55 +00:00
locka%iol.ie
983bffdc95
Fixed problem with internation pages, bug 40320
...
Fixed problem with reloading the same page twice bug 40318
Reviewed by rahda
git-svn-id: svn://10.0.0.236/trunk@70688 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-23 22:36:47 +00:00
locka%iol.ie
dc158b6469
New parameter for AddToSessionHistory #39668
...
git-svn-id: svn://10.0.0.236/trunk@70641 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-23 00:51:37 +00:00
sfraser%netscape.com
46c0606929
Fix timer refcount issues in docshell, fixes bugs 39641, 39617. r=pavlov a=leaf
...
git-svn-id: svn://10.0.0.236/trunk@70405 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-17 20:24:43 +00:00
davidm%netscape.com
90b0c858aa
21137 Hook up reload/shift-reload/back/forward buttons to load att
...
r = rpotts
git-svn-id: svn://10.0.0.236/trunk@69084 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-10 22:45:24 +00:00
tbogard%aol.net
5ccd89354b
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.
...
git-svn-id: svn://10.0.0.236/trunk@66798 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 23:31:40 +00:00
tbogard%aol.net
654300ddb3
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.
...
git-svn-id: svn://10.0.0.236/trunk@66127 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 08:39:15 +00:00
tbogard%aol.net
a92109cc36
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.
...
git-svn-id: svn://10.0.0.236/trunk@65757 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 03:11:44 +00:00
tbogard%aol.net
39e0862ae5
Added an attribute for holding the charset info to be used during a load.
...
git-svn-id: svn://10.0.0.236/trunk@65633 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 00:07:04 +00:00
tbogard%aol.net
4f35b6560c
Provided implementation for CreateFixupURI. Added needed parameters to DoURILoad and finished implementation. InternalLoad now takes needed parameters as well.
...
git-svn-id: svn://10.0.0.236/trunk@65628 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 23:52:42 +00:00
tbogard%aol.net
cd915d2b75
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.
...
git-svn-id: svn://10.0.0.236/trunk@65088 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-04 00:04:04 +00:00
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