*/
[
+ WillBeGarbageCollected,
NoInterfaceObject
] interface InjectedScriptHost {
- void clearConsoleMessages();
+ [NotEnumerable, Unforgeable] void clearConsoleMessages();
- [Custom] void inspect(any objectId, any hints);
- [Custom] any inspectedObject(long num);
- [Custom] any internalConstructorName(any obj);
- [Custom] boolean isHTMLAllCollection(any obj);
- [Custom] DOMString type(any obj);
- [Custom] any functionDetails(any obj);
- [Custom] Array getInternalProperties(any obj);
- [Custom] Array getEventListeners(EventTarget target);
- [Custom] any evaluate(DOMString text);
- [Custom] DOMString databaseId(any database);
- [Custom] DOMString storageId(any storage);
- [Custom] void debugFunction(any fn);
- [Custom] void undebugFunction(any fn);
- [Custom] void monitorFunction(any fn);
- [Custom] void unmonitorFunction(any fn);
+ [NotEnumerable, Unforgeable, Custom] void inspect(any objectId, object hints);
+ [NotEnumerable, Unforgeable, Custom] any inspectedObject(long num);
+ [NotEnumerable, Unforgeable, Custom] DOMString internalConstructorName(any obj);
+ [NotEnumerable, Unforgeable, Custom] boolean isHTMLAllCollection(any obj);
+ [NotEnumerable, Unforgeable, Custom] DOMString subtype(any obj);
+ [NotEnumerable, Unforgeable, Custom] any functionDetails(Function obj);
+ [NotEnumerable, Unforgeable, Custom] any[]? collectionEntries(object obj);
+ [NotEnumerable, Unforgeable, Custom] any[] getInternalProperties(any obj);
+ [NotEnumerable, Unforgeable, Custom] any[] getEventListeners(EventTarget target);
+ [NotEnumerable, Unforgeable, Custom] any eval(DOMString text);
+ [NotEnumerable, Unforgeable, Custom] any evaluateWithExceptionDetails(DOMString text);
+ [NotEnumerable, Unforgeable, Custom] void debugFunction(any fn);
+ [NotEnumerable, Unforgeable, Custom] void undebugFunction(any fn);
+ [NotEnumerable, Unforgeable, Custom] void monitorFunction(any fn);
+ [NotEnumerable, Unforgeable, Custom] void unmonitorFunction(any fn);
+ [NotEnumerable, Unforgeable, Custom] any callFunction(Function fn, any receiver, optional any[] argv);
+ [NotEnumerable, Unforgeable, Custom] any suppressWarningsAndCallFunction(Function fn, any receiver, optional any[] argv);
+ [NotEnumerable, Unforgeable, Custom] void setNonEnumProperty(object obj, DOMString key, any value);
// Only declarative scope (local, with and catch) is accepted. Returns undefined.
- [Custom] any setFunctionVariableValue(any functionObject, int scopeIndex, DOMString variableName, any newValue);
+ [NotEnumerable, Unforgeable, Custom] any setFunctionVariableValue(Function functionObject, long scopeIndex, DOMString variableName, any newValue);
};