Kyle Huey
0469a02b25
Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon
...
--HG--
extra : rebase_source : 98337b6a8c07d05e8c961a452dd05a7d75c3c60b
2012-10-31 09:13:28 -07:00
Vicamo Yang
a78b5b38c7
Backout 67cb43bb8865: Breaks B2G Marionette
2012-10-31 16:35:11 +08:00
Bobby Holley
cfc92feb20
Bug 804630 - Tests for exposing prototype properties on a derived object. r=mrbkap
2012-10-30 18:29:11 +01:00
Kyle Huey
9a3674d80a
Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon
2012-10-30 12:28:11 -07:00
Ed Morley
4144129728
Backout a145ded68994, e0cf397089ec & 1545e91c658e (bug 798491) for bustage on a CLOSED TREE
2012-10-30 17:02:31 +00:00
Kyle Huey
50b5d3f681
Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon
2012-10-30 08:26:12 -07:00
Ryan VanderMeulen
443e3884bc
Bug 799917 - Backout for various regressions.
2012-10-28 08:49:20 -04:00
Bobby Holley
ededf3d730
Bug 801576 - Android bustage fix. r=me
2012-10-24 14:18:39 +02:00
Bobby Holley
5a6219b643
Bug 801576 - Add tests for the same-origin policy. r=mrbkap
2012-10-24 12:04:19 +02:00
Peter Van der Beken
9af14c557f
Fix for bug 801083 (Remove old proxy-based list bindings). r=bz.
2012-10-13 14:50:24 +02:00
foudfou
04435bb71f
Bug 799537 - Sort xpconnect chrome mochitests in tests/chrome. r=bholley
2012-10-19 23:16:07 +02:00
foudfou
1bf98be1e7
Bug 799537 - Move xpconnect chrome mochitests in tests/mochitest to tests/chrome. r=bholley
...
--HG--
rename : js/xpconnect/tests/mochitest/test_bug361111.xul => js/xpconnect/tests/chrome/test_bug361111.xul
rename : js/xpconnect/tests/mochitest/test_bug760131.html => js/xpconnect/tests/chrome/test_bug760131.html
2012-10-19 22:44:26 +02:00
Bobby Holley
94a49ebb50
Bug 802968 - Fix racy test behavior. r=me DONTBUILD
...
--HG--
extra : rebase_source : 631b1d7d8efc625725b9a733c8e065030ff795e1
2012-10-18 14:41:13 +02:00
Bill McCloskey
b352722f4b
Bug 798678 - Weakmap key preservation test (r=mccr8)
2012-10-17 18:22:54 -07:00
Bill McCloskey
aea3aad693
Bug 798678 - Refactor wrapper preservation for weakmaps (r=mccr8)
2012-10-08 18:22:47 -07:00
Bobby Holley
e799cc3495
Bug 801241 - Properly handle |false| return false from JS_DescribeScriptedCaller. r=bz
2012-10-17 19:44:30 +02:00
Bobby Holley
7c0ed6fd80
Bug 792280 - Only censor function.caller for non-same-origin calls. r=luke
2012-10-17 17:56:49 +02:00
Aryeh Gregor
aaf30c8f52
Bug 799917 - Make document.characterSet always lowercase; r=bz,f=hsivonen,smontagu
2012-10-14 10:13:19 +02:00
Bobby Holley
da4fce7951
Bug 799348 - When creating a new content window, create the surrounding chrome docshell as system. r=bz
2012-10-11 19:44:20 +02:00
foudfou
f9dda29b0b
Bug 793433 - Fix crash when nsAppShellService::RegisterTopLevelWindow called with invalid arguments. r=bholley
...
--HG--
extra : rebase_source : 2f3be0e474c727ea5a58177809bf3af1f34477ec
2012-10-09 11:56:58 +02:00
Bobby Holley
3e2bc99f16
Bug 761695 - Put Proxy and DOM expandos on the expando object, rather than the holder. r=peterv
2012-10-05 18:59:24 +02:00
Bobby Holley
90ddecc257
Bug 795275 - Warn about content access to |Components|. r=mrbkap
2012-10-03 11:44:18 +02:00
Bobby Holley
a25701a3f7
Bug 792036 - Automated fixups. r=mccr8
...
find /files/mozilla/build/d/_tests/testing/mochitest/tests/ | egrep "\.(xhtml|html|xml|js)$" | grep -v SimpleTest | grep -vi mochikit | grep -v simpleThread | grep -v test_ipc_messagemanager_blob.html | grep -v "indexedDB/test" | xargs grep -l Components | xargs grep -L enablePrivilege | perl -pe 's#.*mochitest/tests/##' | xargs perl -p -i.bakkk -e 's/Components\.interfaces(\s|;|\.|\[)/SpecialPowers\.Ci$1/g, s/SpecialPowers\.wrap\(Components\)\.(.)(lasses|tils|nterfaces|esults)/SpecialPowers.C$1/g, s/(?<![\.a-zA-Z])Components/SpecialPowers\.Components/g, s/window\.Components/window\.SpecialPowers\.Components/g'
2012-09-24 14:46:29 +02:00
Bobby Holley
8188b09b4e
Bug 792036 - Fix up tests to avoid relying on the existence of window.Components (MANUAL). r=mccr8
...
These are the manual fixes that the ensuing auto-generation can't deal with. Some of them
just fix up formatting (such as Components.\nFoo, so that subsequent auto-generation can
work better).
2012-09-24 14:46:28 +02:00
Bobby Holley
8fbb34e584
Bug 792036 - Fix sandbox xpcshell tests. r=gabor
...
I want gabor to look at these.
2012-09-24 14:46:28 +02:00
Gabor Krizsanits
dc6a0acf70
Bug 785096 - part2: Removing XPCCallContext dependency from XPCVariant; r=bholley
2012-09-20 15:03:28 +02:00
Eddy Bruel
3fe1c2ffd0
Bug 720619 - Attempt a puncture for the [[DefaultValue]] trap; r=bholley
2012-09-11 21:42:01 +02:00
Bobby Holley
10a2abc98b
Bug 789713 - Ignore domain when computing whether to share non-PreCreate WNs cross-compartment. r=mrbkap
2012-09-11 10:23:20 -07:00
Andrew Sutherland
ff44116160
Bug 786639 - XPCChromeObjectWrapper __exposedProps__ should expose the content of typed arrays like UInt8Array. r=bholley
2012-09-05 14:05:32 -07:00
Nicolas Chaim Echeverria
b8470437f3
Bug 726125: Certificates of signed extensions were getting validated on each startup. r=taras, sr=bzbarsky
2012-08-30 16:58:55 -04:00
Luke Wagner
992c618fdb
Bug 749371 - Break JS_ClearScope into two not-as-bad functions (r=mrbkap)
2012-08-23 11:23:28 -07:00
Gabor Krizsanits
ab543cc2ee
Bug 763897 - Incorrect behaviour of mozMatchesSelector.call through xray; r=bholley
2012-08-27 15:15:20 +02:00
Gabor Krizsanits
c1beee85b1
Bug 738244 - Supporting DOM specific collection properties through xray wrappers; r=mrbkap
2012-08-27 15:06:34 +02:00
Boris Zbarsky
052e7b0c56
Bug 753517 part 4. Set up auto-generation of CSS2Properties.webidl from nsCSSPropList.h and enable Paris bindings for CSSStyleDeclaration and CSS2Properties. r=khuey,peterv,dbaron
2012-08-23 21:08:09 -07:00
Bobby Holley
721f0624e2
Bug 780370 - Remap objects from standard prototypes even if they're explicitly exposed. r=mrbkap
2012-08-23 19:07:14 -07:00
Andrew McCreight
07f3bf083b
Bug 761620 - Throw an exception for unpreservable weak map keys. r=billm
2012-08-08 11:05:58 -07:00
Ehsan Akhgari
e368dc9c85
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Bobby Holley
4a61c7b937
Bug 784233 - Relax __exposedProps__ check for sandboxes until we can repack AMO addons. r=gal
2012-08-21 10:27:08 -07:00
Bobby Holley
a7f8bd710c
Backed out changeset 61e9eaf9aae2
...
--HG--
extra : rebase_source : 30fb2e7a057482412d29a96f8b8e98135beb6a79
2012-08-20 21:07:07 -07:00
Bobby Holley
71db56f8c9
Bug 784233 - Relax __exposedProps__ check for sandboxes until we can repack AMO addons. r=gal
2012-08-20 21:03:44 -07:00
Gabor Krizsanits
588eef842d
Bug 777705 - Default policy for expanded principals. r=mrbkap
2012-08-20 11:22:34 -07:00
Bobby Holley
9a7444669f
Bug 553102 - Make content-> access default to deny if __exposedProps__ is not defined. r=mrbkap
2012-08-17 23:14:55 -07:00
Gabor Krizsanits
3774a64503
Bug 779821 - safe XHR creation for sandboxes
2012-08-15 11:00:21 +02:00
Bobby Holley
1b5491626e
Bug 781476 - Test. r=me
2012-08-16 12:25:39 -07:00
Dave Townsend
cce6a2f627
Backing out bug 761620 due to Add-on SDK test failures.
2012-08-15 10:31:21 -07:00
Mark Capella
19d06abdb4
Bug 772272 - Remove do_load_httpd_js from xpcshell tests, Misc Folders, r=ted
...
Content, DOM, Image, JS, RDF, and URILoader folders
2012-08-14 10:06:17 -04:00
Boris Zbarsky
12779453ef
Bug 780542. Make construction via a function proxy with an object in the constructor slot actually construct instead of just calling. r=ejpbruel
2012-08-08 23:47:04 -04:00
Andrew McCreight
437a8060e9
Bug 761620 - Throw an exception for unpreservable weak map keys. r=billm
2012-08-08 11:05:58 -07:00
Mike Hommey
70d7c821af
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted
2012-08-04 20:26:44 +02:00
Bobby Holley
7a038349c8
Bug 778409 - Enter the compartment of unwrappedProto rather than obj in Rewrap. r=gabor
...
This can happen if chrome sets its proto to a content object from a different scope
than the one doing the wrapping. In this case, the prototype chain looks like this:
chromeobj => CCW(examplecom_obj) => CCW(examplecom_scope.Object.prototype)
When wrapping chromeobj for exampleorg_scope, things will look like this:
COW(chromeobj) => CCW(examplecom_obj) => CCW(examplecom_scope.Object.prototype)
Note that we don't remap the proto of CCW(examplecom_scope) to
exampleorg_scope.Object.prototype, because the proto remapping only happens when
the object we're wrapping is chrome. There's no reason it has to be this way, but
even if we changed it we still wouldn't get the nice remapped lookup behavior to
exampleorg_scope.Object.prototype, because the proxy handler for CCW(examplecom_obj)
isn't a ChromeObjectWrapper, and thus doesn't know how to to the prototype bouncing
correctly.
Anyway, I suspect this case isn't worth worrying about as long as we don't crash.
2012-07-30 22:18:55 +02:00