mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 911864 - Add annotations to our XBL tests as-needed. r=smaug
This commit is contained in:
parent
8c465e2028
commit
cb7b1e1b58
@ -8,7 +8,8 @@
|
||||
<bindings xmlns="http://www.mozilla.org/xbl">
|
||||
<binding id="binding">
|
||||
<implementation>
|
||||
<property name="prop" readonly="true" onget="return 2;"/>
|
||||
<property name="prop" readonly="true" exposeToUntrustedContent="true"
|
||||
onget="return 2;"/>
|
||||
</implementation>
|
||||
</binding>
|
||||
</bindings>
|
||||
|
@ -7,7 +7,8 @@
|
||||
Binding Attached
|
||||
</content>
|
||||
<implementation>
|
||||
<property name="xblBoundProperty" onget="return 1;"/>
|
||||
<property name="xblBoundProperty" onget="return 1;"
|
||||
exposeToUntrustedContent="true"/>
|
||||
</implementation>
|
||||
</binding>
|
||||
</bindings>
|
||||
|
@ -65,13 +65,13 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=821850
|
||||
win.go();
|
||||
</constructor>
|
||||
<field name="primitiveField">2</field>
|
||||
<method name="method">
|
||||
<method name="method" exposeToUntrustedContent="true">
|
||||
<parameter name="arg" />
|
||||
<body>
|
||||
return "method:" + arg;
|
||||
</body>
|
||||
</method>
|
||||
<method name="passMeAJSObject">
|
||||
<method name="passMeAJSObject" exposeToUntrustedContent="true">
|
||||
<parameter name="arg" />
|
||||
<body>
|
||||
is(typeof arg.prop, 'undefined', "No properties");
|
||||
@ -85,7 +85,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=821850
|
||||
is(typeof arg.foo, 'undefined', "Shouldn't place props");
|
||||
</body>
|
||||
</method>
|
||||
<property name="prop">
|
||||
<property name="prop" exposeToUntrustedContent="true">
|
||||
<getter>return this._prop;</getter>
|
||||
<setter>this._prop = "set:" + val;</setter>
|
||||
</property>
|
||||
|
@ -9,7 +9,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=371724
|
||||
<bindings xmlns="http://www.mozilla.org/xbl">
|
||||
<binding id="rd">
|
||||
<implementation>
|
||||
<property name="hallo" onget="return true;" readonly="true"/>
|
||||
<property name="hallo" onget="return true;" readonly="true" exposeToUntrustedContent="true"/>
|
||||
</implementation>
|
||||
</binding>
|
||||
</bindings>
|
||||
|
@ -10,7 +10,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=790265
|
||||
<bindings xmlns="http://www.mozilla.org/xbl">
|
||||
<binding id="binding">
|
||||
<implementation>
|
||||
<method name="foo">
|
||||
<method name="foo" exposeToUntrustedContent="true">
|
||||
<body><![CDATA[
|
||||
return this;
|
||||
]]></body>
|
||||
|
@ -3,13 +3,14 @@
|
||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||
<binding id="xbltest">
|
||||
<implementation>
|
||||
<method name="testMethod">
|
||||
<method name="testMethod" exposeToUntrustedContent="true">
|
||||
<body>
|
||||
Components.interfaces;
|
||||
</body>
|
||||
</method>
|
||||
<property name="testProp" readonly="true"
|
||||
onget="Components; return 3;" />
|
||||
onget="Components; return 3;"
|
||||
exposeToUntrustedContent="true" />
|
||||
<constructor>
|
||||
var foo = Components;
|
||||
</constructor>
|
||||
|
Loading…
Reference in New Issue
Block a user