Bug 1303260 Get rid of unnecessary <input> and the code setting focus to it in parent window r?smaug draft
authorMasayuki Nakano <masayuki@d-toybox.com>
Mon, 15 May 2017 18:12:25 +0900
changeset 578547 5d13572050a62bb7ed8ea35607003f7a6ce839bd
parent 578175 3e166b6838931b3933ca274331f9e0e115af5cc0
child 628745 67d298db096e23abcdc44a9b1c44b32306d740f3
push id58953
push usermasayuki@d-toybox.com
push dateTue, 16 May 2017 06:01:07 +0000
reviewerssmaug
bugs1303260
milestone55.0a1
Bug 1303260 Get rid of unnecessary <input> and the code setting focus to it in parent window r?smaug 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>