Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8100650

Feature request: provide a default popup handler for WebEngine to point to current window, if "target=" for links is not "_self"

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • fx2.0
    • fx2.0
    • javafx
    • Windows 7 x64, JDK 1.6.0_25, JavaFX 2.0 beta b28

    • web

      It has come to my attention, that WebEngine does not support "target = _blank" style links (<a>). As per information from Peter Zhelezniakov, the developer of the application needs to handle this on his/her own, using WebEngine.setCreatePopupHandler(). In the application, where I intend to use WebView, I only have the same window to work in, so in my case, it would be great, if WebEngine treated _blank links, just as it treats _self links (ie. opens the link in the current window), if - and only if! - a popup handler is not defined.

      If this is not possible, could you provide a an code example on how to add a popup handler, which makes _blank links point to the current window? Please respond by email, as my own cases on JIRA per default are set to "private" and for that reason are inaccessible to me.

      Thanks in advance!

            peterz Peter Zhelezniakov
            jmadsenjfx Jacob Overgaard Madsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: