Closed Bug 1345192 Opened 8 years ago Closed 5 years ago

Consider removing gecko-only DataTransfer APIs

Categories

(Core :: DOM: Events, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: nika, Assigned: annyG)

References

Details

(Keywords: dev-doc-complete, site-compat)

Attachments

(1 file)

I added usage counters for these in bug 1335859. This bug is for tracking either a) potentially removing the counters if usage remains high, or b) removing the APIs completely if their usage is phased out in favor of the standard DataTransfer APIs. I tried to create a Telemetry Dashboard with all of those counters. You can see it here: https://codepen.io/anon/pen/MpboBV
Priority: -- → P3
See Also: → 1356543
I was looking at these counters with Ehsan earlier today, and we saw basically no usage of the main problematic APIs (mozClearDataAt, mozSetDataAt, mozGetDataAt, mozTypesAt, and mozItemCount). I'm tempted to put these APIs behind a pref (though we'd have to leave them enabled for chrome code), and see what breakage we start running into.
Depends on: 1453153
Keywords: site-compat

We've had these behind prefs for about a year now (since bug 1453153) on nightly. Unfortunately, we removed the usecounters when we added the pref control, so it's not clear what usage looks like...

That said, have we run into any fallout in nightly?

Flags: needinfo?(agakhokidze)

Hi Boris, I am not aware about any bugs that arose from us disabling these APIs, i.e. I haven't been NI on any bugs related to this. I am assuming we can completely disable it for non-chrome code then?

Flags: needinfo?(agakhokidze)

I think it might be worth trying, yes. So just flip the pref on non-nightly?

Flags: needinfo?(nika)

Sounds like a plan!

Assignee: nobody → agakhokidze
Flags: needinfo?(nika)
Pushed by agakhokidze@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/50e02b060b1b Remove gecko-only DataTransfer APIs for non-chrome code, r=nika
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71

MDN docs complete for this; see https://app.zenhub.com/workspaces/mdn-sprint-board-5ab3d23fd0f4ea53b0022a61/issues/mdn/sprints/2265#issuecomment-550415012 for the full details.

Let me know if you'd like to see any more changes made. Thanks!

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: