mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 09:15:35 +00:00
ec0ec0cd75
Automatic update from web-platform-tests
Revert "Deduplicate document policy violation report"
This reverts commit a95e3a91191d90cbbdf322b85537b61d1da6f121.
Reason for revert: Likely culprit of https://crbug.com/1087277
Original change's description:
> Deduplicate document policy violation report
>
> Most image policies can report multiple violations for a single cause(same image not following the rule) during layout, e.g. An unoptimized-lossless-image's bpp(byte per pixel) value can change multiple times if the image is being scaled in an animation.
>
> To avoid unnecessary duplicated reports being generated. This CL adds Hash method for DocumentPolicyViolationReport to uniquely identify each report and avoid the duplication by remembering these hash values in LocalDOMWindow and filter out reports that are in record.
>
> Some existing web tests rely on the fact that multiple copies of same report generated in same document. This CL also worked around that to either help make reports generated unique or isolate test cases to different documents(iframes).
>
> Bug: 924684, 926199
> Change-Id: I230e32801c77980573b5ed55064d46f94aed3060
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2078837
> Commit-Queue: Charlie Hu <chenleihu@google.com>
> Reviewed-by: Daniel Cheng <dcheng@chromium.org>
> Reviewed-by: Jason Chase <chasej@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#772406}
TBR=dcheng@chromium.org,chasej@chromium.org,chenleihu@google.com
Change-Id: I92e14abb1538a8983fa0c6b1248b355fab024707
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: 924684, 926199,
|
||
---|---|---|
.. | ||
experimental-features | ||
font-display | ||
reporting | ||
required-policy | ||
resources | ||
echo-policy-nested.html | ||
echo-policy-nested.html.headers | ||
echo-policy.py |