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"

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx2.0
    • Fix Version/s: fx2.0
    • Component/s: javafx
    • Environment:

      Windows 7 x64, JDK 1.6.0_25, JavaFX 2.0 beta b28

    • Subcomponent:
      web

      Description

      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!

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: