Commit Graph

190 Commits

Author SHA1 Message Date
Ryan VanderMeulen
0271067944 Backed out 7 changesets (bug 1117242) for mochitest failures.
Backed out changeset 694f7ac58964 (bug 1117242)
Backed out changeset b3f8122dd990 (bug 1117242)
Backed out changeset 442d41779bd8 (bug 1117242)
Backed out changeset ccf6dfe1ac75 (bug 1117242)
Backed out changeset 86421767cd26 (bug 1117242)
Backed out changeset 2f996950fb2f (bug 1117242)
Backed out changeset 4414e9d0b66b (bug 1117242)

CLOSED TREE
2015-02-06 13:40:53 -05:00
Nick Fitzgerald
16213c2fc2 Bug 1117242 - Part 5: Implement xray support for SavedFrame; r=bholley 2015-02-06 09:15:01 -08:00
Tooru Fujisawa
67bc459181 Bug 1108930 - Part 6: Call WeakMap with new in xpconnect. r=mrbkap 2015-02-05 00:59:15 +09:00
Martin Thomson
dba9b7617b Bug 1116269 - Add 'crypto' to sandbox global properties, r=gabor
--HG--
extra : rebase_source : 559500a07bf8c5d7a280310a776195d85d313e57
2015-01-09 10:55:44 -08:00
Bobby Holley
85ce43607a Bug 1110546 - Allow null as the principal argument for the sandbox constructor. r=gabor 2014-12-18 12:44:42 -08:00
Gabor Krizsanits
fcfb9db7e7 Bug 1110105 - Get rid of -Promise from wantGlobalProperties. r=bholley 2014-12-15 11:34:16 +01:00
Mark Hammond
778ca88a6a Bug 287107 followup - skip test on Android on CLOSED TREE. r=me 2014-12-09 15:36:55 +11:00
Mark Hammond
8bea76cddb Bug 287107 - make Components.returnCode be the xpcom nsresult if set by js components. r=bholley 2014-12-09 13:52:08 +11:00
Brian Hackett
73d1e0f543 Bug 1091459 - Only interrupt JS execution after running long enough that the slow script dialog might need to be shown, r=bholley. 2014-11-03 10:51:22 -07:00
Bobby Holley
bd7f40a7db Bug 1081985 - Remove prototype remapping and make COWs simple. r=gabor
\o/
2014-10-20 15:52:53 +02:00
Bobby Holley
ef9b2dda4d Bug 1081990 - Tests. r=gabor 2014-10-18 11:02:10 +02:00
Bobby Holley
bbda62bcb3 Bug 1081990 - Fix up test suite. r=gabor 2014-10-18 11:02:09 +02:00
Bobby Holley
5f0331ad23 Bug 1065186 - Drop support for exposing privileged arrays to untrusted content. r=gabor 2014-10-16 14:12:37 +02:00
Bobby Holley
0e4298be68 Bug 1082450 - Tests. r=gabor 2014-10-15 15:05:10 +02:00
Bobby Holley
620f04cfb5 Bug 1082450 - Deny access to cross-origin callables on COWs. r=gabor 2014-10-15 15:05:10 +02:00
Bobby Holley
68628555ce Bug 1082450 - Deny access to accessor properties on COWs. r=gabor 2014-10-15 15:05:10 +02:00
Bobby Holley
d9ce0671b9 Bug 1082450 - Remove test for filtering setters on property descriptors. r=gabor
In the next patch, we deny access to any accessor property, so this is now
obsolete for COWs. We also do something like this for new-style XOWs, but that's
exhaustively covered in test_crossOriginObjects.html.
2014-10-15 15:05:09 +02:00
Andrea Marchesini
2ca496756f Bug 1047483 - patch 1 - Porting DOMFile/DOMBlob to WebIDL, r=bz, r=bkelly, r=bholley 2014-10-08 17:15:22 +01:00
Andrew Halberstadt
2da4ee197d Bug 1066735 - Remove root b2g and android specific xpcshell manifests, r=chmanchester 2014-10-07 18:18:28 -04:00
Ryan VanderMeulen
671d1a817e Backed out 7 changesets (bug 1047483, bug 1079301, bug 1079335) for webplatform test failures.
Backed out changeset 7d06b68c44d0 (bug 1079335)
Backed out changeset 92030169528e (bug 1079301)
Backed out changeset c09d7f95554a (bug 1047483)
Backed out changeset c199f1057d7e (bug 1047483)
Backed out changeset 18830d07884c (bug 1047483)
Backed out changeset e087289ccfbb (bug 1047483)
Backed out changeset 6238ff5d3ed0 (bug 1047483)

CLOSED TREE

--HG--
rename : content/base/public/File.h => content/base/public/nsDOMFile.h
rename : content/base/src/MultipartFileImpl.cpp => content/base/src/nsDOMBlobBuilder.cpp
rename : content/base/src/MultipartFileImpl.h => content/base/src/nsDOMBlobBuilder.h
rename : content/base/src/File.cpp => content/base/src/nsDOMFile.cpp
2014-10-07 13:16:11 -04:00
Andrea Marchesini
0e29ce2ea6 Bug 1047483 - patch 1 - Porting DOMFile/DOMBlob to WebIDL, r=bz, r=bkelly, r=bholley 2014-10-07 15:20:52 +01:00
Bobby Holley
8dde4796dc Bug 1065185 - Explicitly expose indexed properties in COW array test. r=bz 2014-10-03 10:05:50 +02:00
Ryan VanderMeulen
4e1760bcb2 Backed out 11 changesets (bug 1065185) for Gaia Python integration test failures on a CLOSED TREE.
Backed out changeset a45d02c3b4e8 (bug 1065185)
Backed out changeset bb7b8b0da990 (bug 1065185)
Backed out changeset 7672d57acbad (bug 1065185)
Backed out changeset fbdb5bead639 (bug 1065185)
Backed out changeset 54d6077015da (bug 1065185)
Backed out changeset e2528549de9d (bug 1065185)
Backed out changeset 981c0b7c897d (bug 1065185)
Backed out changeset 903fbf9bb0c7 (bug 1065185)
Backed out changeset 76e863b63dd8 (bug 1065185)
Backed out changeset 6871aff5d103 (bug 1065185)
Backed out changeset cc213ad991a8 (bug 1065185)
2014-10-01 12:33:30 -04:00
Boris Zbarsky
71aa733b4f Bug 1065185 followup: expose the indexed prop we're trying to access in this test to reopen the CLOSED TREE 2014-10-01 11:14:39 -04:00
Bobby Holley
f9a35061fa Bug 853709 - Tests. r=mrbkap 2014-10-01 13:52:43 +02:00
Shu-yu Guo
320f4e1440 Bug 1001090 - Part 5: Fix errors in tests throughout the tree. (r=robcee,gavin) 2014-09-15 16:30:47 -07:00
Bobby Holley
50853c94d0 Bug 1066846 - Explicitly verify that incoming dipper parameters are objects. r=bz 2014-09-13 19:40:10 -07:00
Bill McCloskey
416cd026a1 Bug 1042680 - Allow add-ons to assign to var-declared chrome global with compartment_per_addon (r=bholley) 2014-09-10 17:15:40 -07:00
Bobby Holley
c5fd483020 Bug 1051224 - Add an opt-out for cross-origin argument checking. r=gabor 2014-09-03 13:02:36 -07:00
Matthew Noorenberghe
1e4613dfc7 Bug 1052931 - Add URLSearchParams to GlobalProperties for import. r=bholley
--HG--
extra : rebase_source : 2ec9189dc6a1092067690b4609ef6c3701171e67
2014-08-12 18:13:35 -07:00
Bobby Holley
50b9c0b895 Bug 1042824 - Remove implicit cloning behavior in function forwarders. r=gabor 2014-07-28 11:19:25 -07:00
Bobby Holley
8bcc146804 Bug 1042824 - Do a security check on the callee in ExportFunction. r=gabor
It would be nice to enforce this in New*FunctionForwarder, but we're already
in the target compartment at that point. :-(

We don't need to worry about this at the other callsites of
New*FunctionForwarder because:
* The stuff in XPCComponents is always invoked by System Principaled code.
* The stuff in StackScopedCloneRead only gets invoked when we're already done a
  successful CheckedUnwrap inside the JS engine.
2014-07-28 11:19:24 -07:00
Mike Conley
a3b82c8ae2 Bug 1042398 - Tests. r=bholley 2014-07-23 15:20:05 -07:00
Wes Kocher
4c67cec5f7 Backed out changeset 88860bed8c96 (bug 1042398) for bustage on a CLOSED TREE 2014-07-23 13:09:54 -07:00
Mike Conley
fc443521cb Bug 1042398 - Tests. r=bholley 2014-07-23 12:36:22 -07:00
Bobby Holley
81109a2b27 Bug 742444 - Only propagate waivers between same-origin compartments. r=gabor 2014-07-22 16:14:27 -07:00
Bobby Holley
4bbb23f320 Bug 930091 - Check objects at COW membranes. r=gabor,r=msucan 2014-07-20 15:36:32 -06:00
Bobby Holley
984a293d6d Bug 1040181 - Use an opaque wrapper rather than failing in Rewrap. r=gabor 2014-07-20 10:03:58 -06:00
Bill McCloskey
8b9dfc45b5 Bug 1017323 - Add-on interposition (r=bholley) 2014-07-14 22:10:05 -07:00
Bobby Holley
6263fe053a Bug 856067 - Actually push the test. r=me CLOSED TREE 2014-07-14 10:22:51 -07:00
Bobby Holley
04ca28c389 Bug 856067 - Tests. r=me 2014-07-14 10:09:07 -07:00
Bobby Holley
65f180179d Bug 1034262 - Honor the wantXrays of both sides of the membrane when computing same-origin wrappers. r=gabor
The basic problem in the testcase is that one compartment requests same-origin
Xrays via wantXrays=true (the default for Sandboxes) while the other does not.
The current code only considers the wantXrays flag of the compartment performing
the access, so we end up in a situation where we have same-origin compartments,
but Xray in one direction and Transparent in the other.

This is a problem for crossCompartmentFunction.apply(null, [arg]). If both
globals get transparent wrappers, there's obviously no problem. And if both
globals get XrayWrappers, then the |apply| happens on the XrayWrapper of the
function in the caller's compartment. So the Array is unpacked in the caller's
compartment, and again we have no problem.

But if the caller gets Transparent and the callee gets Xrays, then we end up
invoking |apply| from the callee's side, which then gets an XrayWrapper to the
array. This XrayWrapper may do surprising things, leading to the odd situation
in the testcase.

Same-origin Xrays are kind of broken anyway, but I don't think we'll ever be
able to get rid of them. So the most sensible thing to do is probably to honor
the flag (if set) from either compartment. This patch does that.
2014-07-10 10:04:30 -07:00
Bobby Holley
7ee918bfb2 Bug 1033927 - Drop support for custom [object XrayWrapper [object ClassName]] stringification. r=peterv 2014-07-07 13:11:24 -07:00
Bobby Holley
e24f08c8e7 Bug 1032457 - Implement the |allowCallbacks| parameter to exportFunction. r=gabor 2014-07-03 11:00:54 -07:00
Bobby Holley
0c673473c1 Bug 1033920 - Handle null in XrayWrapper::setPrototypeOf. v1 r=efaust
From ac73068c4494c0df74329482e57f64ba8ec93cb4 Mon Sep 17 00:00:00 2001
2014-07-02 21:06:28 -07:00
Bobby Holley
04dd5747a4 Bug 1033253 - Null-check the result of JS_GetFunctionId. r=bz 2014-07-02 11:02:11 -07:00
Jim Blandy
4d6a633bba Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Bobby Holley
a4670be1a3 Bug 1027131 - Additional tests for wrapReflectors. r=gabor 2014-06-23 13:25:09 -07:00
Bill McCloskey
1ddea0f108 Bug 990729 - No longer store addonId in sandbox metadata (r=bholley) 2014-06-21 11:54:37 -07:00
Bill McCloskey
14ad05f2a2 Bug 990729 - Tests for writeToGlobalPrototype (r=bholley) 2014-06-21 11:54:36 -07:00