Closed
Bug 530488
Opened 15 years ago
Closed 14 years ago
The xforms 'refresh' action crashes firefox in certain contexts
Categories
(Core Graveyard :: XForms, defect)
Core Graveyard
XForms
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: thompdump, Assigned: sergeyreym)
References
Details
Attachments
(2 files, 1 obsolete file)
1.22 KB,
application/xhtml+xml
|
Details | |
712 bytes,
patch
|
surkov
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 The crash seems to be somewhat specific to the 'refresh' action since at least some other actions (message, revalidate, rebuild, recalculate) don't trigger the crash. A crash report doesn't seem to be generated. xforms version: xforms 0.8.7pre Reproducible: Always Steps to Reproduce: 1. Load the test document xforms1.xhtml 2. Select a value for 'questiontype' Actual Results: Firefox dies an inglorious death
Reporter | ||
Comment 1•15 years ago
|
||
Assignee | ||
Comment 2•14 years ago
|
||
Click by select item calls nsXFormsModelElement::Refresh() that (deep in calltree) calls nsXFormsRefreshElement::HandleSingleAction that just calls nsXFormsModelElement::Refresh(). This repeates til crash by stack overflow.
Assignee | ||
Comment 3•14 years ago
|
||
Refresh action of form calls from refresh model (as I wrote before). So, I push refresh from refresh action into refresh-queue that makes normal runtime (without crashing).
Attachment #428151 -
Flags: review?(alexey.gaidukov)
Assignee | ||
Updated•14 years ago
|
Attachment #428151 -
Flags: review?(Olli.Pettay)
Assignee | ||
Updated•14 years ago
|
Attachment #428151 -
Flags: review?(alexey.gaidukov) → review?(surkov.alexander)
Comment 4•14 years ago
|
||
Comment on attachment 428151 [details] [diff] [review] Solution Since also nsXFormsActionElement seems to do this, I guess this looks right.
Attachment #428151 -
Flags: review?(Olli.Pettay) → review+
Comment 5•14 years ago
|
||
Comment on attachment 428151 [details] [diff] [review] Solution looks fine with me >- return model->Refresh(); >+ model->RequestRefresh(); >+ return NS_OK; why do you return NS_OK instead of RequestRefresh() return value?
Attachment #428151 -
Flags: review?(surkov.alexander) → review+
Updated•14 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee | ||
Comment 6•14 years ago
|
||
Because RequestRefresh returns void.
Comment 7•14 years ago
|
||
(In reply to comment #6) > Because RequestRefresh returns void. it doesn't
Assignee | ||
Comment 8•14 years ago
|
||
Indeed, RequestRefresh() returns NS_IMETHODIMP. So I've update patch.
Attachment #428151 -
Attachment is obsolete: true
Attachment #428339 -
Flags: review?(surkov.alexander)
Assignee | ||
Updated•14 years ago
|
Attachment #428339 -
Flags: review?(Olli.Pettay)
Comment 9•14 years ago
|
||
Comment on attachment 428339 [details] [diff] [review] patch it might be unnecessary to rerequest all reviews for changes like these.
Attachment #428339 -
Flags: review?(surkov.alexander) → review+
Assignee | ||
Updated•14 years ago
|
Attachment #428339 -
Flags: review?(Olli.Pettay)
Comment 10•14 years ago
|
||
landed http://hg.mozilla.org/xforms/rev/32ffdcc6f490
Assignee: nobody → sergeyreym
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•14 years ago
|
OS: Linux → All
Hardware: x86 → All
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•