Closed Bug 1455151 Opened 7 years ago Closed 7 years ago

Support subdialog sizing of HTML documents from a stylesheet and use it for autofill edit dialogs

Categories

(Firefox :: Settings UI, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 61
Tracking Status
firefox61 --- fixed

People

(Reporter: MattN, Assigned: MattN)

References

Details

(Whiteboard: [webpayments])

Attachments

(1 file)

Setting width/max-width on `html` or `body` from a stylesheet for a HTML document doesn't currently work for sizing the subdialog which means that @width or @style="width: NNNpx" on `html` is necessary. That works okay except that it means that it requires allowing inline styles via CSP which isn't great since you can't allow only certain properties. For Web Payments we re-use editAddress.xhtml and editCreditCard.xhtml outside of the subdialog in the PaymentRequest dialog and want to have a strict CSP to prevent inline styles so we currently get CSP errors on every load. Checking the scrollWidth on the body (for HTML documents, where the <body> exists) works.
Blocks: 1428414
Comment on attachment 8969124 [details] Bug 1455151 - Support subdialog sizing of HTML documents from a stylesheet and use it for autofill edit dialogs. https://reviewboard.mozilla.org/r/237836/#review243560
Attachment #8969124 - Flags: review?(jaws) → review+
Pushed by mozilla@noorenberghe.ca: https://hg.mozilla.org/integration/autoland/rev/b180b277a1ef Support subdialog sizing of HTML documents from a stylesheet and use it for autofill edit dialogs. r=jaws
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 61
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: