Closed
Bug 957167
Opened 11 years ago
Closed 11 years ago
MetroFX crash prompt: Allow positioning privacy policy link at arbitrary position in sentence
Categories
(Firefox for Metro Graveyard :: General, enhancement)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 29
People
(Reporter: TimAbraldes, Assigned: aryx)
References
Details
(Keywords: verifyme, Whiteboard: [mentor=tabraldes@mozilla.com][good first bug][lang=html] [feature] p=0)
Attachments
(1 file, 2 obsolete files)
4.03 KB,
patch
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #951802 +++
At the moment, the crashreporter has the following text:
<!ENTITY crashprompt.detailedMessage.thirdParagraph "We use crash reports to try to fix problems and improve our products. We handle your information as we describe in our ">
<!ENTITY crashprompt.privacyPolicyLink "&brandShortName; privacy policy">
This means the privacy policy has always to be at the end of the sentence which is problematic for localization.
Reporter | ||
Comment 1•11 years ago
|
||
We could do this by splitting the "crashprompt.detailedMessage.thirdParagraph" entity here [1] into "crashprompt.detailedMessage.thirdParagraphBeforeLink" and "crashprompt.detailedMessage.thirdParagraphAfterLink"
Then, in [2] we would replace "&crashprompt.detailedMessage.thirdParagraph;" with "&crashprompt.detailedMessage.thirdParagraphBeforeLink;" and add "&crashprompt.detailedMessage.thirdParagraphAfterLink;" after the link.
[1] https://mxr.mozilla.org/mozilla-central/source/browser/metro/locales/en-US/chrome/crashprompt.dtd?rev=b44cec692a98
[2] https://mxr.mozilla.org/mozilla-central/source/browser/metro/base/content/pages/crashprompt.xhtml?rev=b44cec692a98#103
Whiteboard: [mentor=tabraldes@mozilla.com][good first bug][lang=js]
Reporter | ||
Updated•11 years ago
|
Whiteboard: [mentor=tabraldes@mozilla.com][good first bug][lang=js] → [mentor=tabraldes@mozilla.com][good first bug][lang=html]
Updated•11 years ago
|
Whiteboard: [mentor=tabraldes@mozilla.com][good first bug][lang=html] → [mentor=tabraldes@mozilla.com][good first bug][lang=html] [feature] p=0
Assignee | ||
Comment 2•11 years ago
|
||
Assignee: nobody → archaeopteryx
Status: NEW → ASSIGNED
Attachment #8356628 -
Flags: review?(tabraldes)
Assignee | ||
Comment 3•11 years ago
|
||
Comment on attachment 8356628 [details] [diff] [review]
patch, v1
The patch in its current style would also cause trouble because inline content spans over several rows in the source code and linebreaks get converted to whitespaces. Removing the linebreaks and leading whitespaces would create a line of 223 characters. Should the content be generated by a script?
Attachment #8356628 -
Flags: review?(tabraldes)
Flags: needinfo?(tabraldes)
Reporter | ||
Comment 4•11 years ago
|
||
I don't mind removing the linebreaks and having a long line, but needinfoing Matt in case he has a better suggestion
Flags: needinfo?(tabraldes) → needinfo?(mbrubeck)
Comment 5•11 years ago
|
||
You can just break the DTD entries into multiple lines. See aboutTelemetry.dtd for examples.
Comment 6•11 years ago
|
||
In this case it's the XML content rather than the DTD where linebreaks are a problem.
I'm fine with one 223-char line here, or alternately I think you can put the whitespace into comment nodes, like:
&before;<!--
--><a>&link;</a><!--
-->&after;
Flags: needinfo?(mbrubeck)
Assignee | ||
Comment 7•11 years ago
|
||
Thanks for the suggestion, mbrubeck.
Attachment #8356628 -
Attachment is obsolete: true
Attachment #8356840 -
Flags: review?(tabraldes)
Reporter | ||
Comment 8•11 years ago
|
||
Comment on attachment 8356840 [details] [diff] [review]
patch, v2
Review of attachment 8356840 [details] [diff] [review]:
-----------------------------------------------------------------
Applied patch and verified that it works for me. Code looks good as well.
Can we have :flod take a look and make sure he likes this approach?
Attachment #8356840 -
Flags: review?(tabraldes) → review+
Reporter | ||
Updated•11 years ago
|
Flags: needinfo?(francesco.lodolo)
Comment 9•11 years ago
|
||
My only suggestion would be to add a localization comment in the .dtd explaining that those 3 strings will be used together to create a single sentence.
Flags: needinfo?(francesco.lodolo)
Reporter | ||
Comment 10•11 years ago
|
||
(In reply to Francesco Lodolo [:flod] from comment #9)
> My only suggestion would be to add a localization comment in the .dtd
> explaining that those 3 strings will be used together to create a single
> sentence.
Sounds good!
:aryx - feel free to add the comment and carry forward my r+
Assignee | ||
Comment 11•11 years ago
|
||
Attachment #8356840 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 12•11 years ago
|
||
Keywords: checkin-needed
Whiteboard: [mentor=tabraldes@mozilla.com][good first bug][lang=html] [feature] p=0 → [mentor=tabraldes@mozilla.com][good first bug][lang=html] [feature] p=0[fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [mentor=tabraldes@mozilla.com][good first bug][lang=html] [feature] p=0[fixed-in-fx-team] → [mentor=tabraldes@mozilla.com][good first bug][lang=html] [feature] p=0
Target Milestone: --- → Firefox 29
Updated•11 years ago
|
No longer blocks: metrobacklog
You need to log in
before you can comment on or make changes to this bug.
Description
•