New issue
Advanced search Search tips

Issue 854712 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

Measure the number of window.open() calls from transparent ad subframes

Project Member Reported by jkarlin@chromium.org, Jun 20 2018

Issue description

If window.open is called from a transparent frame there is a good chance it's clickjacking. If that frame is also labeled an ad frame, it's even more concerning.

Let's measure (both UKM and UseCounter) how often and where we see ad-tagged transparent frames call create_window.cc::CreateWindow().
 
John: I believe where you'll want to measure is in create_window.cc::CreateWindow.

You can call active_frame->IsAdSubframe() to determine if the frame is an ad frame, and !active_frame->ContentLayoutObject()->HasNonZeroEffectiveOpacity() to determine if the frame is fully transparent.

See UseCounter::Count(LocalFrame*, WebFeature) for recording to a UseCounter. I'd make that your first CL, then we can talk about adding UKM.

Labels: -Pri-3 Pri-2

Sign in to add a comment