gecko/js/xpconnect/tests/unit
Bobby Holley 2c48de6a45 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
..
bogus_element_type.jsm
bogus_exports_type.jsm
bug451678_subscript.js
bug596580_versioned.js
CatRegistrationComponents.manifest
component_import.js Bug 716478 - update line numbers in XPCshell tests, necessary because of updating licence to MPL 2 with new, shorter boilerplate. 2012-05-21 12:13:52 +01:00
component_import.manifest
component-file.js Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
component-file.manifest
importer.jsm Bug 463122 - Propagate mozJSComponentLoader exceptions that occur while executing the script. r=mrbkap 2011-12-28 11:55:11 -05:00
recursive_importA.jsm Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
recursive_importB.jsm Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
syntax_error.jsm
test_allowedDomains.js Revert c39d36167b99 due to a horribly munged backout. 2012-06-10 19:44:50 -04:00
test_allowedDomainsXHR.js Revert c39d36167b99 due to a horribly munged backout. 2012-06-10 19:44:50 -04:00
test_attributes.js Bug 771401 - Change PRTime in IDL to signed long long. r=bholley sr=bsmedberg 2012-07-19 18:53:30 +09:00
test_bogus_files.js Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
test_bug408412.js Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
test_bug451678.js Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
test_bug596580.js
test_bug604362.js
test_bug608142.js Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
test_bug641378.js
test_bug677864.js
test_bug711404.js Bug 711404 - Part a: Correctly handle unsigned long long as PRUint64 instead of PRInt64; r=bholley 2011-12-24 09:25:54 +01:00
test_bug778409.js Bug 778409 - Enter the compartment of unwrappedProto rather than obj in Rewrap. r=gabor 2012-07-30 22:18:55 +02:00
test_bug_442086.js Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
test_components.js Bug 735280 - Part 3: Components object specific wrapper. r=bholley 2012-04-28 09:12:28 -04:00
test_file.js Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
test_import_fail.js Bug 463122 - Propagate mozJSComponentLoader exceptions that occur while executing the script. r=mrbkap 2011-12-28 11:55:11 -05:00
test_import.js Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
test_js_weak_references.js Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
test_localeCompare.js
test_nuke_sandbox.js Bug 773980 - Add Components.utils.isDeadWrapper. r=bholley 2012-07-19 12:39:43 -04:00
test_params.js Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
test_recursive_import.js Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
test_reflect_parse.js Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
test_unload.js Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
test_want_components.js Bug 747434 - Part 2: Optional Components object in sandbox. r=bholley 2012-05-22 20:21:45 -04:00
test_xpcomutils.js Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
xpcshell.ini Bug 778409 - Enter the compartment of unwrappedProto rather than obj in Rewrap. r=gabor 2012-07-30 22:18:55 +02:00