PolicyKit: Changes to 'mozjs52'

Ray Strode halfline at kemper.freedesktop.org
Mon Apr 2 15:46:42 UTC 2018


New branch 'mozjs52' available with the following commits:
commit 467dbe6d0a55325f28d7aea45615f07a5096a396
Author: Jeremy Linton <jeremy.linton at arm.com>
Date:   Wed Apr 12 22:26:30 2017 -0500

    test: Add a test case to handle actions without explicit rules
    
    An implicit authorization parameter is provided to
    polkit_backend_js_authority_check_authorization_sync() for actions
    without corresponding explicit rules. Assure that is honored rather
    than simply being denied.
    
    Signed-off-by: Jeremy Linton <jeremy.linton at arm.com>

commit 85c38f3630687e3957e626f762861fb30897c6ec
Author: Ray Strode <rstrode at redhat.com>
Date:   Wed Mar 28 15:28:28 2018 -0400

    jsauthority: re-enable JIT
    
    seems to work with mozjs52

commit 7a3d3b867eaf741b0ad8ab45b106e845a57cd42a
Author: Ray Strode <rstrode at redhat.com>
Date:   Fri Mar 23 15:22:59 2018 -0400

    jsauthority: switch from JS_ConvertArguments to JS::CallArgsFromVp

commit 4c74e80ac57ee6ce97727bbbff07314ece1ae0c1
Author: Ray Strode <rstrode at redhat.com>
Date:   Fri Mar 23 11:03:52 2018 -0400

    jsauthority: stop using JS_GetStringCharsZ
    
    it's not around anymore.

commit a8ba16278d9eea8bf8d43f2fd9e01dd218174a83
Author: Ray Strode <rstrode at redhat.com>
Date:   Thu Mar 22 13:00:33 2018 -0400

    jsauthority: fix up set_property methods

commit 968d95b39224b6ea2f8a05c64eb238fbbcf90fb1
Author: Ray Strode <rstrode at redhat.com>
Date:   Thu Mar 22 13:00:33 2018 -0400

    jsauthority: use JS::Evaluate instead of JS_EvaluateScript
    
    JS_EvaluateScript is no longer in the API set, so use
    JS::Evaluate instead.

commit 16ae00ba4d7de1386cfd7c08e100740612332df8
Author: Ray Strode <rstrode at redhat.com>
Date:   Fri Mar 23 10:16:17 2018 -0400

    jsauthority: adapt arguments for new JS_ExecuteScript API
    
    JS_ExecuteScript no longer takes a global argument.

commit f1ee5278fae399ef66e980d8afad89a9303bc9c6
Author: Ray Strode <rstrode at redhat.com>
Date:   Thu Mar 22 13:00:33 2018 -0400

    jsauthority: adapt arguments for new JS::Compile API
    
    The global object is implicit now and the result is an
    out arg.
    
    This commit adapts to the new api.

commit b850122c12abc4673b00f8b810f0536d078d9a20
Author: Ray Strode <rstrode at redhat.com>
Date:   Fri Mar 23 10:16:17 2018 -0400

    jsauthority: root some locals to the context

commit 2e970bedd11b27ae22fdcf6bb3994b0942f582b1
Author: Ray Strode <rstrode at redhat.com>
Date:   Thu Mar 22 13:00:33 2018 -0400

    jsauthority: redo how global objects are set up
    
    This commit drops usage of JS_AddObjectRoot and switches
    the global object over to being wrapped in a JS::Heap
    pointer. It stops using JS_DefineObject which no longer
    seems to be available, and adds a new JS::FireOnNewGlobalHook
    which seems to be required.

commit 498499f10f5e8cc52c329c46b6c18b039083cb2a
Author: Ray Strode <rstrode at redhat.com>
Date:   Thu Mar 22 13:00:33 2018 -0400

    jsauthority: use InterruptCallback api instead of OperationCallback
    
    seems like it got renamed.

commit f7241fd76eccd945ab1efe3df84fe1a53b8b2c98
Author: Ray Strode <rstrode at redhat.com>
Date:   Thu Mar 22 13:00:33 2018 -0400

    jsauthority: Fix up JS_CallFunctionName invocations
    
    The way args are passed in changed.

commit 8b2fd8cf09fe93b9f5d39469174bbb319cddc2ff
Author: Ray Strode <rstrode at redhat.com>
Date:   Fri Mar 23 10:48:44 2018 -0400

    jsauthority: JSVAL_IS_NULL (o) to o.isNull()

commit a667ac2998c77a765ae1a48b7adaf7786cfbd43a
Author: Ray Strode <rstrode at redhat.com>
Date:   Fri Mar 23 10:48:44 2018 -0400

    jsauthority: JSVAL_IS_STRING (s) to s.isString()

commit d8b9b44a711a856f88baeaa1e59e2c8ff1e88a59
Author: Ray Strode <rstrode at redhat.com>
Date:   Fri Mar 23 10:48:44 2018 -0400

    jsauthority: JSVAL_TO_STRING (s) to s.toString()

commit 72dae4cb1df1f5b655116141a3ad739a6e0db9f8
Author: Ray Strode <rstrode at redhat.com>
Date:   Thu Mar 22 13:00:33 2018 -0400

    jsauthority: JSVAL_TO_OBJECT (o) to o.toObjectOrNull()

commit 08075fbce5ec1f297f574d4b36c9a2d03ad3adb0
Author: Ray Strode <rstrode at redhat.com>
Date:   Thu Mar 22 13:00:33 2018 -0400

    jsauthority: s/BOOLEAN_TO_JSVAL/JS::BooleanValue/

commit 8a043c96a6f65d8d1221dba8711b942e14c7a376
Author: Ray Strode <rstrode at redhat.com>
Date:   Thu Mar 22 13:00:33 2018 -0400

    jsauthority: s/STRING_TO_JSVAL/JS::StringValue/

commit e4ef144dc47dbb8bad246a87ca18b5c6a4afd232
Author: Ray Strode <rstrode at redhat.com>
Date:   Thu Mar 22 13:00:33 2018 -0400

    jsauthority: s/OBJECT_TO_JSVAL/JS::ObjectValue/
    
    This commit does a global search and replace
    for OBJECT_TO_JSVAL to JS::ObjectValue()

commit 394038b2b501ebed4a743eb313b82d921c9ec798
Author: Ray Strode <rstrode at redhat.com>
Date:   Thu Mar 22 13:00:33 2018 -0400

    jsauthority: s/JSVAL_VOID/JS::UndefinedValue()/
    
    This commit does a global search and replace
    for JSVAL_VOID to JS::UndefinedValue()

commit 463d7c09c1a6a88db4c20adb5eeb207bd60873a2
Author: Ray Strode <rstrode at redhat.com>
Date:   Thu Mar 22 13:00:33 2018 -0400

    jsauthority: s/JSVAL_NULL/JS::NullValue()/
    
    This commit does a global search and replace
    for JSVAL_NULL to JS::NullValue()

commit adfa912b987d030f843305c39ecc4b60d0db6ed6
Author: Ray Strode <rstrode at redhat.com>
Date:   Thu Mar 22 13:00:33 2018 -0400

    jsauthority: s/jsval/JS::Value/
    
    The API got renamed in mozjs31.

commit 9de79e68185a6e6db567f1f9e5cf5c644c9cd11d
Author: Ray Strode <rstrode at redhat.com>
Date:   Thu Mar 22 13:00:33 2018 -0400

    jsauthority: s/JSBool/bool/
    
    It's been gone since mozjs31

commit af63d4ac2f05bf60a6d30ccee17f2fb0c7f17b56
Author: Ray Strode <rstrode at redhat.com>
Date:   Wed Mar 28 15:28:28 2018 -0400

    jsauthority: pass "%s" format string to report functions
    
    This just avoids the potential for security problems down the line.

commit b916901a54afadadd876ac2753e27933a6c69077
Author: Ray Strode <rstrode at redhat.com>
Date:   Fri Mar 23 10:48:44 2018 -0400

    jsauthority: add UTF8 suffix to renamed functions

commit 6b238724829960829f032cd1f94af5556f78884e
Author: Ray Strode <rstrode at redhat.com>
Date:   Thu Mar 22 13:00:33 2018 -0400

    jsauthority: JS::SetWarningReporter instead of JS_SetErrorReporter
    
    This commit changes the code to use JS::SetWarningReporter instead
    of JS_SetErrorReporter.  The latter, as far as I can tell, is
    just a slightly renamed version of the former with the args moved
    around a little bit.

commit ca9017061e1d0367d445c1cc5c2456695ca80a89
Author: Ray Strode <rstrode at redhat.com>
Date:   Thu Mar 22 13:00:33 2018 -0400

    jsauthority: change how JIT is disabled
    
    JS_SetOptions seems to be replaced with JS::ContextOptionsRef now.
    Also, disabling the JIT seems to be three options now instead of just
    one.

commit 6b5581b4edbc3a8202a9b01190d3ae51c7b28e5f
Author: Ray Strode <rstrode at redhat.com>
Date:   Fri Mar 23 15:22:59 2018 -0400

    jsauthority: call JS_InitSelfHostedCode
    
    This is now required

commit 5067c8305afe838cf89aa646e1b718800b94179c
Author: Ray Strode <rstrode at redhat.com>
Date:   Fri Mar 23 15:22:59 2018 -0400

    jsauthority: call JS_Init
    
    This is now required

commit 1165181a21ab82d7c57299078fe768a7b8215e4f
Author: Ray Strode <rstrode at redhat.com>
Date:   Thu Mar 22 13:00:33 2018 -0400

    jsauthority: change how setVersion is called
    
    it's now part of a behaviors method in CompartmentOptions

commit dc072ed30bf27661d65ae1883bb3ed0a67e0a966
Author: Ray Strode <rstrode at redhat.com>
Date:   Thu Mar 22 13:00:33 2018 -0400

    jsauthority: get rid of JSRuntime
    
    Seems like JSContext is the only thing that matters now.

commit f1772c3783a8b37655a2e9aeee69e130413241a7
Author: Ray Strode <rstrode at redhat.com>
Date:   Fri Mar 23 16:28:42 2018 -0400

    jsauthority: use JS_FN instead of JS_FS
    
    since it doesn't crash if i do that

commit 23b394887d4dcbfc862e6c5537daa4e0922385f8
Author: Ray Strode <rstrode at redhat.com>
Date:   Thu Mar 22 13:00:33 2018 -0400

    jsauthority: fix how classes are defined
    
    mozjs no longer has public stub functions that implementers of
    JSClass objects are supposed to use.  Instead NULL means
    to use the default stub implementations.
    
    Furthermore, the structure has been broken out into a JSClassOps
    sub structure now.
    
    This commit adapts the code to the new layout.

commit 70906d7b033fb061d1ef3ac8f13925a432cac885
Author: Ray Strode <rstrode at redhat.com>
Date:   Thu Mar 22 12:59:46 2018 -0400

    configure: bump mozjs requirement to 52
    
    This is going to briefly break the build.



More information about the hal-commit mailing list