mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
2c48de6a45
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. |
||
---|---|---|
.. | ||
bogus_element_type.jsm | ||
bogus_exports_type.jsm | ||
bug451678_subscript.js | ||
bug596580_versioned.js | ||
CatRegistrationComponents.manifest | ||
component_import.js | ||
component_import.manifest | ||
component-file.js | ||
component-file.manifest | ||
importer.jsm | ||
recursive_importA.jsm | ||
recursive_importB.jsm | ||
syntax_error.jsm | ||
test_allowedDomains.js | ||
test_allowedDomainsXHR.js | ||
test_attributes.js | ||
test_bogus_files.js | ||
test_bug408412.js | ||
test_bug451678.js | ||
test_bug596580.js | ||
test_bug604362.js | ||
test_bug608142.js | ||
test_bug641378.js | ||
test_bug677864.js | ||
test_bug711404.js | ||
test_bug778409.js | ||
test_bug_442086.js | ||
test_components.js | ||
test_file.js | ||
test_import_fail.js | ||
test_import.js | ||
test_js_weak_references.js | ||
test_localeCompare.js | ||
test_nuke_sandbox.js | ||
test_params.js | ||
test_recursive_import.js | ||
test_reflect_parse.js | ||
test_unload.js | ||
test_want_components.js | ||
test_xpcomutils.js | ||
xpcshell.ini |