Bug 1303260 - Get rid of unnecessary <input> and the code setting focus to it in parent window. r=smaug, a=test-only
authorMasayuki Nakano <masayuki@d-toybox.com>
Mon, 15 May 2017 18:12:25 +0900
changeset 581830 444be25337e3b9de1e5cdb0a4a0a6799c065a4ce
parent 581829 1a5b19210b16026513ada54a4e0db4f038876bb4
child 581831 93a43397cf6c874c2c1039e20d408ab9773cc815
push id59898
push userfmarier@mozilla.com
push dateFri, 19 May 2017 23:56:54 +0000
reviewerssmaug, test-only
bugs1303260
milestone54.0
Bug 1303260 - Get rid of unnecessary <input> and the code setting focus to it in parent window. r=smaug, a=test-only Perhaps, test_nsITextInputProcessor.xul is copied from another file and I failed to remove unnecessary code. That might cause stealing focus from child window and preventing to run waitForFocus(). MozReview-Commit-ID: 5Sym3mcauH7
dom/base/test/chrome/test_nsITextInputProcessor.xul
--- a/dom/base/test/chrome/test_nsITextInputProcessor.xul
+++ b/dom/base/test/chrome/test_nsITextInputProcessor.xul
@@ -5,28 +5,26 @@
 <window title="Testing nsITextInputProcessor behavior"
   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
 
   <script type="application/javascript"
           src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
 
 <body xmlns="http://www.w3.org/1999/xhtml">
 <p id="display">
-<input id="input" type="text"/><br/>
 </p>
 <div id="content" style="display: none">
   
 </div>
 <pre id="test">
 </pre>
 </body>
 
 <script class="testbody" type="application/javascript">
 <![CDATA[
 
 SimpleTest.waitForExplicitFinish();
 window.open("window_nsITextInputProcessor.xul", "_blank", 
             "chrome,width=600,height=600");
-document.getElementById("input").focus();
 
 ]]>
 </script>
 </window>