Closed Bug 609321 Opened 14 years ago Closed 6 years ago

Can't install extensions by navigating to an XPI on mobile

Categories

(Toolkit :: Add-ons Manager, defect)

defect
Not set
normal

Tracking

()

RESOLVED INACTIVE
Tracking Status
fennec - ---

People

(Reporter: wesj, Unassigned)

References

Details

(Whiteboard: [e10s])

Aakash ran into this. There are apparently two problems:

1.) Load a chrome web page (about:home)
2.) Type the url to an xpi in the titlebar
Result: Extension isn't installed. Error in the console about no InstallTrigger for window. Chrome windows don't have install triggers.

Second problem:
1.) Load a remote tab (www.google.com)
2.) Type the url to an xpi in the titlebar
Result: Extension isn't installed. Security exception is thrown.

Bug 593025 has some solutions for amContentHandler.js that would fix this, but that we wanted to avoid.
Clicking on a link to an XPI (no InstallTrigger) works though?
I have done that recently and it worked.
(In reply to comment #2)
> I have done that recently and it worked.

Then I am willing to ship without this fixed
tracking-fennec: --- → 2.0-
Why is this broken though?
Not exactly sure what you are asking. The details of why we are where we are are a little complex, but documented in Bug 593025.
(In reply to comment #6)
> Not exactly sure what you are asking. The details of why we are where we are
> are a little complex, but documented in Bug 593025.

More specifically what is the security exception that is getting thrown and why?
I can no longer reproduce the second security warning problem. i.e. If I go to Google.com and then enter "http://ted.mielczarek.org/mozilla/crashme-new.xpi" into the urlbar, the extension downloads and installs correctly.

I still see the problem if I start on a local or blank tab.
Still reproduces with Test Environment :
Build Identifier:  Mozilla/5.0 (Android; Linux armv7l; en-US; rv:2.0b10pre)
Gecko/20110119 Firefox/4.0b10pre Fennec/4.0b4pre 
Device: HTC Desire A8181
OS: android 2.1
Add-on: http://people.mozilla.com/~mfinkle/fennec/addons/bootstrapjones-mobile.xpi
(In reply to comment #9)
> Still reproduces with Test Environment :
> Build Identifier:  Mozilla/5.0 (Android; Linux armv7l; en-US; rv:2.0b10pre)
> Gecko/20110119 Firefox/4.0b10pre Fennec/4.0b4pre 
> Device: HTC Desire A8181
> OS: android 2.1
> Add-on:
> http://people.mozilla.com/~mfinkle/fennec/addons/bootstrapjones-mobile.xpi

I'm using the Nexus S on Android 2.3.2, running 20110125 build.
- typed in "http://people.mozilla.com/~mfinkle/fennec/addons/bootstrapjones-mobile.xpi", confirmed the install popup, and installed the extension all without a restart.    Can you confirm on the latest nightly this is still reproducing?
Still reproduces on Sony Ericsson Xperia X10 - Android 2.1-update1

Build id : Mozilla/5.0 (Maemo;Linux armv7l;rv:2.0b13pre)Gecko/20110310
Firefox/4.0b13pre Fennec /4.0b6pre
Device: Sony Ericsson Xperia X10
OS: Android 2.1 update 1
This might depend on whether the current tab is showing a remote (http/https) page or a local (about/chrome) page before you type the add-on URL.
Whiteboard: [fennec-4.1?]
Summary: Can't install extensions by typing url into urlbar → Can't install extensions in a local or blank tab
tracking-fennec: - → 7+
Whiteboard: [fennec-4.1?]
tracking-fennec: 7+ → ?
Summary: Can't install extensions in a local or blank tab → Can't install extensions by navigating to an XPI
tracking-fennec: ? → -
Component: General → Add-ons Manager
Product: Fennec → Toolkit
QA Contact: general → add-ons.manager
Summary: Can't install extensions by navigating to an XPI → Can't install extensions by navigating to an XPI on mobile
Whiteboard: [e10s]
Still reproducible.  Can't install extension in a new tab.

Mozilla/5.0 (Android; Linux armv7I; rv10.0a1) Gecko/20110928 Firefox/10.0a1 Fennec/10.0a1
Device: Toshiba Thrive
OS Android 3.1
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.