Closed Bug 563481 Opened 15 years ago Closed 6 years ago

"ASSERTION: Want to fire mutation events, but it's not safe" with <svg:use>, <svg:symbol>

Categories

(Core :: DOM: Core & HTML, defect, P5)

defect

Tracking

()

RESOLVED FIXED
mozilla65
Tracking Status
firefox-esr60 --- wontfix
firefox63 --- wontfix
firefox64 --- wontfix
firefox65 --- fixed

People

(Reporter: jruderman, Assigned: dholbert)

References

()

Details

(Keywords: assertion, sec-other, testcase, Whiteboard: [sg:nse][adv-main65-])

Attachments

(2 files)

content/svg/content/src/crashtests/307322-1.svg triggers ###!!! ASSERTION: Want to fire mutation events, but it's not safe: '(aNode->IsNodeOfType(nsINode::eCONTENT) && static_cast<nsIContent*>(aNode)-> IsInNativeAnonymousSubtree()) || sScriptBlockerCount == sRemovableScriptBlockerCount', file /Users/jruderman/central/content/base/src/nsContentUtils.cpp, line 3537 This assertion was added in bug 429175.
Flags: in-testsuite+
Attached file stack trace
Keywords: testcase
Summary: "ASSERTION: Want to fire mutation events, but it's not safe" → "ASSERTION: Want to fire mutation events, but it's not safe" with <svg:use>
Group: core-security
Whiteboard: [sg:nse]
SVG use cloned content is pretty much native anonymous except in nsCSSFrameConstructor::GetAnonymousContent we don't set the native anonymous flags, which is probably what's causing the assertion to fire.
This is showing up on the 64-bit OS X tinderbox: http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1273150994.1273154478.14600.gz OS X 10.6.2 mozilla-central leak test build on 2010/05/06 06:03:14
Based on the stack trace, that's bug 563491, not this bug.
Thanks. Couldn't find that bug because I'm not s-g. :-/
Attached image testcase
Here's a reduced testcase (a bit simpler than 307322-1.svg -- doesn't have any recursive <use>) that triggers this assertion failure in current mozilla-central. It seems specific to <symbol>; if the <use>-target is something other than <symbol> (like a <g> for example), the assertion-failure goes away.
OS: Mac OS X → All
Hardware: x86 → All
Summary: "ASSERTION: Want to fire mutation events, but it's not safe" with <svg:use> → "ASSERTION: Want to fire mutation events, but it's not safe" with <svg:use>, <svg:symbol>
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
The testcase doesn't seem to fire any assertions now. Do you want to check it in and close this Daniel?
Flags: needinfo?(dholbert)
Should be able to change https://dxr.mozilla.org/mozilla-central/source/dom/svg/crashtests/crashtests.list to remove the asserts(0-6) I think.
Indeed, nice catch! Sure, I'll make that manifest tweak and close this out.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
Assignee: nobody → dholbert
Whiteboard: [sg:nse] → [sg:nse][adv-main65-]
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: