2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-09-28 04:19:01 +00:00
nativefier/app
David Kramer aa243b6f80 Fix sites that use about:blank redirect technique (#623)
* Fix sites that use about:blank redirect technique

When you open some links with Google Calendar, instead of opening the link directly, the site opens a new window with the location 'about:blank' and then sets the new window's document content to include a refresh directive to open the actual link. This change causes the 'about:blank' links to be handled internally so that the technique can actually work.

* Hide 'about:blank' windows while they perform the redirect

After a new window is created for an 'about:blank' link, the redirect occurs, which causes another window to be opened. This change causes the 'about:blank' to be created hidden, and then closed entirely once the redirect finishes.

* Add tests for `linkIsInternal`

* Refactor onNewWindow to make it testable
2018-05-27 17:18:59 -04:00
..
inject Fix bug where css is always injected 2016-02-25 15:25:14 +08:00
src Fix sites that use about:blank redirect technique (#623) 2018-05-27 17:18:59 -04:00
.eslintrc.yml Update eslint and use Airbnb style 2017-04-29 22:52:12 +08:00
.npmrc Upgrade dependencies and default to latest Electron 1.7.9 (PR #483) 2017-11-14 08:05:01 -05:00
nativefier.json Fix placeholder for electron app to google 2016-05-26 16:50:42 +08:00
package.json Fix #95, #384 - Use electron-context-menu, supporting cut/copy/paste (PR #588) 2018-04-22 19:48:56 -04:00