Bug 1584303 - Replace <xul:textbox> with <html:input> in dom/ipc/test.xul;r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D47330

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Brian Grinstead 2019-09-30 19:31:56 +00:00
parent c3bfe556b3
commit 1e13189ecb

View File

@ -5,6 +5,7 @@
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
width="800" height="800" orient="vertical" onload="initRemoteFrameScript();">
<script>
@ -231,7 +232,7 @@
<toolbar id="controls">
<toolbarbutton label="Back"/>
<toolbarbutton label="Forward"/>
<textbox onchange="loadURL(this.value)" flex="1" id="URL"/>
<html:input onchange="loadURL(this.value)" style="-moz-box-flex: 1" id="URL"/>
</toolbar>
<toolbar>
<toolbarbutton onclick="restart()" label="Recover"/>
@ -243,14 +244,14 @@
<toolbarbutton onclick="closeWindow()" label="close this window"/>
</toolbar>
<toolbar><label value="Load a script (URL) to content process:"/>
<textbox flex="1" id="script"/><button
<html:input style="-moz-box-flex: 1" id="script"/><button
label="send" oncommand="document.getElementById('page')
.frameLoader.messageManager
.loadFrameScript(this.previousSibling.value, false);"/>
</toolbar>
<toolbar>
<label value="Eval script in chrome context"/>
<textbox flex="1"/><button label="run" oncommand="eval(this.previousSibling.value); // eslint-disable-line no-eval"/>
<html:input style="-moz-box-flex: 1"/><button label="run" oncommand="eval(this.previousSibling.value); // eslint-disable-line no-eval"/>
</toolbar>
<browser type="content" src="http://www.google.com/" flex="1" id="page" remote="true"/>