Closed Bug 822450 Opened 12 years ago Closed 12 years ago

Create a dom pref to allow marionette events to trigger navigator.id.request

Categories

(Core Graveyard :: Identity, defect)

defect
Not set
normal

Tracking

(firefox19 wontfix, firefox20 fixed, b2g1819+ fixed, b2g18-v1.0.0 wontfix)

RESOLVED FIXED
mozilla20
Tracking Status
firefox19 --- wontfix
firefox20 --- fixed
b2g18 19+ fixed
b2g18-v1.0.0 --- wontfix

People

(Reporter: jedp, Assigned: jedp)

References

Details

Attachments

(1 file, 3 obsolete files)

Currently, marionette test events do not appear as native events to the DOM, which prevents us from testing code that checks whether it is handling user input (see Bug 821740).

nsDOMIdentity's navigator.id.requet() method checks that it is handling user input.  In order for native identity and marketplace testing to proceed on b2g, we need a workaround.

I suggest we create a pref like dom.identity.syntheticEventsOk that we can set when testing.

When Bug 821740 is resolved, we will be able to remove this pref.
Attached file check for syntheticEventsOk pref (obsolete) (deleted) —
The pref can be set from a marionette test as follows:

self.marionette.execute_script(
    """SpecialPowers.setBoolPref("dom.identity.syntheticEventsOk", true);""")
Attachment #693144 - Flags: review?(benadida)
Attached file check for syntheticEventsOk pref (obsolete) (deleted) —
Forgot you need to check for existence of user pref before querying its value
Attachment #693144 - Attachment is obsolete: true
Attachment #693144 - Flags: review?(benadida)
Attachment #693185 - Flags: review?(benadida)
Comment on attachment 693185 [details]
check for syntheticEventsOk pref

wish Marionette could do the truly correct thing, but barring that, this looks good.
Attachment #693185 - Flags: review?(benadida) → review+
Blocks: 822517
No longer blocks: basecamp-id
Component: General → Identity
Product: Testing → Core
Version: unspecified → Trunk
Attached patch check for syntheticEventsOk pref (obsolete) (deleted) — Splinter Review
r=benadida
Attachment #693185 - Attachment is obsolete: true
Attachment #693245 - Attachment is patch: true
Ryan, hg doesn't like the date on my patch :(
Fixed date string in header

(how do you do timezones in header dates?)
Attachment #693245 - Attachment is obsolete: true
Attachment #693609 - Attachment is patch: true
No longer blocks: 822963
https://hg.mozilla.org/mozilla-central/rev/1114846b3791
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Comment on attachment 693609 [details] [diff] [review]
argh - date string in header was invalid

[Approval Request Comment]
Bug caused by (feature/regressing bug #): 821740
User impact if declined: Automated testing won't be possible for identity and marketplace
Testing completed: marionette test suite
Risk to taking this patch (and alternatives if risky): very low
String or UUID changes made by this patch: none
Attachment #693609 - Flags: approval-mozilla-b2g18?
I've requested that this land in b2g18 so we can perform automated tests of identity and marketplace (whose flow depends on identity).
... this will not be necessary if QA works with latest builds we make here; only if they want to do automated testing on what the OEMs get with v1.
Requesting tef+, see comment #9; without this we won't be able to run identify tests on mozilla-b2g18.
blocking-b2g: --- → tef?
(In reply to Jonathan Griffin (:jgriffin) from comment #12)
> Requesting tef+, see comment #9; without this we won't be able to run
> identify tests on mozilla-b2g18.

That would be a case to track, not block actually. This wouldn't stop ship of the phone.
blocking-b2g: tef? → ---
tracking-b2g18: --- → ?
It seems that the main reason to take this for B2G v1.0.0 would be to prevent regressions but since we're taking *very* few patches there, let's not take this now.  I'm leaving the nom for 1.0.x triage.
Comment on attachment 693609 [details] [diff] [review]
argh - date string in header was invalid

Please go ahead with uplift to the tip of mozilla-b2g18 branch for v1.0.1
Attachment #693609 - Flags: approval-mozilla-b2g18? → approval-mozilla-b2g18+
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: