Open Bug 1335509 Opened 3 years ago Updated 2 years ago

Assertion failure: !Failed(), at /home/worker/workspace/build/src/obj-firefox/dist/include/mozilla/ErrorResult.h:424

Categories

(Core :: DOM: Editor, defect, P2)

defect

Tracking

()

Tracking Status
firefox52 --- wontfix
firefox-esr52 --- wontfix
firefox53 --- wontfix
firefox54 --- wontfix
firefox55 --- wontfix
firefox56 --- wontfix
firefox57 --- wontfix
firefox58 --- wontfix
firefox59 --- ?

People

(Reporter: tsmith, Assigned: m_kato)

References

(Blocks 1 open bug)

Details

(Keywords: assertion, testcase)

Attachments

(2 files)

Attached file log.txt
[3603] ###!!! ASSERTION: selection could not be collapsed after insert: '!rv.Failed()', file /home/worker/workspace/build/src/editor/libeditor/CreateElementTransaction.cpp, line 101
Assertion failure: !Failed(), at /home/worker/workspace/build/src/obj-firefox/dist/include/mozilla/ErrorResult.h:424

==3603==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f68d254ffbf bp 0x7ffcc9c15ed0 sp 0x7ffcc9c15ec0 T0)
    #0 0x7f68d254ffbe in mozilla::binding_danger::TErrorResult<mozilla::binding_danger::AssertAndSuppressCleanupPolicy>::AssertReportedOrSuppressed() /home/worker/workspace/build/src/obj-firefox/dist/include/mozilla/ErrorResult.h:426:5
    #1 0x7f68d2529e35 in mozilla::binding_danger::TErrorResult<mozilla::binding_danger::AssertAndSuppressCleanupPolicy>::~TErrorResult() /home/worker/workspace/build/src/obj-firefox/dist/include/mozilla/ErrorResult.h:138:7
    #2 0x7f68d68c6ddd in mozilla::CreateElementTransaction::DoTransaction() /home/worker/workspace/build/src/editor/libeditor/CreateElementTransaction.cpp:103:1
    #3 0x7f68d6a13be5 in nsTransactionManager::BeginTransaction(nsITransaction*, nsISupports*) /home/worker/workspace/build/src/editor/txmgr/nsTransactionManager.cpp:661:17
    #4 0x7f68d6a13887 in nsTransactionManager::DoTransaction(nsITransaction*) /home/worker/workspace/build/src/editor/txmgr/nsTransactionManager.cpp:74:8
    #5 0x7f68d68bb61e in mozilla::EditorBase::DoTransaction(nsITransaction*) /home/worker/workspace/build/src/editor/libeditor/EditorBase.cpp:734:12
    #6 0x7f68d68d5f8f in mozilla::EditorBase::CreateNode(nsIAtom*, nsINode*, int) /home/worker/workspace/build/src/editor/libeditor/EditorBase.cpp:1390:17
    #7 0x7f68d69eb0d9 in mozilla::TextEditor::CreateBRImpl(nsCOMPtr<nsIDOMNode>*, int*, nsCOMPtr<nsIDOMNode>*, short) /home/worker/workspace/build/src/editor/libeditor/TextEditor.cpp:494:14
    #8 0x7f68d69691e0 in mozilla::HTMLEditor::CreateBR(nsIDOMNode*, int, nsCOMPtr<nsIDOMNode>*, short) /home/worker/workspace/build/src/editor/libeditor/HTMLEditor.cpp:1130:10
    #9 0x7f68d69e7047 in mozilla::TextEditRules::CreateMozBR(nsIDOMNode*, int, nsIDOMNode**) /home/worker/workspace/build/src/editor/libeditor/TextEditRules.cpp:1423:17
    #10 0x7f68d6918659 in mozilla::HTMLEditRules::AdjustSpecialBreaks() /home/worker/workspace/build/src/editor/libeditor/HTMLEditRules.cpp:7251:19
    #11 0x7f68d69181ad in mozilla::HTMLEditRules::Init(mozilla::TextEditor*) /home/worker/workspace/build/src/editor/libeditor/HTMLEditRules.cpp:282:5
    #12 0x7f68d69e7ee2 in mozilla::TextEditor::EndEditorInit() /home/worker/workspace/build/src/editor/libeditor/TextEditor.cpp:205:17
    #13 0x7f68d69e7de5 in mozilla::AutoEditInitRulesTrigger::~AutoEditInitRulesTrigger() /home/worker/workspace/build/src/editor/libeditor/TextEditUtils.cpp:109:15
    #14 0x7f68d696d8c1 in mozilla::HTMLEditor::Init(nsIDOMDocument*, nsIContent*, nsISelectionController*, unsigned int, nsAString_internal const&) /home/worker/workspace/build/src/editor/libeditor/HTMLEditor.cpp:318:3
    #15 0x7f68d6a30091 in nsEditingSession::SetupEditorOnWindow(mozIDOMWindowProxy*) /home/worker/workspace/build/src/editor/composer/nsEditingSession.cpp:454:8
    #16 0x7f68d6a2dcb7 in nsEditingSession::MakeWindowEditable(mozIDOMWindowProxy*, char const*, bool, bool, bool) /home/worker/workspace/build/src/editor/composer/nsEditingSession.cpp:173:10
    #17 0x7f68d579ad42 in nsHTMLDocument::EditingStateChanged() /home/worker/workspace/build/src/dom/html/nsHTMLDocument.cpp:2768:12
    #18 0x7f68d57a61bb in nsHTMLDocument::SetDesignMode(nsAString_internal const&, mozilla::Maybe<nsIPrincipal*> const&, mozilla::ErrorResult&) /home/worker/workspace/build/src/dom/html/nsHTMLDocument.cpp:2876:10
    #19 0x7f68d57a62d7 in nsHTMLDocument::SetDesignMode(nsAString_internal const&, nsIPrincipal&, mozilla::ErrorResult&) /home/worker/workspace/build/src/dom/html/nsHTMLDocument.cpp:2859:3
...
see log.txt
Attached file test_case.html
Goes back as far as I could test with mozregression.
Assignee: nobody → m_kato
Priority: -- → P2
Maybe, this is regression by bug 1055032.
FYI, the assertion has changed.

ASSERTION: selection could not be collapsed after insert: '!rv.Failed()', file z:/build/build/src/editor/libeditor/CreateElementTransaction.cpp, line 104
Has Regression Range: --- → no
You need to log in before you can comment on or make changes to this bug.