Bug 1303260 Get rid of unnecessary <input> and the code setting focus to it in parent window r=smaug
authorMasayuki Nakano <masayuki@d-toybox.com>
Mon, 15 May 2017 18:12:25 +0900
changeset 358598 8d5128976a5b96f48b0d53a040121178f846b8b0
parent 358597 8e62027f76d43d3a448c094d2cad423da2110656
child 358599 eefe541d1ec422fde53a3ac5fce81f89ca3fb9a8
push id90353
push userryanvm@gmail.com
push dateWed, 17 May 2017 00:10:47 +0000
treeherdermozilla-inbound@41958333867b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1303260
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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>