mapbox/tilemill — Issue #1170: Update link handler in Mac OS X app
Author: yhahn
Created: 2012-01-18 15:40:52+00:00
State: open

#1164, #1165 and #1166 all look like a result of a breaking change I made to the app based on the webkit/cef wrapper work I did on linux/windows. To make those wrappers non-tilemill specific in their link handling I came up with the following rule:

- All links open in-app window, except
- Any links that have `target='_blank'` open instead in the user's default browser

I'm wondering if we can make a similar change on the Mac OS X wrapper and in doing so simplify our link handling logic. In `libwebkitgtk` there is a `new-window-policy-decision-requested` signal that I'm using to trigger this behavior here: https://github.com/creationix/topcube/blob/master/topcube.cpp#L117. Maybe there is a similar API on Mac OS X?