| Summary: | [Content Extensions] Make max rule count | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Alex Christensen <achristensen> | ||||||||
| Component: | WebCore Misc. | Assignee: | Alex Christensen <achristensen> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | commit-queue | ||||||||
| Priority: | P2 | ||||||||||
| Version: | 528+ (Nightly build) | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Bug Depends on: | 145871 | ||||||||||
| Bug Blocks: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Alex Christensen
2015-06-04 14:49:43 PDT
Created attachment 254304 [details]
Patch
Comment on attachment 254304 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=254304&action=review > Source/WebCore/contentextensions/cocoa/ContentExtensionDefaultsCocoa.mm:37 > + NSInteger maxNFASize = [[NSUserDefaults standardUserDefaults] integerForKey:@"ContentExtensionMaxNFASize"]; Shouldn't you use WebKit preferences that are populated by UserDefaults? Having NSUserDefaults in here is weird (In reply to comment #2) > Shouldn't you use WebKit preferences that are populated by UserDefaults? Could you point me to code that does something similar? Would we be able to change/manage that like we want to? Created attachment 254694 [details]
Patch
Comment on attachment 254694 [details]
Patch
Can you report the number with the error message?
Can you tweak the number based on the device?
Can you also limit the number of machines we generate?
http://trac.webkit.org/changeset/185442 I forgot to change the tools change log. This just added the max rule count. (In reply to comment #6) > Comment on attachment 254694 [details] > Patch > > Can you report the number with the error message? > Can you tweak the number based on the device? > Can you also limit the number of machines we generate? These could be added later. Re-opened since this is blocked by bug 145871 This caused lots of strange errors in WTF.StringOperators tests. I'm not sure why, but I'm reverting for now. https://build.webkit.org/builders/Apple%20Yosemite%20Release%20WK1%20%28Tests%29/builds/5975/steps/run-api-tests/logs/stdio Comment on attachment 254694 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=254694&action=review > Tools/ChangeLog:3 > + [Content Extensions] Make max NFA size and max rule count user defaults. And I need to update this ChangeLog entry. Created attachment 254878 [details]
Patch
Comment on attachment 254878 [details] Patch Clearing flags on attachment: 254878 Committed r185555: <http://trac.webkit.org/changeset/185555> All reviewed patches have been landed. Closing bug. |