when notification title is too long, notification window stretch and span whole screen width

RESOLVED WORKSFORME

Status

()

Toolkit
Notifications and Alerts
RESOLVED WORKSFORME
2 years ago
2 years ago

People

(Reporter: litianw, Unassigned)

Tracking

41 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

2 years ago
Created attachment 8695725 [details]
giant long notification firefox.PNG

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36

Steps to reproduce:

1. Show a notification with very very long title, for example:


  var options = {
      body: 'body text'
  }

  var theTitle = 'abcd efgh ijkl mnop qrst uvw xyz abcd efgh ijkl mnop qrst uvw xyz abcd efgh ijkl mnop qrst uvw xyz abcd efgh ijkl mnop qrst uvw xyz abcd efgh ijkl mnop qrst uvw xyz';

  var n = new Notification(theTitle,options);
  // more examples here: https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API/Using_the_Notifications_API

2. Wait to see the notification come up



Actual results:

a giant wide notification window with full title in top line show up


Expected results:

a normal sized notification window with truncated title show up
@Reporter: Yes, the fix has been added for a future release. You will find it fixed in the following version.
Version 	44.0a2
Build ID 	20151203004003
User Agent 	Mozilla/5.0 (Windows NT 6.1; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0
Component: Untriaged → Notifications and Alerts
Flags: needinfo?(litianw)
Product: Firefox → Toolkit

Updated

2 years ago
Status: UNCONFIRMED → RESOLVED
Last Resolved: 2 years ago
Flags: needinfo?(litianw)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.