Closed
Bug 274550
Opened 20 years ago
Closed 20 years ago
javascript protocol inside href tag prevents saving extensions to disk
Categories
(addons.mozilla.org Graveyard :: Public Pages, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
1.0
People
(Reporter: nrlz, Assigned: wolf)
Details
The current U.M.O. extension website uses javascript links to initiate an
installation. i.e.,
====
<a href="javascript: void(InstallTrigger.
install({'MyExtension1.0':'extension.xpi'}) )">
(Install Now)</a>
====
But this prevents people from saving the extension directly (through alt+click
or "Save Link As...") if they wanted to archive copies of the extension to their
hard drive.
It would be nice to move the javascript to an "onclick" event handler instead of
having it in the href. That way people can still right-click and do a "Save Link
As..." and normal clicking would still run the javascript. It would also allow
people to install extensions even if they have their javascript off, in which it
defaults to the mime-type handler.
====
<a href="extension.xpi"
onclick="InstallTrigger.install({'MyExtension1.0':'extension.xpi'}); return
false;">(Install Now)</a>
====| Assignee | ||
Comment 1•20 years ago
|
||
This is already fixed in update-beta. (https://update-beta.mozilla.org) The javascript use currently was a quick and dirty method implemented for short-term use.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
Updated•9 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•