RESOLVED FIXED 145663
[Content Extensions] Make max rule count
https://bugs.webkit.org/show_bug.cgi?id=145663
Summary [Content Extensions] Make max rule count
Alex Christensen
Reported 2015-06-04 14:49:43 PDT
This introduces a max rule count, and it makes the limits on rules and NFA size NSUserDefaults, with default fallback values.
Attachments
Patch (17.41 KB, patch)
2015-06-04 14:52 PDT, Alex Christensen
no flags
Patch (5.50 KB, patch)
2015-06-10 17:46 PDT, Alex Christensen
no flags
Patch (5.46 KB, patch)
2015-06-15 09:35 PDT, Alex Christensen
no flags
Alex Christensen
Comment 1 2015-06-04 14:52:52 PDT
Benjamin Poulain
Comment 2 2015-06-04 16:17:02 PDT
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
Alex Christensen
Comment 3 2015-06-04 17:11:45 PDT
(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?
Alex Christensen
Comment 4 2015-06-05 15:26:08 PDT
Alex Christensen
Comment 5 2015-06-10 17:46:43 PDT
Benjamin Poulain
Comment 6 2015-06-10 17:49:04 PDT
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?
Alex Christensen
Comment 7 2015-06-10 17:54:18 PDT
http://trac.webkit.org/changeset/185442 I forgot to change the tools change log. This just added the max rule count.
Alex Christensen
Comment 8 2015-06-10 17:54:43 PDT
(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.
WebKit Commit Bot
Comment 9 2015-06-10 21:12:54 PDT
Re-opened since this is blocked by bug 145871
Alex Christensen
Comment 10 2015-06-10 21:15:35 PDT
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
Alex Christensen
Comment 11 2015-06-10 21:15:58 PDT
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.
Alex Christensen
Comment 12 2015-06-15 09:35:08 PDT
WebKit Commit Bot
Comment 13 2015-06-15 10:23:39 PDT
Comment on attachment 254878 [details] Patch Clearing flags on attachment: 254878 Committed r185555: <http://trac.webkit.org/changeset/185555>
WebKit Commit Bot
Comment 14 2015-06-15 10:23:42 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.