Closed Bug 769569 Opened 13 years ago Closed 13 years ago

Check that navigator.id.request was called as a result of user input

Categories

(Core Graveyard :: Identity, defect)

defect
Not set
normal

Tracking

(blocking-basecamp:+, firefox18 fixed)

RESOLVED FIXED
mozilla18
blocking-basecamp +
Tracking Status
firefox18 --- fixed

People

(Reporter: MattN, Assigned: mounir)

References

()

Details

(Keywords: dev-doc-needed, sec-low, Whiteboard: [qa-])

Attachments

(1 file)

"#### navigator.id.request(<options>); …This function must be invoked from within a click handler." We would need something like nsEventStateManager::IsHandlingUserInput on a scriptable interface (such as DOMWindowUtils).
Keywords: sec-low
blocking-basecamp: --- → +
On b2g, sounds like we want the same protections that are implemented for window.open - to know that it was the result of a touch.
We can use popup blocker mechanism or nsEventStateManager::IsHandlingUserInput.
Can you take this, Mounir?
Assignee: nobody → mounir
Depends on: 798298
Attached patch PatchSplinter Review
Attachment #668477 - Flags: review?(benadida)
Whiteboard: [need review]
Comment on attachment 668477 [details] [diff] [review] Patch awesome, looks great, thanks Mounir!
Attachment #668477 - Flags: review?(benadida) → review+
Status: NEW → ASSIGNED
Flags: in-testsuite?
Whiteboard: [need review]
Target Milestone: --- → mozilla19
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Pushed to mozilla-aurora because it is blocking basecamp. https://hg.mozilla.org/releases/mozilla-aurora/rev/dee2eda3a3ec
Target Milestone: mozilla19 → mozilla18
Keywords: dev-doc-needed
Whiteboard: [qa-]
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: