WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
142900
[Content Filtering] Add tests for unblock requests
https://bugs.webkit.org/show_bug.cgi?id=142900
Summary
[Content Filtering] Add tests for unblock requests
Andy Estes
Reported
2015-03-19 23:08:23 PDT
[Content Filtering] Add tests for unblock requests
Attachments
Patch
(56.68 KB, patch)
2015-03-20 00:54 PDT
,
Andy Estes
kling
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Andy Estes
Comment 1
2015-03-20 00:54:00 PDT
Created
attachment 249093
[details]
Patch
WebKit Commit Bot
Comment 2
2015-03-20 00:56:41 PDT
Attachment 249093
[details]
did not pass style-queue: ERROR: Source/WebCore/loader/ContentFilter.cpp:71: Code inside a namespace should not be indented. [whitespace/indent] [4] ERROR: Source/WebCore/loader/ContentFilter.cpp:148: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WebCore/testing/MockContentFilter.cpp:100: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WebCore/platform/cocoa/ContentFilterUnblockHandlerCocoa.mm:51: Code inside a namespace should not be indented. [whitespace/indent] [4] ERROR: Source/WebCore/platform/cocoa/ContentFilterUnblockHandlerCocoa.mm:125: Place brace on its own line for function definitions. [whitespace/braces] [4] Total errors found: 5 in 32 files If any of these errors are false positives, please file a bug against check-webkit-style.
Andreas Kling
Comment 3
2015-03-20 01:33:25 PDT
Comment on
attachment 249093
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=249093&action=review
r=me
> Source/WebCore/testing/MockContentFilter.cpp:111 > + return "unblockRequestDenied()";
This would be slightly more efficient using ASCIILiteral: return ASCIILiteral("unblockRequestDenied()");
> Source/WebKit2/UIProcess/WebFrameProxy.cpp:245 > + if (unblocked && page) > + page->reload(false);
'page' cannot be null here, since the only caller of this function is a member function in WebPageProxy. This could just be an assertion outside the block.
Andy Estes
Comment 4
2015-03-20 01:43:37 PDT
Committed
r181791
: <
http://trac.webkit.org/changeset/181791
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug