Hi folks, As of Firefox 139, I intend to enable dom.selection.mimic_chrome_tostring.enabled by default on all platforms. The pref was originally introduced in https://bugzilla.mozilla.org/show_bug.cgi?id=85686.
It allows us to mimic the WebKit/Blink behavior for `window.getSelection().toString()` — specifically: - When the selection is in a text control, we return the same content with Webkit/Blink. - We may also return the content serialization for a previously focused text control based on a similar heuristic used in WebKit/Blink. This allows us to fix some webcompat bugs. *Bug to turn on by default*: https://bugzilla.mozilla.org/show_bug.cgi?id=1954979 Standard: link to the standard: The behaviour is unspecified and there are two open spec issues, https://github.com/w3c/selection-api/issues/83 and https://github.com/w3c/selection-api/issues/7. We are also trying to move the spec issues forward in the meantime. Thanks, Sean -- You received this message because you are subscribed to the Google Groups "[email protected]" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/CALKhkhbJnmaF2L5wne09QUSimwCCOjmgYaao0HeffhhBgPeCOA%40mail.gmail.com.
