Enable MessagePort/MessageChannel by default

RESOLVED FIXED in Firefox 41



4 years ago
2 years ago


(Reporter: baku, Assigned: baku)


({dev-doc-complete, feature})

dev-doc-complete, feature
Dependency tree / graph
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(firefox41 fixed, relnote-firefox -)



(2 attachments, 2 obsolete attachments)

Comment hidden (empty)


4 years ago
Keywords: feature, relnote
OS: Linux → All
Hardware: x86_64 → All
Keywords: dev-doc-needed
Keywords: relnote

Comment 1

3 years ago
Created attachment 8514968 [details] [diff] [review]

We cannot land this patch until MessagePort in Workers is landed
Attachment #8514968 - Flags: review?(bugs)


3 years ago
Assignee: nobody → amarchesini
I wonder if we should have one extra cycle MessageChannel enabled in non-release, but disabled in beta/release. 
At least this shouldn't land any time close to the next merge.

So, (assuming bug 911972 gets fixed before the next merge) could we land this patch right 
_after_ the next merge, but land a patch which enables MessagePort/Channel for non-release branches by default before the merge.
Comment on attachment 8514968 [details] [diff] [review]

I think we should not yet remove the pref, but we should just
set the pref enabled by default in all.js.
Easier and safer to just set the pref false if we see regressions in aurora or beta.

And as long as we have the pref, tests should explicitly set it.
Attachment #8514968 - Flags: review?(bugs) → review-

Comment 4

3 years ago
Created attachment 8515896 [details] [diff] [review]
Attachment #8514968 - Attachment is obsolete: true
Attachment #8515896 - Flags: review?(bugs)
Comment on attachment 8515896 [details] [diff] [review]

(new patch coming)
Attachment #8515896 - Flags: review?(bugs)

Comment 6

3 years ago
Created attachment 8515914 [details] [diff] [review]
Attachment #8515896 - Attachment is obsolete: true
Attachment #8515914 - Flags: review?(bugs)
Attachment #8515914 - Flags: review?(bugs) → review+
:baku, any reason that this hasn't landed yet?
See comment 1
Comment 1 does not explain why, so: why is this still turned off by default, instead of turned on so that at least in regular JS context we can make use of MessageChannel (with the webworker implementation landing in some future update, if ever, if the progress on this is any indication)? 

We patched this in 2012, it's now 2015, we're dragging our feet to a ridiculous degree given that the code to support this functionality has already landed. Let's at least get us to "partial support" instead of "not available despite the code already being in place".


2 years ago
Blocks: 1174303

Comment 10

2 years ago

Comment 11

2 years ago
Created attachment 8622547 [details] [diff] [review]
MessageChannel exposed interface to workers
Attachment #8622547 - Flags: review?(bugs)
Attachment #8622547 - Flags: review?(bugs) → review+

Comment 12

2 years ago
Backed out because bug 911972 was backed out.
Also, test failures after this bug landed:
And https://treeherder.mozilla.org/logviewer.html#?job_id=10786236&repo=mozilla-inbound
This also had test_interfaces.html failures remaining after the follow-up from comment 12 landed. Please verify that this is green across the board on Try before attempting to push again.

Comment 17

2 years ago
Last Resolved: 2 years ago
status-firefox41: --- → fixed
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
Depends on: 1177727

Comment 19

2 years ago
For reference, I edited https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel to indicate that this is available on Firefox 41 and Firefox Mobile 41 (not sure about version number for Firefox OS).
Thanks Wladimir, I've added the info in the subpages compat table and I have update Firefox 41 for developers:
Keywords: dev-doc-needed → dev-doc-complete

Comment 21

2 years ago
Release Note Request (optional, but appreciated)
[Why is this notable]: easier/better cross-thread communication for webdevs
[Suggested wording]: Implemented HTML5 MessagePort & MessageChannel APIs
[Links (documentation, blog post, etc)]: https://developer.mozilla.org/en-US/docs/Web/API/Channel_Messaging_API & https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel
relnote-firefox: --- → ?
Added to FF41 release notes in Nucleus.
relnote-firefox: ? → 41+
Removed relnote tracking on this bug as the MessagePort and MessageChannel API has already been relnoted in bug 911972. Please let me know if these two bugs are not the same.
relnote-firefox: 41+ → -
You need to log in before you can comment on or make changes to this bug.