⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 203435 in webkit


Ignore:
Timestamp:
Jul 19, 2016, 5:09:52 PM (10 years ago)
Author:
aestes@apple.com
Message:

Move WebKitErrorFrameLoadBlockedByContentFilter from WebKitErrors.h to WebKitErrorsPrivate.h
https://bugs.webkit.org/show_bug.cgi?id=159956

Reviewed by Dan Bernstein.

Source/WebKit/mac:

  • Misc/WebKitErrors.h: Moved definition of WebKitErrorFrameLoadBlockedByContentFilter from here ...
  • Misc/WebKitErrorsPrivate.h: to here.

Tools:

  • TestWebKitAPI/Tests/WebKit2Cocoa/ContentFiltering.mm: Included WKErrorRef.h.

(-[LoadAlternateNavigationDelegate webView:didFailProvisionalNavigation:withError:]):
Used kWKErrorCodeFrameLoadBlockedByContentFilter instead of WebKitErrorFrameLoadBlockedByContentFilter.

  • TestWebKitAPI/Tests/mac/ContentFiltering.mm: Included WebKitErrorsPrivate.h instead of WebKitErrors.h.
Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/mac/ChangeLog

    r203381 r203435  
     12016-07-19  Andy Estes  <aestes@apple.com>
     2
     3        Move WebKitErrorFrameLoadBlockedByContentFilter from WebKitErrors.h to WebKitErrorsPrivate.h
     4        https://bugs.webkit.org/show_bug.cgi?id=159956
     5
     6        Reviewed by Dan Bernstein.
     7
     8        * Misc/WebKitErrors.h: Moved definition of WebKitErrorFrameLoadBlockedByContentFilter from here ...
     9        * Misc/WebKitErrorsPrivate.h: to here.
     10
    1112016-07-18  Anders Carlsson  <andersca@apple.com>
    212
  • trunk/Source/WebKit/mac/Misc/WebKitErrors.h

    r203003 r203435  
    3939    @constant WebKitErrorCannotShowURL
    4040    @constant WebKitErrorFrameLoadInterruptedByPolicyChange
    41     @constant WebKitErrorFrameLoadBlockedByContentFilter
    4241*/
    4342enum {
     
    4544    WebKitErrorCannotShowURL =                                  101,
    4645    WebKitErrorFrameLoadInterruptedByPolicyChange =             102,
    47     WebKitErrorFrameLoadBlockedByContentFilter =                105,
    4846};
    4947
  • trunk/Source/WebKit/mac/Misc/WebKitErrorsPrivate.h

    r168047 r203435  
    3737    @abstract Policy errors - Pending Public API Review
    3838    @constant WebKitErrorCannotUseRestrictedPort
     39    @constant WebKitErrorFrameLoadBlockedByContentFilter
    3940*/
    4041enum {
    4142    WebKitErrorCannotUseRestrictedPort =                        103,
     43    WebKitErrorFrameLoadBlockedByContentFilter =                105,
    4244};
    4345
  • trunk/Tools/ChangeLog

    r203429 r203435  
     12016-07-19  Andy Estes  <aestes@apple.com>
     2
     3        Move WebKitErrorFrameLoadBlockedByContentFilter from WebKitErrors.h to WebKitErrorsPrivate.h
     4        https://bugs.webkit.org/show_bug.cgi?id=159956
     5
     6        Reviewed by Dan Bernstein.
     7
     8        * TestWebKitAPI/Tests/WebKit2Cocoa/ContentFiltering.mm: Included WKErrorRef.h.
     9        (-[LoadAlternateNavigationDelegate webView:didFailProvisionalNavigation:withError:]):
     10        Used kWKErrorCodeFrameLoadBlockedByContentFilter instead of WebKitErrorFrameLoadBlockedByContentFilter.
     11        * TestWebKitAPI/Tests/mac/ContentFiltering.mm: Included WebKitErrorsPrivate.h instead of WebKitErrors.h.
     12
    1132016-07-19  Alex Christensen  <achristensen@webkit.org>
    214
  • trunk/Tools/TestWebKitAPI/Tests/WebKit2Cocoa/ContentFiltering.mm

    r203003 r203435  
    3333#import "TestProtocol.h"
    3434#import "WKWebViewConfigurationExtras.h"
     35#import <WebKit/WKErrorRef.h>
    3536#import <WebKit/WKNavigationDelegatePrivate.h>
    3637#import <WebKit/WKProcessPoolPrivate.h>
     
    266267{
    267268    EXPECT_WK_STREQ(WebKitErrorDomain, error.domain);
    268     EXPECT_EQ(WebKitErrorFrameLoadBlockedByContentFilter, error.code);
     269    EXPECT_EQ(kWKErrorCodeFrameLoadBlockedByContentFilter, error.code);
    269270    [webView _loadAlternateHTMLString:@"FAIL" baseURL:nil forUnreachableURL:[error.userInfo objectForKey:NSURLErrorFailingURLErrorKey]];
    270271}
  • trunk/Tools/TestWebKitAPI/Tests/mac/ContentFiltering.mm

    r203003 r203435  
    3030#import "TestProtocol.h"
    3131#import <WebKit/WebKit.h>
     32#import <WebKit/WebKitErrorsPrivate.h>
    3233
    3334using Decision = WebCore::MockContentFilterSettings::Decision;
Note: See TracChangeset for help on using the changeset viewer.