Closed Bug 1293287 Opened 8 years ago Closed 8 years ago

Popups should be closed when extensions shutdown

Categories

(WebExtensions :: Frontend, defect, P1)

49 Branch
defect

Tracking

(firefox51 fixed)

RESOLVED FIXED
mozilla51
Tracking Status
firefox51 --- fixed

People

(Reporter: devunion, Assigned: kmag, NeedInfo)

Details

(Whiteboard: triaged)

Attachments

(2 files)

Attached image BrowserAction bug.png
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36

Steps to reproduce:

Steps to reproduce the issue: 
1. Install sample extension from https://bugzilla.mozilla.org/show_bug.cgi?id=1293282 ticket.
2. Open popup.
3. Press Reload Button to reload the extension.


Actual results:

Previously loaded popup is not removed completely (See attached screenshot. There is just small arrow visible, but one time I was able to see full popup in this location.)


Expected results:

HTML popup should be completely removed after reloading.
Component: Untriaged → WebExtensions
Product: Firefox → Toolkit
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
I've reported this bug separately because I think that it is related to another part of functionality. 
The bug 1293282 related to functionality of the poup itself while this one is related to the functionality of the Reload button.

If we have auto hide option disabled (I assume that this is correct state of the system), then Reload button should work as expected and the popup should be completely removed.
I guess we could handle this a bit better.
Status: RESOLVED → REOPENED
Component: WebExtensions → WebExtensions: Frontend
Ever confirmed: true
Resolution: DUPLICATE → ---
Summary: Problem with BrowserAction HTML popup after reloading web extension on about:debugging#addons tab → Popups should be closed when extensions shutdown
Assignee: nobody → kmaglione+bmo
Priority: -- → P1
Whiteboard: triaged
Comment on attachment 8784615 [details]
Bug 1293287: Close extension popups on extension shutdown.

https://reviewboard.mozilla.org/r/73966/#review72108

::: browser/components/extensions/test/browser/browser_ext_popup_shutdown.js:34
(Diff revision 1)
> +      },
> +    });
> +  };
> +
> +  {
> +    info("Test stand-alone browserAction popup");

just curious why you do this this way rather than adding 3 separate tasks with descriptively named functions (which mochitest will helpfully print)
Attachment #8784615 - Flags: review?(aswan) → review+
Comment on attachment 8784615 [details]
Bug 1293287: Close extension popups on extension shutdown.

https://reviewboard.mozilla.org/r/73966/#review72108

> just curious why you do this this way rather than adding 3 separate tasks with descriptively named functions (which mochitest will helpfully print)

No particular reason. This is just what the test I copied it from looked like.
https://hg.mozilla.org/mozilla-central/rev/c79543918cee
Status: REOPENED → RESOLVED
Closed: 8 years ago8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
I could not reproduce this issue on Firefox 51.0a1 (20160801074053) or Firefox 52.0a1 (20161003030438), devunion@gmail.com could you confirm that the bug is fixed on:
http://archive.mozilla.org/pub/firefox/nightly/2016/10/2016-10-04-00-40-06-mozilla-aurora/firefox-51.0a2.en-US.win64.zip
Flags: needinfo?(devunion)
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: