You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<Text>This test presents three iframes: iframe_0 (yellow); iframe_1 (pink); and iframe_2 (transparent, because its 'X-Frame-Options' is set to 'SAMEORIGIN').</Text>
157
-
<Text>Before injection, the main frame's background is the browser's default value (transparent or white) and each frame has its natural colour.</Text>
155
+
<Text>
156
+
This test presents three iframes: iframe_0 (yellow); iframe_1 (pink);
157
+
and iframe_2 (transparent, because its 'X-Frame-Options' is set to
158
+
'SAMEORIGIN').
159
+
</Text>
160
+
<Text>
161
+
Before injection, the main frame's background is the browser's default
162
+
value (transparent or white) and each frame has its natural colour.
163
+
</Text>
158
164
{/*<Text>1a) At injection time "beforeContentLoaded", a variable will be set in each frame to set 'orange' as the "colour to be used".</Text>*/}
159
165
{/*<Text>1b) Also upon "beforeContentLoaded", a style element to change the text "beforeContentLoaded failed" -> "beforeContentLoaded succeeded" will be applied as soon as the head has loaded.</Text>*/}
160
166
{/*<Text>2a) At injection time "afterContentLoaded", that variable will be read – if present, the colour orange will be injected into all frames. Otherwise, cyan.</Text>*/}
161
167
{/*<Text>2b) Also upon "afterContentLoaded", a style element to change the text "afterContentLoaded failed" -> "afterContentLoaded succeeded" will be applied as soon as the head has loaded.</Text>*/}
162
-
<Text>✅ If the main frame becomes orange, then top-frame injection both beforeContentLoaded and afterContentLoaded is supported.</Text>
163
-
<Text>✅ If iframe_0, and iframe_1 become orange, then multi-frame injection beforeContentLoaded and afterContentLoaded is supported.</Text>
164
-
<Text>✅ If the two texts say "beforeContentLoaded on the top frame succeeded!" and "afterContentLoaded on the top frame succeeded!", then both injection times are supported at least on the main frame.</Text>
165
-
<Text>❌ If either of the two iframes become coloured cyan, then for that given frame, JS injection succeeded after the content loaded, but didn't occur before the content loaded.</Text>
166
-
<Text>❌ If "Names of iframes that called beforeContentLoaded: " is [], then see above.</Text>
167
-
<Text>❌ If "Names of iframes that called afterContentLoaded: " is [], then afterContentLoaded is not supported in iframes.</Text>
168
-
<Text>❌ If the main frame becomes coloured cyan, then JS injection succeeded after the content loaded, but didn't occur before the content loaded.</Text>
169
-
<Text>❌ If the text "beforeContentLoaded on the top frame failed" remains unchanged, then JS injection has failed on the main frame before the content loaded.</Text>
170
-
<Text>❌ If the text "afterContentLoaded on the top frame failed" remains unchanged, then JS injection has failed on the main frame after the content loaded.</Text>
171
-
<Text>❌ If the iframes remain their original colours (yellow and pink), then multi-frame injection is not supported at all.</Text>
168
+
<Text>
169
+
✅ If the main frame becomes orange, then top-frame injection both
170
+
beforeContentLoaded and afterContentLoaded is supported.
171
+
</Text>
172
+
<Text>
173
+
✅ If iframe_0, and iframe_1 become orange, then multi-frame injection
174
+
beforeContentLoaded and afterContentLoaded is supported.
175
+
</Text>
176
+
<Text>
177
+
✅ If the two texts say "beforeContentLoaded on the top frame
178
+
succeeded!" and "afterContentLoaded on the top frame succeeded!", then
179
+
both injection times are supported at least on the main frame.
180
+
</Text>
181
+
<Text>
182
+
❌ If either of the two iframes become coloured cyan, then for that
183
+
given frame, JS injection succeeded after the content loaded, but
184
+
didn't occur before the content loaded.
185
+
</Text>
186
+
<Text>
187
+
❌ If "Names of iframes that called beforeContentLoaded: " is [], then
188
+
see above.
189
+
</Text>
190
+
<Text>
191
+
❌ If "Names of iframes that called afterContentLoaded: " is [], then
192
+
afterContentLoaded is not supported in iframes.
193
+
</Text>
194
+
<Text>
195
+
❌ If the main frame becomes coloured cyan, then JS injection
196
+
succeeded after the content loaded, but didn't occur before the
197
+
content loaded.
198
+
</Text>
199
+
<Text>
200
+
❌ If the text "beforeContentLoaded on the top frame failed" remains
201
+
unchanged, then JS injection has failed on the main frame before the
202
+
content loaded.
203
+
</Text>
204
+
<Text>
205
+
❌ If the text "afterContentLoaded on the top frame failed" remains
206
+
unchanged, then JS injection has failed on the main frame after the
207
+
content loaded.
208
+
</Text>
209
+
<Text>
210
+
❌ If the iframes remain their original colours (yellow and pink),
211
+
then multi-frame injection is not supported at all.
0 commit comments