Proper policy for links is openExternal, not forceDownload.
[pwl6.git] / src / yuu / core.js
index 22a1fb4..cbeb2a0 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);
+                }
             });
         }