Closed Bug 1035541 Opened 10 years ago Closed 10 years ago

Convert Content pane dialogs to be in-content

Categories

(Firefox :: Settings UI, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 34
Tracking Status
firefox34 --- verified

People

(Reporter: MattN, Assigned: Paenglab, Mentored)

References

(Depends on 1 open bug, )

Details

Attachments

(1 file, 4 obsolete files)

Convert colors.xul openers to use gSubDialog.
This is already in bug 752197 included. Or what needs to add in this bug?
Summary: Convert colors.xul dialog to be in-content → Convert Content pane dialogs to be in-content
Attached patch contentDialogsIncontent.patch (obsolete) — Splinter Review
There are the Fonts and Tranlation dialogs which are needed to convert. (In reply to Matthew N. [:MattN] (behind on bugmail) from comment #63) > Comment on attachment 8448050 [details] [diff] [review] > inContentDialogs.patch > > Review of attachment 8448050 [details] [diff] [review]: > ----------------------------------------------------------------- > > @@ +905,5 @@ > > * End sub-dialog > > */ > > + > > +#color-separator { > > + width: 1.5em; > > I don't think specific sub-dialog IDs belong in this file. If you want to > style the tabbox widgets when they're in a sub-dialog, do so in a more > generic way. Is this generic enough: dialog groupbox, prefwindow groupbox { -moz-margin-start: 8px; -moz-margin-end: 8px; }
Attachment #8452545 - Flags: review?(MattN+bmo)
Forgot to write: this patch needs the patch from bug 1035540 applied first.
Comment on attachment 8452545 [details] [diff] [review] contentDialogsIncontent.patch Review of attachment 8452545 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/components/preferences/fonts.xul @@ +18,5 @@ > dlgbuttons="accept,cancel,help" > ondialoghelp="openPrefsHelp()" > #ifdef XP_UNIX > #ifdef XP_MACOSX > + style="width: &window.macWidth; !important; height: 36em;"> This height is not enough for me on 10.9 with HiDPI (the buttons are cut off). The auto-calculated height works fine though so why do we need this? Using an empty style="" attribute and having both dimensions auto-calculated works for me. (I filed bug 1036018 about missing @style on the dialog documentElement)
Attachment #8452545 - Flags: review?(MattN+bmo) → review-
Attached patch contentDialogsIncontent.patch (obsolete) — Splinter Review
(In reply to Matthew N. [:MattN] (behind on bugmail) from comment #4) > Comment on attachment 8452545 [details] [diff] [review] > contentDialogsIncontent.patch > > Review of attachment 8452545 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: browser/components/preferences/fonts.xul > @@ +18,5 @@ > > dlgbuttons="accept,cancel,help" > > ondialoghelp="openPrefsHelp()" > > #ifdef XP_UNIX > > #ifdef XP_MACOSX > > + style="width: &window.macWidth; !important; height: 36em;"> > > This height is not enough for me on 10.9 with HiDPI (the buttons are cut > off). The auto-calculated height works fine though so why do we need this? Removed the fonts.xul changes. It works now also without them on Windows. I don't know why it was needed earlier.
Attachment #8452545 - Attachment is obsolete: true
Attachment #8452600 - Flags: review?(MattN+bmo)
Comment on attachment 8452600 [details] [diff] [review] contentDialogsIncontent.patch Review of attachment 8452600 [details] [diff] [review]: ----------------------------------------------------------------- r- for fonts.xul. Please test that change on Windows too then ask Mano@mozilla.… for review on that version since he worked on adding the width entities. Perhaps they are still needed for some locales? ::: browser/components/preferences/in-content/content.js @@ +152,5 @@ > * configured. > */ > configureFonts: function () > { > + gSubDialog.open("chrome://browser/content/preferences/fonts.xul"); This isn't wide enough on OS X with the old width which is why I was saying to change the dialog to an empty style attribute. I believe it's because the controls are all larger now. Bug 285574 which added the width doesn't seem to be a problem anymore for me. ::: browser/themes/shared/incontentprefs/preferences.css @@ +904,5 @@ > * End sub-dialog > */ > + > +dialog groupbox, > +prefwindow groupbox { May as well include "window" and use -moz-any for consistency
Attachment #8452600 - Flags: review?(MattN+bmo) → review-
Attached patch contentDialogsIncontent.patch (obsolete) — Splinter Review
Mano, please read the comment below from Matthew about the Fonts dialog. I tested it on Linux and Windows without the width definition and it is still fully visible on in-content dialog and also on normal dialog. Do you see a case where this doesn't work without the width definition in dialog? (In reply to Matthew N. [:MattN] (behind on bugmail) from comment #6) > Comment on attachment 8452600 [details] [diff] [review] > contentDialogsIncontent.patch > > Review of attachment 8452600 [details] [diff] [review]: > ----------------------------------------------------------------- > > r- for fonts.xul. Please test that change on Windows too then ask > Mano@mozilla.… for review on that version since he worked on adding the > width entities. Perhaps they are still needed for some locales? > > ::: browser/components/preferences/in-content/content.js > @@ +152,5 @@ > > * configured. > > */ > > configureFonts: function () > > { > > + gSubDialog.open("chrome://browser/content/preferences/fonts.xul"); > > This isn't wide enough on OS X with the old width which is why I was saying > to change the dialog to an empty style attribute. I believe it's because the > controls are all larger now. Bug 285574 which added the width doesn't seem > to be a problem anymore for me.
Attachment #8452600 - Attachment is obsolete: true
Attachment #8453233 - Flags: review?(mano)
Attachment #8453233 - Flags: feedback?(MattN+bmo)
Comment on attachment 8453233 [details] [diff] [review] contentDialogsIncontent.patch Review of attachment 8453233 [details] [diff] [review]: ----------------------------------------------------------------- r=me with the fix but don't land without Mano's review. ::: browser/components/preferences/fonts.xul @@ +15,5 @@ > <prefwindow id="FontsDialog" type="child" > xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" > title="&fontsDialog.title;" > dlgbuttons="accept,cancel,help" > + ondialoghelp="openPrefsHelp()"> As I said before, you need to leave an empty style="" otherwise an exception will be raised. Bug 1036018 will allow use to remove the empty attribute.
Attachment #8453233 - Flags: feedback?(MattN+bmo) → review+
Attached patch contentDialogsIncontent.patch (obsolete) — Splinter Review
Added the empty style.
Attachment #8453233 - Attachment is obsolete: true
Attachment #8453233 - Flags: review?(mano)
Attachment #8453585 - Flags: review?(mano)
What was the previously set margin for menulist? Did you mean to change it?
The margin change slipped in from bug 1038288. I'll remove it on next patch after review, if this is okay.
Flags: needinfo?(mano)
Comment on attachment 8453585 [details] [diff] [review] contentDialogsIncontent.patch Without any of the margin changes.
Attachment #8453585 - Flags: review?(mano) → review+
Flags: needinfo?(mano)
Removed the margin change on buttons but still change the groupbox in dialogs margins to align them correctly.
Attachment #8453585 - Attachment is obsolete: true
Attachment #8459531 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 34
Verified on Windows 7 64bit, Ubuntu 13.10 32bit and Mac OSX 10.8.5 using latest Nightly 34.0a1 (buildID: 20140728030201) and the dialogs from Content pane are in-content.
Status: RESOLVED → VERIFIED
Depends on: 1063940
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: