Open Bug 591480 Opened 14 years ago Updated 2 years ago

"ASSERTION: Unexpected primary frame" [nsImageMap.cpp:474]

Categories

(Core :: Layout, defect)

x86
macOS
defect

Tracking

()

Tracking Status
firefox-esr52 --- wontfix
firefox56 --- wontfix
firefox57 --- wontfix
firefox58 --- wontfix
firefox59 --- ?

People

(Reporter: jruderman, Unassigned)

References

Details

(Keywords: assertion, testcase)

Attachments

(2 files)

Attached file testcase
      No description provided.
Loading the testcase:

###!!! ASSERTION: Losing track of existing primary frame: '!aFrame || !mPrimaryFrame || aFrame == mPrimaryFrame', file ../../dist/include/nsIContent.h, line 883

Unloading the testcase:

###!!! ASSERTION: Unexpected primary frame: 'area->mArea->GetPrimaryFrame() == mImageFrame', file layout/generic/nsImageMap.cpp, line 747

The second assertion is new (not covered by other bug reports).
Attached file stacks
What bug report covers the first assertion?  That's the one I have a fix for...

I have no idea how to fix the second without fixing bug 135040.
Bug 576174 covers the first assertion.
No, that's a different issue.  In this case the first assertion is very much <html:map>-specific.
Please file a new bug and attach your patch there.
On second thought, my fix (if I'm thinking of the same one) doesn't work because nsIFrame is forward-declared.  And asserting that we're not an HTML <area> won't work for consumers who can't include nsGkAtoms...
The existing test toolkit/content/tests/widgets/test_mousecapture_area.html causes 3 assertions that look alot like this:

0:28.39 ###!!! ASSERTION: Losing track of existing primary frame: '!aFrame || !mPrimaryFrame || aFrame == mPrimaryFrame', file ...dist\include\nsIContent.h, line 805
...
0:32.05 ###!!! ASSERTION: Unexpected primary frame: 'area->mArea->GetPrimaryFrame() == mImageFrame', file ...layout/generic/nsImageMap.cpp, line 703
...
0:32.08 ###!!! ASSERTION: Unexpected primary frame: 'area->mArea->GetPrimaryFrame() == mImageFrame', file .../layout/generic/nsImageMap.cpp, line 703

I'm guessing this is the same bug rather than opening a new one.
Still affects trunk (given comment 3, I guess that's to be expected, though).
Has Regression Range: --- → irrelevant
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: