Closed
Bug 640068
Opened 14 years ago
Closed 14 years ago
Browser does not restart when installing extensions
Categories
(Firefox for Android Graveyard :: Extension Compatibility, defect)
Tracking
(fennec2.0+)
VERIFIED
FIXED
Tracking | Status | |
---|---|---|
fennec | 2.0+ | --- |
People
(Reporter: kbrosnan, Assigned: dougt)
Details
(Keywords: crash)
Attachments
(4 files, 6 obsolete files)
Using the Ideos s7 tablet.
Install an extension that requires a restart or uninstall an extension requiring a restart.
Click the restart Firefox button after the extension installs
results:
Firefox does not restart
expected:
Firefox restarts and the extension is installed
Firefox Mobile build id 20110308121615
Reporter | ||
Comment 1•14 years ago
|
||
Comment 2•14 years ago
|
||
there's only one line on your log?
Reporter | ||
Comment 3•14 years ago
|
||
The correct log.
Attachment #518086 -
Attachment is obsolete: true
Comment 4•14 years ago
|
||
I have seen this on my Nexus One and on a Galaxy Tab, too. Installed TwitterBar, hit Restart. Browser shuts down but doesn't restart.
Updated•14 years ago
|
Comment 5•14 years ago
|
||
Updated•14 years ago
|
Assignee: nobody → blassey.bugs
tracking-fennec: ? → 2.0+
Updated•14 years ago
|
Assignee: blassey.bugs → nobody
Comment 6•14 years ago
|
||
This time: trying to install add-on "readability" - same issue - browser quits but fails to restart on my Galaxy Tab
Comment 7•14 years ago
|
||
Attachment #518287 -
Flags: review?(doug.turner)
Comment 8•14 years ago
|
||
Attachment #518288 -
Flags: review?(doug.turner)
Assignee | ||
Comment 9•14 years ago
|
||
Assignee: nobody → doug.turner
Attachment #518287 -
Attachment is obsolete: true
Attachment #518288 -
Attachment is obsolete: true
Attachment #518287 -
Flags: review?(doug.turner)
Attachment #518288 -
Flags: review?(doug.turner)
Attachment #518304 -
Flags: review?(blassey.bugs)
Assignee | ||
Comment 10•14 years ago
|
||
Comment on attachment 518304 [details] [diff] [review]
patch v.1
spoke to brad. needs to not hardcode processes, and probably should tokenize the ps output so that if anyone ever installs a different ps (or ps output changes), the right thing will continue to happen.
Attachment #518304 -
Flags: review?(blassey.bugs) → review-
Comment 11•14 years ago
|
||
Comment on attachment 518304 [details] [diff] [review]
patch v.1
gave my review comments to dougt on irc
Assignee | ||
Comment 12•14 years ago
|
||
Attachment #518304 -
Attachment is obsolete: true
Attachment #518553 -
Flags: review?(blassey.bugs)
Assignee | ||
Updated•14 years ago
|
Priority: P2 → --
Comment 14•14 years ago
|
||
Comment on attachment 518553 [details] [diff] [review]
patch v.2
I'd like to avoid Runtime.exec() if we can. From what I've heard from you, the best way to list processes is to use Runtime.exec("ps"), but let's not open the flood gates because of that. You can use Process.killProcess(pid) rather than Runtime.exed("kill -9 " + pid) and you can use getUidForName(username) to compare the and Process.myUid() to check if the process is one of ours.
As to your comment that killProcess() doesn't work, see the patch I posted last night for how to make that work.
Also, when using Log.i for an exception, you should pass the exception as the third argument rather than appending it to the end of the message.
Attachment #518553 -
Flags: review?(blassey.bugs) → review-
Assignee | ||
Comment 15•14 years ago
|
||
untested w/ blassey's nits.
please review, and i can test on my devices.
Attachment #518594 -
Flags: review?(blassey.bugs)
Updated•14 years ago
|
Attachment #518594 -
Attachment is patch: true
Attachment #518594 -
Attachment mime type: application/octet-stream → text/plain
Assignee | ||
Comment 16•14 years ago
|
||
Comment on attachment 518594 [details] [diff] [review]
v.3
fixed the commit line.
Comment 17•14 years ago
|
||
The build at http://people.mozilla.org/~dougt/fennec.apk restarts fine on Verizon Galaxy Tab.
Assignee | ||
Comment 18•14 years ago
|
||
same on the g2, my tab, and this huawei tablet.
Assignee | ||
Comment 19•14 years ago
|
||
Attachment #518553 -
Attachment is obsolete: true
Attachment #518594 -
Attachment is obsolete: true
Attachment #518594 -
Flags: review?(blassey.bugs)
Attachment #518628 -
Flags: review?(blassey.bugs)
Comment 20•14 years ago
|
||
Comment on attachment 518628 [details] [diff] [review]
v.4
>- int pid = Integer.parseInt(p.getName());
>+
>+ class GeckoPidCallback implements GeckoProcessesVisitor {
nit, there's an extra blank line here, remove it
>+ try {
>+ Thread.currentThread().sleep(100);
>+ } catch (InterruptedException ie) {}
>+ }
>+ }
> } catch (Exception e) {
> Log.i("Restarter", e.toString());
While you're here, use the 3 argument version of the log method
Attachment #518628 -
Flags: review?(blassey.bugs) → review+
Assignee | ||
Comment 21•14 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/823105711a3b
missed the followups (sry).
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 22•14 years ago
|
||
This issue is still reproducing on Sony Ericsson Xperia X10 - Android 2.1-update1
Please see the following video: http://www.youtube.com/user/qaioana#p/a/u/0/lckokurNxfg
Build id : Mozilla/5.0 (Maemo;Linux armv7l;rv:2.0b13pre)Gecko/201100310
Firefox/4.0b13pre Fennec /4.0b6pre
Device: Sony Ericsson Xperia X10
OS: Android 2.1 update 1
Comment 23•14 years ago
|
||
The video from above is a mistake. Sorry
Comment 24•14 years ago
|
||
(In reply to comment #23)
> The video from above is a mistake. Sorry
What kind of mistake? Does the problem still happen or not?
Comment 25•14 years ago
|
||
This part of my comment shouldn't exits:
"Please see the following video:
http://www.youtube.com/user/qaioana#p/a/u/0/lckokurNxfg"
The issue is still reproducing on the:
Build id : Mozilla/5.0 (Maemo;Linux armv7l;rv:2.0b13pre)Gecko/201100310
Firefox/4.0b13pre Fennec /4.0b6pre
Comment 26•14 years ago
|
||
It seems to be fixed on the latest nightly Build id : Mozilla/5.0 (Maemo;Linux armv7l;rv:2.0b13pre)Gecko/201100311
Firefox/4.0b13pre Fennec /4.0b6pre
Comment 27•14 years ago
|
||
(In reply to comment #26)
> It seems to be fixed on the latest nightly Build id : Mozilla/5.0 (Maemo;Linux
> armv7l;rv:2.0b13pre)Gecko/201100311
> Firefox/4.0b13pre Fennec /4.0b6pre
that's yesterday's build and doesn't have the patches from this bug
Comment 28•14 years ago
|
||
err.. the 3/10 build was yesterday's you already figured that out
Comment 29•14 years ago
|
||
Verified fixed w/
Mozilla/5.0 (Android; Linux armv7l; rv:2.0b13pre) Gecko/20110317 Firefox/4.0b13pre Fennec/4.0b6pre
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•