Closed
Bug 1142526
Opened 10 years ago
Closed 10 years ago
Treat the innerHTML attribute as the string value
Categories
(Firefox OS Graveyard :: Gaia::L10n, defect)
Firefox OS Graveyard
Gaia::L10n
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: stas, Assigned: stas)
References
Details
Attachments
(3 files)
When bug 994357 lands, we will be able to use HTML in regular translation values. While bug 1027117 is about removing innerHTML from .properties, we can also improve the security of existing translations by treating innerHTML attributes as the canonical value of the string.
Assignee | ||
Comment 1•10 years ago
|
||
Something like this. The patch is based on my DOM overlays branch for bug 994357. Zibi, what say you?
Comment 2•10 years ago
|
||
Comment 3•10 years ago
|
||
Comment on attachment 8576693 [details] [diff] [review]
Patch
Review of attachment 8576693 [details] [diff] [review]:
-----------------------------------------------------------------
Yeah, that sounds good. We should also file a bug to migrate all uses of innerHTML to normal value, but that's lower priority.
Would it make sense to add a deprecation notice here?
Attachment #8576693 -
Flags: feedback?(gandalf) → feedback+
Assignee | ||
Comment 4•10 years ago
|
||
Comment on attachment 8576701 [details]
[gaia] stasm:1142526-innerHTML-value > mozilla-b2g:master
https://treeherder.mozilla.org/#/jobs?repo=gaia&revision=2dd503651c08166bc0a6b5b917ff0571fde87ae6
I added the deprecation warning, too.
Attachment #8576701 -
Flags: review?(gandalf)
Updated•10 years ago
|
Attachment #8576701 -
Flags: review?(gandalf) → review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Updated•10 years ago
|
Keywords: checkin-needed
Comment 5•10 years ago
|
||
Pull request has landed in master: https://github.com/mozilla-b2g/gaia/commit/685c5c174ff9e4a9358c05050cecd276defe4b52
Updated•10 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 6•10 years ago
|
||
Comment 7•10 years ago
|
||
https://github.com/mozilla-b2g/gaia/commit/68a2f9c80cab97551a3e555cd15773a683365f68
backed out due to infra issues (I am going to reland)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 8•10 years ago
|
||
James, is there a bug tracking the infra issues we ran into after this landed?
Flags: needinfo?(jlal)
Assignee | ||
Comment 9•10 years ago
|
||
(In reply to Staś Małolepszy :stas from comment #8)
> James, is there a bug tracking the infra issues we ran into after this
> landed?
Hey James, do you have any updates about the infra problems we ran into here?
Assignee | ||
Comment 10•10 years ago
|
||
I reverted this in the l10n.js upstream repo:
https://github.com/l20n/l20n.js/commit/1309309510a8e74a884cf3ff791e66ce39e71611
Comment 11•10 years ago
|
||
Clearing NI here things should be good to land (and I believe have now)
Flags: needinfo?(jlal)
Assignee | ||
Comment 12•10 years ago
|
||
James, I meant your comment 7 in which you backed out this patch citing infra issues. Is this PR good to re-land now? I believe the problem was one of the buildbots running an old (pre-36) version of Gecko which suffers from bug 1084502.
Flags: needinfo?(jlal)
Comment 13•10 years ago
|
||
Assignee | ||
Comment 14•10 years ago
|
||
Comment on attachment 8598054 [details]
[gaia] stasm:1142526-innerHTML-value-relanding > mozilla-b2g:master
Carrying over the r+.
Attachment #8598054 -
Flags: review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Updated•10 years ago
|
Keywords: checkin-needed
Comment 15•10 years ago
|
||
Pull request has landed in master: https://github.com/mozilla-b2g/gaia/commit/e897f4d24208e5428beaeb9b5d38dda27e366d3c
Updated•10 years ago
|
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 16•10 years ago
|
||
Re-landed in l20n.js: https://github.com/l20n/l20n.js/commit/0f2411692cd6eb40a5aa42742adc51de26c0a16a
Assignee | ||
Comment 17•9 years ago
|
||
Removing the old ni? request on :lightsofapollo.
Flags: needinfo?(jlal)
You need to log in
before you can comment on or make changes to this bug.
Description
•