-
Notifications
You must be signed in to change notification settings - Fork 984
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't silently ignore creation of new windows
Currently, attempts to create new windows (via links with `target="_blank"` or JS `window.open`) for pages within the application have no effect and are silently ignored. (Links to pages outside the application trigger the allow-intent functionality and open in Safari.) With this PR, the default behaviour will be to open those links in the **same** Web View (without creating a new window). This also introduces a preference (`AllowNewWindows`) that allows the creation of a new UIViewController to present the new page in a new Web View frame on top of the existing Web View. **Note:** This new window provides no controls, so it can only be closed with `window.close()` in JS.
- Loading branch information
Showing
3 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters