mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-29 18:18:27 +00:00
538b35a4ee
- Bug 1147951, part 2 - Remove unused JAVASCRIPT definition from nsJSEnvironment.cpp. r=baku (607909217) - Bug 1147951, part 1 - Remove uses of JAVASCRIPT2 from Console.cpp. r=baku (46cde7cfa) - pointer style (5504c22d4) - Bug 1165384 - Add a typedef for the statistics phase table; r=sfink (484a24237) - Bug 1165385 - Remove the rarely used !fullFormat mode of MOZ_GCTIMER; r=sfink (ab8b17eb1) - Bug 1165390 - Make the detailed statistics formatting methods have consistent names; r=sfink (55c5db543) - Bug 1165410 - Reimplement GC statistics JSON output formatter; r=sfink (04c13c874) - Bug 1166789 - Cleanup javascript.options.mem.log formatting; r=sfink, r=mccr8 (f23b455b4) - Bug 1171451 - Use the correct type for the argv argument to NS_CreateJSArgv and the nsJSArgArray constructor; r=jst (edfa21a59) - Bug 886459, part 1 - Remove unused includes of nsIJSRuntimeService.h. r=bholley (bbc277ac1) - Bug 886459, part 2 - Remove context callbacks from XPCJSRuntime. r=bholley (2c3c8515a) - Bug 886459, part 3 - Remove simple uses of nsIJSRuntimeService to get the JSRuntime. r=bholley (ff5bfe304) - pointer style (2ea264afd) - Bug 1169457 - Add null check in OnWrapperDestroy. r=jimm (741739513) - Bug 886459, part 4 - Remove nsIJSRuntimeService. r=bholley,aklotz (61563f53b) - Bug 1176642 - Use absolute_import in mach_commands.py files; r=glandium (a9fcb3b3f) - Bug 1176642 - Defer import of autotry and pprint; r=chmanchester (de40855cb) - Bug 1178772 - Add check_macroassembler_style.py: Verify that each MacroAssembler declaration maps to all its definitions. r=h4writer (fd406593a) - Bug 1152556 - Add moz.build bugzilla metadata in dom/media. r=kinetik (fa2ffa121) - Bug 1152556 - Add moz.build bugzilla metadata in dom/media webrtc. r=abr (d208b839a) - re-enable peerconnection (42e8c412b) - Bug 1152538 - Enable WebRTC identity, r=jesup (13a47adcb) - Bug 1231123 - Simplify LaunchApp on BSDs by dropping fork/exec version. r=jld (c35e6e36f) - bug 1171120 - Fix mtransport+signalling to build on iOS. r=ekr (7034b20ab) - Bug 1150609 Patch 1 WebRTC SDP - add tmmbr to offer. r=jesup (52ca72d09) - Bug 1150609 Patch 2 - WebRTC enable tmmbr r=jesup (d59c6adb9) - Bug 1150609 Patch 3 - WebRTC enable tmmbr unittest changes. r=jesup (eeffed826) - Bug 1087161 - Upgrading B2G toolchain to gcc-4.9 (851194ca0)
46 lines
1.6 KiB
C++
46 lines
1.6 KiB
C++
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef nsDOMJSUtils_h__
|
|
#define nsDOMJSUtils_h__
|
|
|
|
#include "nsIScriptContext.h"
|
|
#include "jsapi.h"
|
|
|
|
class nsIJSArgArray;
|
|
|
|
// seems like overkill for just this 1 function - but let's see what else
|
|
// falls out first.
|
|
inline nsIScriptContext *
|
|
GetScriptContextFromJSContext(JSContext *cx)
|
|
{
|
|
if (!(JS::ContextOptionsRef(cx).privateIsNSISupports())) {
|
|
return nullptr;
|
|
}
|
|
|
|
nsCOMPtr<nsIScriptContext> scx =
|
|
do_QueryInterface(static_cast<nsISupports *>
|
|
(::JS_GetContextPrivate(cx)));
|
|
|
|
// This will return a pointer to something that's about to be
|
|
// released, but that's ok here.
|
|
return scx;
|
|
}
|
|
|
|
JSObject* GetDefaultScopeFromJSContext(JSContext *cx);
|
|
|
|
// A factory function for turning a JS::Value argv into an nsIArray
|
|
// but also supports an effecient way of extracting the original argv.
|
|
// The resulting object will take a copy of the array, and ensure each
|
|
// element is rooted.
|
|
// Optionally, aArgv may be nullptr, in which case the array is allocated and
|
|
// rooted, but all items remain nullptr. This presumably means the caller
|
|
// will then QI us for nsIJSArgArray, and set our array elements.
|
|
nsresult NS_CreateJSArgv(JSContext *aContext, uint32_t aArgc,
|
|
const JS::Value* aArgv, nsIJSArgArray **aArray);
|
|
|
|
#endif // nsDOMJSUtils_h__
|