It's really hard to understand how an editable web app does not work on Firefox because such app does complicated things with minified JS code.
When I investigate what's going on, I used C++ debugger and add
break point to related paths in `HTMLEditor
`.
However, it requires to build a debug build by yourself and anyway
hard to check when unexpected mutations occurred.
For helping developers to debug the editable web apps in the
world, now, `HTMLEditor
` has new 2 log modules, `HTMLEditorMutation
`
and `HTMLEditorAttrMutation
` and
they are available in release builds too. The former is for the
DOM node level mutations and the latter is for the attribute
mutations of `Element
` node. They can log mutations only
unexpected one in editable nodes with `3
`, log
any mutations only in editable nodes with
`4
` and log all mutations in the document with
`5
`.
`MOZ_LOG=HTMLEditorMutation:3,sync
` should be enough
for usual investigation of editable web apps because web-compat
issues of editable web apps are usually caused by mutations of
editable nodes by the web app.
Unfortunately, the log is plaintext, so, it may be difficult to read the related DOM nodes because they are printed with a full path in the DOM tree. So, I recommend to read the log within a text editor and replace the path above the relevant editing host with empty string.
-- Masayuki Nakano <masa...@d-toybox.com> Working on DOM, Events, editor and IME handling for Gecko