Open Bug 1436951 Opened 8 years ago Updated 3 years ago

Warnings: '!mOffset.value()' (EditorDOMPoint.h, line 499)

Categories

(Core :: DOM: Editor, enhancement, P3)

enhancement

Tracking

()

Tracking Status
firefox60 --- affected

People

(Reporter: jorgk-bmo, Unassigned)

Details

+++ This bug was initially created as a clone of Bug #1436216 +++ +++ This bug was initially created as a clone of Bug #1434969 +++ As per bug 1434969 comment #24, we see this eight times in our Mozmill test suite, https://public-artifacts.taskcluster.net/E6nU2e8FQ4SvbCxgyY6Cog/0/public/logs/live_backing.log in one of our tests: cloudfile\test-cloudfile-notifications.js. That one does a bit of editing. I'll get a stack once I've compiled with the changes from bug 1436216.
Yeah, I was investigating it. However, it occurs when HTMLEditRules::PromoteRange() calls RewindOffset(). However, I still don't understand why it needs to call RewindOffset() and what's the expected result when it already refers start of the container.
I added a MOZ_ASSERT() and got this: Assertion failure: mOffset.value(), at c:\mozilla-source\comm-central\obj-i686-pc-mingw32\dist\include\mozilla/EditorDOMPoint.h:499 #01: mozilla::EditorDOMPointBase<nsINode *,nsIContent *>::RewindOffset (c:\mozilla-source\comm-central\obj-i686-pc-mingw32\dist\include\mozilla\editordompoint.h:497) #02: mozilla::HTMLEditRules::PromoteRange (c:\mozilla-source\comm-central\mozilla\editor\libeditor\htmleditrules.cpp:6075) #03: mozilla::HTMLEditRules::AfterEditInner (c:\mozilla-source\comm-central\mozilla\editor\libeditor\htmleditrules.cpp:478) #04: mozilla::HTMLEditRules::AfterEdit (c:\mozilla-source\comm-central\mozilla\editor\libeditor\htmleditrules.cpp:416) #05: mozilla::HTMLEditor::EndOperation (c:\mozilla-source\comm-central\mozilla\editor\libeditor\htmleditor.cpp:3333) #06: mozilla::AutoRules::~AutoRules (c:\mozilla-source\comm-central\obj-i686-pc-mingw32\dist\include\mozilla\editorutils.h:397) #07: _NS_InvokeByIndex (c:\mozilla-source\comm-central\mozilla\xpcom\reflect\xptcall\md\win32\xptcinvoke_asm_x86_msvc.asm:57) #08: CallMethodHelper::Invoke (c:\mozilla-source\comm-central\mozilla\js\xpconnect\src\xpcwrappednative.cpp:1948) As you said, it comes from HTMLEditRules::PromoteRange().
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.