mirror of https://github.com/gorhill/uBlock.git
fix #3111
This commit is contained in:
parent
3d0cdc38b9
commit
8c33720d16
|
@ -2,7 +2,7 @@
|
|||
"manifest_version": 2,
|
||||
|
||||
"name": "uBlock Origin",
|
||||
"version": "1.14.12",
|
||||
"version": "1.14.14",
|
||||
|
||||
"commands": {
|
||||
"launch-element-zapper": {
|
||||
|
|
|
@ -51,6 +51,14 @@ var isValidCSSSelector = (function() {
|
|||
} else {
|
||||
matchesFn = div.querySelector.bind(div);
|
||||
}
|
||||
// https://github.com/gorhill/uBlock/issues/3111
|
||||
// Workaround until https://bugzilla.mozilla.org/show_bug.cgi?id=1406817
|
||||
// is fixed.
|
||||
try {
|
||||
matchesFn(':scope');
|
||||
} catch (ex) {
|
||||
matchesFn = div.querySelector.bind(div);
|
||||
}
|
||||
return function(s) {
|
||||
try {
|
||||
matchesFn(s + ', ' + s + ':not(#foo)');
|
||||
|
|
Loading…
Reference in New Issue