Closed
Bug 1200343
Opened 9 years ago
Closed 9 years ago
Convert pref events to native calls
Categories
(Core Graveyard :: Widget: Android, defect)
Tracking
(firefox44 fixed)
RESOLVED
FIXED
mozilla44
Tracking | Status | |
---|---|---|
firefox44 | --- | fixed |
People
(Reporter: jchen, Assigned: jchen)
References
Details
Attachments
(4 files, 1 obsolete file)
3.61 KB,
patch
|
snorp
:
review+
|
Details | Diff | Splinter Review |
10.63 KB,
patch
|
snorp
:
review+
|
Details | Diff | Splinter Review |
3.92 KB,
patch
|
snorp
:
review+
|
Details | Diff | Splinter Review |
10.53 KB,
patch
|
jchen
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•9 years ago
|
||
This patch adds a specialization for jni::Ref<jni::ObjectArray>, which
includes members for getting the length of the array and accessing
array elements.
Attachment #8663011 -
Flags: review?(snorp)
Assignee | ||
Comment 2•9 years ago
|
||
This patch adds two native calls to PrefsHelper to avoid using
GeckoEvent for getting prefs.
Attachment #8663012 -
Flags: review?(snorp)
Assignee | ||
Comment 3•9 years ago
|
||
Now that we use native calls, we can remove the pref-related events from
GeckoEvent.
Attachment #8663013 -
Flags: review?(snorp)
Assignee | ||
Comment 4•9 years ago
|
||
This patch implements the PrefsHelper native calls for getting prefs;
Attachment #8663014 -
Flags: review?(snorp)
Comment on attachment 8663011 [details] [diff] [review]
Add JNI wrapper for object arrays (v1)
Review of attachment 8663011 [details] [diff] [review]:
-----------------------------------------------------------------
nice
Attachment #8663011 -
Flags: review?(snorp) → review+
Comment on attachment 8663012 [details] [diff] [review]
Add native calls for pref events (v1)
Review of attachment 8663012 [details] [diff] [review]:
-----------------------------------------------------------------
Shouldn't the implementations of the new native calls be here somewhere?
Attachment #8663012 -
Flags: review?(snorp) → review-
Attachment #8663013 -
Flags: review?(snorp) → review+
Comment on attachment 8663014 [details] [diff] [review]
Implment PrefsHelper native calls (v1)
Review of attachment 8663014 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good if you fix the one issue
::: widget/android/PrefsHelper.h
@@ +50,5 @@
> + nsIAndroidBrowserApp* browserApp = nullptr;
> + nsAppShell::gAppShell->GetBrowserApp(&browserApp);
> + MOZ_ASSERT(browserApp);
> +
> + if (observe) {
Looks like you have the logic or the bodies reversed here
Attachment #8663014 -
Flags: review?(snorp) → review+
Comment on attachment 8663012 [details] [diff] [review]
Add native calls for pref events (v1)
Review of attachment 8663012 [details] [diff] [review]:
-----------------------------------------------------------------
I see you added the impl in a later patch, but I would just put it here, otherwise this patch is just busted on its own.
Attachment #8663012 -
Flags: review- → review+
I've been seeing failures like https://treeherder.mozilla.org/logviewer.html#?job_id=14729097&repo=mozilla-inbound ever since this landed.
Backed out in https://hg.mozilla.org/integration/mozilla-inbound/rev/80494cf1eaba
Flags: needinfo?(nchen)
Assignee | ||
Comment 11•9 years ago
|
||
The problem was BaseTest.setPreferenceAndWaitForChange was calling the new
JNI pref methods before Gecko was ready. Blocking for Gecko ready should
fix the issue.
Attachment #8666770 -
Flags: review+
Assignee | ||
Updated•9 years ago
|
Attachment #8663012 -
Attachment is obsolete: true
Comment 12•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/fa9159ef5db5
https://hg.mozilla.org/mozilla-central/rev/77b79a961f7e
https://hg.mozilla.org/mozilla-central/rev/0fc693d5b495
https://hg.mozilla.org/mozilla-central/rev/51cc57918bf5
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox44:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(nchen)
Updated•3 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•