Fix for bug # 10333. Made webshell a progress event sink as well so that now it redirects all progress messages from necko land to the appropriate docloader observer. The hack to delete strings which are being received in the status messages is a work around the current limitation of the proxy event code. When bug # 16273 is fixed that delete wont be necessary. In fixing this I also noticed that the nsFileTransport wasn't using the proxy events and was incorrectly firing status messages directly onto the UI thread. Fixed that as well. r=rpotts,warren

git-svn-id: svn://10.0.0.236/trunk@50588 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gagan%netscape.com
1999-10-13 10:24:12 +00:00
parent 821cb4f5b2
commit b3785299ff
21 changed files with 465 additions and 99 deletions

View File

@@ -87,10 +87,9 @@ class ScriptFile {
boolean outDirty = false;
if (file != null)
{
DataInputStream in =
new DataInputStream(
new BufferedInputStream(
new FileInputStream(file)));
BufferedReader in = new BufferedReader(
new InputStreamReader(
new FileInputStream(file)));
String s = new String();
while((s = in.readLine())!= null)
@@ -163,10 +162,9 @@ class ScriptFile {
}
protected void WriteOutFile(String filename) throws IOException {
DataInputStream incl =
new DataInputStream(
new BufferedInputStream(
new FileInputStream(filename)));
BufferedReader incl = new BufferedReader(
new InputStreamReader(
new FileInputStream(filename)));
// This doesn't have to be line wise... change later TODO
String s;
while ((s = incl.readLine()) != null)