Closed Bug 293471 Opened 19 years ago Closed 19 years ago

crash by tesing 'Layout Regression Tests'

Categories

(Core :: XBL, defect)

All
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 292717

People

(Reporter: hsaito54, Unassigned)

Details

(Keywords: crash, regression)

When I tested following "Layout Regression Tests", Mozilla crashed.
 http://www.mozilla.org/newlayout/doc/regression_tests.html

The testcase causing a problem is http://www.hixie.ch/tests/evil/xml/010.xml.

mozilla-2005-02-25/Trunk has no problem,
mozilla-2005-02-26/Trunk has a problem.

I point the fault as follows. The calling |binding->MarkForDeath()| causes
memory fault, since the binding object is destroyed by calling |SetBinding|.

at ./content/xbl/src/nsBindingManager.cpp
nsBindingManager::RemoveLayeredBinding(nsIContent* aContent, nsIURI* aURL)
{
  nsXBLBinding *binding = nsBindingManager::GetBinding(aContent);
  
  if (!binding) {
    return NS_OK;
  }

  ...
  
  // Finally remove the binding...
  binding->UnhookEventHandlers();
  binding->ChangeDocument(doc, nsnull);
  SetBinding(aContent, nsnull);
  binding->MarkForDeath();        <-------------- causes memory fault
Assignee: nobody → general
Component: Layout → XBL
OS: All → Windows 2000
QA Contact: layout → ian
Looks like bug 292717, right?
yep, there you go

*** This bug has been marked as a duplicate of 292717 ***
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.