Closed
Bug 322317
Opened 19 years ago
Closed 17 years ago
[FIX]After AJAX causes re-render, firefox drops information in web site.
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: palantar, Assigned: bzbarsky)
References
()
Details
(Keywords: testcase, Whiteboard: waiting on spec clarification from Anne)
Attachments
(3 files)
17 bytes,
text/plain
|
Details | |
785 bytes,
text/html
|
Details | |
2.17 KB,
patch
|
sicking
:
review+
sicking
:
superreview+
vlad
:
approval1.9+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5 After an AJAX call causes firefox to re-render a site by HTML substitution inside a div section, firefox sometimes drops the information. To demonstrate this, go to http://localhost/church/sermons.php and type in a single letter in the search box, such as "T". Most often, firefox completely drops the returned table in the rendering. If you go to view source, you will see the table. Also, if you save the file as an html file locally and open it with firefox, the table will appear correctly. Internet Explorer renders this page correctly. Reproducible: Sometimes Steps to Reproduce: 1.http://localhost/church/sermons.php 2.Type "T" in search box. Actual Results: Table dissapears instead of is rerenderd. Expected Results: New table should appear (Internet Explorer does it correctly).
Comment 1•19 years ago
|
||
I'm getting this problem when quickly typing two letters in the search box (or quickly pressing two times del after typing two letters in the search box) In that case, I get this in the js console: JavaScript error: , line 0: uncaught exception: [Exception... "Component returne d failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIXMLHttpRequest.send]" nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "JS frame :: http: //www.northwestbaptistchurchonline.org/sermons.php :: search :: line 18" data: no]
Assignee: nobody → xml
Component: General → XML
Product: Firefox → Core
QA Contact: general → ashshbhatt
Version: unspecified → Trunk
Comment 2•18 years ago
|
||
The site is not there anymore.
location of sermon app had move, updated with new url
Comment 4•18 years ago
|
||
Comment 5•18 years ago
|
||
Comment 6•18 years ago
|
||
Thanks for updating the url, palantar. I have the testcase also here: http://wargers.org/mozilla/bug322317/322317_xmlhttpreq.htm In IE7, I get on first load only once the '<i>Succeeded!</i>' alert, but I don't get any js errors. After that I always get 2 alerts, also after reload of the testcase. In Mozilla, I get an empty alert and the js error mentioned in comment 1. Another testcase, to see which code IE7 is using: http://wargers.org/mozilla/bug322317/322317_2_xmlhttpreq.htm It seems that IE7 just drops the first call on first load, without giving a js error. After first load, the xmlhttprequest file seems to be cached, and after that the xmlhttprequest code is carried out directly in IE7. So maybe Mozilla should do something more similar to IE7 here? I'm not if the xmlhttprequest has something to say about this.
Keywords: testcase
Comment 7•18 years ago
|
||
From http://dev.w3.org/cvsweb/~checkout~/2006/webapi/XMLHttpRequest/Overview.html?content-type=text/html;%20charset=utf-8#dfn-open "In addition, when the state is not uninitialized, all members of the object must be set to their initial values and user agents must behave as if abort() was invoked." Which I think is what applies here.
![]() |
Assignee | |
Comment 8•18 years ago
|
||
If I recall our code correctly, calling open() while already opened is exactly equivalent to calling abort() -- see http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/content/base/src/nsXMLHttpRequest.cpp&rev=1.168&mark=987,995#981 Perhaps that return NS_OK shouldn't be there? The spec Anne links to doesn't make it clear whether the expected behavior is to call abort() and then initialize things or to just call abort() or to initialize things and then call abort()...
Assignee: xml → general
Status: UNCONFIRMED → NEW
Component: XML → DOM: Mozilla Extensions
Ever confirmed: true
Flags: blocking1.9?
QA Contact: ashshbhatt → ian
![]() |
Assignee | |
Updated•18 years ago
|
Whiteboard: waiting on spec clarification from Anne
Comment 9•18 years ago
|
||
Marking blocking for now. Not sure this actually is a blocker, but it'd be *really* good to get this fixed.
Assignee: general → jonas
Flags: blocking1.9? → blocking1.9+
Target Milestone: --- → mozilla1.9beta1
Updated•17 years ago
|
Target Milestone: mozilla1.9 M8 → ---
Anne, what does the spec say to do here? Someone should renominate if the spec says to do something we don't
Flags: blocking1.9+
![]() |
Assignee | |
Comment 11•17 years ago
|
||
I think the spec _means_ to say "abort() and then reinit". Which is not what we do.
Flags: blocking1.9?
Comment 12•17 years ago
|
||
-'ing and marking wanted1.9 due to the fact this has shipped in 1.9.
Flags: wanted1.9+
Flags: blocking1.9?
Flags: blocking1.9-
![]() |
Assignee | |
Comment 13•17 years ago
|
||
You meant 1.8? The point is, the spec is new since 1.8. And one of our 1.9 goals is to comply with this spec... I do agree we shouldn't block on this, I guess, but it's _very_ much wanted.
![]() |
Assignee | |
Comment 14•17 years ago
|
||
This is not quite what the spec says to do (e.g. it says to do the input validation before aborting). But it's close for valid input, and implementing the whole thing is a bit out of scope for 1.9 at this point, I think... It would be really nice to have a "correct" testcase (the one in this bug has the wrong expected result), esp in mochitest form.
Assignee: jonas → bzbarsky
Status: NEW → ASSIGNED
Attachment #288224 -
Flags: superreview?(jonas)
Attachment #288224 -
Flags: review?(jonas)
![]() |
Assignee | |
Updated•17 years ago
|
Summary: After AJAX causes re-render, firefox drops information in web site. → [FIX]After AJAX causes re-render, firefox drops information in web site.
Attachment #288224 -
Flags: superreview?(jonas)
Attachment #288224 -
Flags: superreview+
Attachment #288224 -
Flags: review?(jonas)
Attachment #288224 -
Flags: review+
Flags: in-testsuite?
![]() |
Assignee | |
Updated•17 years ago
|
Attachment #288224 -
Flags: approval1.9?
Attachment #288224 -
Flags: approval1.9? → approval1.9+
![]() |
Assignee | |
Comment 15•17 years ago
|
||
Checked in, including silly testcase. If someone wants to write a testcase that would actually check that the second send() gets a correct reply, please do so.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Flags: in-testsuite? → in-testsuite+
Resolution: --- → FIXED
Updated•11 years ago
|
Component: DOM: Mozilla Extensions → DOM
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•