Closed
Bug 870371
Opened 12 years ago
Closed 11 years ago
Add Javascript interface to Android OrderedBroadcast
Categories
(Firefox Health Report Graveyard :: Client: Android, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 23
People
(Reporter: nalexander, Assigned: nalexander)
References
Details
Attachments
(2 files)
10.42 KB,
patch
|
rnewman
:
review+
|
Details | Diff | Splinter Review |
6.41 KB,
patch
|
rnewman
:
review+
|
Details | Diff | Splinter Review |
We are designing Firefox Health Report on Android to mostly be implemented in Java, and with this design we need a way to trigger shuttling a report from Java to Javascript.
One way to do this is for JS to trigger Java (Fennec) to send an Android Ordered Broadcast, which a background service can then respond to. Decoupling in this way makes it possible to swap in testing code from the Android Sync git repository.
Assignee | ||
Updated•12 years ago
|
Updated•12 years ago
|
Assignee: nobody → nalexander
Status: NEW → ASSIGNED
Summary: Add Javascript interface to Android Ordered Broadcast → Add Javascript interface to Android OrderedBroadcast
Comment 1•12 years ago
|
||
I'm happy with this, modulo your weird outdated JavaScript conventions ;)
See GitHub comments.
Fold and put a patch here, and I'll rubberstamp.
Assignee | ||
Comment 2•12 years ago
|
||
Here's a try build exercising Javascript robocop tests:
https://tbpl.mozilla.org/?tree=Try&rev=63977c0b128c
Assignee | ||
Comment 3•12 years ago
|
||
Attachment #748285 -
Flags: review?(rnewman)
Assignee | ||
Comment 4•12 years ago
|
||
Attachment #748286 -
Flags: review?(rnewman)
Assignee | ||
Comment 5•12 years ago
|
||
Assignee | ||
Comment 6•12 years ago
|
||
Mercurial 2.0.2 seems to have a Mac OS X filename case bug. Try
https://tbpl.mozilla.org/?tree=Try&rev=85dad1ab2455
Comment 7•12 years ago
|
||
Comment on attachment 748285 [details] [diff] [review]
Bug 870371 - Add Javascript interface to Android OrderedBroadcast. r=rnewman
Review of attachment 748285 [details] [diff] [review]:
-----------------------------------------------------------------
::: mobile/android/modules/Makefile.in
@@ +12,4 @@
> EXTRA_JS_MODULES = \
> LightweightThemeConsumer.jsm \
> JNI.jsm \
> + OrderedBroadcast.jsm \
Use the right flavor of whitespace.
Attachment #748285 -
Flags: review?(rnewman) → review+
Updated•12 years ago
|
Attachment #748286 -
Flags: review?(rnewman) → review+
Comment 8•12 years ago
|
||
https://hg.mozilla.org/services/services-central/rev/a0be79631c9e
https://hg.mozilla.org/services/services-central/rev/a5af2642d1d7
Whiteboard: [fixed in services]
Comment 9•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/a0be79631c9e
https://hg.mozilla.org/mozilla-central/rev/a5af2642d1d7
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed in services]
Target Milestone: --- → Firefox 23
Comment 10•11 years ago
|
||
Comment on attachment 748286 [details] [diff] [review]
Bug 870371 - Android OrderedBroadcast tests. r=rnewman
Review of attachment 748286 [details] [diff] [review]:
-----------------------------------------------------------------
BTW, I am happy to provide feedback on your robocop patches.
::: mobile/android/base/tests/testOrderedBroadcast.java.in
@@ +57,5 @@
> +
> + mAsserter.dumpLog("Unregistering org.mozilla.gecko.test.receiver broadcast receiver");
> +
> + if (mReceiver != null) {
> + getActivity().getApplicationContext().unregisterReceiver(mReceiver);
Is it okay to call this after BaseTest.tearDown() has called finishOpenedActivities()?
Updated•6 years ago
|
Product: Firefox Health Report → Firefox Health Report Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•