Closed Bug 1634813 Opened 4 years ago Closed 1 year ago

When title has multiple lines the panel/popup will look broken

Categories

(WebExtensions :: Frontend, defect, P5)

defect

Tracking

(firefox-esr68 unaffected, firefox-esr78 wontfix, firefox76 unaffected, firefox77 wontfix, firefox78 wontfix, firefox79 fix-optional)

RESOLVED WORKSFORME
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- wontfix
firefox76 --- unaffected
firefox77 --- wontfix
firefox78 --- wontfix
firefox79 --- fix-optional

People

(Reporter: kernp25, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Attachments

(9 files, 2 obsolete files)

Attached image f50Ig2Qd1l.png

e.g. The scrollbars are not shown correctly.

From this Bug 1624238.

Flags: needinfo?(rob)
Attached image mI9li89Rj6.png

How it looks like with just one line.

Attached file popup.zip (obsolete) —
Attached image rtcYsm5MkK.png

My idea is: Instead of showing multiple lines, it should just show one line.
If the line is too long, it should truncate the title and display a tooltip instead.

What do you think?

It should work like what the menu panel is doing.

Flags: needinfo?(rob) → needinfo?(gijskruitbosch+bugs)

With this bug multiple lines are not really supported in the title, because it will break the menu popup.

(In reply to kernp25 from comment #5)

It should work like what the menu panel is doing.

I mean, it should work like this.

Nihanth, can you take a look?

Flags: needinfo?(gijskruitbosch+bugs) → needinfo?(nhnt11)
Keywords: regression
Regressed by: 1624238
Has Regression Range: --- → yes
Attached file popup.zip (obsolete) —

New test add-on.

Attachment #9145150 - Attachment is obsolete: true

(In reply to kernp25 from comment #4)

My idea is: Instead of showing multiple lines, it should just show one line.
If the line is too long, it should truncate the title and display a tooltip instead.

What do you think?

I don't agree with this, why not show multiple lines? It's really hard to act on this without a real-world example to illustrate the problem.

I do see the issue with the scrollbars, which should be easy-ish to fix.

Flags: needinfo?(nhnt11)

kernp25, could you clarify how the test add-on attachment illustrates the problem? I see example.com being loaded in the popup. What is the expected result?

Flags: needinfo?(kernp25)

I also can't reproduce the scrollbar issue. A test case would very much help with this! :)

Attached video G54n5ppumW.mp4

(In reply to Nihanth Subramanya [:nhnt11] from comment #12)

I also can't reproduce the scrollbar issue. A test case would very much help with this! :)

I can reproduce the error with the attached add-on.

Flags: needinfo?(kernp25)

Set release status flags based on info from the regressing bug 1624238

Hi Nihanth, would you mind adding a priority/severity here?

Flags: needinfo?(nhnt11)

(In reply to kernp25 from comment #14)

(In reply to Nihanth Subramanya [:nhnt11] from comment #12)

I also can't reproduce the scrollbar issue. A test case would very much help with this! :)

I can reproduce the error with the attached add-on.

Are you sure the right add-on is attached? The one that's attached doesn't have a background.js and the panel doesn't show a title.

I can try and tinker with it later.

Meanwhile, marking this P4.

Severity: -- → S4
Flags: needinfo?(nhnt11)
Priority: -- → P4

(In reply to Nihanth Subramanya [:nhnt11] from comment #17)

Are you sure the right add-on is attached?

I tested it with the add-on attached and recorded it in the video above.

The one that's attached doesn't have a background.js and the panel doesn't show a title.

It uses default_title in the manifest. It is not working for you?

Attached file manifest.zip
Attachment #9145505 - Attachment is obsolete: true
Attached image CIyB8EHsG1.png

The scrollbars will be visible when using this css code:

iframe {
  width: 500px;
  height: 500px;
  border: none;
}

But not:

iframe {
  width: 500px;
  height: 600px;
  border: none;
}

Can you confirm the scrollbar bug?

Flags: needinfo?(alexandru.cornestean)
Attached image cHnZII3Qi3.png

If the title has to many lines, the following css code will also not work:

iframe {
  width: 500px;
  height: 500px;
  border: none;
}
See Also: → 1634627

Hello and sorry for the delay

Using the extension from Comment 19, I am unable to reproduce the scroll bar issue on either the latest Nightly (78.0a1/20200520033931), Beta (77.0b8/20200519220135) or Release (76.0.1/20200507114007). In short, using the extension as is, the scroll bars are visible. This was tested on Windows 10 Pro 64 bit and macOS Catalina 10.15.

However, I did manage to reproduce the issue when modifying the background.js file by adding more lines. Can also confirm Comment 22, that when too many lines are present, the css code does not work. See screenshot 1.

Additionally, on Release, the panel seems to stretch almost the whole width of the screen when opened. On Beta and Nightly this does not occur. See screenshot 2.

Flags: needinfo?(alexandru.cornestean)
Attached image 2 panel on Release.png

Hello Nihanth,

Based on my previous comment (Comment 23), do you think the bug is confirmed and can be set to "New" ? Thanks !

Flags: needinfo?(nhnt11)
Component: Untriaged → Frontend
Priority: P4 → P5
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(nhnt11)

I think this bug can now be closed. Because it will no longer open the popup in the small panel.

Flags: needinfo?(mixedpuppy)
Status: NEW → RESOLVED
Closed: 1 year ago
Flags: needinfo?(mixedpuppy)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: