Closed Bug 1699707 Opened 3 years ago Closed 3 years ago

Remove DeviceProximityEvent

Categories

(Core :: DOM: Core & HTML, task, P3)

task

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: saschanaz, Assigned: saschanaz)

References

(Blocks 1 open bug)

Details

(Keywords: dev-doc-complete)

Attachments

(1 file)

Severity: -- → N/A
Priority: -- → P3

Note that this removes window.ondeviceproximity and window.onuserproximity which unexpectedly have been exposed unconditionally.

Assignee: nobody → krosylight
Status: NEW → ASSIGNED
Pushed by krosylight@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e17c6f92b2bf
Remove DeviceProximityEvent and UserProximityEvent r=agi,annevk,smaug
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch

Hi all,

This is a problematic removal for KaiOS. Can we back this out and only remove the Android specific parts as a compromise?

Thanks!

Regressions: 1700463

Hi Fabrice,

I see it's disabled in the gecko-b2g fork, where does KaiOS enable it? (Sorry, the GitHub search is not very good. 😬)

Hi Kagami, we enable it on a per-device model basis, in a preference file that is not in gecko but in the device customization.

Thanks for the quick reply. Is there a good way to see which flags are provided in KaiOS as an option but disabled by default in Gecko? We want to also remove DeviceLightEvent, so it would be helpful to know that.

Flags: needinfo?(fabrice)

(In reply to Kagami :saschanaz from comment #7)

Thanks for the quick reply. Is there a good way to see which flags are provided in KaiOS as an option but disabled by default in Gecko? We want to also remove DeviceLightEvent, so it would be helpful to know that.

Not really I'm afraid. Feel free to needinfo me if you have doubts and/or to ping me in matrix (my handle is 'fabrice').

Flags: needinfo?(fabrice)

Hmm, could you do a quick check if KaiOS is using DeviceLightEvent (device.sensors.ambientLight.enabled)? Also, is KaiOS using both DeviceProximityEvent/UserProximityEvent or is it only using one of them?

Flags: needinfo?(fabrice)

We use the DeviceLightEvent and the UserProximityEvent ones, but not DeviceProximityEvent from what I see.

Flags: needinfo?(fabrice)

Cool, I'll restore only UserProximityEvent then.

Hi Fabrice again,

Could you check whether ondevicelight and onuserproximity are used or KaiOS only uses them in addEventListener form? Thanks!

(What's the best way to search in the codebase without cloning it? Does KaiOS also have a searchfox instance?)

Flags: needinfo?(fabrice)

Both onXXX and addEventListener() forms are used.

There is a searchfox instance for the gecko fork used by KaiOS at https://searchfox.org/kaios/source/ but unfortunately it would not help you much here since the UI where these events are used is in a private repository.

Flags: needinfo?(fabrice)
See Also: → 1701789

Hi @Kagami,

I'm documenting this change for FF89 in MDN content bug 4308. My understanding is that

  • DeviceProximityEvent is removed, along with ondeviceproximity.
  • UserProximityEvent, onuserproximity are still present behind device.sensors.proximity.enabled (which is false by default on desktop).
    • Is the behaviour same for desktop and android (or was this only renabled for android?). If it is restored to android how are users supposed to set the preference, when there is no preference UI on current Android Firefox?

Thanks!

Flags: needinfo?(krosylight)

Hi Hamish,

You are correct, so I'm just answering the question:

Is the behaviour same for desktop and android (or was this only renabled for android?). If it is restored to android how are users supposed to set the preference, when there is no preference UI on current Android Firefox?

This is disabled everywhere including Android, and users are not expected to enable it again. It's present only for KaiOS for now.

Flags: needinfo?(krosylight)

Thanks very much. I think all the work for this is done now - updated in BCD and in docs. Tracking for that in https://github.com/mdn/content/issues/4308

Docs completed, so setting this to DDC. Thanks Hamish!

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

Attachment

General

Created:
Updated:
Size: