Closed Bug 1534677 Opened 5 years ago Closed 5 years ago

Verify "lang" values in ManifestProcessor.jsm

Categories

(Core :: DOM: Core & HTML, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: snorp, Assigned: marcosc)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The following comment appears:

  // TODO: Check if tag is structurally valid.
  //       Cannot do this because we don't support Intl API on Android.
  //       https://bugzilla.mozilla.org/show_bug.cgi?id=864843
  //       https://github.com/tc39/ecma402/issues/5

We have the Intl API available now, so we should be able to do something here.

Hi Marcos, feel free to let me know if we should have higher priority. Thanks!

Priority: -- → P3
Blocks: webmanifest

p3 is fine. Will try to start on this soon.

Component: DOM → DOM: Core & HTML

Implement language tag validation and canonicalization for lang member

Pushed by mcaceres@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c0394b2d9173
Verify lang member in ManifestProcessor.jsm r=snorp

Backed out for m-e10s failures on test_ManifestProcessor_lang.html

Push with failures: https://treeherder.mozilla.org/#/jobs?repo=autoland&resultStatus=testfailed%2Cbusted%2Cexception&revision=c0394b2d91732e702df13ac4c9f4180a8e06e80e&searchStr=m-e10s&selectedJob=238988632

Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=238988632&repo=autoland&lineNumber=8072

Backout link: https://hg.mozilla.org/integration/autoland/rev/0523ad54267a92d45bcee3986d09b3cdb5954504

[task 2019-04-09T05:48:26.328Z] 05:48:26 INFO - TEST-PASS | dom/manifest/test/test_ManifestProcessor_lang.html | Expect non-string to be undefined.
[task 2019-04-09T05:48:26.329Z] 05:48:26 INFO - TEST-PASS | dom/manifest/test/test_ManifestProcessor_lang.html | Expect non-string to be undefined.
[task 2019-04-09T05:48:26.331Z] 05:48:26 INFO - Buffered messages finished
[task 2019-04-09T05:48:26.332Z] 05:48:26 INFO - TEST-UNEXPECTED-FAIL | dom/manifest/test/test_ManifestProcessor_lang.html | Expect lang to be "aa" - got undefined, expected "aa"
[task 2019-04-09T05:48:26.332Z] 05:48:26 INFO - SimpleTest.is@SimpleTest/SimpleTest.js:320:16
[task 2019-04-09T05:48:26.334Z] 05:48:26 INFO - @dom/manifest/test/test_ManifestProcessor_lang.html:64:3
[task 2019-04-09T05:48:26.335Z] 05:48:26 INFO - Not taking screenshot here: see the one that was previously logged

Flags: needinfo?(mcaceres)

Thanks, :CosminS. Will investigate.

Flags: needinfo?(mcaceres)
Pushed by mcaceres@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9b937a1bec90
Verify lang member in ManifestProcessor.jsm r=snorp
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
Assignee: nobody → mcaceres
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: