Closed Bug 189513 Opened 23 years ago Closed 9 years ago

Make XMLExtras and document.load use syncloader for sync loads

Categories

(Core :: XML, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: hjtoi-bugzilla, Unassigned)

References

Details

Attachments

(1 file)

XMLHttpRequest, DOMParser, and document.load (sync load not yet implemented) should probably be switched to syncloader. Now they have their own syncloading code.
Target Milestone: --- → mozilla1.4alpha
Moving to 1.4b for now, but might not happen until 1.5a.
Target Milestone: mozilla1.4alpha → mozilla1.4beta
Target Milestone: mozilla1.4beta → ---
QA Contact: rakeshmishra → ashishbhatt
In light of Jonas' statement in 190313 comment 8, I intend to revise XMLHttpRequest to use nsIChannel::Open directly, rather than revise both SyncLoadService [1] and XMLHttpRequest. Heikki or Jonas, can you confirm that this is the preferred route to fix critical bug 190313?
ccing Geoff Smith
I tried to rewrite nsIXMLHttpRequest::Send() to use nsIChannel::Open() and it works fine. However, it still blocks the UI as it is run from the UI thread (there are several warnings in the sources regarding using nsIChannel::Open() from the UI thread). At least it fixes the CPU load problem (bug 212820).
I've attached my changes of nsXMLHttpRequest.cpp. It is only a test of nsIChannel::Open() in this context, a proper patch should call event handlers as well.
Blocks: 190313
is this fixed darin's ptach in bug 326273?
Assignee: hjtoi-bugzilla → xml
QA Contact: ashshbhatt → xml
Assignee: xml → nobody
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: