@@ -239,15 +239,15 @@ private void init(final WebWindow webWindow, final Page page, final Context cont
239
239
240
240
configureConstantsPropertiesAndFunctions (windowConfig , window );
241
241
242
- final HtmlUnitScriptable windowPrototype = configureClass (windowConfig , window , browserVersion );
242
+ final HtmlUnitScriptable windowPrototype = configureClass (windowConfig , window );
243
243
window .setPrototype (windowPrototype );
244
244
prototypes .put (windowConfig .getHostClass (), windowPrototype );
245
245
prototypesPerJSName .put (windowConfig .getClassName (), windowPrototype );
246
246
247
247
// setup the prototypes
248
248
for (final ClassConfiguration config : jsConfig_ .getAll ()) {
249
249
if (windowConfig != config ) {
250
- final HtmlUnitScriptable prototype = configureClass (config , window , browserVersion );
250
+ final HtmlUnitScriptable prototype = configureClass (config , window );
251
251
if (config .isJsObject ()) {
252
252
// Place object with prototype property in Window scope
253
253
final HtmlUnitScriptable obj = config .getHostClass ().getDeclaredConstructor ().newInstance ();
@@ -520,7 +520,6 @@ private static void removePrototypeProperties(final Scriptable scope, final Stri
520
520
* Configures the specified class for access via JavaScript.
521
521
* @param config the configuration settings for the class to be configured
522
522
* @param window the scope within which to configure the class
523
- * @param browserVersion the browser version
524
523
* @throws InstantiationException if the new class cannot be instantiated
525
524
* @throws IllegalAccessException if we don't have access to create the new instance
526
525
* @return the created prototype
@@ -529,8 +528,7 @@ private static void removePrototypeProperties(final Scriptable scope, final Stri
529
528
* @throws InvocationTargetException
530
529
* @throws IllegalArgumentException
531
530
*/
532
- public static HtmlUnitScriptable configureClass (final ClassConfiguration config , final Scriptable window ,
533
- final BrowserVersion browserVersion )
531
+ public static HtmlUnitScriptable configureClass (final ClassConfiguration config , final Scriptable window )
534
532
throws InstantiationException , IllegalAccessException , IllegalArgumentException , InvocationTargetException , NoSuchMethodException , SecurityException {
535
533
536
534
final HtmlUnitScriptable prototype = config .getHostClass ().getDeclaredConstructor ().newInstance ();
0 commit comments