Dim jwb As JavaObject = wb
Dim jset As JavaObject = jwb.RunMethod("getSettings", Null)
Dim r As Reflector
r.Target = jset
' Enable local storage
r.RunMethod2("setDomStorageEnabled", True, "java.lang.boolean")
' Disable cross-origin limits on File protocol
r.RunMethod2("setAllowFileAccess", True, "java.lang.boolean")
r.RunMethod2("setAllowFileAccessFromFileURLs", True, "java.lang.boolean")
r.RunMethod2("setAllowUniversalAccessFromFileURLs", True, "java.lang.boolean")