summaryrefslogtreecommitdiffstats
path: root/toolkit/mozapps/extensions/test/xpcshell/data/test_bug449027_toolkit.xml
blob: ad8ec5ed9df4468eaaea66f90021794ba3780a69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<?xml version="1.0" encoding="UTF-8"?>

<blocklist xmlns="http://www.mozilla.org/2006/addons-blocklist">
  <emItems>
    <!-- All extensions are version 5 and tests run against toolkitVersion 8 -->

    <!-- Test 1-14 not listed, should never get blocked -->

    <!-- Should block for any version of the app -->
    <emItem id="test_bug449027_15@tests.mozilla.org">
      <versionRange>
        <targetApplication id="toolkit@mozilla.org"/>
      </versionRange>
    </emItem>
    <!-- Should still block -->
    <emItem id="test_bug449027_16@tests.mozilla.org">
      <versionRange>
        <targetApplication id="toolkit@mozilla.org">
          <versionRange/>
        </targetApplication>
      </versionRange>
    </emItem>
    <!-- Not blocked since neither version range matches -->
    <emItem id="test_bug449027_17@tests.mozilla.org">
      <versionRange>
        <targetApplication id="toolkit@mozilla.org">
          <versionRange minVersion="9"/>
          <versionRange maxVersion="7"/>
        </targetApplication>
      </versionRange>
    </emItem>
    <!-- Invalid version range, should not block -->
    <emItem id="test_bug449027_18@tests.mozilla.org">
      <versionRange>
        <targetApplication id="toolkit@mozilla.org">
          <versionRange minVersion="11" maxVersion="9"/>
        </targetApplication>
      </versionRange>
    </emItem>
    <!-- Should block all of these -->
    <emItem id="test_bug449027_19@tests.mozilla.org">
      <versionRange>
        <targetApplication id="foo@bar.com"/>
        <targetApplication id="toolkit@mozilla.org">
          <versionRange minVersion="10" maxVersion="11"/>
          <versionRange minVersion="8" maxVersion="9"/>
          <versionRange maxVersion="7"/>
        </targetApplication>
      </versionRange>
    </emItem>
    <emItem id="test_bug449027_20@tests.mozilla.org">
      <versionRange>
        <targetApplication id="toolkit@mozilla.org">
          <versionRange maxVersion="7"/>
          <versionRange minVersion="7" maxVersion="8"/>
          <versionRange minVersion="9" maxVersion="10"/>
        </targetApplication>
        <targetApplication id="foo@bar.com"/>
      </versionRange>
    </emItem>
    <emItem id="test_bug449027_21@tests.mozilla.org">
      <versionRange>
        <targetApplication id="toolkit@mozilla.org">
          <versionRange minVersion="6" maxVersion="6"/>
          <versionRange minVersion="7" maxVersion="9"/>
          <versionRange minVersion="10" maxVersion="11"/>
        </targetApplication>
      </versionRange>
    </emItem>
    <emItem id="test_bug449027_22@tests.mozilla.org">
      <versionRange>
        <targetApplication id="foo@bar.com"/>
        <targetApplication id="toolkit@mozilla.org">
          <versionRange minVersion="8"/>
        </targetApplication>
      </versionRange>
    </emItem>
    <emItem id="test_bug449027_23@tests.mozilla.org">
      <versionRange>
        <targetApplication id="toolkit@mozilla.org">
          <versionRange minVersion="7"/>
        </targetApplication>
        <targetApplication id="foo@bar.com"/>
      </versionRange>
    </emItem>
    <emItem id="test_bug449027_24@tests.mozilla.org">
      <versionRange>
        <targetApplication id="toolkit@mozilla.org">
          <versionRange maxVersion="8"/>
        </targetApplication>
      </versionRange>
    </emItem>
    <emItem id="test_bug449027_25@tests.mozilla.org">
      <versionRange>
        <targetApplication id="toolkit@mozilla.org">
          <versionRange maxVersion="9"/>
        </targetApplication>
      </versionRange>
    </emItem>
  </emItems>
  <pluginItems>
    <!-- All plugins are version 5 and tests run against appVersion 3 -->

    <!-- Test 1-14 not listed, should never get blocked -->
    <!-- Should block for any version of the app -->
    <pluginItem>
      <match name="name" exp="^test_bug449027_15$"/>
      <versionRange>
        <targetApplication id="toolkit@mozilla.org"/>
      </versionRange>
    </pluginItem>
    <!-- Should still block -->
    <pluginItem>
      <match name="name" exp="^test_bug449027_16$"/>
      <versionRange>
        <targetApplication id="toolkit@mozilla.org">
          <versionRange/>
        </targetApplication>
      </versionRange>
    </pluginItem>
    <!-- Not blocked since neither version range matches -->
    <pluginItem>
      <match name="name" exp="^test_bug449027_17$"/>
      <versionRange>
        <targetApplication id="toolkit@mozilla.org">
          <versionRange minVersion="9"/>
          <versionRange maxVersion="7"/>
        </targetApplication>
      </versionRange>
    </pluginItem>
    <!-- Invalid version range, should not block -->
    <pluginItem>
      <match name="name" exp="^test_bug449027_18$"/>
      <versionRange>
        <targetApplication id="toolkit@mozilla.org">
          <versionRange minVersion="11" maxVersion="9"/>
        </targetApplication>
      </versionRange>
    </pluginItem>
    <!-- Should block all of these -->
    <pluginItem>
      <match name="name" exp="^test_bug449027_19$"/>
      <versionRange>
        <targetApplication id="foo@bar.com"/>
        <targetApplication id="toolkit@mozilla.org">
          <versionRange minVersion="10" maxVersion="11"/>
          <versionRange minVersion="8" maxVersion="9"/>
          <versionRange maxVersion="7"/>
        </targetApplication>
      </versionRange>
    </pluginItem>
    <pluginItem>
      <match name="name" exp="^test_bug449027_20$"/>
      <versionRange>
        <targetApplication id="toolkit@mozilla.org">
          <versionRange maxVersion="7"/>
          <versionRange minVersion="7" maxVersion="8"/>
          <versionRange minVersion="9" maxVersion="10"/>
        </targetApplication>
        <targetApplication id="foo@bar.com"/>
      </versionRange>
    </pluginItem>
    <pluginItem>
      <match name="name" exp="^test_bug449027_21$"/>
      <versionRange>
        <targetApplication id="toolkit@mozilla.org">
          <versionRange minVersion="6" maxVersion="6"/>
          <versionRange minVersion="7" maxVersion="9"/>
          <versionRange minVersion="10" maxVersion="11"/>
        </targetApplication>
      </versionRange>
    </pluginItem>
    <pluginItem>
      <match name="name" exp="^test_bug449027_22$"/>
      <versionRange>
        <targetApplication id="foo@bar.com"/>
        <targetApplication id="toolkit@mozilla.org">
          <versionRange minVersion="8"/>
        </targetApplication>
      </versionRange>
    </pluginItem>
    <pluginItem>
      <match name="name" exp="^test_bug449027_23$"/>
      <versionRange>
        <targetApplication id="toolkit@mozilla.org">
          <versionRange minVersion="7"/>
        </targetApplication>
        <targetApplication id="foo@bar.com"/>
      </versionRange>
    </pluginItem>
    <pluginItem>
      <match name="name" exp="^test_bug449027_24$"/>
      <versionRange>
        <targetApplication id="toolkit@mozilla.org">
          <versionRange maxVersion="8"/>
        </targetApplication>
      </versionRange>
    </pluginItem>
    <pluginItem>
      <match name="name" exp="^test_bug449027_25$"/>
      <versionRange>
        <targetApplication id="toolkit@mozilla.org">
          <versionRange maxVersion="9"/>
        </targetApplication>
      </versionRange>
    </pluginItem>
  </pluginItems>
</blocklist>