File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
src/main/java/com/gargoylesoftware/htmlunit/javascript Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 22
22
import static com .gargoylesoftware .htmlunit .BrowserVersionFeatures .JS_PROPERTY_DESCRIPTOR_NEW_LINE ;
23
23
24
24
import java .io .Serializable ;
25
+ import java .util .Map ;
25
26
26
27
import com .gargoylesoftware .htmlunit .BrowserVersion ;
27
28
import com .gargoylesoftware .htmlunit .ScriptException ;
@@ -279,6 +280,14 @@ protected Context makeContext() {
279
280
cx .setClassShutter (new ClassShutter () {
280
281
@ Override
281
282
public boolean visibleToScripts (final String fullClassName ) {
283
+ final Map <String , String > activeXObjectMap = webClient_ .getActiveXObjectMap ();
284
+ if (activeXObjectMap != null ) {
285
+ for (String mappedClass : activeXObjectMap .values ()) {
286
+ if (fullClassName .equals (mappedClass )) {
287
+ return true ;
288
+ }
289
+ }
290
+ }
282
291
return false ;
283
292
}
284
293
});
You can’t perform that action at this time.
0 commit comments