Closed Bug 1916804 Opened 2 months ago Closed 2 months ago

Make Content Analysis for DND use getURIForBrowsingContext

Categories

(Firefox :: Data Loss Prevention, defect)

defect

Tracking

()

RESOLVED FIXED
132 Branch
Tracking Status
firefox-esr128 --- fixed
firefox132 --- fixed

People

(Reporter: handyman, Assigned: handyman)

References

(Blocks 1 open bug, Regressed 1 open bug)

Details

Attachments

(2 files, 1 obsolete file)

In bug 1910452, DND is using the URI for the target frame. Bug 1914068 will introduce GetURIForBrowsingContext (when it lands) -- that should be used instead.

getURIForDropEvent delegates to getURIForBrowsingContext -- the ground truth for
CA URIs.

This also adds a check that getURIForDropEvent is correctly called in CA tests.
We do not yet test that it returns the right value -- that is future work.

Pushed by daparks@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/18562d27f660 Make content analysis DND use getURIForDropEvent r=dlp-reviewers,reusable-components-reviewers,gstoll,mstriemer
Regressions: 1919201
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch

getURIForDropEvent delegates to getURIForBrowsingContext -- the ground truth for
CA URIs.

This also adds a check that getURIForDropEvent is correctly called in CA tests.
We do not yet test that it returns the right value -- that is future work.

Original Revision: https://phabricator.services.mozilla.com/D222192

Attachment #9434621 - Flags: approval-mozilla-esr128?

esr128 Uplift Approval Request

  • User impact if declined: DLP URL to check will be wrong if drag/drop inside an iframe
  • Code covered by automated testing: yes
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: n/a
  • Risk associated with taking this patch: low
  • Explanation of risk level: only affects DLP
  • String changes made/needed: no
  • Is Android affected?: no
Attachment #9434621 - Flags: approval-mozilla-esr128? → approval-mozilla-esr128+
Attachment #9434621 - Flags: approval-mozilla-esr128+ → approval-mozilla-esr128-

getURIForDropEvent delegates to getURIForBrowsingContext -- the ground truth for
CA URIs.

This also adds a check that getURIForDropEvent is correctly called in CA tests.
We do not yet test that it returns the right value -- that is future work.

Original Revision: https://phabricator.services.mozilla.com/D222192

Attachment #9434682 - Flags: approval-mozilla-esr128?

esr128 Uplift Approval Request

  • User impact if declined: DLP URL to check will be wrong if drag/drop inside an iframe
  • Code covered by automated testing: yes
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: n/a
  • Risk associated with taking this patch: low
  • Explanation of risk level: only affects DLP
  • String changes made/needed: no
  • Is Android affected?: no
Attachment #9434621 - Attachment is obsolete: true
Attachment #9434682 - Flags: approval-mozilla-esr128? → approval-mozilla-esr128+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: