Issue #2106 - Follow-up: Additional Un-prefixing

This commit is contained in:
Andy 2025-07-07 10:43:13 -07:00 • committed by roytam1
commit 1a5b3dcae6
52 changed files with 152 additions and 152 deletions

View file

@ -12,7 +12,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=765993
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=765993">Mozilla Bug 765993</a>
<style type="text/css">
#link1 a { -moz-user-select:none; }
#link1 a { user-select:none; }
</style>
<div id="link1"><a href="http://www.mozilla.org/">link1</a></div>
<div id="link2"><a href="http://www.mozilla.org/">link2</a></div>

View file

@ -11,17 +11,17 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1101364
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
<style>
#test1 {
-moz-user-select: none;
user-select: none;
}
#testDiv, #test2 {
-moz-user-select: text;
user-select: text;
}
</style>
</head>
<body id='body'>
<iframe id="test1" src="data:text/html,<h1 id='test1' style='-moz-user-select:none'>Header</h1><div id='testDiv'>test1</div>"></iframe>
<iframe id="test1" src="data:text/html,<h1 id='test1' style='user-select:none'>Header</h1><div id='testDiv'>test1</div>"></iframe>
<iframe id="test2" src="data:text/html,<div contenteditable id='test2'>AAA<span id='test2Inner'>BBB</span></div>"></iframe>
<pre id="test">
<script class="testbody" type="text/javascript">

View file

@ -12,11 +12,11 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=816298
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=166235">Mozilla Bug 166235 and Bug 816298</a>
<p id="test0">This text should be copied.</p>
<p id="test1">This text should<span style="-moz-user-select: none;"> NOT</span> be copied.</p>
<p id="test2">This<span style="-moz-user-select: none;"><span style="-moz-user-select: text"> text should</span> NOT</span> be copied.</p>
<p id="test3">This text should<span style="-moz-user-select: -moz-none;"> NOT</span> be copied.</p>
<p id="test4">This<span style="-moz-user-select: -moz-none;"><span style="-moz-user-select: text"> text should</span> NOT</span> be copied.</p>
<p id="test5">This<span style="-moz-user-select: all"> text<span style="-moz-user-select: none"> should</span></span> be copied.</p>
<p id="test1">This text should<span style="user-select: none;"> NOT</span> be copied.</p>
<p id="test2">This<span style="user-select: none;"><span style="user-select: text"> text should</span> NOT</span> be copied.</p>
<p id="test3">This text should<span style="user-select: -moz-none;"> NOT</span> be copied.</p>
<p id="test4">This<span style="user-select: -moz-none;"><span style="user-select: text"> text should</span> NOT</span> be copied.</p>
<p id="test5">This<span style="user-select: all"> text<span style="user-select: none"> should</span></span> be copied.</p>
<div id="content" style="display: none">
</div>
@ -108,10 +108,10 @@ var originalStrings = [
var clipboardHTML = [
'<p id=\"test0\">This text should be copied.</p>',
'<p id=\"test1\">This text should be copied.</p>',
'<p id=\"test2\">This<span style=\"-moz-user-select: text\"> text should</span> be copied.</p>',
'<p id=\"test2\">This<span style=\"user-select: text\"> text should</span> be copied.</p>',
'<p id=\"test3\">This text should be copied.</p>',
'<p id=\"test4\">This<span style=\"-moz-user-select: text\"> text should</span> be copied.</p>',
'<p id=\"test5\">This<span style=\"-moz-user-select: all\"> text<span style=\"-moz-user-select: none\"> should</span></span> be copied.</p>',
'<p id=\"test4\">This<span style=\"user-select: text\"> text should</span> be copied.</p>',
'<p id=\"test5\">This<span style=\"user-select: all\"> text<span style=\"user-select: none\"> should</span></span> be copied.</p>',
];
// expected results for clipboard text/unicode
@ -127,11 +127,11 @@ var clipboardUnicode = [
// expected results for .innerHTML
var innerHTMLStrings = [
'This text should be copied.',
'This text should<span style=\"-moz-user-select: none;\"> NOT</span> be copied.',
'This<span style=\"-moz-user-select: none;\"><span style=\"-moz-user-select: text\"> text should</span> NOT</span> be copied.',
'This text should<span style=\"-moz-user-select: -moz-none;\"> NOT</span> be copied.',
'This<span style=\"-moz-user-select: -moz-none;\"><span style=\"-moz-user-select: text\"> text should</span> NOT</span> be copied.',
'This<span style=\"-moz-user-select: all\"> text<span style=\"-moz-user-select: none\"> should</span></span> be copied.',
'This text should<span style=\"user-select: none;\"> NOT</span> be copied.',
'This<span style=\"user-select: none;\"><span style=\"user-select: text\"> text should</span> NOT</span> be copied.',
'This text should<span style=\"user-select: -moz-none;\"> NOT</span> be copied.',
'This<span style=\"user-select: -moz-none;\"><span style=\"user-select: text\"> text should</span> NOT</span> be copied.',
'This<span style=\"user-select: all\"> text<span style=\"user-select: none\"> should</span></span> be copied.',
];
// expected results for pasting into a TEXTAREA

View file

@ -12,7 +12,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=558726
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=558726">Mozilla Bug 558726</a>
<div>
<div id="test_558726_1"><select name="selecttest"><option value="0">item 1</option></select>x<input type="button" name="test" value="test"></div>
<div id="test_558726_2">y<input><i style="-moz-user-select: none;">z</i></div>
<div id="test_558726_2">y<input><i style="user-select: none;">z</i></div>
</div>
<p id="display"></p>
@ -26,7 +26,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=558726
function runTest() {
is(document.getElementById('test_558726_1').innerHTML, '<select name="selecttest"><option value="0">item 1</option></select>x<input name="test" value="test" type="button">','test_558726_1.innerHTML')
is(document.getElementById('test_558726_2').innerHTML, 'y<input><i style="-moz-user-select: none;">z</i>','test_558726_2.innerHTML')
is(document.getElementById('test_558726_2').innerHTML, 'y<input><i style="user-select: none;">z</i>','test_558726_2.innerHTML')
SimpleTest.finish();
}

View file

@ -12,7 +12,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=574596
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=574596">Mozilla Bug 574596</a>
<style type="text/css">
#link1 a { -moz-user-select:none; }
#link1 a { user-select:none; }
</style>
<div id="link1"><a href="http://www.mozilla.org/">link1</a></div>
<div id="link2"><a href="http://www.mozilla.org/">link2</a></div>
@ -61,7 +61,7 @@ function dumpTransfer(dataTransfer,expect) {
function runTest() {
var result = synthesizeDragStart($('link1'), dragLinkText, window);
is(result, null, "Drag -moz-user-select:none link (#link1)");
is(result, null, "Drag user-select:none link (#link1)");
// if (result) dumpTransfer(result,dragLinkText);
dragLinkText[0][2].data = "link2";

View file

@ -52,7 +52,7 @@ function runTest() {
]]></script>
<description style="-moz-user-focus: normal; -moz-user-select: text;"><![CDATA[
<description style="-moz-user-focus: normal; user-select: text;"><![CDATA[
hello
world
]]></description>

View file

@ -12,10 +12,10 @@
src: url("Ahem.ttf");
}
body { font-family: Ahem; font-size: 20px; }
s, .non-selectable { -moz-user-select: none; }
s, .non-selectable { user-select: none; }
n { display: none; }
a { position:absolute; bottom: 0; right:0; }
.text { -moz-user-select: text; }
.text { user-select: text; }
</style>
</head>
@ -48,7 +48,7 @@ bbbb</div>
<div class="non-selectable">x</div><input>
bbbbbbb</div>
<iframe id="testD" src="data:text/html,<body>aaaa<span style='-moz-user-select:none'>bbbb</span>cccc"></iframe>
<iframe id="testD" src="data:text/html,<body>aaaa<span style='user-select:none'>bbbb</span>cccc"></iframe>
<pre id="test">
<script class="testbody" type="text/javascript">

View file

@ -18,7 +18,7 @@
.expander {
cursor: pointer;
-moz-user-select: none;
user-select: none;
text-align: center;
vertical-align: top;
width: 1em;