WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 170707
162057
Content Blocker 'css-display-none' rules aren't applied when you open a website first time (from the address bar)
https://bugs.webkit.org/show_bug.cgi?id=162057
Summary
Content Blocker 'css-display-none' rules aren't applied when you open a websi...
Andrey Meshkov
Reported
2016-09-16 03:45:12 PDT
#### My configuration: Safari Version 10.0 (12602.1.50.0.10) macOS Sierra 10.12 (16A323) #### Steps to reproduce 1. Register a simple content blocker: ``` [{ "trigger": { "url-filter": ".*" }, "action": { "type": "css-display-none", "selector": "body" } }] ``` 2. Open a new tab 3. Enter "google.com" (or any other website) and press Enter #### Expected result Page is empty #### Actual result Page is not empty. The rule will be applied after you refresh the page. Relevant bug reports:
https://github.com/AdguardTeam/AdguardBrowserExtension/issues/153
https://github.com/AdguardTeam/AdguardBrowserExtension/issues/359
Also there was a similar issue with searching from the address bar:
https://bugs.webkit.org/show_bug.cgi?id=153743
Attachments
Add attachment
proposed patch, testcase, etc.
Alex Christensen
Comment 1
2016-10-04 15:15:22 PDT
rdar://27788755
Andrey Meshkov
Comment 2
2016-11-08 10:00:19 PST
Hi Alex! Is there any update on this issue? Is there anything I can do/provide that might help you?
rx100
Comment 3
2016-11-15 04:01:43 PST
I have the same problem = (
Andrey Meshkov
Comment 4
2016-11-26 07:12:44 PST
After all it appears that the bug is not that serious. It exists only in case if "trigger" contains "resource-type" field: ``` [ { "trigger": { "url-filter": ".*", "resource-type": ["document"] }, "action": { "type": "css-display-none", "selector": "any selector" } } ] ``` Removing "resource-type" fixes the issue. This is still a bit weird, though.
Maciej Stachowiak
Comment 5
2020-02-19 02:39:44 PST
This is indeed pretty weird.
Sam Sneddon [:gsnedders]
Comment 6
2021-05-19 16:41:41 PDT
*** This bug has been marked as a duplicate of
bug 170707
***
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