Bug 1610141, findbar should only apply to the main browsers and tests, r=mikedeboer

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Neil Deakin 2020-03-30 15:10:52 +00:00
Родитель fc54bfbe54
Коммит 61184721de
13 изменённых файлов: 21 добавлений и 20 удалений

Просмотреть файл

@ -141,6 +141,6 @@
<command id="cmd_find" <command id="cmd_find"
oncommand="document.getElementById('FindToolbar').onFindCommand();"/> oncommand="document.getElementById('FindToolbar').onFindCommand();"/>
</commandset> </commandset>
<browser type="content" primary="true" flex="1" id="content" src="about:blank"/> <browser type="content" primary="true" flex="1" id="content" messagemanagergroup="test" src="about:blank"/>
<findbar id="FindToolbar" browserid="content"/> <findbar id="FindToolbar" browserid="content"/>
</window> </window>

Просмотреть файл

@ -244,5 +244,5 @@
]]></script> ]]></script>
<browser type="content" primary="true" flex="1" id="content" src="about:blank"/> <browser type="content" primary="true" flex="1" id="content" messagemanagergroup="test" src="about:blank"/>
</window> </window>

Просмотреть файл

@ -197,7 +197,7 @@
} }
]]></script> ]]></script>
<browser type="content" primary="true" flex="1" id="content" src="about:blank"/> <browser type="content" primary="true" flex="1" id="content" messagemanagergroup="test" src="about:blank"/>
<browser type="content" primary="true" flex="1" id="content-remote" remote="true" src="about:blank"/> <browser type="content" primary="true" flex="1" id="content-remote" remote="true" messagemanagergroup="test" src="about:blank"/>
<findbar id="FindToolbar" browserid="content"/> <findbar id="FindToolbar" browserid="content"/>
</window> </window>

Просмотреть файл

@ -81,7 +81,7 @@ find-menu appears in editor element which has had makeEditable() called but desi
} }
]]></script> ]]></script>
<browser id="content" flex="1" src="about:blank" type="content" primary="true"/> <browser id="content" flex="1" src="about:blank" type="content" primary="true" messagemanagergroup="test"/>
<browser id="content-remote" remote="true" flex="1" src="about:blank" type="content" primary="true"/> <browser id="content-remote" remote="true" flex="1" src="about:blank" type="content" primary="true" messagemanagergroup="test"/>
<findbar id="FindToolbar" browserid="content"/> <findbar id="FindToolbar" browserid="content"/>
</window> </window>

Просмотреть файл

@ -92,7 +92,7 @@
<commandset> <commandset>
<command id="cmd_find" oncommand="document.getElementById('FindToolbar').onFindCommand();"/> <command id="cmd_find" oncommand="document.getElementById('FindToolbar').onFindCommand();"/>
</commandset> </commandset>
<browser type="content" primary="true" flex="1" id="content" src="about:blank"/> <browser type="content" primary="true" flex="1" id="content" messagemanagergroup="test" src="about:blank"/>
<browser type="content" primary="true" flex="1" id="content-remote" remote="true" src="about:blank"/> <browser type="content" primary="true" flex="1" id="content-remote" remote="true" messagemanagergroup="test" src="about:blank"/>
<findbar id="FindToolbar" browserid="content"/> <findbar id="FindToolbar" browserid="content"/>
</window> </window>

Просмотреть файл

@ -115,7 +115,7 @@
} }
]]></script> ]]></script>
<html:input id="textbox"/> <html:input id="textbox"/>
<browser type="content" primary="true" flex="1" id="content" src="about:blank"/> <browser type="content" primary="true" flex="1" id="content" messagemanagergroup="test" src="about:blank"/>
<browser type="content" primary="true" flex="1" id="content-remote" remote="true" src="about:blank"/> <browser type="content" primary="true" flex="1" id="content-remote" remote="true" messagemanagergroup="test" src="about:blank"/>
<findbar id="FindToolbar" browserid="content"/> <findbar id="FindToolbar" browserid="content"/>
</window> </window>

Просмотреть файл

@ -93,6 +93,6 @@
SimpleTest.waitForFocus(startTest, window); SimpleTest.waitForFocus(startTest, window);
]]></script> ]]></script>
<browser type="content" primary="true" flex="1" id="content" src="about:blank"/> <browser type="content" primary="true" flex="1" id="content" messagemanagergroup="test" src="about:blank"/>
<findbar id="FindToolbar" browserid="content"/> <findbar id="FindToolbar" browserid="content"/>
</window> </window>

Просмотреть файл

@ -80,6 +80,6 @@
<commandset> <commandset>
<command id="cmd_find" oncommand="document.getElementById('FindToolbar').onFindCommand();"/> <command id="cmd_find" oncommand="document.getElementById('FindToolbar').onFindCommand();"/>
</commandset> </commandset>
<browser type="content" primary="true" flex="1" id="content" src="about:blank"/> <browser type="content" primary="true" flex="1" id="content" messagemanagergroup="test" src="about:blank"/>
<findbar id="FindToolbar" browserid="content"/> <findbar id="FindToolbar" browserid="content"/>
</window> </window>

Просмотреть файл

@ -247,7 +247,7 @@
SimpleTest.waitForFocus(startTest, window); SimpleTest.waitForFocus(startTest, window);
]]></script> ]]></script>
<browser type="content" primary="true" flex="1" id="content" src="about:blank"/> <browser type="content" primary="true" flex="1" id="content" messagemanagergroup="test" src="about:blank"/>
<browser type="content" primary="true" flex="1" id="content-remote" remote="true" src="about:blank"/> <browser type="content" primary="true" flex="1" id="content-remote" remote="true" messagemanagergroup="test" src="about:blank"/>
<findbar id="FindToolbar" browserid="content"/> <findbar id="FindToolbar" browserid="content"/>
</window> </window>

Просмотреть файл

@ -263,7 +263,7 @@
<commandset> <commandset>
<command id="cmd_find" oncommand="document.getElementById('FindToolbar').onFindCommand();"/> <command id="cmd_find" oncommand="document.getElementById('FindToolbar').onFindCommand();"/>
</commandset> </commandset>
<browser type="content" primary="true" flex="1" id="content" src="about:blank"/> <browser type="content" primary="true" flex="1" id="content" messagemanagergroup="test" src="about:blank"/>
<browser type="content" primary="true" flex="1" id="content-remote" remote="true" src="about:blank"/> <browser type="content" primary="true" flex="1" id="content-remote" remote="true" messagemanagergroup="test" src="about:blank"/>
<findbar id="FindToolbar" browserid="content"/> <findbar id="FindToolbar" browserid="content"/>
</window> </window>

Просмотреть файл

@ -183,7 +183,7 @@
} }
]]></script> ]]></script>
<browser type="content" primary="true" flex="1" id="content" src="about:blank"/> <browser type="content" primary="true" flex="1" id="content" messagemanagergroup="test" src="about:blank"/>
<browser type="content" primary="true" flex="1" id="content-remote" remote="true" src="about:blank"/> <browser type="content" primary="true" flex="1" id="content-remote" remote="true" messagemanagergroup="test" src="about:blank"/>
<findbar id="FindToolbar" browserid="content"/> <findbar id="FindToolbar" browserid="content"/>
</window> </window>

Просмотреть файл

@ -779,7 +779,7 @@
<commandset> <commandset>
<command id="cmd_find" oncommand="document.getElementById('FindToolbar').onFindCommand();"/> <command id="cmd_find" oncommand="document.getElementById('FindToolbar').onFindCommand();"/>
</commandset> </commandset>
<browser type="content" primary="true" flex="1" id="content" src="about:blank"/> <browser type="content" primary="true" flex="1" id="content" messagemanagergroup="test" src="about:blank"/>
<browser type="content" primary="true" flex="1" id="content-remote" remote="true" src="about:blank"/> <browser type="content" primary="true" flex="1" id="content-remote" remote="true" messagemanagergroup="test" src="about:blank"/>
<findbar id="FindToolbar" browserid="content"/> <findbar id="FindToolbar" browserid="content"/>
</window> </window>

Просмотреть файл

@ -180,6 +180,7 @@ let ACTORS = {
}, },
allFrames: true, allFrames: true,
messageManagerGroups: ["browsers", "test"],
}, },
// This is the actor that responds to requests from the find toolbar and // This is the actor that responds to requests from the find toolbar and