Revert "Deduplicate document policy violation report"
This reverts commit a95e3a91. 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, 1087277 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2218833Reviewed-by:Jan Wilken Dörrie <jdoerrie@chromium.org> Commit-Queue: Jan Wilken Dörrie <jdoerrie@chromium.org> Cr-Commit-Position: refs/heads/master@{#772589}
Showing
File moved
File moved
Please register or sign in to comment