Skip to content
Snippets Groups Projects
  1. May 19, 2012
  2. May 18, 2012
  3. May 05, 2012
  4. May 02, 2012
  5. Apr 28, 2012
  6. May 11, 2012
  7. Apr 25, 2012
  8. Apr 26, 2012
  9. Apr 14, 2012
  10. May 11, 2012
  11. Apr 05, 2012
  12. Apr 16, 2012
  13. Mar 31, 2012
    • Peter Van der Beken's avatar
      Fix for bug 740069 (Generate JS bindings in C++ with a python script for DOM... · ed510d35
      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
      ed510d35
  14. Mar 14, 2012
    • Gavin Sharp's avatar
      Bug 732413: make DISALLOW_INHERIT_PRINCIPAL flag passed to checkLoadURI... · 0dfb0173
      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
      0dfb0173
  15. Mar 09, 2012
    • Igor Bukanov's avatar
      bug 728250 - remove JSPrincipals::codebase. r=:luke,:bz · 524dbd7e
      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.
      524dbd7e
  16. Mar 05, 2012
  17. Feb 23, 2012
  18. Mar 12, 2012
  19. Feb 20, 2012
    • Igor Bukanov's avatar
      bug 737624 - memory-only encoding/decoding of scripts and functions. r=:luke · fba835a2
      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
      fba835a2
  20. Mar 24, 2012
  21. Feb 20, 2012
    • Igor Bukanov's avatar
      bug 737624 - memory-only encoding/decoding of scripts and functions. r=:luke · 63cd1dc8
      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
      63cd1dc8
  22. Mar 24, 2012
  23. Feb 20, 2012
    • Igor Bukanov's avatar
      bug 737624 - memory-only encoding/decoding of scripts and functions. r=:luke · 5a94b9c4
      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
      5a94b9c4
    • Nicholas Nethercote's avatar
      Bug 682431 (part 2) - Add memory reporters for URIs and Links. r=biesi,bz,jlebar. · 3b808f9c
      Nicholas Nethercote authored
      --HG--
      extra : rebase_source : db4f094a7d334914b986bb66f5bf1089aafda561
      3b808f9c
  24. Mar 04, 2012
  25. Feb 13, 2012
    • Igor Bukanov's avatar
      bug 730221 - delegating serialization of script principals to the embedding. r=:luke,:bz · c8154dcd
      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.
      c8154dcd
  26. Feb 04, 2012
    • Igor Bukanov's avatar
    • Panagiotis Koutsourakis's avatar
      Bug 702388 - Convert Makefiles to use |TEST_DIRS += foo| r=khuey · 9c7dfb97
      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.
      9c7dfb97
Loading