RESOLVED FIXED 152881
[Content Filtering] Lazily load platform frameworks
https://bugs.webkit.org/show_bug.cgi?id=152881
Summary [Content Filtering] Lazily load platform frameworks
Andy Estes
Reported 2016-01-07 18:42:32 PST
[Content Filtering] Lazily load platform frameworks
Attachments
Patch (55.13 KB, patch)
2016-01-09 01:38 PST, Andy Estes
no flags
Patch (55.19 KB, patch)
2016-01-09 01:51 PST, Andy Estes
no flags
Archive of layout-test-results from ews114 for mac-yosemite (1.59 MB, application/zip)
2016-01-09 03:25 PST, Build Bot
no flags
Patch (58.89 KB, patch)
2016-01-10 01:32 PST, Andy Estes
beidson: review+
beidson: commit-queue-
Andy Estes
Comment 1 2016-01-09 00:34:25 PST
Andy Estes
Comment 2 2016-01-09 01:38:41 PST
WebKit Commit Bot
Comment 3 2016-01-09 01:39:28 PST
Attachment 268618 [details] did not pass style-queue: ERROR: Tools/TestWebKitAPI/Tests/WebKit2Cocoa/ContentFiltering.mm:292: Place brace on its own line for function definitions. [whitespace/braces] [4] Total errors found: 1 in 22 files If any of these errors are false positives, please file a bug against check-webkit-style.
Andy Estes
Comment 4 2016-01-09 01:51:09 PST
WebKit Commit Bot
Comment 5 2016-01-09 01:52:18 PST
Attachment 268619 [details] did not pass style-queue: ERROR: Tools/TestWebKitAPI/Tests/WebKit2Cocoa/ContentFiltering.mm:292: Place brace on its own line for function definitions. [whitespace/braces] [4] Total errors found: 1 in 22 files If any of these errors are false positives, please file a bug against check-webkit-style.
Build Bot
Comment 6 2016-01-09 03:25:00 PST
Comment on attachment 268619 [details] Patch Attachment 268619 [details] did not pass mac-debug-ews (mac): Output: http://webkit-queues.webkit.org/results/670433 New failing tests: http/tests/appcache/load-from-appcache-defer-resume-crash.html http/tests/appcache/offline-access.html http/tests/appcache/main-resource-hash.html http/tests/appcache/top-frame-2.html http/tests/appcache/reload.html http/tests/appcache/history-test.html http/tests/appcache/top-frame-4.html http/tests/appcache/non-html.xhtml http/tests/appcache/cyrillic-uri.html http/tests/appcache/crash-when-navigating-away-then-back.html http/tests/appcache/local-content.html http/tests/appcache/top-frame-3.html http/tests/appcache/remove-cache.html http/tests/appcache/xhr-foreign-resource.html http/tests/appcache/x-frame-options-prevents-framing.php
Build Bot
Comment 7 2016-01-09 03:25:06 PST
Created attachment 268620 [details] Archive of layout-test-results from ews114 for mac-yosemite The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews114 Port: mac-yosemite Platform: Mac OS X 10.10.5
Andy Estes
Comment 8 2016-01-10 01:32:26 PST
WebKit Commit Bot
Comment 9 2016-01-10 01:34:33 PST
Attachment 268642 [details] did not pass style-queue: ERROR: Tools/TestWebKitAPI/Tests/WebKit2Cocoa/ContentFiltering.mm:292: Place brace on its own line for function definitions. [whitespace/braces] [4] Total errors found: 1 in 23 files If any of these errors are false positives, please file a bug against check-webkit-style.
Brady Eidson
Comment 10 2016-01-12 06:44:18 PST
Comment on attachment 268642 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=268642&action=review I love the source changes. I did not look *that* closely at the testing changes but they seem quite sane. > Source/WebCore/platform/cocoa/NetworkExtensionContentFilter.mm:76 > + m_queue = adoptOSObject(dispatch_queue_create("com.apple.WebCore.NEFilterSourceQueue", DISPATCH_QUEUE_SERIAL)); I know this is preexisting, but maybe now is a good time to reconsider this queue's name. There's no rule that we have to use "reverse domain bundle formatting" for these, and it is likely beneficial to WebKit developers and crash reporter analyzers to have an immediately human readable name. I'd suggest "WebKit Content Filtering" or, if you object to "WebKit" being used in WebCore, then "Web Content Filtering"
Andy Estes
Comment 11 2016-01-12 17:09:31 PST
(In reply to comment #10) > Comment on attachment 268642 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=268642&action=review > > I love the source changes. > > I did not look *that* closely at the testing changes but they seem quite > sane. > > > Source/WebCore/platform/cocoa/NetworkExtensionContentFilter.mm:76 > > + m_queue = adoptOSObject(dispatch_queue_create("com.apple.WebCore.NEFilterSourceQueue", DISPATCH_QUEUE_SERIAL)); > > I know this is preexisting, but maybe now is a good time to reconsider this > queue's name. > > There's no rule that we have to use "reverse domain bundle formatting" for > these, and it is likely beneficial to WebKit developers and crash reporter > analyzers to have an immediately human readable name. > > I'd suggest "WebKit Content Filtering" or, if you object to "WebKit" being > used in WebCore, then "Web Content Filtering" Ok, I agree. I think "Web(Kit) Content Filtering" might be a little misleading, since this is specifically for the NEFilterSource variant. Maybe "WebKit NEFilterSource Filtering"?
Andy Estes
Comment 12 2016-01-12 18:07:30 PST
Andy Estes
Comment 13 2016-01-12 18:10:39 PST
(In reply to comment #12) > Committed r194950: <http://trac.webkit.org/changeset/194950> Oops, I forgot to make the change Brady suggested. Addressed in r194951: <http://trac.webkit.org/changeset/194951>
Note You need to log in before you can comment on or make changes to this bug.