Closed Bug 1608246 Opened 5 years ago Closed 5 years ago

"Saved Addresses..." subdialog doesn't open if the window is too small

Categories

(Firefox :: Settings UI, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 74
Tracking Status
firefox74 --- fixed

People

(Reporter: bytesized, Assigned: bytesized)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 file)

STR:

  1. Open about:preferences
  2. Reduce the size of the Firefox window to be pretty small
  3. Open any subdialog. I searched for the "Saved Addresses..." button and clicked it, but I believe I have seen this bug on other subdialogs too.

Expected Results:
The dialog opens

Actual results:
The dialog does not open.
The console contains this error:TypeError: contentPane is null (subdialogs.js:434:7)

Oops. I somehow submitted that bug in the middle of typing the title. Don't know how, but I'm fixing it now.

Summary: Subdialogs don → Subdialogs don't open if the window is too small

I updated the title and the description. I plan to take a look into this error, because I am suspicious that this may be a regression of Bug 1588142 or Bug 1601708. I'll update when I know more.

(In reply to Kirk Steuber (he/him) [:bytesized] from comment #2)

I updated the title and the description. I plan to take a look into this error, because I am suspicious that this may be a regression of Bug 1588142 or Bug 1601708. I'll update when I know more.

This would be useful to know in terms of priorities, to see when this regressed and/or for what releases we need to track it. Did you find out?

Flags: needinfo?(ksteuber)

I'm afraid I haven't had time to look into this yet, I'm hoping to have time for it before EOD tomorrow.

I did notice that, despite my earlier belief that this was happening in multiple subdialogs, I now only seem to get it in the one "Saved Addresses..." dialog.

Flags: needinfo?(ksteuber)
Summary: Subdialogs don't open if the window is too small → "Saved Addresses..." subdialog doesn't open if the window is too small

This is indeed a regression resulting from my patch past bug foolishly assuming that the CSS it was changing wouldn't be applied to other pages, when in fact it is applied to many pages. I'll have a patch up shortly.

Regressed by: 1588142
Has Regression Range: --- → yes

Bug 1588142 introduced two problems: First, it added CSS to prefrences.css that was meant to apply only to preferences.xhtml, but in fact ends up applying to other pages. This patch fixes that.

The second problem was an assumption made in subdialogs.js that all preferences subdialogs would have either a contentPane or a <dialog> element, which we should set to be scrollable if the window is too small. It turns out that there is at least one dialog that has overflow-y set to auto, thus handling it's own scrolling. The relevant code has been updated not to make that assumption.

Assignee: nobody → ksteuber
Status: NEW → ASSIGNED
Blocks: 1609534
Attachment #9121145 - Attachment description: Bug 1608246 - Fix bad subdialog behavior r=bgrins → Bug 1608246 - Fixes for small subdialogs in preferences r=bgrins
Pushed by ksteuber@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/df97ae305b64 Fixes for small subdialogs in preferences r=bgrins
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 74
QA Whiteboard: [qa-74b-p2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: