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)
Core Graveyard
Identity
Tracking
(firefox19 wontfix, firefox20 fixed, b2g1819+ fixed, b2g18-v1.0.0 wontfix)
RESOLVED
FIXED
mozilla20
People
(Reporter: jedp, Assigned: jedp)
References
Details
Attachments
(1 file, 3 obsolete files)
2.70 KB,
patch
|
lsblakk
:
approval-mozilla-b2g18+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•12 years ago
|
||
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)
Assignee | ||
Comment 2•12 years ago
|
||
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)
Assignee | ||
Updated•12 years ago
|
Attachment #693185 -
Flags: review?(benadida)
Comment 3•12 years ago
|
||
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+
Assignee | ||
Updated•12 years ago
|
Updated•12 years ago
|
Component: General → Identity
Product: Testing → Core
Version: unspecified → Trunk
Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Updated•12 years ago
|
Attachment #693245 -
Attachment is patch: true
Assignee | ||
Comment 5•12 years ago
|
||
Ryan, hg doesn't like the date on my patch :(
Assignee | ||
Comment 6•12 years ago
|
||
Fixed date string in header
(how do you do timezones in header dates?)
Attachment #693245 -
Attachment is obsolete: true
Updated•12 years ago
|
Attachment #693609 -
Attachment is patch: true
Comment 7•12 years ago
|
||
Keywords: checkin-needed
Comment 8•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Assignee | ||
Comment 9•12 years ago
|
||
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?
Assignee | ||
Comment 10•12 years ago
|
||
I've requested that this land in b2g18 so we can perform automated tests of identity and marketplace (whose flow depends on identity).
Assignee | ||
Comment 11•12 years ago
|
||
... 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.
Comment 12•12 years ago
|
||
Requesting tef+, see comment #9; without this we won't be able to run identify tests on mozilla-b2g18.
blocking-b2g: --- → tef?
Comment 13•12 years ago
|
||
(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:
--- → ?
Comment 14•12 years ago
|
||
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 15•12 years ago
|
||
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+
Updated•12 years ago
|
status-b2g18:
--- → affected
status-b2g18-v1.0.0:
--- → wontfix
Comment 16•12 years ago
|
||
Updated•6 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•