Index: chrome/content/elemHideEmulation.js |
=================================================================== |
--- a/chrome/content/elemHideEmulation.js |
+++ b/chrome/content/elemHideEmulation.js |
@@ -275,16 +275,19 @@ |
dependsOnStyles: true, |
*findPropsSelectors(styles, prefix, regexp) |
{ |
for (let style of styles) |
if (regexp.test(style.style)) |
for (let subSelector of style.subSelectors) |
{ |
+ if (subSelector.startsWith("*")) |
+ if (!incompletePrefixRegexp.test(prefix)) |
Wladimir Palant
2017/08/17 08:53:08
Please use && operator instead of nested ifs.
hub
2017/08/19 02:12:51
Done.
|
+ subSelector = subSelector.substr(1); |
let idx = subSelector.lastIndexOf("::"); |
if (idx != -1) |
subSelector = subSelector.substr(0, idx); |
yield prefix + subSelector; |
} |
}, |
*getSelectors(prefix, subtree, styles) |