зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1834717
- More gracefully deal with broken calls into selector matching. r=dshin
If this happens again, it might be worth not matching rather than potentially crashing. Though I guess crashing is a very good way getting it reported soon... Differential Revision: https://phabricator.services.mozilla.com/D178921
This commit is contained in:
Родитель
43499f6fab
Коммит
88c3ba6a16
|
@ -316,12 +316,14 @@ where
|
|||
}
|
||||
}
|
||||
},
|
||||
_ => {
|
||||
ref other => {
|
||||
debug_assert!(
|
||||
false,
|
||||
"Used MatchingMode::ForStatelessPseudoElement \
|
||||
in a non-pseudo selector"
|
||||
in a non-pseudo selector {:?}",
|
||||
other
|
||||
);
|
||||
return false;
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче