Exemplo n.º 1
0
 /**
  * Sets whether JavaScript is allowed to run on the given website/domain.
  *
  * @param pattern A pattern that matches one or multiple domains. For details see examples in
  *     content_settings_pattern.h.
  * @param allow Whether to allow JavaScript on the given site/domain.
  */
 public void setJavaScriptAllowed(String pattern, boolean allow) {
   nativeSetJavaScriptAllowed(
       pattern, allow ? ContentSetting.ALLOW.toInt() : ContentSetting.BLOCK.toInt());
 }