Bug 1803631 Comment 2 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

(For other folks who've forgotten like me: to install the attached test add-on: go to `about:debugging` in Nightly, choose "This Nightly", and then "Load Temporary Add-on".  Also, this is easier to repro if you have `extensions.unifiedExtensions.enabled` set to `false`; that'll save a click on opening the add-on from the unified extension menu, which is otherwise enabled for new profiles in Nightly.)

> This is a bug in Firefox?

I don't  think so?  After we navigate (from your testcase's  `<meta http-equiv="refresh" content="1;url=https://www.iana.org/">` tag), I think your stylesheet is no longer active. It's part of the document that we've navigated away frmo.

You can see that in several ways:
 (1) Add `border: 3px solid red` to your CSS file. (The border disappears when navigation happens.)
 (2) Use `width: 50px; height: 50px` to your CSS file. (The popup is initially 50x50, but snaps to a larger size -- the same size shown in your screencast -- when we redirect.)

So I think you're just seeing the popup intrinsic-sizing behavior there.  I don't know offhand where the height comes from, but I don't think it's expected that it should be preserved from the height that we were using before navigation.
(For other folks who've forgotten like me how to install the attached test add-on: You go to `about:debugging` in Nightly, choose "This Nightly", and then "Load Temporary Add-on".  Also, this is easier to repro if you have `extensions.unifiedExtensions.enabled` set to `false`; that'll save a click on opening the add-on from the unified extension menu, which is otherwise enabled for new profiles in Nightly.)

> This is a bug in Firefox?

I don't  think so?  After we navigate (from your testcase's  `<meta http-equiv="refresh" content="1;url=https://www.iana.org/">` tag), I think your stylesheet is no longer active. It's part of the document that we've navigated away frmo.

You can see that in several ways:
 (1) Add `border: 3px solid red` to your CSS file. (The border disappears when navigation happens.)
 (2) Use `width: 50px; height: 50px` to your CSS file. (The popup is initially 50x50, but snaps to a larger size -- the same size shown in your screencast -- when we redirect.)

So I think you're just seeing the popup intrinsic-sizing behavior there.  I don't know offhand where the height comes from, but I don't think it's expected that it should be preserved from the height that we were using before navigation.
(For other folks who've forgotten like me how to install the attached test add-on: You go to `about:debugging` in Nightly, choose "This Nightly", and then "Load Temporary Add-on".  Also, this is easier to repro if you have `extensions.unifiedExtensions.enabled` set to `false`; that'll save a click on opening the add-on from the unified extension menu.  Otherwise, if you've got a new profile, you get a dropdown-menu from the extension icon, and you'll have to click the extension's icon in that menu in order to get the popup.)

> This is a bug in Firefox?

I don't  think so?  After we navigate (from your testcase's  `<meta http-equiv="refresh" content="1;url=https://www.iana.org/">` tag), I think your stylesheet is no longer active. It's part of the document that we've navigated away frmo.

You can see that in several ways:
 (1) Add `border: 3px solid red` to your CSS file. (The border disappears when navigation happens.)
 (2) Use `width: 50px; height: 50px` to your CSS file. (The popup is initially 50x50, but snaps to a larger size -- the same size shown in your screencast -- when we redirect.)

So I think you're just seeing the popup intrinsic-sizing behavior there.  I don't know offhand where the height comes from, but I don't think it's expected that it should be preserved from the height that we were using before navigation.

Back to Bug 1803631 Comment 2