232 Commits

Author SHA1 Message Date
waterson%netscape.com
fce779f76c Fix bustage better.
git-svn-id: svn://10.0.0.236/trunk@92157 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-13 03:19:29 +00:00
waterson%netscape.com
0a32ffd8fc Fix bustage.
git-svn-id: svn://10.0.0.236/trunk@92156 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-13 03:18:01 +00:00
waterson%netscape.com
eb0669ba97 Bug 75623, and part of bug 75576. Make sure we only fire OnStartRequest() once. Also, the doc loader should handle nsIRequests that aren't nsIChannel objects; this fix cleans that up. r=pavlov, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@92151 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-13 02:32:02 +00:00
darin%netscape.com
9d03c579d0 Necko API changes, bug 74221. r=valeski, sr=rpotts.
git-svn-id: svn://10.0.0.236/trunk@91842 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-10 06:01:08 +00:00
rpotts%netscape.com
586fe1fd3b bug #73244 (r=darin, sr=mscott). The DocLoader cannot assume that an nsIRequest is necessarily an nsIChannel...
git-svn-id: svn://10.0.0.236/trunk@90706 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-29 00:12:49 +00:00
dougt%netscape.com
175245e2de Relanding Necko Changes.
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.

r=darin@netscape.com
sr=rpotts@netscape.com


git-svn-id: svn://10.0.0.236/trunk@87587 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-21 20:38:08 +00:00
disttsc%bart.nl
03f69c5003 Back out dougt's channel changes
git-svn-id: svn://10.0.0.236/trunk@86793 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-12 03:14:23 +00:00
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
valeski%netscape.com
038cdde0c2 r=ccarlen, sr=rpotts. 65925. making webprogress implementation store weak refs to listeners.
git-svn-id: svn://10.0.0.236/trunk@85867 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-31 21:02:08 +00:00
rpotts%netscape.com
a63a689198 bug #62955 - Dialog boxes are the wrong size.
git-svn-id: svn://10.0.0.236/trunk@84034 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-23 06:07:38 +00:00
mscott%netscape.com
3d4b1daba2 Bug #59827 --> pass the redirect flag up via a OnStatechange if we get a redirect. Also set the is document
flag if the original channel matches mDocumentChannel.
sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@83865 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-19 22:07:58 +00:00
rpotts%netscape.com
fa30354552 bug #46866. Added a read-only DOMWindow attribute to nsIWebProgress.
git-svn-id: svn://10.0.0.236/trunk@83666 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-14 23:26:35 +00:00
mscott%netscape.com
20116a00b3 Bug #56938 --> add a method for retrieving the doc loader's
document channel.
r=sspitzer, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@82139 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-01 08:04:49 +00:00
warren%netscape.com
a8b9664a8c Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc.
git-svn-id: svn://10.0.0.236/trunk@81967 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 22:17:53 +00:00
warren%netscape.com
b725c37ce9 Removed extra 0 arg
git-svn-id: svn://10.0.0.236/trunk@81893 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 23:21:30 +00:00
warren%netscape.com
c6b67eceeb Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 22:43:51 +00:00
mscott%netscape.com
455ed3c418 Bug #56934 --> properly determine the status for on end document load. We used to
use the status of the last request processed in loading the document to determine
success or failure. That's incorrect. Instead, test to see if the load group is being
canceled. If it is, use that as the status for the entire document. Otherwise, ignore
the status for the last request and instead use the status for the main document
(the default load channel).
sr=rpotts, r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@81801 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-26 06:34:20 +00:00
dougt%netscape.com
5b5da682a9 + Added OnSecurityChange() to nsIWebProgressListener interface.
+ Added dummy function to all users of nsIWebProgressListener
+ Added new security event sink.
+ Hooked up new event sink to docloader and friends.
+ Fixed memory leaks and crashes in nsSecureBrowserImpl.
+ Added AlertPrompt to nsIPrompt Interface.
+ Enabling xpcom test on unix.

Fixes bug 46872.  r=valeski/rpotts


git-svn-id: svn://10.0.0.236/trunk@79206 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 22:56:56 +00:00
mscott%netscape.com
b96f88a453 Bug #50427 --> comment out our OnRedirect implementation. It was causing nasty side effects
because we aren't told if the main document url is getting redirected or if a part (like an
image) is getting redirected. This caused the urlbar to get incorrectly updated.
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@77941 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-01 22:26: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
mscott%netscape.com
34fc1931c1 Bug #27048 --> implement nsIHTTPEventSink
r=valeski


git-svn-id: svn://10.0.0.236/trunk@77142 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-25 01:32:40 +00:00
rpotts%netscape.com
9cb00c28be bug #39381. The last channel in a document was not firing a request done notification - only a document done...
git-svn-id: svn://10.0.0.236/trunk@76994 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-24 00:08:15 +00:00
warren%netscape.com
997161d193 Factored string bundles out of necko. Fixes bug 42107 - need to fix string bundle init workaround. Also bug 40506 - nsIWebProgressListener needs status text. Status messages now work in mozilla and viewer with internationalized and parameterized text! Added temporary error architecture until bug 13423 can be fixed. Extended nsIStringBundleService to provide method to format status message. r=valeski,jband,tao. verified=mstoltz
git-svn-id: svn://10.0.0.236/trunk@74729 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-25 05:45:56 +00:00
valeski%netscape.com
eada5b3feb 45723. r=rpotts. webshell-docshell consolodation changes.
git-svn-id: svn://10.0.0.236/trunk@74414 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 23:37:53 +00:00
rpotts%netscape.com
1760eb8eb4 Fixed memofy leak of StdURLs introduced by the last checkin...
git-svn-id: svn://10.0.0.236/trunk@72633 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 05:14:42 +00:00
jdunn%netscape.com
c67a8b078a adding newline, required by HPUX
git-svn-id: svn://10.0.0.236/trunk@72541 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-19 13:03:52 +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
rpotts%netscape.com
88299ce209 Removed nsLoadCookie and made nsDocLoader implement nsIInterfaceRequestor directly...
git-svn-id: svn://10.0.0.236/trunk@68565 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-07 02:01:10 +00:00
mscott%netscape.com
ae6534e99e add thread safey addref and release macros to docloader.
git-svn-id: svn://10.0.0.236/trunk@68255 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-04 21:34:50 +00:00
pavlov%netscape.com
4af9c6adc5 string api changes r=scc
git-svn-id: svn://10.0.0.236/trunk@67088 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 05:40:45 +00:00
mscott%netscape.com
eff72069e6 need to fake a onprogress change for the parent
docloader...Fix viewer crash by returning aChannel instead of the
doc channel.


git-svn-id: svn://10.0.0.236/trunk@67026 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:45:37 +00:00
mscott%netscape.com
2693ece9ce Bug #33156 --> implment onChildStatusChanged AND progress notifications for the doc loader
through the web progress interfaces. In order to implement progress, the doc loader now implements
nsIProgressEventSink and receives events directly from the channels.


git-svn-id: svn://10.0.0.236/trunk@66879 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 23:16:31 +00:00
mscott%netscape.com
6b14d19867 Bug #36221 --> throbber never stops when loading a frameset doc.
I was signaling the stop notification via a OnchildStatus in this scenario. We should always signal the start
and stop of documents as a status change even if a child is originating the change.


git-svn-id: svn://10.0.0.236/trunk@66312 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 21:39:09 +00:00
mscott%netscape.com
c776f5aa61 Pass in the right channel into the web progress listener.
git-svn-id: svn://10.0.0.236/trunk@65943 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 03:28:23 +00:00
tbogard%aol.net
213b98cae5 Changed the Status flags to be transition flags rather than flat current state. This makes it easier to implement a listener. Otherwise you are forced to cache the last status and then determine transitions based on the deltas.
git-svn-id: svn://10.0.0.236/trunk@65129 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-04 02:45:32 +00:00
mscott%netscape.com
3dca74d3bf Bug #34321,34350 --> be sure to set the web progress listener on the doc loader
before every load.
r=travis


git-svn-id: svn://10.0.0.236/trunk@65062 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-03 22:41:26 +00:00
mscott%netscape.com
03e4b44c53 Bug #33156 --> the doc loader now implements nsIWebProgress and makes basic notifications to a registered
nsIWebProgressListener.

Right now, the only methods that are hooked up are signaling when the doc loader is busy loading a document and
when it is done loading a document.


git-svn-id: svn://10.0.0.236/trunk@64991 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-03 02:26:05 +00:00
warren%netscape.com
9fa657f1cd 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.
git-svn-id: svn://10.0.0.236/trunk@64449 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-29 03:58:50 +00:00
mscott%netscape.com
bb5fc949ce Bug #28776,28569 --> add method for clearing out the parent doc loader
now that we don't leak the global doc loader, there are times when it gets destroyed b4 it's children during
the shutdown process.
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@63998 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-24 05:45:31 +00:00
ftang%netscape.com
18b8424048 change the interface and pass nsISupport* for document instead of PRInt32 so we won't drop
data on 64-bits machine. r=harishd


git-svn-id: svn://10.0.0.236/trunk@63800 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-23 00:53:53 +00:00
mscott%netscape.com
19fd67c1b6 (NOT Part of the build yet!!)
Refacting of doc loader into the uri loader
r=travis


git-svn-id: svn://10.0.0.236/trunk@59154 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-29 04:41:04 +00:00
norris%netscape.com
e4653042f2 Files:
caps/include/nsScriptSecurityManager.h
	caps/src/nsScriptSecurityManager.cpp
	modules/libpref/src/init/all.js
Fix
24565 nsScriptSecurityManager::GetSecurityLevel() is a performance
24567 re-write DOM glue security checks to avoid NS_WITH_SERVICE()
r=waterson

Files:
	dom/src/base/nsGlobalWindow.cpp
	layout/base/src/nsDocument.cpp
	layout/base/src/nsGenericElement.cpp
Fix assertion failure for 1-character property names.


Files:
	dom/src/jsurl/nsJSProtocolHandler.cpp
	webshell/src/nsDocLoader.cpp
Fix 18653 "javascript:" URLs cross windows problems (probably regressi
r=nisheeth

Files:
	layout/events/src/nsEventListenerManager.cpp
Fix
23834 document.onkeypress allows sniffing keystrokes
24152 document.onclick shows links from other window
r=joki


git-svn-id: svn://10.0.0.236/trunk@58429 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-23 04:23:14 +00:00
mscott%netscape.com
30c9c2ebf9 loading a uri takes the channel instead of the uri. The caller
must create the channel before call openuri.
r=rpotts.


git-svn-id: svn://10.0.0.236/trunk@58024 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-17 19:56:31 +00:00
rpotts%netscape.com
8457af366d bug #23055 (r=warren). Added LOAD_DOCUMENT_URI load attribute for the DocLoader to distinguish doc URIs
git-svn-id: svn://10.0.0.236/trunk@57915 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-15 06:12:54 +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
rpotts%netscape.com
6c8a79d72b Removed obsolete method nsIDocumentLoader::LoadOpenedDocument.
git-svn-id: svn://10.0.0.236/trunk@56596 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-29 05:10:21 +00:00
rpotts%netscape.com
7edf0d4069 DocLoader reorg...Removed the implementations of LoadDocument(...), LoadOpenedDocument(...) and the nsDocumentBindInfo.
git-svn-id: svn://10.0.0.236/trunk@56585 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-28 23:22:26 +00:00
rpotts%netscape.com
371f386d8d Starting to integrate the DocLoader and URI loader... Removed the Channel listener and the need for nsDocumentBindInfo objects. Now all URI loading is done by the URI loader.
git-svn-id: svn://10.0.0.236/trunk@56566 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-28 09:16:15 +00:00
morse%netscape.com
3bd5c1ab59 needed for foreign-cookie pref, bug 13655, coded by rpotts, r=morse, a=chofmann
git-svn-id: svn://10.0.0.236/trunk@56187 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-18 05:16:18 +00:00
morse%netscape.com
2212bec5c1 back out last change temporarily until we can fix leak
git-svn-id: svn://10.0.0.236/trunk@56136 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-17 04:05:53 +00:00