Closed Bug 716754 Opened 13 years ago Closed 13 years ago

Crash when accessing navigator.mozTelephony from chrome page

Categories

(Core :: DOM: Device Interfaces, defect)

defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla12

People

(Reporter: philikon, Assigned: bent.mozilla)

References

Details

(Keywords: crash)

Attachments

(1 file, 1 obsolete file)

Right now we crash in NS_NewTelephony() if the page accessing navigator.mozTelephony is a chrome page because document->NodePrincipal()->GetURI() returns a null URI (the principal is the system principal).
Severity: normal → critical
Keywords: crash
I wouldn't say there's anything critical about this since (a) navigator.mozTelephony is not part of any normal Firefox build and (b) B2G's Gaia UI doesn't use chrome at all.
Criticality and priority are two different things.
Attached patch Patch, v1 (obsolete) — Splinter Review
This has r=sicking.
Assignee: nobody → bent.mozilla
Status: NEW → ASSIGNED
Attachment #587316 - Flags: review+
Attached patch Patch, v2Splinter Review
We decided to allow chrome access always.
Attachment #587316 - Attachment is obsolete: true
Attachment #587842 - Flags: review?(jonas)
https://hg.mozilla.org/mozilla-central/rev/4abbedf5b4ca
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla12
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: