Add a rule that allows or denies URLs in the embedded browser.
First available in version 3.0 build 2039.
type - The rule type that determines whether URLs matching the pattern argument will be allowed. Valid values include: allow and deny.
pattern - A string to match against URLs. You may use * as a wildcard to match 0 or more characters in the string.
No output parameters.
When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.
Before calling Browser.addRule, the browser may navigate to any URL without restriction.
If the browser tries to navigate to a URL that has not been added with Browser.addRule, or does not match an added pattern, the navigation will fail.
This example sets a rule that denies access to any URL with "yahoo.com" in it.