Bug 150499 - [Content Extensions] Add test for hiding content on <a ping> pings
Summary: [Content Extensions] Add test for hiding content on <a ping> pings
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-23 06:32 PDT by Roopesh Chander
Modified: 2015-10-23 12:07 PDT (History)
3 users (show)

See Also:


Attachments
Patch with the test (3.60 KB, patch)
2015-10-23 06:40 PDT, Roopesh Chander
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Roopesh Chander 2015-10-23 06:32:51 PDT
Bug https://bugs.webkit.org/show_bug.cgi?id=149873 addresses the requirement that <a ping> pings should respect content blocking rules.

However, one scenario is not handled in tests: the scenario of <a ping> pings causing some content to hide because of a 'css-display-none'. This missed scenario should also be tested.
Comment 1 Roopesh Chander 2015-10-23 06:40:58 PDT
Created attachment 263921 [details]
Patch with the test

Adding a patch with a test for ensuring that the 'css-display-none' rule works when a ping is sent from an <a ping> link. The href is a fragment (href="#id"), so that the document remains intact to be able to test that the style change is applied correctly.
Comment 2 Alex Christensen 2015-10-23 11:18:48 PDT
Comment on attachment 263921 [details]
Patch with the test

r=me
Comment 3 WebKit Commit Bot 2015-10-23 12:07:06 PDT
Comment on attachment 263921 [details]
Patch with the test

Clearing flags on attachment: 263921

Committed r191505: <http://trac.webkit.org/changeset/191505>
Comment 4 WebKit Commit Bot 2015-10-23 12:07:09 PDT
All reviewed patches have been landed.  Closing bug.