Issue #2106 - Follow-up: Un-prefix DOM Attribute MozUserSelect

This commit is contained in:
Andy 2025-07-07 10:45:22 -07:00 • committed by roytam1
commit abb891ff26
7 changed files with 8 additions and 8 deletions

View file

@ -54,11 +54,11 @@ function test()
.getInterface(Ci.nsIWebNavigation)
var docShell = webnav.QueryInterface(Ci.nsIDocShell);
var test2Inner = iframe2.contentDocument.getElementById('test2Inner');
test2Inner.style.MozUserSelect = 'text';
test2Inner.style.UserSelect = 'text';
docShell.doCommand("cmd_selectAll");
var withoutUserSelect = snapshotWindow(iframe2.contentWindow);
test2Inner.style.MozUserSelect = 'none';
test2Inner.style.UserSelect = 'none';
docShell.doCommand("cmd_selectAll");
var withUserSelect = snapshotWindow(iframe2.contentWindow);
ok(compareSnapshots(withoutUserSelect, withUserSelect, true)[0], 'Editable fields should ignore user select style');