Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Go to file
edburns%acm.org a96a90e3d9 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
2000-09-13 06:40:57 +00:00
apache/gzip/src
build Cleaning up the rest of viewSource.xul build ID mess. b=52085, r=scc, a=brendan 2000-09-11 19:56:28 +00:00
calendar
caps bug 44147, caps grant dialog now being created from DOMWindow->GetPrompter instead of nsIPrompt service. r=dbragg 2000-09-09 00:53:21 +00:00
cck Adding customized UserAgent String to the Browser all-ns.js 2000-08-30 01:26:39 +00:00
chrome Backing out chrome registry changes. a=brendan 2000-09-13 03:07:26 +00:00
cmd updated license boilerplate to xPL v1.1 1999-11-02 22:43:10 +00:00
config Register chrome correctly in Mozilla debug builds when chrome jar packaging 2000-09-13 01:11:54 +00:00
content if you want a pointer to the characters, you're going to have to |.get()| it 2000-09-13 04:50:55 +00:00
db don't write out row comments for mork, r=waterson 44556 2000-07-26 21:14:34 +00:00
dbm Tinderbox break - change OS/2 only code - third time is a charm 2000-07-10 20:38:41 +00:00
directory Patch from <peter.vanderbeken@pandora.be> to keep LDAP building with the latest string changes. r=dmose@mozilla.org, a=(not built). 2000-09-06 01:25:19 +00:00
docshell 50188. removing webshell leak detection special macros. now we'll spew data in debug builds only 2000-09-11 22:06:52 +00:00
dom if you want a pointer to the characters, you're going to have to |.get()| it 2000-09-13 03:24:57 +00:00
editor if you want a pointer to the characters, you're going to have to |.get()| it 2000-09-13 04:59:07 +00:00
ef fix another XXX 1999-12-01 21:26:42 +00:00
embedding remove call to unset session history object. a=brendan 2000-09-08 14:51:57 +00:00
expat Some compilers don't like C++ comments in C files. Changing to C comments. 2000-08-30 01:35:07 +00:00
extensions bug 52026, crash when remembering cookie decisions, r=dveditz 2000-09-13 04:23:52 +00:00
gc/boehm rename void* to void, for file systems that don't like "*" in file names. emit a single JavaScript for showing stack crawls. 2000-09-12 00:09:06 +00:00
gconfig updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
gfx Put the nsPrintOptions into the factory for the Mac. r=kmmclusky. b=36796 2000-09-12 14:34:14 +00:00
grendel Added contribution from Ian Clarke. 2000-04-08 06:16:32 +00:00
htmlparser 52042: "Escape" classes inserted by our TXT recognizer(s) by prepending "moz-" 2000-09-13 02:11:00 +00:00
include Removing unused/obsolete files. Not part of build. 2000-09-01 02:30:52 +00:00
intl Fix for bug #49102 a=ftang r=ftang 2000-09-12 21:45:59 +00:00
java author = ashuk 2000-09-12 20:44:47 +00:00
jpeg Removed obsolete REQUIRES variable from every Makefile.in/makefile.win 2000-06-30 08:08:04 +00:00
js Fix uninitialized var bug found by one warning, silence another that's a can't-happen (r=jwbaker@acm.org). 2000-09-12 19:42:01 +00:00
js2 Fixing scope problems on Linux 2000-09-12 00:53:33 +00:00
l10n 51193: Corrections and incorporationg first feedback from the ng. r=David 'Master_D' Krause (mostly), a=brendan. 2000-09-08 08:50:27 +00:00
layout if you want a pointer to the characters, your going to have to |.get()| it 2000-09-13 04:47:36 +00:00
lib Remove QuickTimeLib from linkage, because it comes in already from InterfaceStubs. This fixes 1400 link warnings. 2000-09-10 20:09:09 +00:00
mailnews if you want a pointer to the characters, you're going to have to |.get()| it 2000-09-13 06:22:27 +00:00
modules a=brendan,av 2000-09-13 06:40:57 +00:00
msgsdk updating license boilerplate to xPL v1.1 1999-11-02 06:20:05 +00:00
mstone http stuff 2000-05-10 23:20:05 +00:00
netwerk bug #21095. First pass at a simple about:cache implementation... 2000-09-13 06:10:03 +00:00
network/protocol/http Converting usage of ::GetIID() to NS_GET_IID(). 2000-01-11 20:49:15 +00:00
nsprpub Bugzilla bug #30746: the primordial thread should wait for the timer 2000-09-01 18:26:28 +00:00
nunet updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 02:47:15 +00:00
parser 52042: "Escape" classes inserted by our TXT recognizer(s) by prepending "moz-" 2000-09-13 02:11:00 +00:00
plugin/oji/MRJ nsCSecurityContext -> MRJSecurityContext 2000-09-12 12:38:27 +00:00
privacy updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
profile if you want a pointer to the characters, you're going to have to |.get()| it 2000-09-13 02:48:08 +00:00
rdf if you want a pointer to the characters, you're going to have to |.get()| it 2000-09-13 04:50:55 +00:00
README/mozilla Just added a newline for test purposes 2000-08-04 04:49:05 +00:00
security attempt to fix bug 51882 (sig data w/ no signer infos) 2000-09-13 06:15:13 +00:00
silentdl Converting usage of ::GetIID() to NS_GET_IID(). 2000-01-11 20:49:15 +00:00
string adding |.get()| for the other half of |NS_LITERAL_STRING| 2000-09-13 03:44:58 +00:00
suite On 12/16/1999, dmose@mozilla.org checked in some changes to the default 1999-12-31 11:48:20 +00:00
sun-java Don't rely upon files that use jri_md.h to include prtypes.h which provides a much needed HAS_LONG_LONG define. Bug 31381 2000-07-27 21:56:07 +00:00
themes 52042: "Escape" classes inserted by our TXT recognizer(s) by prepending "moz-" 2000-09-13 02:11:00 +00:00
timer updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
tools New weekly data: not part of build. 2000-09-07 21:55:24 +00:00
tripledb updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 02:47:15 +00:00
uriloader Bug #43556 --> register our nsIMIMEService implementation with a progid. 2000-09-08 00:17:34 +00:00
view Revert back to old loop construct for dispatching events which is safer when the event destroys the current view bug 50335 r=attinasi@netscape.com 2000-08-31 02:31:17 +00:00
wallet updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
webshell 50188. removing webshell leak detection special macros. now we'll spew data in debug builds only 2000-09-11 22:06:52 +00:00
webtools fix for 51521: Broken HTML on user permissions page, patch by john.beranek@pace.co.uk 2000-09-13 00:09:36 +00:00
widget if you want a pointer to the characters, you're going to have to |.get()| it 2000-09-13 02:48:08 +00:00
xpcom adding |.get()| for the other half of |NS_LITERAL_STRING| 2000-09-13 03:44:58 +00:00
xpfc updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 02:47:15 +00:00
xpfe if you want a pointer to the characters, you're going to have to |.get()| it 2000-09-13 05:12:13 +00:00
xpinstall fixing bug #52347 - installer build script needs to be updated to calculate disk space size correctly given the new chrome archives. r=sgehani. Not part of tinderbox builds. Would only affect windows platforms. 2000-09-13 05:39:19 +00:00
.cvsignore Ignore .mozconfig.mk and .mozconfig.out (made by client.mk) 2000-03-23 23:29:16 +00:00
aclocal.m4 Pass MOZ_TOPSRCDIR to altoptions.m4. This allows third parties (like netscape) to refer to the mozilla copy rather than copying it (and mozconfig2configure and mozconfig-find) into their own tree. 2000-03-14 02:59:54 +00:00
allmakefiles.sh removing makefile that is no longer in the tree 2000-09-01 07:55:20 +00:00
client.mak revamp chrome zipping to fix dev vs. release build problems, also support bugscape bug 2152. r=dveditz 2000-09-07 09:34:29 +00:00
client.mk Remove obsolete pull l10n commands. 2000-06-29 00:18:55 +00:00
configure Automated update 2000-09-11 05:15:15 +00:00
configure.in Make sure we get demangling for --enable-trace-malloc builds, too. r=brendan 2000-09-11 05:08:09 +00:00
LEGAL
LICENSE
Makefile.in OS_ARCH does not set release numbers 2000-09-11 08:08:24 +00:00
makefile.win moving regchrome target into rules.mak so it'll work from anywhere 2000-09-07 12:06:38 +00:00
nglayout.mac updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
nglayout.mk updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
trex.mak updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00
trex.mk updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:43:54 +00:00