Closed
Bug 1035625
Opened 11 years ago
Closed 11 years ago
Support "resizable" in-content preference subdialogs
Categories
(Firefox :: Settings UI, defect)
Firefox
Settings UI
Tracking
()
People
(Reporter: MattN, Assigned: jaws)
References
(Depends on 2 open bugs)
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
3.01 KB,
patch
|
MattN
:
review+
|
Details | Diff | Splinter Review |
The "resizable" option of the features argument to gSubDialog.open should be respected and allow resizing of subdialogs. This is useful for the password manager dialog where additional columns can be added.
Reporter | ||
Updated•11 years ago
|
Blocks: ship-incontent-prefs
Keywords: regression
Reporter | ||
Updated•11 years ago
|
Flags: firefox-backlog+
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → jaws
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•11 years ago
|
||
I had to move the width and height to min-width and min-height or else the dialogs could be resized too small.
Attachment #8455838 -
Flags: review?(MattN+bmo)
Reporter | ||
Comment 3•11 years ago
|
||
Comment on attachment 8455838 [details] [diff] [review]
Patch
Review of attachment 8455838 [details] [diff] [review]:
-----------------------------------------------------------------
Can you remove https://mxr.mozilla.org/mozilla-central/source/browser/themes/shared/incontentprefs/preferences.css?rev=c274ab1b4086#887 now?
::: browser/themes/shared/incontentprefs/preferences.css
@@ +848,5 @@
>
> #dialogBox {
> border: 1px solid #666;
> display: -moz-box;
> + resize: both;
You should only make the dialog resizable when the resizable feature is specified for the subdialog. You probably need to set an attribute somewhere on the dialog when that's the case and have the CSS apply only then.
Attachment #8455838 -
Flags: review?(MattN+bmo) → feedback+
Assignee | ||
Comment 4•11 years ago
|
||
This patch checks for resizable=yes in the features. I noticed that the Content > Exceptions dialog has two resizers but that looks to be due to the Exceptions dialog having its own <resizer> element that needs to be removed.
I'd rather that get taken care of in a separate bug since more investigation may be necessary and this patch is a general fix.
Attachment #8455838 -
Attachment is obsolete: true
Attachment #8455858 -
Flags: review?(MattN+bmo)
Reporter | ||
Comment 5•11 years ago
|
||
Comment on attachment 8455858 [details] [diff] [review]
Patch v2
Review of attachment 8455858 [details] [diff] [review]:
-----------------------------------------------------------------
r=me with the regex change to handle "1" along with no "=".
We'll need a new bug for the resizer visibility then.
::: browser/components/preferences/in-content/subdialogs.js
@@ +65,5 @@
> let dialog = window.openDialog(aURL, "dialogFrame", features, aParams);
> if (aClosingCallback) {
> this._closingCallback = aClosingCallback.bind(dialog);
> }
> + this._box.setAttribute("resizable", /resizable=yes/i.test(features));
resisable without the "=" is also truthy (it seems[1]) so I think you need something like (untested):
/resizable(=yes|=1|,|$)/i
[1] https://developer.mozilla.org/en-US/docs/Web/API/Window.open#Toolbar_and_chrome_features
Attachment #8455858 -
Flags: review?(MattN+bmo) → review+
Assignee | ||
Comment 6•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Whiteboard: [fixed-in-fx-team]
Assignee | ||
Comment 7•11 years ago
|
||
(In reply to [Away for most of July] (please needinfo? me) Jared Wein [:jaws] from comment #4)
> I noticed that the
> Content > Exceptions dialog has two resizers but that looks to be due to the
> Exceptions dialog having its own <resizer> element that needs to be removed.
>
> I'd rather that get taken care of in a separate bug since more investigation
> may be necessary and this patch is a general fix.
(In reply to Matthew N. [:MattN] from comment #5)
> We'll need a new bug for the resizer visibility then.
The resizer visibility has been taken care of between the time that I made the changeset that my patch was previously based on and current hg tip.
Comment 8•11 years ago
|
||
Hi Jared, can you provide a point value and if the bug should be marked as [qa+] or [qa-]
Iteration: --- → 34.1
QA Whiteboard: [qa?]
Flags: needinfo?(jaws)
Assignee | ||
Updated•11 years ago
|
Points: --- → 3
QA Whiteboard: [qa?] → [qa+]
Flags: needinfo?(jaws)
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 34
Comment 10•11 years ago
|
||
Hi Florin, can a QA contact be assigned for verification of this bug.
Flags: needinfo?(florin.mezei)
Updated•11 years ago
|
QA Contact: camelia.badau
Updated•11 years ago
|
Flags: needinfo?(florin.mezei)
Assignee | ||
Comment 11•11 years ago
|
||
> (In reply to Matthew N. [:MattN] from comment #5)
> > We'll need a new bug for the resizer visibility then.
>
> The resizer visibility has been taken care of between the time that I made
> the changeset that my patch was previously based on and current hg tip.
My above comment was erroneous. Bug 1037049 will handle moving that <resizer> out of the dialog and to a window opening parameter.
Comment 12•11 years ago
|
||
Verified on Windows 7 64bit, Ubuntu 13.10 32bit and Mac OSX 10.8.5 and the following mentions should be done:
- only the "Exceptions" subdialog from Content tab is resizable (because only this has a resizer)
- if I resize the "Exceptions" subdialog (from Content tab), all other subdialogs will have the new size of the "Expections" subdialog
It is ok? Is this the behaviour intended?
Flags: needinfo?(jaws)
Comment 13•11 years ago
|
||
I forgot to mention that I used latest Nightly 34.0a1 (buildID: 20140728030201).
Assignee | ||
Comment 14•11 years ago
|
||
(In reply to Camelia Badau, QA [:cbadau] from comment #12)
> Verified on Windows 7 64bit, Ubuntu 13.10 32bit and Mac OSX 10.8.5 and the
> following mentions should be done:
> - only the "Exceptions" subdialog from Content tab is resizable (because
> only this has a resizer)
This is bug 1037049.
> - if I resize the "Exceptions" subdialog (from Content tab), all other
> subdialogs will have the new size of the "Expections" subdialog
I'm pretty sure this is bug 1043612. MattN, can you confirm?
> It is ok? Is this the behaviour intended?
Flags: needinfo?(jaws) → needinfo?(MattN+bmo)
Comment 15•11 years ago
|
||
Seems like there's no more testing work to do here, but wait for Matt's confirmation on the second issue. Marking as Verified since remaining issues are tracked separately.
Status: RESOLVED → VERIFIED
QA Whiteboard: [qa+] → [qa!]
Reporter | ||
Comment 16•11 years ago
|
||
(In reply to Jared Wein [:jaws] (please needinfo? me) from comment #14)
> (In reply to Camelia Badau, QA [:cbadau] from comment #12)
> > - if I resize the "Exceptions" subdialog (from Content tab), all other
> > subdialogs will have the new size of the "Expections" subdialog
>
> I'm pretty sure this is bug 1043612. MattN, can you confirm?
The size of one subdialog should have no impact on subsequent ones shown as we try to clear attributes set on the frame upon closing of a dialog. Bug 1043612 is supposed to make it so we remember the sizes for certain dialogs. Can you please file a new bug blocking bug 1014201 if you are saying one dialog size is affecting others?
Flags: needinfo?(MattN+bmo)
Reporter | ||
Updated•11 years ago
|
Flags: needinfo?(camelia.badau)
![]() |
||
Comment 17•11 years ago
|
||
I've already filed Bug 1043346
You need to log in
before you can comment on or make changes to this bug.
Description
•