Closed Bug 1446285 Opened 6 years ago Closed 6 years ago

Recent WPTs related to worker shutdown (bug 1436784) use toSource() instead of toString()

Categories

(Core :: DOM: Workers, enhancement)

58 Branch
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: baku, Assigned: baku, NeedInfo)

Details

Attachments

(1 file)

      No description provided.
Attached patch toSource.patchSplinter Review
Attachment #8959455 - Flags: review?(bugs)
Pushed by amarchesini@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/fb42e9c14d4e
WPT should use toString() and not toSource(), r=smaug
tests fixed.
Flags: needinfo?(mek)
Created web-platform-tests PR https://github.com/w3c/web-platform-tests/pull/10070 for changes under testing/web-platform/tests
Upstream web-platform-tests status checks passed, PR will merge once commit reaches central.
https://hg.mozilla.org/mozilla-central/rev/fb42e9c14d4e
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
James, would it be possible to add some kind of linting to catch this kind of thing in the future?  If there are known gecko-isms like `toSource()`, maybe we could just double-check they don't escape to an upstream PR.
Flags: needinfo?(james)
I mean I can add a regexp; we already have one for SpecialPowers. We don't have anything as sophisticated as ESLint though.
Flags: needinfo?(james)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: