Closed
Bug 1422405
Opened 7 years ago
Closed 7 years ago
geckoview_example is not respecting shutdown intent
Categories
(GeckoView :: General, defect)
GeckoView
General
Tracking
(firefox59 fixed)
VERIFIED
FIXED
mozilla59
Tracking | Status | |
---|---|---|
firefox59 | --- | fixed |
People
(Reporter: bc, Assigned: esawin)
References
Details
Attachments
(2 files, 1 obsolete file)
4.48 KB,
text/plain
|
Details | |
2.84 KB,
patch
|
esawin
:
review+
|
Details | Diff | Splinter Review |
Autophone is having problems shutting down geckoview_example cleanly using the shutdown intent. This causes the geckoview_example tests to run much longer and possibly introduces noise since I have to wait 10 seconds before I force-stop it.
I thought we had this working after bug 1368701 but checking a geckoview_example from 2017-07-08 doesn't appear to work when attempting similar std.
Eugen please take a look.
Assignee: nobody → esawin
Flags: needinfo?(esawin)
Assignee | ||
Comment 2•7 years ago
|
||
Looks like I've never landed patch 2 from bug 1368701, sorry about that.
Flags: needinfo?(esawin)
Attachment #8934685 -
Flags: review?(nchen)
Comment 3•7 years ago
|
||
Comment on attachment 8934685 [details] [diff] [review]
0001-Bug-1422405-1.0-Add-shutdown-intent-for-geckoview_ex.patch
Review of attachment 8934685 [details] [diff] [review]:
-----------------------------------------------------------------
::: mobile/android/geckoview_example/src/main/java/org/mozilla/geckoview_example/GeckoViewActivity.java
@@ +114,5 @@
> +
> + if (ACTION_SHUTDOWN.equals(intent.getAction())) {
> + mKillProcessOnDestroy = true;
> + GeckoThread.forceQuit();
> + mGeckoView.onDetachedFromWindow();
We should let Android call `onDetachedFromWindow` instead of calling it ourselves.
Attachment #8934685 -
Flags: review?(nchen) → review+
Assignee | ||
Comment 4•7 years ago
|
||
Addressed comments.
Attachment #8934685 -
Attachment is obsolete: true
Attachment #8935047 -
Flags: review+
Pushed by esawin@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/a466956afa4e
[1.1] Add shutdown intent for geckoview_example. r=jchen
Comment 6•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox59:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 59
Reporter | ||
Comment 7•7 years ago
|
||
Confirmed. This cut the run time for s1s2geckoview from 10 to 5 minutes. Thanks!
Status: RESOLVED → VERIFIED
Updated•6 years ago
|
Product: Firefox for Android → GeckoView
Updated•6 years ago
|
Target Milestone: Firefox 59 → mozilla59
You need to log in
before you can comment on or make changes to this bug.
Description
•