michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: [scriptable, uuid(75767928-ecb1-4e6c-9f55-c118b297fcef)] michael@0: interface xpcIJSWeakReference : nsISupports michael@0: { michael@0: /** michael@0: * To be called from JS only. michael@0: * michael@0: * Returns the referenced JS object or null if the JS object has michael@0: * been garbage collected. michael@0: */ michael@0: [implicit_jscontext] jsval get(); michael@0: };