Commit c5724c1 1 parent c090ab1 commit c5724c1 Copy full SHA for c5724c1
File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,9 @@ vAPI.webextFlavor = {
155
155
}
156
156
} ;
157
157
158
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=1858743
159
+ // Add support for native `:has()` for Firefox 121+
160
+
158
161
( ( ) => {
159
162
const ua = navigator . userAgent ;
160
163
const flavor = vAPI . webextFlavor ;
@@ -184,13 +187,16 @@ vAPI.webextFlavor = {
184
187
flavor . major = parseInt ( info . version , 10 ) || flavor . major ;
185
188
soup . add ( info . vendor . toLowerCase ( ) )
186
189
. add ( info . name . toLowerCase ( ) ) ;
190
+ if ( flavor . major >= 121 && soup . has ( 'mobile' ) === false ) {
191
+ soup . add ( 'native_css_has' ) ;
192
+ }
187
193
dispatch ( ) ;
188
194
} ) ;
189
195
if ( browser . runtime . getURL ( '' ) . startsWith ( 'moz-extension://' ) ) {
190
196
soup . add ( 'firefox' )
191
197
. add ( 'user_stylesheet' )
192
198
. add ( 'html_filtering' ) ;
193
- flavor . major = 91 ;
199
+ flavor . major = 115 ;
194
200
}
195
201
return ;
196
202
}
You can’t perform that action at this time.
0 commit comments