| Index: lib/filterClasses.js |
| =================================================================== |
| --- a/lib/filterClasses.js |
| +++ b/lib/filterClasses.js |
| @@ -324,6 +324,12 @@ |
| */ |
| get domains() |
| { |
| + // Despite this property being cached, the getter is called |
| + // several times on Safari, due to WebKit bug 132872 |
| + let prop = Object.getOwnPropertyDescriptor(this, "domains"); |
| + if (prop) |
| + return prop.value; |
| + |
| let domains = null; |
| if (this.domainSource) |
| @@ -514,6 +520,12 @@ |
| */ |
| get regexp() |
| { |
| + // Despite this property being cached, the getter is called |
| + // several times on Safari, due to WebKit bug 132872 |
| + let prop = Object.getOwnPropertyDescriptor(this, "regexp"); |
| + if (prop) |
| + return prop.value; |
| + |
| // Remove multiple wildcards |
| let source = this.regexpSource |
| .replace(/\*+/g, "*") // remove multiple wildcards |