Closed Bug 1815051 Opened 2 years ago Closed 2 years ago

nsIAlertsService.showAlertNotification has issues with long title

Categories

(Toolkit Graveyard :: Notifications and Alerts, defect)

defect

Tracking

(firefox111 fixed)

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: kernp25, Assigned: emilio)

Details

Attachments

(4 files)

Attached image Wgf2sdoscq.png

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0

Steps to reproduce:

Install the test add-on.

Actual results:

Long title gets not rendered correctly (outside the box).

Expected results:

Should maybe truncate the title?
If i put the long title in the message body then everything works as expected.

Attached file background.zip

I put this bug to Notifications and Alerts because notifications.create just calls svc.showAlertNotification.

Maybe you have an idea how to fix this bug?

Flags: needinfo?(emilio)

Yeah, this is probably a regression, the alert title is supposed to be closed here.

Assignee: nobody → emilio
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: needinfo?(emilio)

This makes the alert follow prefers-color-scheme properly.

Depends on D168896

Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/725fe51a1081 Use modern flexbox emulation for xul alerts. r=Gijs https://hg.mozilla.org/integration/autoland/rev/1600e96bb4af Only override system colors on light mode. r=Gijs

Backed out for causing multiple failures (sorry for the wrong commit message)

  • Backout link
  • Push with failures
  • Failure Log
  • Failure line: [taskcluster:error] [mounts] Could not fetch from task EJCj4F1_QAGzTFjQnARQEw artifact public/build/mozharness.zip into file Z:\downloads\Dt7OR7-gQEaDAA2yNBzneg due to open Z:\downloads\Dt7OR7-gQEaDAA2yNBzneg: The system cannot find the path specified.
    [taskcluster:error] [mounts] open Z:\downloads\Dt7OR7-gQEaDAA2yNBzneg: The system cannot find the path specified.

log 2 https://treeherder.mozilla.org/logviewer?job_id=404850457&repo=autoland

log 3: https://treeherder.mozilla.org/logviewer?job_id=404850533&repo=autoland

Flags: needinfo?(emilio)
Pushed by ctuns@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2e6897140088 Use modern flexbox emulation for xul alerts. r=Gijs https://hg.mozilla.org/integration/autoland/rev/ecb8b141c22b Only override system colors on light mode. r=Gijs CLOSED TREE

This got relanded, it looks like that is caused by something else. Sorry for the inconvenience

Flags: needinfo?(emilio)
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
QA Whiteboard: [qa-111b-p2]
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: