Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
178 changes: 0 additions & 178 deletions dotnet/src/webdriver/Firefox/FirefoxExtension.cs

This file was deleted.

32 changes: 0 additions & 32 deletions dotnet/src/webdriver/Firefox/FirefoxProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ public class FirefoxProfile
private readonly string? sourceProfileDir;
private readonly bool deleteSource;
private readonly Preferences profilePreferences;
#pragma warning disable CS0618 // Type or member is obsolete
private readonly Dictionary<string, FirefoxExtension> extensions = new Dictionary<string, FirefoxExtension>();
#pragma warning restore CS0618 // Type or member is obsolete

/// <summary>
/// Initializes a new instance of the <see cref="FirefoxProfile"/> class.
Expand Down Expand Up @@ -100,21 +97,6 @@ public static FirefoxProfile FromBase64String(string base64)
return new FirefoxProfile(destinationDirectory, true);
}

/// <summary>
/// Adds a Firefox Extension to this profile
/// </summary>
/// <param name="extensionToInstall">The path to the new extension</param>
/// <exception cref="ArgumentNullException">If <paramref name="extensionToInstall"/> is <see langword="null"/>.</exception>
[Obsolete("Use FirefoxDriver.InstallAddOnFromFile instead.")]
public void AddExtension(string extensionToInstall)
{
ArgumentNullException.ThrowIfNull(extensionToInstall);

#pragma warning disable CS0618 // Type or member is obsolete
this.extensions.Add(Path.GetFileNameWithoutExtension(extensionToInstall), new FirefoxExtension(extensionToInstall));
#pragma warning restore CS0618 // Type or member is obsolete
}

/// <summary>
/// Sets a preference in the profile.
/// </summary>
Expand Down Expand Up @@ -164,7 +146,6 @@ public void WriteToDisk()
Directory.CreateDirectory(this.ProfileDirectory);
}

this.InstallExtensions(this.ProfileDirectory);
this.DeleteLockFiles(this.ProfileDirectory);
this.DeleteExtensionsCache(this.ProfileDirectory);
this.UpdateUserPreferences(this.ProfileDirectory);
Expand Down Expand Up @@ -236,19 +217,6 @@ private void DeleteLockFiles(string profileDirectory)
File.Delete(Path.Combine(profileDirectory, "parent.lock"));
}

/// <summary>
/// Installs all extensions in the profile in the directory on disk.
/// </summary>
private void InstallExtensions(string profileDirectory)
{
#pragma warning disable CS0618 // Type or member is obsolete
foreach (string extensionKey in this.extensions.Keys)
{
this.extensions[extensionKey].Install(profileDirectory);
}
#pragma warning restore CS0618 // Type or member is obsolete
}

/// <summary>
/// Deletes the cache of extensions for this profile, if the cache exists.
/// </summary>
Expand Down
69 changes: 0 additions & 69 deletions java/src/org/openqa/selenium/firefox/ClasspathExtension.java

This file was deleted.

29 changes: 0 additions & 29 deletions java/src/org/openqa/selenium/firefox/Extension.java

This file was deleted.

Loading
Loading