mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-29 18:18:27 +00:00
66045acec8
- Bug 1234012 - Do not try to copy files from the non-existing default profile. r=bsmedberg (d30314c902) - Bug 1192831 - Remove PlayPreview API. r=jet, r=peterv (bb33dc609d) - Bug 1098064 part B - remove nsIPluginHost.isPluginOOP, r=jimm (39643555da) - Bug 1239913 - Convert toolkit/ to use asyncOpen2 where loadingPrincipal is SystemPrincipal (r=sicking) (b7d663d0e6) - minor (ac122dbb68) - Bug 1216972 - OS.File AsyncShutdown for content processes. r=froydnj (53550f1050) - Bug 1204834 - OS.File.writeAtomic should have the path argument in its closure. r=yoric (8dcf508961) - Bug 1201904 - Add test for force windowless mode. r=aklotz (ae4e591342) - Bug 1131368 - test plugin.allowed_types pref; r=josh (6a61ae8592) - Bug 1129040 - Query the chrome process blocklist service prior to instantiating plugins in the content process. r=billm (398664884f) - Bug 1225293 - Add Microsoft Silverlight to Win64 Plugin Whitelist; r=bsmedberg (eeecf59efc) - Bug 1165981 - Mochitests and test plugin for Win64 plugin disabling; r=bsmedberg (82211ff568) - Bug 1213710 part 1 - Convert all html/xul files in dom/plugins/test/mochitest to unix format. r=bsmedberg (8f89d2ac1d) - Bug 1213710 part 2 - Rename dom/plugins/test/mochitest/utils.js to plugin-utils.js. r=bsmedberg (e74d035ffc) - Bug 1225293 - Mochitests for Win64 Silverlight Whitelisting; r=bsmedberg (079ed3a442) - minor bits left out (5fa7b83b68) - Bug 1214516 - Sync check PBackgroundChild existence to initiate indexed DB open/delete request right away if it exists. r=khuey (8a2c5c7f8f) - Bug 1200004 - Fix IDB permission handling around navigated windows. r=baku (cea1d31ed9) - Bug 1239751 - FieldInfoHash does not need a post barrier; r=jonco (70b443bc23) - Bug 891107 - Part 5: Show function name in this and callee type error messages in js-ctypes. r=jorendorff (4358085f8f) - Bug 891107 - Part 6: Show information about range and value in array index error messages in js-ctypes. r=jorendorff (dfa926dc95) - Bug 891107 - Part 7: Show information about value, type, function, and argument number in function related error messages in js-ctypes. r=jorendorff (4b71ee5304) - Bug 891107 - Part 8: Show information about field name and type in struct field related error messages in js-ctypes. r=jorendorff (3a128382a6) - Bug 891107 - Part 9: Report construction error as TypeError in js-ctypes. r=jorendorff (4199e59c7b) - Bug 891107 - Part 10: Show information about value in pointer related error messages in js-ctypes. r=jorendorff (ad7e5fe53d) - Bug 891107 - Part 11: Show information about type in cast error messages in js-ctypes. r=jorendorff (74fe412bb9) - Bug 1243918 - Don't clobber safeseh in msvcc.sh -clang-cl; r=glandium (f014a945c9) - default to -O3 again (0d9261962c) - Bug 1239369 - Restore oomTests's check that an exception is thrown on failure, except where it isn't r=terrence (9f00c22106) - Bug 1203595 - move tests into manual-tests. r=waldo (444b7c10aa) - Bug 1079844 - Rename the shell builtin 'neuter' function to 'detachArrayBuffer', consistent with the spec name for the operation. r=till (48cfe8ff3a) - Bug 1234428 - findPath wrap cross-compartment objects. r=jonco (2ca70c86b0) - minor (c32fe44e31) - Add a semicolon to avoid relying on ASI in one place in String.js. No bug, r=trivial (5f005bf2af) - minor (2604e4d608) - Bug 1132630 - Prefix bound function names. r=till (3b30a82402) - Bug 1246157 - avoid memory leak when bindings->init fails. r=jcoppeard (e1f4513225) - Bug 1241116: Fix a leak in js_StartPref; r=nbp (8d258dcb05) - Bug 1238679 - Mark the Bool32x4 functions as inlinable. r=bbouvier (f0ea70894e) - Bug 992472 - Remove self-hosting macros ARRAY_PUSH and ARRAY_SLICE. r=efaust (60ae1d29a9) - missing bit of 1040390 (dea7f70cf1) - Bug 1246136: Check for dead code in assertion in EmitIfElse; r=luke (03d6f690da) - Bug 1241233 - Odin: don't report symbolicLinks memory usage twice (r=bbouvier) (f2344bc392) - Bug 1241581 - Put back null filename checks (r=bbouvier) (3c54ac7cf9) - Bug 1249787 - BaldrMonkey: Fix wasm string hex escape parsing endianness. r=luke (bf3aeb7ddb) - Bug 1229855: Fix miscompilation of uint8_t enum class with gcc4.8.2; r=luke (a86039958b) - Bug 1241454: Fix enum class storage of ExprType; r=bustage (9ee3368aed) - Bug 1248502 - Remove obsolete variants and configure flags, r=terrence (5dbcd14884)
151 lines
5.9 KiB
Plaintext
151 lines
5.9 KiB
Plaintext
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
/* 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/. */
|
|
|
|
#include "nspluginroot.idl"
|
|
#include "nsISupports.idl"
|
|
#include "nsIPluginTag.idl"
|
|
|
|
%{C++
|
|
#define MOZ_PLUGIN_HOST_CONTRACTID \
|
|
"@mozilla.org/plugin/host;1"
|
|
%}
|
|
|
|
[scriptable, uuid(f938f5ba-7093-42cd-a559-af8039d99204)]
|
|
interface nsIPluginHost : nsISupports
|
|
{
|
|
/**
|
|
* Causes the plugins directory to be searched again for new plugin
|
|
* libraries.
|
|
*/
|
|
void reloadPlugins();
|
|
|
|
void getPluginTags([optional] out unsigned long aPluginCount,
|
|
[retval, array, size_is(aPluginCount)] out nsIPluginTag aResults);
|
|
|
|
/*
|
|
* Flags for use with clearSiteData.
|
|
*
|
|
* FLAG_CLEAR_ALL: clear all data associated with a site.
|
|
* FLAG_CLEAR_CACHE: clear cached data that can be retrieved again without
|
|
* loss of functionality. To be used out of concern for
|
|
* space and not necessarily privacy.
|
|
*/
|
|
const uint32_t FLAG_CLEAR_ALL = 0;
|
|
const uint32_t FLAG_CLEAR_CACHE = 1;
|
|
|
|
/*
|
|
* For use with Get*ForType functions
|
|
*/
|
|
const uint32_t EXCLUDE_NONE = 0;
|
|
const uint32_t EXCLUDE_DISABLED = 1 << 0;
|
|
const uint32_t EXCLUDE_FAKE = 1 << 1;
|
|
|
|
/*
|
|
* Clear site data for a given plugin.
|
|
*
|
|
* @param plugin: the plugin to clear data for, such as one returned by
|
|
* nsIPluginHost.getPluginTags.
|
|
* @param domain: the domain to clear data for. If this argument is null,
|
|
* clear data for all domains. Otherwise, it must be a domain
|
|
* only (not a complete URI or IRI). The base domain for the
|
|
* given site will be determined; any data for the base domain
|
|
* or its subdomains will be cleared.
|
|
* @param flags: a flag value defined above.
|
|
* @param maxAge: the maximum age in seconds of data to clear, inclusive. If
|
|
* maxAge is 0, no data is cleared; if it is -1, all data is
|
|
* cleared.
|
|
*
|
|
* @throws NS_ERROR_INVALID_ARG if the domain argument is malformed.
|
|
* @throws NS_ERROR_PLUGIN_TIME_RANGE_NOT_SUPPORTED if maxAge is a value other
|
|
* than -1 and the plugin does not support clearing by timerange in
|
|
* general or for that particular site and/or flag combination.
|
|
*/
|
|
void clearSiteData(in nsIPluginTag plugin, in AUTF8String domain,
|
|
in uint64_t flags, in int64_t maxAge);
|
|
|
|
/*
|
|
* Determine if a plugin has stored data for a given site.
|
|
*
|
|
* @param plugin: the plugin to query, such as one returned by
|
|
* nsIPluginHost.getPluginTags.
|
|
* @param domain: the domain to test. If this argument is null, test if data
|
|
* is stored for any site. The base domain for the given domain
|
|
* will be determined; if any data for the base domain or its
|
|
* subdomains is found, return true.
|
|
*/
|
|
boolean siteHasData(in nsIPluginTag plugin, in AUTF8String domain);
|
|
|
|
/**
|
|
* Get the "permission string" for the plugin. This is a string that can be
|
|
* passed to the permission manager to see whether the plugin is allowed to
|
|
* run, for example. This will typically be based on the plugin's "nice name"
|
|
* and its blocklist state.
|
|
*
|
|
* @mimeType The MIME type we're interested in.
|
|
* @excludeFlags Set of the EXCLUDE_* flags above, defaulting to EXCLUDE_NONE.
|
|
*/
|
|
ACString getPermissionStringForType(in AUTF8String mimeType,
|
|
[optional] in uint32_t excludeFlags);
|
|
|
|
/**
|
|
* Get the nsIPluginTag for this MIME type. This method works with both
|
|
* enabled and disabled/blocklisted plugins, but an enabled plugin will
|
|
* always be returned if available.
|
|
*
|
|
* A fake plugin tag, if one exists and is available, will be returned in
|
|
* preference to NPAPI plugin tags unless excluded by the excludeFlags.
|
|
*
|
|
* @mimeType The MIME type we're interested in.
|
|
* @excludeFlags Set of the EXCLUDE_* flags above, defaulting to EXCLUDE_NONE.
|
|
*
|
|
* @throws NS_ERROR_NOT_AVAILABLE if no plugin is available for this MIME
|
|
* type.
|
|
*/
|
|
nsIPluginTag getPluginTagForType(in AUTF8String mimeType,
|
|
[optional] in uint32_t excludeFlags);
|
|
|
|
/**
|
|
* Get the nsIPluginTag enabled state for this MIME type. See
|
|
* nsIPluginTag.enabledState.
|
|
*
|
|
* @mimeType The MIME type we're interested in.
|
|
* @excludeFlags Set of the EXCLUDE_* flags above, defaulting to EXCLUDE_NONE.
|
|
*/
|
|
unsigned long getStateForType(in AUTF8String mimeType,
|
|
[optional] in uint32_t excludeFlags);
|
|
|
|
/**
|
|
* Get the blocklist state for a MIME type. See nsIPluginTag.blocklistState.
|
|
*
|
|
* @mimeType The MIME type we're interested in.
|
|
* @excludeFlags Set of the EXCLUDE_* flags above, defaulting to EXCLUDE_NONE.
|
|
*/
|
|
uint32_t getBlocklistStateForType(in AUTF8String aMimeType,
|
|
[optional] in uint32_t excludeFlags);
|
|
|
|
/**
|
|
* Create a fake plugin tag, register it, and return it. The argument is a
|
|
* FakePluginTagInit dictionary. See documentation in
|
|
* FakePluginTagInit.webidl for what it should look like. Will throw
|
|
* NS_ERROR_UNEXPECTED if there is already a fake plugin registered with the
|
|
* given handler URI.
|
|
*/
|
|
[implicit_jscontext]
|
|
nsIFakePluginTag registerFakePlugin(in jsval initDictionary);
|
|
|
|
/**
|
|
* Get a reference to an existing fake plugin tag for the given MIME type, if
|
|
* any. Can return null.
|
|
*/
|
|
nsIFakePluginTag getFakePlugin(in AUTF8String mimeType);
|
|
|
|
/**
|
|
* Unregister a fake plugin. The argument can be the .handlerURI.spec of an
|
|
* existing nsIFakePluginTag, or just a known handler URI string that was
|
|
* passed in the FakePluginTagInit when registering.
|
|
*/
|
|
void unregisterFakePlugin(in AUTF8String handlerURI);
|
|
};
|