2466 Commits

Author SHA1 Message Date
edburns%acm.org
9d9e08fdbe a=brendan,av
r=av
bug=50811

This bug fix was suggested by Stanley Ho <stanley.ho@eng.sun.com>.

Stanley proposed we overload the meaning of the nsIPluginStreamListener
argument to nsIPluginManager::{GetURL,PostURL}() so that it also may
implement an interface for reading headers.  Thus, the browser could QI
the plugin's nsIPluginStreamListener instance to this headers reading
interface and send the plugin the headers from the response.

I have implemented Stanley's above proposal.  I have defined a new
interface, nsIHTTPHeaderListener.idl with one method:

  /**

   * Called for each HTTP Response header.

   * NOTE: You must copy the values of the params.

   */

  void newResponseHeader(in string headerName, in string headerValue);

To affect this fix, I have added a new private method

nsPluginStreamListenerPeer::
ReadHeadersFromChannelAndPostToListener(nsIHTTPChannel *httpChannel,
                                        nsIHTTPHeaderListener *listener)

Then, modified nsPluginStreamListenerPeer::OnDataAvailable() to call
this method BEFORE reading the content data.  However, this fix makes
two important assumptions I would like to check out:

   * Assumption

   * By the time nsPluginStreamListenerPeer::OnDataAvailable() gets
   * called, all the headers have been read.

       * Assumption:

       * The return value from nsIHTTPHeader->{GetFieldName,GetValue}()
       * must be freed.

The following files are included in this fix:

A modules/plugin/public/nsIHTTPHeaderListener.idl
A modules/plugin/public/makefile.win
A modules/plugin/public/Makefile.in
M modules/plugin/nglsrc/nsPluginHostImpl.cpp


git-svn-id: svn://10.0.0.236/trunk@78980 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 06:40:57 +00:00
scc%mozilla.org
e5e006543d if you want a pointer to the characters, you're going to have to |.get()| it
git-svn-id: svn://10.0.0.236/trunk@78957 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 02:48:08 +00:00
cls%seawood.org
0ad20b5822 Change MDDEPDIR to fix a VPATH issue in srcdir builds.
git-svn-id: svn://10.0.0.236/trunk@78932 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 23:37:16 +00:00
ruslan%netscape.com
5a65d19fea proxy.ssl.connect pref should be always set to true; a=gagan
git-svn-id: svn://10.0.0.236/trunk@78909 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 21:42:54 +00:00
jeff.dyer%compilercompany.com
77c82c67ad FALSE -> PR_FALSE
git-svn-id: svn://10.0.0.236/trunk@78871 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 12:44:48 +00:00
jeff.dyer%compilercompany.com
b40292e6b9 FALSE -> PR_FALSE
git-svn-id: svn://10.0.0.236/trunk@78867 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 12:22:52 +00:00
jeff.dyer%compilercompany.com
d227ddb376 b=45692 r=edburns a=brendan: Enable liveconnect security.
git-svn-id: svn://10.0.0.236/trunk@78864 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 11:47:42 +00:00
warren%netscape.com
e8ba31ee50 Fixed error code.
git-svn-id: svn://10.0.0.236/trunk@78848 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 05:11:11 +00:00
dimator%netscape.com
2e1bf42a3f Changing default collect address book maximum from 200 to 700 cards. r=putterman
git-svn-id: svn://10.0.0.236/trunk@78826 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 01:53:20 +00:00
cls%seawood.org
646244734a OS_ARCH does not set release numbers
git-svn-id: svn://10.0.0.236/trunk@78726 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-11 08:08:24 +00:00
cls%seawood.org
e66480e1b7 Remove unneeded dep that's breaking old gnu makes
git-svn-id: svn://10.0.0.236/trunk@78721 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-11 06:26:48 +00:00
cls%seawood.org
5a43db5750 Fixing problem of standalone compoennts always building on every build pass. Adding objs.mk files to give better dependency handling. Bug #49937
git-svn-id: svn://10.0.0.236/trunk@78711 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-11 04:13:16 +00:00
cls%seawood.org
e76d6bcfa7 Make the ifdef match the comment here as well
git-svn-id: svn://10.0.0.236/trunk@78698 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-11 01:22:45 +00:00
ccarlen%netscape.com
631d0c38a2 Fix for Win95 machines which don't have APP_DATA dir
r=racham


git-svn-id: svn://10.0.0.236/trunk@78632 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 15:31:27 +00:00
rich.burridge%sun.com
60ae2bdd0c Fix to enable XPInstall to build/run on the Solaris platform.
r=sgehani@netscape.com  a=brendan@mozilla.org
BugId: #43080.


git-svn-id: svn://10.0.0.236/trunk@78627 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 14:18:48 +00:00
edburns%acm.org
7f44ca7382 r=av
a=waterson
bug=51919

This fix makes it so nsIPluginManager::PostURL() works correctly in the
case of a null target and non-null streamListener.

The fix was to add parameters to NewPluginURLStream() for headers and
post data:

   NS_IMETHOD
-  NewPluginURLStream(const nsString& aURL, nsIPluginInstance *aInstance, nsIPluginStreamListener *aListener);
+  NewPluginURLStream(const nsString& aURL, nsIPluginInstance *aInstance,
+                     nsIPluginStreamListener *aListener,
+                     void *aPostData = nsnull, PRUint32 aPostDataLen = 0,
+                     const char *aHeadersData = nsnull,
+                     PRUint32 aHeadersDataLen = 0);

And to add a new method to correctly send the headers to the channel:

+  NS_IMETHOD
+  AddHeadersToChannel(const char *aHeadersData, PRUint32 aHeadersDataLen,
+                      nsIChannel *aGenericChannel);

Files in this fix:

M modules/plugin/nglsrc/nsPluginHostImpl.cpp
M modules/plugin/nglsrc/nsPluginHostImpl.h


git-svn-id: svn://10.0.0.236/trunk@78554 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-08 23:58:36 +00:00
dimator%netscape.com
79c7065b2e Adding aging to collected address book. bug 46343. r=mscott
git-svn-id: svn://10.0.0.236/trunk@78534 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-08 22:56:08 +00:00
jband%netscape.com
c93adf1a1c warren's fix for the new/free mismatch undid kin's fix for the same problem. Also fix an off by one in the backwards 'for' loop. r=warren
git-svn-id: svn://10.0.0.236/trunk@78511 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-08 09:36:35 +00:00
warren%netscape.com
7122cc624e Bug 50844. Fixed mismatched memory free.
git-svn-id: svn://10.0.0.236/trunk@78487 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-08 04:39:17 +00:00
sfraser%netscape.com
f38e17cc75 Fix build for kandrot. Export NR_RegSetBufferSize from libreg.
git-svn-id: svn://10.0.0.236/trunk@78481 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-08 03:52:11 +00:00
kandrot%netscape.com
7c6d710dc2 Fix for bug #46709. Missed this file in checkin.
r=rayw


git-svn-id: svn://10.0.0.236/trunk@78478 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-08 02:44:13 +00:00
kandrot%netscape.com
4efd61dfe0 Fix for bug #46709.
Allows buffer size of registry to change.

r=rayw


git-svn-id: svn://10.0.0.236/trunk@78471 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-08 01:53:15 +00:00
kandrot%netscape.com
df46e3cf1c Fix for bug #46709
Allows registry buffer size to be modified.  Increases buffer size during
initial start up, then decreases size.

r=rayw


git-svn-id: svn://10.0.0.236/trunk@78470 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-08 01:51:45 +00:00
mscott%netscape.com
9b2caee4b9 Bug #43556 --> remove obsolete reference to old class id for the mime service. use the new one.
r=valeski


git-svn-id: svn://10.0.0.236/trunk@78452 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-08 00:24:13 +00:00
radha%netscape.com
05c21c940b Fix for bug # 43871. Pref to disable/enable autocomplete. r=ducarroz.
git-svn-id: svn://10.0.0.236/trunk@78422 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-07 21:19:36 +00:00
kin%netscape.com
f9f4e41f8c Fix for bug #50927: UMR and FMM: nsJARChannel::GetContentType().
Added check for NULL mJAREntry and we now free filename with 'delete'.
r=warren@netscape.com


git-svn-id: svn://10.0.0.236/trunk@78414 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-07 19:31:10 +00:00
morse%netscape.com
feb9add6f2 bug 51338, cookie nag box not modal, r=mstoltz
git-svn-id: svn://10.0.0.236/trunk@78354 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-07 07:00:36 +00:00
tor%cs.brown.edu
a669be3da9 Output console warning if chrome images are abusing alpha (8-bit
channel to represent binary alpha or fully opaque 1-bit alpha).
r=bryner, a=brendan.


git-svn-id: svn://10.0.0.236/trunk@78245 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-06 04:42:38 +00:00
pnunn%netscape.com
029db4bdd6 bug#50778: not a fix, but ifdef code to switch "pin chrome" on&off.
git-svn-id: svn://10.0.0.236/trunk@78201 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-06 00:23:46 +00:00
cata%netscape.com
f364da6ba8 Fix for bug #47341 r=ftang a=ftang.
git-svn-id: svn://10.0.0.236/trunk@78197 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-05 23:54:59 +00:00
mcafee%netscape.com
c275ddffde Removing unused pref (51246). r=pavlov
git-svn-id: svn://10.0.0.236/trunk@78185 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-05 23:03:39 +00:00
rpallath%eng.sun.com
d385e07aaa Reviewed by Ed Burns
Added MOZ_DEBUG flags and include stmts. to copy dll's to bin/components
dir.


git-svn-id: svn://10.0.0.236/trunk@78164 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-05 20:58:42 +00:00
rpallath%eng.sun.com
3e65b3bf81 Reviewed by Ed Burns
Check for OS type and accordingly reflect  mozilla executable name


git-svn-id: svn://10.0.0.236/trunk@78163 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-05 20:57:20 +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
tor%cs.brown.edu
828397c1f8 Bug 46700 - use 1-bit alpha if tRNS chunk indicates binary alpha.
r=newt@pobox.com, a=brendan@mozilla.org.


git-svn-id: svn://10.0.0.236/trunk@78145 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-05 18:47:43 +00:00
dbaron%fas.harvard.edu
54d7d67487 Fixing scc's typo to fix harpoon orange, etc. r=scc
git-svn-id: svn://10.0.0.236/trunk@78094 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-04 01:19:36 +00:00
scc%mozilla.org
987c59caba we think the fix is in to support the original form, so back to the original form we go
git-svn-id: svn://10.0.0.236/trunk@78092 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-04 00:50:50 +00:00
scc%mozilla.org
8d79857f8d and here we are, back to square one.
git-svn-id: svn://10.0.0.236/trunk@78070 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-03 08:25:02 +00:00
scc%mozilla.org
4b21dc27b1 fix speedracer bustage
git-svn-id: svn://10.0.0.236/trunk@78065 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-03 05:54:31 +00:00
scc%mozilla.org
6916463750 I'll try anything, now
git-svn-id: svn://10.0.0.236/trunk@78057 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-03 03:25:42 +00:00
scc%mozilla.org
98679d961e OK, nothing has worked yet. It's time to roll out the big guns: |NS_READABLE_CAST|
git-svn-id: svn://10.0.0.236/trunk@78055 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-03 02:50:18 +00:00
scc%mozilla.org
7a8da7c16b hack to fix pravda and speedracer bustage
git-svn-id: svn://10.0.0.236/trunk@78050 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-03 01:38:38 +00:00
scc%mozilla.org
a68b29cf43 hack to fix pravda bustage
git-svn-id: svn://10.0.0.236/trunk@78046 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-03 00:25:42 +00:00
akkana%netscape.com
9834f29a1e 50935: make multiline paste into single line text control switchable. r=mjudge
git-svn-id: svn://10.0.0.236/trunk@77917 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-01 21:12:43 +00:00
jst%netscape.com
2732505c41 Fixing assertion on startup. r=vidur
git-svn-id: svn://10.0.0.236/trunk@77908 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-01 19:07:15 +00:00
pnunn%netscape.com
d74d33cea6 bug#13718: add hooks for natural dimensions of image. pnunn. r:cmanske, kmmcclusk
git-svn-id: svn://10.0.0.236/trunk@77819 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-01 01:13:28 +00:00
pnunn%netscape.com
74ef2e3d9f bug#50614: leak fix. pnunn. r:bruce
git-svn-id: svn://10.0.0.236/trunk@77816 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-01 01:09:30 +00:00
brendan%mozilla.org
47f8253c72 Use lazy JS class init to save memory and cycles; also expand tabs per Emacs modeline (46703, r=blizzard@mozilla.org).
git-svn-id: svn://10.0.0.236/trunk@77725 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-31 02:59:59 +00:00
jst%netscape.com
0b04376254 Fixing nsbeta3+ bug 48213 and most of bug 48161. Finally removing the temporary DOM Level 2 debugging code, cleaning out some unused code and making getAttribute and setAttribute on HTML elemensts case insensitive. r=vidur@netscape.com, waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@77692 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-31 00:36:31 +00:00
slamm%netscape.com
baba352c79 Sidebar customize dialog: More panels link (47585). r=mcafee
git-svn-id: svn://10.0.0.236/trunk@77677 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-30 23:41:17 +00:00