Closed Bug 1559392 Opened 6 years ago Closed 6 years ago

[about:addons] Support installing non-.xpi files with drag and drop

Categories

(Toolkit :: Add-ons Manager, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: tetsuharu, Assigned: mstriemer)

References

(Blocks 2 open bugs)

Details

Attachments

(3 files)

Attached image screenshot

Environment

Steps to Reproduce

  1. Drag & Drop addon's zip file to the empty area which I illustrate in the screenshot in about:addons (html version).

Actual Behavior

Try to download the zip file that I drag & drop.

Expected Behavior

Show the doorhanger to attempt to install the addon.
The XUL version of about:addons did it.

Blocks: 1558982
No longer blocks: 1558982

This is on a Mac? What OS version? Wikipedia seems to suggest 18.2.0 is the latest Darwin version.

This works for me on Mac OS 10.14.

Can you submit a screencast so I can see how you're dragging the file in if that has any impact? Thanks!

Flags: needinfo?(tetsuharu.ohzeki)

This is on a Mac? What OS version? Wikipedia seems to suggest 18.2.0 is the latest Darwin version.
This works for me on Mac OS 10.14.

Yes. I reproduced on my macOS 10.14. I'm sorry to copy & paste from about:support.

Can you submit a screencast so I can see how you're dragging the file in if that has any impact? Thanks!

I'll attach the screencast of the actual behavior.

Flags: needinfo?(tetsuharu.ohzeki)

So I tried this again after renaming the .xpi file I was using to a .zip and I see the same behaviour. Dragging anywhere into the HTML pane clears the document but dragging it onto the sidebar will start the install.

Do .xpi files work for you?

Flags: needinfo?(tetsuharu.ohzeki)

Looks like this was working in my previous tests because dropping an xpi in any tab will try to install it, but about:addons tries to install whatever you give it, regardless of file type.

Fairly straightforward to fix, however updating the XUL tests for the HTML version results in a not very helpful stack trace. I'll need to look into this more later.

Flags: needinfo?(tetsuharu.ohzeki)

(In reply to Mark Striemer [:mstriemer] from comment #4)

Do .xpi files work for you?

.xpi works in my environment for about:addons html.

I used to debug or dogfooding my addon instantly to install it by drag&drop .zip archive.

Priority: -- → P2
See Also: → 1566347

The sidebar is being removed in bug 1525178, which will break the last place you could drop .zip files to be installed. I'm not sure how big of an issue this will be, but we're still running into the same test issues moving the tests to target the HTML document.

I'll remove the existing code and hopefully we can add it back at a later date.

If this is a big issue please let me know, I'd imagine most users haven't discovered the ability to drag a .zip onto the sidebar so not supporting this is likely the expected behaviour for most users.

Priority: P2 → P3
Summary: [about:addons] Cannot install an addon by drag&drop to empty area of about:addons (html version) → [about:addons] Support installing non-.xpi files with drag and drop

The sidebar is being converted to HTML so support for this will likely be removed until we switch to a root HTML document in bug 1525179. Adding the dependency. Installing .xpi files will still work, but unfortunately we can't test this functionality while we have to implement it in the inner HTML document.

Depends on: 1525179
Assignee: nobody → mstriemer
Status: NEW → ASSIGNED
Attachment #9131633 - Attachment description: Bug 1559392 - Support drag+drop of non .xpi files in about:addons r?rpl → Bug 1559392 - Support drag+drop of add-ons into HTML about:addons
No longer depends on: 1525179
Blocks: 1626824
Blocks: 1626835
Pushed by mstriemer@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2009a877d90f Support drag+drop of add-ons into HTML about:addons r=rpl
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla76
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: