Closed Bug 349481 Opened 18 years ago Closed 18 years ago

Clear private data dialog width is hardcoded

Categories

(Firefox :: General, defect, P2)

2.0 Branch
defect

Tracking

()

RESOLVED FIXED
Firefox 3 alpha2

People

(Reporter: mdalco, Assigned: asaf)

References

()

Details

(Keywords: l12y, Whiteboard: see comment 7 for round up)

Attachments

(3 files, 1 obsolete file)

The dialog "Clear Private Data" accessible from Firefox Preferences -> Privacy tab -> Settings button, should be made resizable via entities in the l10n file (/chrome/browser/preferences/sanitize.dtd )
Is this a regression?
Keywords: l12y
I made an error: the involved dialog is the Options -> Clear private data... and not the Preferences dialog (/chrome/browser/sanitize.dtd and NOT /chrome/browser/preferences/sanitize.dtd )

My apologies for this.
Keywords: l12y
The url is still wrong. Sorry for the bugspam. Francesco will add ASAP details compared to 1.8.0 branch.
(In reply to comment #2)
> Is this a regression?

Probably yes. 

The structure of that dialog window is slightly different in Firefox 1.5.x; even if it's not resizable using entities, this dialog is displayed correctly (although  I've just noticed a little cut in the decoration at the bottom).
I'm not sure if I'd call this a regression.

Anyway, this is a UI decision, localizations may loose the "Authenticated Sessions" entry in the dialog Tools -> Clear private data.

Requesting blocking for drivers to evaluate.
Flags: blocking-firefox2?
Whiteboard: see comment 7 for round up
Can you hack around this via intl.css?
(In reply to comment #8)
> Can you hack around this via intl.css?

Maybe yes: the dialog has a SanitizeDialog id and style attribute set to "width: 30em ! important;".
An entry like this:

#SanitizeDialog {
  width: XXem;
}

will works?

However for now I shortened the translation of the line that wraps to fit the windows.
To mantain consistency with other dialogs size settings maybe this shold be changed.

You likely still need an !important, and you may want to make it more specific still by using @-moz-document, http://lists.w3.org/Archives/Public/www-style/2004Aug/0135.html.
Ok! This is right? Now I check if it works.

@-moz-document url(chrome://browser/content/sanitize.xul) {
   prefwindow#SanitizeDialog {
      width: XXem !important;
   }
}
I made some tests: changing width is not allowed, I think because the hard-coded style has priority over intl.css styles.

I can change only the height with this style code:

@-moz-document url(chrome://browser/content/sanitize.xul) {
   #SanitizeDialog {
      height: XXem !important;
   }
}

Francesco should determine the right height vaule.
Cancelling branch magic, that's good enough as a workaround.
This should be fixed on the trunk, of course, but I just deny that this is an issue for Firefox 2.
Once you have a working workaround, could you post to .l10n? Then every locale suffering from a line-wrap can reuse that.
Flags: blocking-firefox2?
Target Milestone: Firefox 2 beta2 → Firefox 3 alpha1
*** Bug 352965 has been marked as a duplicate of this bug. ***
Assignee: nobody → mano
OS: Linux → All
Priority: -- → P2
Hardware: PC → All
Summary: Sanitize dialog "Clear Private Data" should be resizable for l10n → Clear private data dialog width is hardcoded
Attached patch patch (obsolete) — Splinter Review
Attachment #245651 - Flags: review?(gavin.sharp)
Status: NEW → ASSIGNED
The patch for bug 345769 seems to have removed the l10n-specified width, and commented out its reference in the other sanitize.xul (http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/browser/components/preferences/sanitize.xul&rev=1.14&mark=53,54#53).

Jeff, do you remember why? Can that be restored when this patch lands?
(In reply to comment #16)
> Jeff, do you remember why? Can that be restored when this patch lands?

I don't remember.  The most reasonable guess is that I saw it, couldn't determine why it was useful, and thus commented it out in the interests of removing unneeded code.  The only problem (aside from this just being a guess anyway) is that I'd expect by this time I would have gotten used to l10n entities in random places and just ignored it.

Yes, the entity can probably be restored, especially since I don't remember the reason it was removed in the first place.  (I'd prefer if the entity were near the top of the file like it was before, tho, just from a stylistic standpoint.  Now's also probably a good time to do the entity rearrangement mentioned in the XXX comment as well.)
Attached patch as checked inSplinter Review
mozilla/browser/base/content/sanitize.xul 1.15
mozilla/browser/components/preferences/sanitize.xul 1.15
mozilla/browser/locales/en-US/chrome/browser/sanitize.dtd 1.9
Attachment #245651 - Attachment is obsolete: true
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Target Milestone: Firefox 3 alpha1 → Firefox 3 alpha2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: