Skip to content

Commit ae92833

Browse files
committed
Bug 1949859 [wpt PR 50879] - Fix a crash in AILanguageDetectorFactory::capabilities() called on a detached frame, a=testonly
Automatic update from web-platform-tests Fix a crash in AILanguageDetectorFactory::capabilities() called on a detached frame - Add [RaisesException] EA to AILanguageDetectorFactory::capabilities(), raise an exception when no execution context is present; - See if execution context is available before calling GetLanguageDetectionDriverRemote() - Add a CHECK() within GetLanguageDetectionDriverRemote() to enforce that. Bug: 384233287 Change-Id: I81486a91cf2cdc270562615ccbc4a91720ec3ff7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6289147 Commit-Queue: Andrey Kosyakov <caseqchromium.org> Reviewed-by: Mike Wasserman <mswchromium.org> Cr-Commit-Position: refs/heads/main{#1423264} -- wpt-commits: b26ba1d0251ab1e9db078ba18c83a953cfaeb580 wpt-pr: 50879 UltraBlame original commit: 7d75f7540c56ad68dde612e450e954020a8d8087
1 parent ce1ead5 commit ae92833

File tree

1 file changed

+132
-0
lines changed

1 file changed

+132
-0
lines changed
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
<
2+
!
3+
DOCTYPE
4+
html
5+
>
6+
<
7+
title
8+
>
9+
Assures
10+
no
11+
crash
12+
upon
13+
call
14+
of
15+
LanguageDetectorFactory
16+
.
17+
capabilities
18+
(
19+
)
20+
on
21+
a
22+
detached
23+
document
24+
<
25+
/
26+
title
27+
>
28+
<
29+
link
30+
rel
31+
=
32+
"
33+
author
34+
"
35+
href
36+
=
37+
"
38+
mailto
39+
:
40+
caseq
41+
chromium
42+
.
43+
org
44+
"
45+
>
46+
<
47+
link
48+
rel
49+
=
50+
"
51+
help
52+
"
53+
href
54+
=
55+
"
56+
https
57+
:
58+
/
59+
/
60+
issues
61+
.
62+
chromium
63+
.
64+
org
65+
/
66+
issues
67+
/
68+
384233287
69+
"
70+
>
71+
<
72+
body
73+
>
74+
<
75+
iframe
76+
src
77+
=
78+
"
79+
about
80+
:
81+
blank
82+
"
83+
>
84+
<
85+
/
86+
iframe
87+
>
88+
<
89+
script
90+
>
91+
const
92+
factory
93+
=
94+
frames
95+
[
96+
0
97+
]
98+
.
99+
ai
100+
.
101+
languageDetector
102+
;
103+
document
104+
.
105+
getElementsByTagName
106+
(
107+
"
108+
iframe
109+
"
110+
)
111+
[
112+
0
113+
]
114+
.
115+
remove
116+
(
117+
)
118+
;
119+
factory
120+
.
121+
capabilities
122+
(
123+
)
124+
;
125+
<
126+
/
127+
script
128+
>
129+
<
130+
/
131+
body
132+
>

0 commit comments

Comments
 (0)