Proper policy for links is openExternal, not forceDownload.
authorJoe Wreschnig <joe.wreschnig@gmail.com>
Wed, 10 Sep 2014 15:47:08 +0000 (17:47 +0200)
committerJoe Wreschnig <joe.wreschnig@gmail.com>
Wed, 10 Sep 2014 15:47:08 +0000 (17:47 +0200)
src/yuu/core.js

index 22a1fb436fad8caf320aadd651038ef44a6d394e..cbeb2a0acb236a9aa52ca3002d3f11d8782264b3 100644 (file)
                 wkdoc.dispatchEvent(ev);
             });
             win.on('new-win-policy', function (frame, url, policy) {
-                if (url.startsWith('chrome'))
+                if (url.startsWith('chrome')) {
                     policy.forceNewPopup();
-                else
-                    policy.forceDownload();
+                } else {
+                    policy.ignore();
+                    gui.Shell.openExternal(url);
+                }
             });
         }