Closed Bug 988107 Opened 10 years ago Closed 7 years ago

Make sendBeacon work with FirefoxOS apps by setting the correct appId on the request

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
major

Tracking

()

RESOLVED WONTFIX
Tracking Status
firefox28 --- unaffected
firefox29 --- unaffected
firefox30 - affected
firefox31 - affected

People

(Reporter: ehsan.akhgari, Unassigned)

References

Details

+++ This bug was initially created as a clone of Bug #987387 +++

This is a spin-off from bug 987387 to cover the case of setting the correct appId on the request.  Josh, what needs to be done here?
Flags: needinfo?(josh)
We'll need to disable sendBeacon for FFOS if we can't get this fixed.
blocking-b2g: --- → 1.4?
I am unaware of a way to set an appId without providing a notificationChannelCallbacks or loadGroup that links to nsILoadContext. Maybe we need to create a synthesized one here and link it to the existing notificationChannelCallbacks?
Flags: needinfo?(josh)
Ah, yes, the way to do this is probably to create a fresh nsILoadGroup which links to a fresh non-docshell nsILoadContext. Then supply the correct information on that nsILoadContext.
(In reply to Jonas Sicking (:sicking) from comment #1)
> We'll need to disable sendBeacon for FFOS if we can't get this fixed.

FWIW it seems like sendBeacon is disabled everywhere for now.  It's hidden behind the beacon.enabled pref.
No longer blocks: 936340
Blocks: 990220
Blocks: 990270
No longer blocks: 990220
(In reply to Jonas Sicking (:sicking) from comment #1)
> We'll need to disable sendBeacon for FFOS if we can't get this fixed.

Why is this needed specifically for 1.4?
It's not. But at the time I thought that the feature was enabled, but in a broken state, for v1.4. Not worth blocking on given that it's already disabled.
blocking-b2g: 1.4? → ---
Given comment 4 and having sendBeacon disabled everywhere, there's no reason to continue tracking this.
> FWIW it seems like sendBeacon is disabled everywhere for now.  It's hidden behind the beacon.enabled pref.

This is no longer true, is it?
It is still true for FirefoxOS sadly.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.