Closed Bug 111614 Opened 23 years ago Closed 22 years ago

parseFromString makes modal windows non-modal.

Categories

(Core :: XML, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.3beta

People

(Reporter: gsmedley, Assigned: hjtoi-bugzilla)

Details

(Whiteboard: [fixinhand])

Attachments

(1 file)

Calling DOMParser parseFromString from a modal window's onload function makes the window non-modal.
Ugh! One more problem because we cheat: we use the modal window event loop to make things synchronous. This will fix itself when bug 65985 is fixed.
Target Milestone: --- → Future
Depends on: 65985
QA Contact: petersen → rakeshmishra
Keywords: oeone
Actually I now know how to do this, I already have a patch for XMLHttpRequest syncload for 1.3beta. I should have time for this in 1.4alpha.
Target Milestone: Future → mozilla1.4alpha
Well, I lied, I made the patch already... attaching. It would be nice to get a testcase for this, though. Garth?
Status: NEW → ASSIGNED
No longer depends on: 65985
Target Milestone: mozilla1.4alpha → mozilla1.3alpha
Whiteboard: [fixinhand]
Comment on attachment 111745 [details] [diff] [review] Proposed fix Here is basically the same thing as XMLHttpRequest sync load, now for DOMParser (which I had forgotten).
Attachment #111745 - Flags: superreview?(darin)
Attachment #111745 - Flags: review?(bugmail)
Comment on attachment 111745 [details] [diff] [review] Proposed fix sr=darin
Attachment #111745 - Flags: superreview?(darin) → superreview+
Target Milestone: mozilla1.3alpha → mozilla1.3beta
Heikki: Garth won't be able to produce a testcase since he isn't working with us any longer. If it is necessary, I can probably put something together within a week (after I get through my current development crunch) - but let me know. Thanks muchly for addressing this.
Comment on attachment 111745 [details] [diff] [review] Proposed fix r=me. Bit it'd be really nice if we could find a simpler solution to this whole blocking thing. Spinning a new eventqueue seems exsessive for parsing a string.
Attachment #111745 - Flags: review?(bugmail) → review+
Fixed. Jesse, I was unable to reproduce the bug even with your instructions, so please verify this fix as soon as you can. This fix should fix your problem, as well as another problem: in embedding parseFromString returns too early if the string to parse makes the parser block (there was an xml-stylesheet PI for example). Thanks.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: