Closed Bug 69828 Opened 25 years ago Closed 25 years ago

nsWebBrowserPersist tries to open streams synchronously and asynchronously

Categories

(Core Graveyard :: Embedding: APIs, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: adamlock, Assigned: adamlock)

Details

Attachments

(1 file)

nsWebBrowserPersist has some wacky and non-sensical code to open the same channel both asynchronously and synchronously. Get rid of one of them, preferably the async code.
hmm, I'd be in favor of using the Async api over the sync one. The sync api is going to block whatever thread winds up calling it.
I have removed the async code for the time being because this does not interfere with the intended way this object was supposed to work. Essentially nsWebBrowserPersist was meant to return immediately after SaveURI was called and then save the content as it arrived via listeners. I could change it to remove the synchronous code but that would require a more substantial modification.
r=dougt. Thanks Doug, changes are checked in. Marking fixed.
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Correction: Changing QA contact for the Embed API bugs to David Epstein.
QA Contact: mdunn → depstein
changed QA contact to dsirnapalli. he's looking at this interface.
QA Contact: depstein → dsirnapalli
adam,did you remove asynchronous code or synchronous code because i see rv = inputChannel->AsyncOpen(this, nsnull); in nsWebbrowserPersist.cpp.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
The patch removed a bit of both. It removed the sync opening of the inputstream and the async opening of the output stream. My comments were a bit confusing I know :)
Status: REOPENED → RESOLVED
Closed: 25 years ago25 years ago
Resolution: --- → FIXED
marking bug as verified.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: