Closed
Bug 1222562
Opened 10 years ago
Closed 10 years ago
Fix dom/workers/test/test_xhr_parameters.html and test_tcpsocket_enabled_with_perm.html to work with e10s
Categories
(Core :: DOM: Workers, defect)
Core
DOM: Workers
Tracking
()
RESOLVED
FIXED
mozilla45
People
(Reporter: mccr8, Assigned: mccr8)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
4.20 KB,
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
4.61 KB,
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
819 bytes,
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
It uses SpecialPowers.addPermission() instead of SpecialPowers.pushPermissions().
Assignee | ||
Comment 1•10 years ago
|
||
test_tcpsocket_enabled_with_perm.html has the same problem, and they are both simple fixes.
Summary: Fix dom/workers/test/test_xhr_parameters.html to work with e10s → Fix dom/workers/test/test_xhr_parameters.html and test_tcpsocket_enabled_with_perm.html to work with e10s
Updated•10 years ago
|
Blocks: e10s-tests
tracking-e10s:
--- → +
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8685467 -
Flags: review?(mrbkap)
Assignee | ||
Comment 3•10 years ago
|
||
Attachment #8685468 -
Flags: review?(mrbkap)
Assignee | ||
Comment 4•10 years ago
|
||
This test passes with e10s. The other two do not.
Attachment #8685469 -
Flags: review?(mrbkap)
Comment 5•10 years ago
|
||
Comment on attachment 8685467 [details] [diff] [review]
part 1 - Fix use of addPermission in test_tcpsocket_enabled_with_perm.html and test_xhr_parameters.html.
Review of attachment 8685467 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/network/tests/test_tcpsocket_enabled_with_perm.html
@@ +17,5 @@
> the tcp-socket permission has been granted.
> **/
> SimpleTest.waitForExplicitFinish();
> +SpecialPowers.pushPrefEnv({"set": [['dom.mozTCPSocket.enabled', true]]}, function() {
> + SpecialPowers.pushPermissions([{type: "tcp-socket", allow: true, context: document}], runTest); });
Nit: I'd indent this as:
SpecialPowers.pushprefEnv(..., function() {
SpecialPowers.pushPermissions(...);
});
Attachment #8685467 -
Flags: review?(mrbkap) → review+
Updated•10 years ago
|
Attachment #8685468 -
Flags: review?(mrbkap) → review+
Updated•10 years ago
|
Attachment #8685469 -
Flags: review?(mrbkap) → review+
Assignee | ||
Comment 6•10 years ago
|
||
(In reply to Blake Kaplan (:mrbkap) (please use needinfo!) from comment #5)
> Nit: I'd indent this as:
Oh yeah, that's less weird. Fixed.
Comment 8•10 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/0a2ab9e74af2
https://hg.mozilla.org/mozilla-central/rev/4796c2145d33
https://hg.mozilla.org/mozilla-central/rev/e915959648c4
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
You need to log in
before you can comment on or make changes to this bug.
Description
•