Closed Bug 1222562 Opened 9 years ago Closed 9 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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla45
Tracking Status
e10s + ---
firefox45 --- fixed

People

(Reporter: mccr8, Assigned: mccr8)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

It uses SpecialPowers.addPermission() instead of SpecialPowers.pushPermissions().
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
Blocks: e10s-tests
tracking-e10s: --- → +
Attachment #8685468 - Flags: review?(mrbkap)
This test passes with e10s. The other two do not.
Attachment #8685469 - Flags: review?(mrbkap)
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+
Attachment #8685468 - Flags: review?(mrbkap) → review+
Attachment #8685469 - Flags: review?(mrbkap) → review+
(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.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: