Closed
Bug 360015
Opened 19 years ago
Closed 18 years ago
pipnss.properties should not use use branded strings
Categories
(Core :: Security: PSM, defect)
Tracking
()
VERIFIED
WORKSFORME
People
(Reporter: alqahira, Assigned: KaiE)
References
()
Details
Attachments
(1 file)
3.38 KB,
patch
|
KaiE
:
review+
|
Details | Diff | Splinter Review |
Bug 236933 changed the SSL/weak ciphers strings to be branded strings:
> #for the next 3 lines, %1$S will be product name (e.g. Firefox), %2$S will be the www.example.com address we connect to
This leads to issues in embedding apps, where dialogs read "(null)" instead of the appname because embedding apps don't ship a branding package by default, and making embedding apps do so 1) has frozen API implications (bug 302309 comment 5) and 2) is very difficult to do properly (bug 302309 comment 18 and 23).
bmsedberg says "Unless somebody comes up with a way to do a "default branding package", which I think is a very difficult problem (and not something we can deal with on branches), we should instead avoid using branding strings from embeddable code. So the NSS issue would be a bug [...]."
Reporter | ||
Comment 1•19 years ago
|
||
I'm very aware there are evil l10n implications for changing these strings on the branch (screwing Firefox/Tbird l10n freeze), but right now the strings are nasty to embeddors (like Camino, where our security dialogs have lots of "(null)" where the appname should be in these strings), so I'm requesting 1.8.1.1 for discussion.
Flags: blocking1.9?
Flags: blocking1.8.1.1?
Comment 2•19 years ago
|
||
We're not realistically going to do this for 1.8.1.x without coordinating a lot of resources and investing a lot of time in recreating langpacks etc. It's mildly unpolished, but doesn't really break things for Camino users, IMO.
Flags: blocking1.8.1.1? → blocking1.8.1.1-
![]() |
||
Comment 3•19 years ago
|
||
I should note that if this were happening in Firefox it would be considered a stop-ship bug, given past history. So I'm not sure why you think this isn't really a problem for Camino...
Unless we're doing the usual double-standard between what MoCo ships and what other MoFo projects ship.
Comment 4•19 years ago
|
||
Two points:
If this was happening in Firefox, we wouldn't have left it until months after string freeze to bring this up, especially since the reporter was aware of this in June, based on bug 236933. It should have been nominated for blocking then, not long after we have strings frozen on the branch.
Given how rarely we encounter this error (SSL2 and/or no cipher mismatch) I wouldn't block Firefox 2.0.0.1 over this if we had the same bug. We consciously shipped Firefox 2 for Japan with these dialogs broken (see bug 357050) so I wouldn't call it stop-ship...
Comment 5•19 years ago
|
||
As mconnor said the magic word, does camino use the standard langpacks or is it using new ones?
If they're using special ones, you can hack away the branding by using
%1$.1S
which results in hiding the product name. This is what we did for Japanese for 2.0.0.1.
Comment 6•19 years ago
|
||
(In reply to comment #5)
> If they're using special ones, you can hack away the branding
Thanks, that does indeed work for Camino as a temporary fix, and I've updated bug 343837 (which tracks Camino's need to hack around this somehow until it's fixed in core) with that information.
I do want to point out that while it should have been nominated for blocking sooner, it's somewhat unfair to say that we waited for months to bring this up. Smokey commented in the bug that caused this *before it landed*, specifically saying that it broke Camino and that the conclusion reached in similar cases was that it wasn't okay for these sorts of strings to rely on branding. So it was brought up, and it's unfortunate that the knowledge that it would break embedders wasn't sufficient to prevent it from landing in that form.
![]() |
||
Comment 7•19 years ago
|
||
> we wouldn't have left it until months after string freeze to bring this up
It _was_ brought up before freeze. Possibly not to drivers (which is a problem probably having to do with it being unclear which drivers issues like this should be brought up to... the Firefox ones?), but certainly to the module owner when the patch was being reviewed. And the issue was ignored, as usual for "not the cool thing we're doing right now" projects.
Assignee | ||
Comment 8•19 years ago
|
||
The 3 strings in question all start with
(Brand) can't ...
Should we just change that to
Can't ...
?
Assignee | ||
Comment 9•19 years ago
|
||
Patch for discussion. Comments or reviews welcome.
Updated•18 years ago
|
QA Contact: psm
Updated•18 years ago
|
Flags: blocking1.9? → blocking1.9-
Whiteboard: [wanted-1.9]
Reporter | ||
Comment 10•18 years ago
|
||
Who should review this? I know then l10n freeze for 1.9 is on the horizon....
I think I'd prefer "This application can't", but Kai's "Can't" proposal is certainly workable.
Updated•18 years ago
|
Attachment #248535 -
Flags: review?(kengert)
Attachment #248535 -
Flags: review?(axel)
Assignee | ||
Comment 11•18 years ago
|
||
Comment on attachment 248535 [details] [diff] [review]
Patch v1
Benjamin, you asked me to review my own patch. Not sure if that's helpful, but r=kengert :-)
Attachment #248535 -
Flags: review?(kengert) → review+
Assignee | ||
Comment 12•18 years ago
|
||
Comment on attachment 248535 [details] [diff] [review]
Patch v1
Asking Bob for review
Attachment #248535 -
Flags: review?(rrelyea)
Comment 13•18 years ago
|
||
2 questions:
1) should the bundle strings get new names so translators know to retranslate them.
2) what about using the branded string if the brand exists an the non-branded string if it doesn't.
bob
Assignee | ||
Comment 14•18 years ago
|
||
(In reply to comment #13)
> 1) should the bundle strings get new names so translators know to retranslate
> them.
I agree, we should
> 2) what about using the branded string if the brand exists an the non-branded
> string if it doesn't.
This would require inventing a new "test whether brand string exists".
Not sure if such a test is straightforward. Will it always be "(null)"?
I think avoiding the brand string is a great simplification.
Assignee | ||
Comment 15•18 years ago
|
||
(In reply to comment #13)
> 2) what about using the branded string if the brand exists an the non-branded
> string if it doesn't.
In addition, it would require that we keep both versions of strings.
I would like to avoid that.
Assignee | ||
Comment 16•18 years ago
|
||
Well. Never mind. This bug is no longer valid.
The strings got already changed a while ago with some other bug.
The strings already read:
PSMERR_SSL_Disabled=Can't connect securely because the SSL protocol has been disabled.
PSMERR_SSL2_Disabled=Can't connect securely because the site uses an older, insecure version of the SSL protocol.
It seems we are no longer using SSL_NoMatchingCiphers, but are now using the default error strings provided by NSS.
I'm resolving this as WORKSFORME.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
Reporter | ||
Comment 17•18 years ago
|
||
Sorry, I should have checked the file before I commented in comment 10 :(
Status: RESOLVED → VERIFIED
Comment 18•18 years ago
|
||
Mind canceling the review requests, then?
Assignee | ||
Comment 19•18 years ago
|
||
Comment on attachment 248535 [details] [diff] [review]
Patch v1
canceling review requests that we don't need anymore...
Attachment #248535 -
Flags: review?(rrelyea)
Attachment #248535 -
Flags: review?(axel)
Updated•17 years ago
|
Flags: wanted1.9+
Whiteboard: [wanted-1.9]
You need to log in
before you can comment on or make changes to this bug.
Description
•