double GetFrameDeviceScaleFactor(const ToRenderFrameHost& adapter) {
  return EvalJs(adapter, "window.devicePixelRatio;").ExtractDouble();
}

The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.