Bug 1050049 - Whitelist bindings that we actually expect to use in content. r=smaug

This commit is contained in:
Bobby Holley 2014-08-11 20:06:55 -07:00
parent dbfddd83d7
commit 1fb855d00b
12 changed files with 22 additions and 22 deletions

View File

@ -11,7 +11,7 @@
<bindings id="feedBindings"
xmlns="http://www.mozilla.org/xbl"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<binding id="feedreaderUI">
<binding id="feedreaderUI" bindToUntrustedContent="true">
<content>
<xul:vbox>
<xul:hbox align="center">

View File

@ -8,7 +8,7 @@
xmlns="http://www.mozilla.org/xbl"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<binding id="inputFields">
<binding id="inputFields" bindToUntrustedContent="true">
<handlers>
#include ../input-fields-base.inc
<handler event="keypress" key="a" modifiers="accel" command="cmd_selectAll"/>
@ -34,7 +34,7 @@
</handlers>
</binding>
<binding id="textAreas">
<binding id="textAreas" bindToUntrustedContent="true">
<handlers>
#include ../textareas-base.inc
<handler event="keypress" key="a" modifiers="accel" command="cmd_selectAll"/>

View File

@ -8,7 +8,7 @@
xmlns="http://www.mozilla.org/xbl"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<binding id="inputFields">
<binding id="inputFields" bindToUntrustedContent="true">
<handlers>
#include ../input-fields-base.inc
<!-- Emacsish single-line motion and delete keys -->
@ -76,7 +76,7 @@
</handlers>
</binding>
<binding id="textAreas">
<binding id="textAreas" bindToUntrustedContent="true">
<handlers>
#include ../textareas-base.inc
<!-- Emacsish single-line motion and delete keys -->

View File

@ -8,7 +8,7 @@
xmlns="http://www.mozilla.org/xbl"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<binding id="inputFields">
<binding id="inputFields" bindToUntrustedContent="true">
<handlers>
<handler event="keypress" key="c" modifiers="accel" command="cmd_copy"/>
<handler event="keypress" key="x" modifiers="accel" command="cmd_cut"/>
@ -19,7 +19,7 @@
</handlers>
</binding>
<binding id="textAreas">
<binding id="textAreas" bindToUntrustedContent="true">
<handlers>
<handler event="keypress" key="c" modifiers="accel" command="cmd_copy"/>
<handler event="keypress" key="x" modifiers="accel" command="cmd_cut"/>

View File

@ -8,7 +8,7 @@
xmlns="http://www.mozilla.org/xbl"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<binding id="inputFields">
<binding id="inputFields" bindToUntrustedContent="true">
<handlers>
#include ../input-fields-base.inc
<handler event="keypress" key="a" modifiers="alt"
@ -20,7 +20,7 @@
</handlers>
</binding>
<binding id="textAreas">
<binding id="textAreas" bindToUntrustedContent="true">
<handlers>
#include ../textareas-base.inc
<handler event="keypress" key="a" modifiers="alt"

View File

@ -8,7 +8,7 @@
xmlns="http://www.mozilla.org/xbl"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<binding id="inputFields">
<binding id="inputFields" bindToUntrustedContent="true">
<handlers>
#include ../input-fields-base.inc
<handler event="keypress" key="a" modifiers="accel" command="cmd_selectAll"/>
@ -52,7 +52,7 @@
</handlers>
</binding>
<binding id="textAreas">
<binding id="textAreas" bindToUntrustedContent="true">
<handlers>
#include ../textareas-base.inc
<handler event="keypress" key="a" modifiers="accel" command="cmd_selectAll"/>

View File

@ -1,7 +1,7 @@
<?xml version="1.0"?>
<bindings id="testBindings" xmlns="http://www.mozilla.org/xbl"
xmlns:html="http://www.w3.org/1999/xhtml">
<binding id="testAllowScript">
<binding id="testAllowScript" bindToUntrustedContent="true">
<implementation>
<property name="someProp" onget="return 2;" readonly="true"></property>
<method name="someMethod"><body> return 3; </body></method>

View File

@ -1,6 +1,6 @@
<?xml version="1.0"?>
<bindings id="chromeTestBindings" xmlns="http://www.mozilla.org/xbl">
<binding id="testBinding">
<binding id="testBinding" bindToUntrustedContent="true">
<implementation implements="nsIObserver">
<constructor>
<![CDATA[

View File

@ -6,7 +6,7 @@
<bindings xmlns="http://www.mozilla.org/xbl"
xmlns:html="http://www.w3.org/1999/xhtml">
<binding id="prettyprint">
<binding id="prettyprint" bindToUntrustedContent="true">
<content><html:div id='top'/>
<html:span style="display: none;"><children/></html:span>

View File

@ -10,7 +10,7 @@
xmlns:xbl="http://www.mozilla.org/xbl">
<binding id="marquee">
<binding id="marquee" bindToUntrustedContent="true">
<resources>
<stylesheet src="chrome://xbl-marquee/content/xbl-marquee.css"/>
@ -623,7 +623,7 @@
</binding>
<binding id="marquee-horizontal"
<binding id="marquee-horizontal" bindToUntrustedContent="true"
extends="chrome://xbl-marquee/content/xbl-marquee.xml#marquee"
inheritstyle="false">
@ -643,7 +643,7 @@
</binding>
<binding id="marquee-vertical"
<binding id="marquee-vertical" bindToUntrustedContent="true"
extends="chrome://xbl-marquee/content/xbl-marquee.xml#marquee"
inheritstyle="false">
@ -659,7 +659,7 @@
</binding>
<binding id="marquee-horizontal-editable"
<binding id="marquee-horizontal-editable" bindToUntrustedContent="true"
inheritstyle="false">
<!-- White-space isn't allowed because a marquee could be
@ -672,7 +672,7 @@
</binding>
<binding id="marquee-vertical-editable"
<binding id="marquee-vertical-editable" bindToUntrustedContent="true"
inheritstyle="false">
<!-- White-space isn't allowed because a marquee could be

View File

@ -11,7 +11,7 @@
<binding id="thumb" extends="xul:button" />
<binding id="scrollbar-base">
<binding id="scrollbar-base" bindToUntrustedContent="true">
<handlers>
<handler event="contextmenu" preventdefault="true" action="event.stopPropagation();"/>
<handler event="click" preventdefault="true" action="event.stopPropagation();"/>
@ -20,7 +20,7 @@
</handlers>
</binding>
<binding id="scrollbar" extends="chrome://global/content/bindings/scrollbar.xml#scrollbar-base">
<binding id="scrollbar" bindToUntrustedContent="true" extends="chrome://global/content/bindings/scrollbar.xml#scrollbar-base">
<content clickthrough="always">
<xul:scrollbarbutton sbattr="scrollbar-up-top" type="decrement" xbl:inherits="curpos,maxpos,disabled,sborient=orient"/>
<xul:scrollbarbutton sbattr="scrollbar-down-top" type="increment" xbl:inherits="curpos,maxpos,disabled,sborient=orient"/>

View File

@ -15,7 +15,7 @@
xmlns="http://www.mozilla.org/xbl"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml">
<binding id="pluginProblem" inheritstyle="false" chromeOnlyContent="true">
<binding id="pluginProblem" inheritstyle="false" chromeOnlyContent="true" bindToUntrustedContent="true">
<resources>
<stylesheet src="chrome://mozapps/content/plugins/pluginProblemContent.css"/>
<stylesheet src="chrome://mozapps/skin/plugins/pluginProblem.css"/>