Bug 149430 - Reloading without content blockers doesn’t apply to resource loads after the main frame finishes
Summary: Reloading without content blockers doesn’t apply to resource loads after the ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Alex Christensen
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-09-21 16:25 PDT by mitz
Modified: 2015-10-02 11:21 PDT (History)
8 users (show)

See Also:


Attachments
Patch (17.34 KB, patch)
2015-09-29 11:28 PDT, Alex Christensen
no flags Details | Formatted Diff | Diff
Patch (17.47 KB, patch)
2015-09-29 11:29 PDT, Alex Christensen
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews104 for mac-mavericks-wk2 (657.85 KB, application/zip)
2015-09-29 12:11 PDT, Build Bot
no flags Details
Patch (17.47 KB, patch)
2015-09-29 12:19 PDT, Alex Christensen
ggaren: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mitz 2015-09-21 16:25:35 PDT
It turns out that _userContentExtensionsEnabled SPI on WKWebView from bug 146128 is not sufficient for performing a “reload without content blockers” operation, because clients can’t tell reliably when to set and reset that property (seem comments in that bug). A true _reloadWithoutContentBlockers SPI as originally proposed in bug 146128, perhaps implemented with a flag on DocumentLoader, is still needed.
Comment 1 mitz 2015-09-21 16:26:16 PDT
<rdar://problem/22697254>
Comment 2 mitz 2015-09-21 16:27:36 PDT
Actually <rdar://problem/22742222>.
Comment 3 Alex Christensen 2015-09-29 11:28:30 PDT
Created attachment 262081 [details]
Patch
Comment 4 Alex Christensen 2015-09-29 11:29:57 PDT
Created attachment 262082 [details]
Patch
Comment 5 Build Bot 2015-09-29 12:11:25 PDT
Comment on attachment 262082 [details]
Patch

Attachment 262082 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.webkit.org/results/224330

New failing tests:
http/tests/contentextensions/disable-blocker.html
Comment 6 Build Bot 2015-09-29 12:11:29 PDT
Created attachment 262088 [details]
Archive of layout-test-results from ews104 for mac-mavericks-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews104  Port: mac-mavericks-wk2  Platform: Mac OS X 10.9.5
Comment 7 Alex Christensen 2015-09-29 12:19:39 PDT
Created attachment 262090 [details]
Patch
Comment 8 Geoffrey Garen 2015-10-01 18:13:55 PDT
Comment on attachment 262090 [details]
Patch

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

> Source/WebCore/ChangeLog:3
> +        Reloading without content blockers doesnât apply to resource loads after the main frame finishes

Please to ASCII your apostrophe.

> Source/WebKit2/ChangeLog:3
> +        Reloading without content blockers doesnât apply to resource loads after the main frame finishes

ASCII

> Tools/ChangeLog:3
> +        Reloading without content blockers doesnât apply to resource loads after the main frame finishes

ASCII

> Tools/WebKitTestRunner/mac/TestControllerMac.mm:128
> +    if (!test.urlContains("disable-blocker"))
> +        return;

This is a bit shady. Can you turn this into a function call in the test instead?
Comment 9 Alexey Proskuryakov 2015-10-01 23:23:54 PDT
Comment on attachment 262090 [details]
Patch

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

>> Tools/WebKitTestRunner/mac/TestControllerMac.mm:128
>> +        return;
> 
> This is a bit shady. Can you turn this into a function call in the test instead?

Or a test runner comment.
Comment 10 Alex Christensen 2015-10-02 10:48:21 PDT
(In reply to comment #8)
> Comment on attachment 262090 [details]
> Patch
> > Tools/WebKitTestRunner/mac/TestControllerMac.mm:128
> > +    if (!test.urlContains("disable-blocker"))
> > +        return;
> 
> This is a bit shady. Can you turn this into a function call in the test
> instead?
I agree.  I added comments.
Committed http://trac.webkit.org/changeset/190510
Comment 11 Alexey Proskuryakov 2015-10-02 11:21:27 PDT
As discussed in person, I was talking about triggering the custom behavior via a comment.