Closed Bug 840102 Opened 12 years ago Closed 12 years ago

Expose _isEmergencyNumber() to the content

Categories

(Core :: DOM: Device Interfaces, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX
blocking-b2g leo+
Tracking Status
b2g18 + ---

People

(Reporter: etienne, Unassigned)

References

Details

(Whiteboard: [cr 439795])

+++ This bug was initially created as a clone of Bug #829581 +++ See https://mxr.mozilla.org/mozilla-central/source/dom/system/gonk/ril_worker.js#2767 As discussed on bug 829581, we apparently need to check on the Gaia side if a number is an emergency number in order to disable the airplane mode.
Blocks: 829581
No longer depends on: 829581
Why do we need to expose that to the content? Can't we simply have the RIL disable airplane mode if an emergency number is called?
(In reply to Mounir Lamouri (:mounir) from comment #1) > Why do we need to expose that to the content? Can't we simply have the RIL > disable airplane mode if an emergency number is called? Fine by me, should the Dialer try to dialEmergency every number while in Airplane mode then? Note that we will probably inspect the call.state to see if we should display the "hey, you're in airplane mode" dialog or show the call screen, thus checking if it was an emergency number on the gaia side.
Flags: needinfo?
What's the decision there? Does this need platform support or not?
Flags: needinfo?
(In reply to Etienne Segonzac (:etienne) from comment #2) > (In reply to Mounir Lamouri (:mounir) from comment #1) > > Why do we need to expose that to the content? Can't we simply have the RIL > > disable airplane mode if an emergency number is called? > > Fine by me, should the Dialer try to dialEmergency every number while in > Airplane mode then? Yes. > Note that we will probably inspect the call.state to see if we should > display the "hey, you're in airplane mode" dialog or show the call screen, > thus checking if it was an emergency number on the gaia side. Not sure I understand what you meant.
Closing since we're going to do things differently.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
No longer blocks: 829581
You need to log in before you can comment on or make changes to this bug.