- May 19, 2012
-
-
Brian Hackett authored
-
Brian Hackett authored
-
Brian Hackett authored
-
- May 18, 2012
-
-
Ms2ger authored
-
- May 05, 2012
-
-
Ms2ger authored
-
- May 02, 2012
-
-
Bobby Holley authored
-
Bobby Holley authored
-
Bobby Holley authored
This will break addons using enablePrivilege, but that's going away too. We've been warning for many releases now, so it's time to bite the bullet.
-
Bobby Holley authored
-
- Apr 28, 2012
-
-
Gabor Krizsanits authored
-
- May 11, 2012
-
-
Tom Schuster authored
-
- Apr 25, 2012
-
-
Ryan VanderMeulen authored
-
Gabor Krizsanits authored
-
- Apr 26, 2012
-
-
Ryan VanderMeulen authored
-
Gabor Krizsanits authored
-
- Apr 14, 2012
- May 11, 2012
-
-
Ed Morley authored
-
Tom Schuster authored
--HG-- extra : rebase_source : edf2077f8b8bad1970eab6ebe9996e761d4e596c
-
- Apr 05, 2012
-
-
Bobby Holley authored
-
- Apr 16, 2012
-
-
David Anderson authored
--HG-- extra : rebase_source : 003a5285b549845d47c9298606d737620db5bb3d
-
- Mar 31, 2012
-
-
Peter Van der Beken authored
Fix for bug 740069 (Generate JS bindings in C++ with a python script for DOM objects on the main thread and in workers. Infrastructure and new bindings for XMLHttpRequest). Patch by bent/bz/bholley/jst/khuey/peterv, r=bent/bz/bholley/jlebar/khuey/peterv/sicking/smaug. --HG-- rename : js/xpconnect/tests/mochitest/test_bug462428.html => dom/bindings/test/test_lookupGetter.html
-
- Mar 14, 2012
-
-
Gavin Sharp authored
Bug 732413: make DISALLOW_INHERIT_PRINCIPAL flag passed to checkLoadURI effective even when the source principal is the system principal, r=bz --HG-- rename : caps/tests/mochitest/test_bug470804.html => caps/tests/mochitest/test_disallowInheritPrincipal.html extra : transplant_source : %CD%A3%DD%8Aa%DC%1F%BE%F8%0DB%BE%86%3FQ%D8%95%88%9E%CA
-
- Mar 09, 2012
-
-
Igor Bukanov authored
In just 2 cases where JSPrincipals::codebase is used it can be reconstructed from the values stored in the associated nsJSPrincipal. In addition the patch makes nsJSprincipals to inherit both from nsIPrincipal and JSPrincipals allowing to use static_cast to convert between nsIPrincipal and JSPrincipals pointers and to drop many cases of manual JSPrincipal reference counting.
-
- Mar 05, 2012
-
-
Ed Morley authored
-
- Feb 23, 2012
-
-
Honza Bambas authored
-
Honza Bambas authored
-
- Mar 12, 2012
-
-
Justin Lebar authored
--HG-- extra : rebase_source : 6fa267a89878cc1a766d8618569debcea9b12e48
-
- Feb 20, 2012
-
-
Igor Bukanov authored
The patch shrinks the API presented in jsxdrapi.h down to 4 functions to encode/decode scripts and interpreted functions to/from the memory. The newly introduced implementation header vm/Xdr.h replaces the former JSXDRState with the template class XDRState parametrized by the enum type with two constants, XDR_ENCODE and XDR_DECODE. This way a compiler can fully eliminate the former runtime checks for the decoding/encoding mode. As a drawback this required to explicitly instantiate the xdr implementation as I do not want to put all the xdr code to header files. The memory-only XDR allows to avoid coping filename and to-be-atomized chars to a temporary buffer as the code can just access the buffer directly. Another change is that new XDRScript takes as a parameter its parent script. This allowed to avoid keeping filename in XDRState and simplify the filename management. Another change is the removal of JS_HAS_HDR. As CloneScript uses XDR to copy a script, JS_HAS_XDR cannot be disabled. --HG-- rename : js/src/jsxdrapi.cpp => js/src/vm/Xdr.cpp extra : rebase_source : f8f1536a86b7c3fe7296a16b6677bd21664af98a
-
- Mar 24, 2012
-
-
Dão Gottwald authored
-
- Feb 20, 2012
-
-
Igor Bukanov authored
The patch shrinks the API presented in jsxdrapi.h down to 4 functions to encode/decode scripts and interpreted functions to/from the memory. The newly introduced implementation header vm/Xdr.h replaces the former JSXDRState with the template class XDRState parametrized by the enum type with two constants, XDR_ENCODE and XDR_DECODE. This way a compiler can fully eliminate the former runtime checks for the decoding/encoding mode. As a drawback this required to explicitly instantiate the xdr implementation as I do not want to put all the xdr code to header files. The memory-only XDR allows to avoid coping filename and to-be-atomized chars to a temporary buffer as the code can just access the buffer directly. Another change is that new XDRScript takes as a parameter its parent script. This allowed to avoid keeping filename in XDRState and simplify the filename management. Another change is the removal of JS_HAS_HDR. As CloneScript uses XDR to copy a script, JS_HAS_XDR cannot be disabled. --HG-- rename : js/src/jsxdrapi.cpp => js/src/vm/Xdr.cpp
-
- Mar 24, 2012
-
-
Ms2ger authored
-
- Feb 20, 2012
-
-
Igor Bukanov authored
The patch shrinks the API presented in jsxdrapi.h down to 4 functions to encode/decode scripts and interpreted functions to/from the memory. The newly introduced implementation header vm/Xdr.h replaces the former JSXDRState with the template class XDRState parametrized by the enum type with two constants, XDR_ENCODE and XDR_DECODE. This way a compiler can fully eliminate the former runtime checks for the decoding/encoding mode. As a drawback this required to explicitly instantiate the xdr implementation as I do not want to put all the xdr code to header files. The memory-only XDR allows to avoid coping filename and to-be-atomized chars to a temporary buffer as the code can just access the buffer directly. Another change is that new XDRScript takes as a parameter its parent script. This allowed to avoid keeping filename in XDRState and simplify the filename management. Another change is the removal of JS_HAS_HDR. As CloneScript uses XDR to copy a script, JS_HAS_XDR cannot be disabled. --HG-- rename : js/src/jsxdrapi.cpp => js/src/vm/Xdr.cpp
-
Nicholas Nethercote authored
--HG-- extra : rebase_source : db4f094a7d334914b986bb66f5bf1089aafda561
-
- Mar 04, 2012
-
-
Justin Lebar authored
-
Justin Lebar authored
-
Justin Lebar authored
-
- Feb 13, 2012
-
-
Igor Bukanov authored
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.
-
- Feb 04, 2012
-
-
Igor Bukanov authored
-
Panagiotis Koutsourakis authored
Files named Makefile.in containing the expression DIRS += <foo> or DIRS = <foo> inside the conditional expression ifdef ENABLE_TESTS ... endif are changed to TEST_DIRS += tests outside any conditional expression. The files ./layout/Makefile.in ./layout/Makefile.in ./layout/style/Makefile.in ./rdf/Makefile.in ./security/manager/Makefile.in ./content/Makefile.in ./content/smil/Makefile.in ./content/xul/templates/Makefile.in ./content/xul/content/Makefile.in ./content/base/Makefile.in ./content/media/Makefile.in ./parser/htmlparser/Makefile.in ./dom/sms/Makefile.in ./js/jsd/Makefile.in ./js/xpconnect/Makefile.in ./widget/Makefile.in ./widget/windows/Makefile.in ./Makefile.in ./startupcache/Makefile.in ./storage/Makefile.in ./gfx/Makefile.in ./intl/strres/Makefile.in ./intl/uconv/Makefile.in ./intl/unicharutil/Makefile.in ./intl/lwbrk/Makefile.in ./embedding/Makefile.in ./modules/libjar/Makefile.in ./modules/libpref/Makefile.in ./build/Makefile.in ./build/win32/Makefile.in ./xpcom/Makefile.in ./extensions/spellcheck/hunspell/Makefile.in ./extensions/cookie/Makefile.in ./netwerk/Makefile.in ./netwerk/streamconv/Makefile.in ./editor/txmgr/Makefile.in ./toolkit/mozapps/shared/Makefile.in ./toolkit/mozapps/update/Makefile.in ./toolkit/library/Makefile.in ./toolkit/library/Makefile.in ./toolkit/crashreporter/Makefile.in ./toolkit/components/perf/Makefile.in ./toolkit/components/perf/Makefile.in ./toolkit/components/feeds/Makefile.in ./toolkit/components/url-classifier/Makefile.in contain the string ifdef ENABLE_TESTS but have some other statement inside (e.g. TOOL_DIRS += <foo> etc) and they remain unchanged by this patch.
-