gecko/dom
Igor Bukanov 5542df3342 bug 730221 - delegating serialization of script principals to the embedding. r=:luke,:bz
Currently to serialize principals stored in JSScript we have a rather complex
schema. First there is the transcode callback that the embedding must provide
to transcode principals using XDR API. Second we use rather complex glue code
to implement that callback in terms of writing/reading nsIObjectOutputStream/
nsIObjectInputStream. This glue code is duplicated in 3 places. All this can
be avoided if we simply delegate transcoding of principals to the caller. In
addition, at least in the case of the cached startup scripts we do not even
need to transcode the principals as the the cached scripts always have the
system principal so we can skip all the transcode complexity there.

The patch implemnts this idea. In particular, the code in JS engine
responsible for transcoding of principals is replaced by the single API
function JS_XDRSetPrincipals that the embedding can use to set principals for
decoded scripts and functions. Then the startup cache uses this to set the
principals for the decoded script to the system principals. The other two
places in nsJSContext::Serialize and  XBL_SerializeFunction that need to
serialize principals together with a function or script now uses common
utilities in nsXPConnect so the serialization complexity resides in the single
 place.
2012-02-13 14:10:04 +01:00
..
base bug 730221 - delegating serialization of script principals to the embedding. r=:luke,:bz 2012-02-13 14:10:04 +01:00
battery Bug 734057 - Make nsDOMEventTargetHelper to not have strong pointer to window, r=jst,bent 2012-03-13 02:56:07 +02:00
bluetooth Bug 729470 - Make bluedroid calls load via dlopen r=cjones 2012-03-08 15:14:06 -08:00
contacts Bug 736200 - Contacts API: Using cleaner IDs for the mozContact objects. r=fabrice 2012-03-15 14:30:19 -07:00
indexedDB bug 736978 - remove JS_FinalizeStub. r=:billm 2012-03-19 15:27:58 +01:00
interfaces Backout 7e28d1a2c648, 330b210f503d, 2421d39e0ab3, aa978ffa44bc, 38a71ae7e06d, b94319584a7a, 7e8278f5e814, 0b4e3c7608ab, 329c07609ca8, 0d61a0d8dba4, Due to Ts regression on Android 2012-03-17 21:51:39 -04:00
ipc Bug 734325 - implement compassneedscalibration event. r=jdm 2012-03-13 16:57:09 -07:00
locales Bug 736687 - Warn on use of MozBlobBuilder. r=sicking 2012-03-19 12:00:43 +01:00
network Backout 7e28d1a2c648, 330b210f503d, 2421d39e0ab3, aa978ffa44bc, 38a71ae7e06d, b94319584a7a, 7e8278f5e814, 0b4e3c7608ab, 329c07609ca8, 0d61a0d8dba4, Due to Ts regression on Android 2012-03-17 21:51:39 -04:00
plugins Bug 737120 - Allow Flash plugin instances to be cleaned up on Android without an object frame present r=blassey 2012-03-19 16:09:49 -04:00
power Bug 697132 - Use nsCOMPtr constructor. r=Ms2ger 2012-03-14 18:00:29 -04:00
sms Bug 733268 - B2G SMS DB: fix deleteMessage behaviour. r=philikon 2012-03-16 16:38:50 -07:00
src Bug 735017: Clean up namespaces and naming for gonk dom objects in gonk specific code - Patch 1: Change dom/system/b2g to dom/system/gonk; r=philikon 2012-03-14 15:42:31 -07:00
system Bug 736087 - Remove the ns prefix from the WifiWorker component. r=philikon DONTBUILD 2012-03-16 18:05:28 +01:00
telephony Bug 736258 - WebTelephony: rename ringing event to alerting. r=philikon 2012-03-16 11:13:42 +08:00
tests Bug 728103 part.2 Fix new test failures r=smaug 2012-03-16 15:29:15 +09:00
wifi Bug 736087 - Remove the ns prefix from the WifiWorker component. r=philikon DONTBUILD 2012-03-16 18:05:28 +01:00
workers bug 736978 - remove JS_FinalizeStub. r=:billm 2012-03-19 15:27:58 +01:00
dom-config.mk Bug 735017: Clean up namespaces and naming for gonk dom objects in gonk specific code - Patch 1: Change dom/system/b2g to dom/system/gonk; r=philikon 2012-03-14 15:42:31 -07:00
Makefile.in Bug 697006 - Add desktop support for the Open Web Apps API - Part 1 : enable mozApps on desktop [r=gavin] 2012-03-12 17:33:10 -07:00