Bug 237217 - Fix test failures when enabling content filtering in the Network process
Summary: Fix test failures when enabling content filtering in the Network process
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Per Arne Vollan
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-02-25 10:51 PST by Per Arne Vollan
Modified: 2022-03-18 15:13 PDT (History)
12 users (show)

See Also:


Attachments
Patch (70.39 KB, patch)
2022-02-25 11:29 PST, Per Arne Vollan
no flags Details | Formatted Diff | Diff
Patch (65.62 KB, patch)
2022-03-01 08:02 PST, Per Arne Vollan
no flags Details | Formatted Diff | Diff
Patch (70.19 KB, patch)
2022-03-01 12:36 PST, Per Arne Vollan
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (71.79 KB, patch)
2022-03-01 13:41 PST, Per Arne Vollan
no flags Details | Formatted Diff | Diff
Patch (72.87 KB, patch)
2022-03-02 07:41 PST, Per Arne Vollan
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (73.71 KB, patch)
2022-03-02 14:08 PST, Per Arne Vollan
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (64.19 KB, patch)
2022-03-02 15:27 PST, Per Arne Vollan
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (64.21 KB, patch)
2022-03-02 15:49 PST, Per Arne Vollan
no flags Details | Formatted Diff | Diff
Patch (63.95 KB, patch)
2022-03-03 07:32 PST, Per Arne Vollan
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (64.04 KB, patch)
2022-03-03 07:51 PST, Per Arne Vollan
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (64.17 KB, patch)
2022-03-03 07:58 PST, Per Arne Vollan
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (64.16 KB, patch)
2022-03-03 08:05 PST, Per Arne Vollan
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (64.28 KB, patch)
2022-03-03 08:17 PST, Per Arne Vollan
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (64.47 KB, patch)
2022-03-03 08:55 PST, Per Arne Vollan
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (63.40 KB, patch)
2022-03-03 10:21 PST, Per Arne Vollan
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (64.56 KB, patch)
2022-03-03 11:37 PST, Per Arne Vollan
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (65.07 KB, patch)
2022-03-03 13:18 PST, Per Arne Vollan
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (65.09 KB, patch)
2022-03-03 14:34 PST, Per Arne Vollan
no flags Details | Formatted Diff | Diff
Patch (73.13 KB, patch)
2022-03-08 07:26 PST, Per Arne Vollan
no flags Details | Formatted Diff | Diff
Patch (78.04 KB, patch)
2022-03-10 07:32 PST, Per Arne Vollan
no flags Details | Formatted Diff | Diff
Patch (93.37 KB, patch)
2022-03-10 15:39 PST, Per Arne Vollan
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (93.37 KB, patch)
2022-03-10 16:01 PST, Per Arne Vollan
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (93.41 KB, patch)
2022-03-10 16:16 PST, Per Arne Vollan
no flags Details | Formatted Diff | Diff
Patch (94.20 KB, patch)
2022-03-11 08:05 PST, Per Arne Vollan
no flags Details | Formatted Diff | Diff
Patch (85.77 KB, patch)
2022-03-11 08:20 PST, Per Arne Vollan
no flags Details | Formatted Diff | Diff
Patch (87.07 KB, patch)
2022-03-15 07:25 PDT, Per Arne Vollan
no flags Details | Formatted Diff | Diff
Patch (85.57 KB, patch)
2022-03-15 08:53 PDT, Per Arne Vollan
no flags Details | Formatted Diff | Diff
Patch (87.03 KB, patch)
2022-03-16 09:37 PDT, Per Arne Vollan
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (87.29 KB, patch)
2022-03-16 10:14 PDT, Per Arne Vollan
no flags Details | Formatted Diff | Diff
Patch (88.11 KB, patch)
2022-03-17 07:24 PDT, Per Arne Vollan
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (88.13 KB, patch)
2022-03-17 07:34 PDT, Per Arne Vollan
bfulgham: review+
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (88.14 KB, patch)
2022-03-17 10:46 PDT, Per Arne Vollan
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch (87.29 KB, patch)
2022-03-18 10:04 PDT, Per Arne Vollan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Per Arne Vollan 2022-02-25 10:51:13 PST
Some tests are currently failing when enabling content filtering in the Network process.
Comment 1 Per Arne Vollan 2022-02-25 11:29:46 PST
Created attachment 453237 [details]
Patch
Comment 2 Per Arne Vollan 2022-03-01 08:02:08 PST
Created attachment 453499 [details]
Patch
Comment 3 Per Arne Vollan 2022-03-01 12:36:16 PST
Created attachment 453523 [details]
Patch
Comment 4 Per Arne Vollan 2022-03-01 13:41:22 PST
Created attachment 453538 [details]
Patch
Comment 5 Per Arne Vollan 2022-03-02 07:41:35 PST
Created attachment 453610 [details]
Patch
Comment 6 Per Arne Vollan 2022-03-02 14:08:44 PST
Created attachment 453658 [details]
Patch
Comment 7 Per Arne Vollan 2022-03-02 15:27:43 PST
Created attachment 453666 [details]
Patch
Comment 8 Per Arne Vollan 2022-03-02 15:49:34 PST
Created attachment 453670 [details]
Patch
Comment 9 Per Arne Vollan 2022-03-03 07:32:43 PST
Created attachment 453734 [details]
Patch
Comment 10 Per Arne Vollan 2022-03-03 07:51:14 PST
Created attachment 453735 [details]
Patch
Comment 11 Per Arne Vollan 2022-03-03 07:58:24 PST
Created attachment 453738 [details]
Patch
Comment 12 Per Arne Vollan 2022-03-03 08:05:38 PST
Created attachment 453742 [details]
Patch
Comment 13 Per Arne Vollan 2022-03-03 08:17:50 PST
Created attachment 453744 [details]
Patch
Comment 14 Per Arne Vollan 2022-03-03 08:55:19 PST
Created attachment 453747 [details]
Patch
Comment 15 Per Arne Vollan 2022-03-03 10:21:31 PST
Created attachment 453756 [details]
Patch
Comment 16 Per Arne Vollan 2022-03-03 11:37:56 PST
Created attachment 453768 [details]
Patch
Comment 17 Per Arne Vollan 2022-03-03 13:18:31 PST
Created attachment 453781 [details]
Patch
Comment 18 Per Arne Vollan 2022-03-03 14:34:20 PST
Created attachment 453787 [details]
Patch
Comment 19 Radar WebKit Bug Importer 2022-03-04 10:52:18 PST
<rdar://problem/89823305>
Comment 20 Per Arne Vollan 2022-03-08 07:26:23 PST
Created attachment 454120 [details]
Patch
Comment 21 Per Arne Vollan 2022-03-10 07:32:29 PST
Created attachment 454361 [details]
Patch
Comment 22 Per Arne Vollan 2022-03-10 15:39:51 PST
Created attachment 454411 [details]
Patch
Comment 23 Per Arne Vollan 2022-03-10 16:01:51 PST
Created attachment 454415 [details]
Patch
Comment 24 Per Arne Vollan 2022-03-10 16:16:22 PST
Created attachment 454421 [details]
Patch
Comment 25 Per Arne Vollan 2022-03-11 08:05:35 PST
Created attachment 454486 [details]
Patch
Comment 26 Per Arne Vollan 2022-03-11 08:20:51 PST
Created attachment 454487 [details]
Patch
Comment 27 Per Arne Vollan 2022-03-15 07:25:52 PDT
Created attachment 454705 [details]
Patch
Comment 28 Per Arne Vollan 2022-03-15 08:53:55 PDT
Created attachment 454712 [details]
Patch
Comment 29 Per Arne Vollan 2022-03-16 09:37:37 PDT
Created attachment 454847 [details]
Patch
Comment 30 Per Arne Vollan 2022-03-16 10:14:41 PDT
Created attachment 454851 [details]
Patch
Comment 31 Per Arne Vollan 2022-03-17 07:24:40 PDT
Created attachment 454970 [details]
Patch
Comment 32 Per Arne Vollan 2022-03-17 07:34:27 PDT
Created attachment 454972 [details]
Patch
Comment 33 Brent Fulgham 2022-03-17 10:32:54 PDT
Comment on attachment 454972 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=454972&action=review

r=me

> Source/WebCore/loader/DocumentLoader.cpp:144
> +    static bool filter;

Does this need a default initializer?

> Source/WebKit/WebProcess/Network/WebResourceLoader.h:105
> +    void contentFilterDidBlockLoad(const WebCore::ContentFilterUnblockHandler&, String&& unblockRequestDeniedScript, const WebCore::ResourceError&, const URL& blockedPageURL,  WebCore::SubstituteData&&);

Nit: two spaces between comma and 'WebCore::SubstituteData&&'
Comment 34 Per Arne Vollan 2022-03-17 10:46:02 PDT
Created attachment 454992 [details]
Patch
Comment 35 Per Arne Vollan 2022-03-17 10:49:17 PDT
(In reply to Brent Fulgham from comment #33)
> Comment on attachment 454972 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=454972&action=review
> 
> r=me
> 
> > Source/WebCore/loader/DocumentLoader.cpp:144
> > +    static bool filter;
> 
> Does this need a default initializer?
> 

Added.

> > Source/WebKit/WebProcess/Network/WebResourceLoader.h:105
> > +    void contentFilterDidBlockLoad(const WebCore::ContentFilterUnblockHandler&, String&& unblockRequestDeniedScript, const WebCore::ResourceError&, const URL& blockedPageURL,  WebCore::SubstituteData&&);
> 
> Nit: two spaces between comma and 'WebCore::SubstituteData&&'

Fixed.

Thanks for reviewing!
Comment 36 EWS 2022-03-18 09:38:47 PDT
Tools/Scripts/svn-apply failed to apply attachment 454992 [details] to trunk.
Please resolve the conflicts and upload a new patch.
Comment 37 Per Arne Vollan 2022-03-18 10:04:35 PDT
Created attachment 455105 [details]
Patch
Comment 38 EWS 2022-03-18 15:13:27 PDT
Committed r291499 (248611@main): <https://commits.webkit.org/248611@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 455105 [details].