mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 03:32:37 +00:00
LoadExtension - Add additional comments about loading crx files
They must be unzipped first.
This commit is contained in:
@@ -270,9 +270,14 @@ namespace CefSharp
|
||||
/// <param name="manifestJson">If extension resources will be provided by the client then rootDirectory should be a path component unique to the extension
|
||||
/// and manifestJson should contain the contents that would otherwise be read from the manifest.json file on disk</param>
|
||||
/// <param name="handler">handle events related to browser extensions</param>
|
||||
/// <remarks>For extensions that load a popup you are required to query the Manifest, build a Url in the format
|
||||
/// <remarks>
|
||||
/// For extensions that load a popup you are required to query the Manifest, build a Url in the format
|
||||
/// chrome-extension://{extension.Identifier}/{default_popup} with default_popup url coming from the mainfest. With the extension
|
||||
/// url you then need to open a new Form/Window/Tab and create a new ChromiumWebBrowser instance to host the extension popup</remarks>
|
||||
/// url you then need to open a new Form/Window/Tab and create a new ChromiumWebBrowser instance to host the extension popup.
|
||||
/// To load a crx file you must first unzip them to a folder and pass the path containing the extension as <paramref name="rootDirectory"/>.
|
||||
/// It in theory should be possible to load a crx file in memory, passing it's manifest.json file content as <paramref name="manifestJson"/>
|
||||
/// then fulfilling the resource rquests made to <see cref="IExtensionHandler.GetExtensionResource(IExtension, IBrowser, string, IGetExtensionResourceCallback)"/>.
|
||||
/// </remarks>
|
||||
void LoadExtension(string rootDirectory, string manifestJson, IExtensionHandler handler);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CefSharp
|
||||
public static class RequestContextExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Load an extension from the given directory.
|
||||
/// Load an extension from the given directory. To load a crx file you must unzip it first.
|
||||
/// For further details see <seealso cref="IRequestContext.LoadExtension(string, string, IExtensionHandler)"/>
|
||||
/// </summary>
|
||||
/// <param name="requestContext">request context</param>
|
||||
@@ -23,7 +23,7 @@ namespace CefSharp
|
||||
/// <summary>
|
||||
/// Load extension(s) from the given directory. This methods obtains all the sub directories of <paramref name="rootDirectory"/>
|
||||
/// and calls <see cref="IRequestContext.LoadExtension(string, string, IExtensionHandler)"/> if manifest.json
|
||||
/// is found in the sub folder.
|
||||
/// is found in the sub folder. To load crx file(s) you must unzip them first.
|
||||
/// For further details see <seealso cref="IRequestContext.LoadExtension(string, string, IExtensionHandler)"/>
|
||||
/// </summary>
|
||||
/// <param name="requestContext">request context</param>
|
||||
|
||||
Reference in New Issue
Block a user