Skip to content

SWT Browser component (Windows Edge): URLs sent to LocationListener are not complete #1581

@hmackamul

Description

@hmackamul

Describe the bug
In Eclipse APP4MC we are using SVG diagrams to show specific aspects of the data model.
The diagram is:

  • generated by PlantUML
  • displayed in SWT Browser component
  • contains links like href="#obj37"

The links are used to navigate in the model and select the corresponding object in the model editor (handled by a LocationListener).

The LocationListener of

  • IE browser component can be user to handle the clicks by analyzing the URL
  • Edge browser component is not receiving the complete URL

Details

  • IE links look like: about:blank#obj37
  • Edge links look like: file:///C:/Users/abc/AppData/Local/Temp/base12703840119113867392.html#obj37
  • Browser is setup with LocationListener like this:
    browser.addLocationListener(LocationListener.changingAdapter(c -> {
        int idx = c.location.lastIndexOf('#');
        if (idx >= 0) {
            <compute link to object>
            <sent (topic + link) to IEventBroker to select object in editor>
        }
    }));
    

Screenshots
SVG_displayed_in_SWT_Browser

Environment:

  1. Select the platform(s) on which the behavior is seen:
    • All OS
    • Windows
    • Linux
    • macOS
  1. Additional OS info (e.g. OS version, Linux Desktop, etc)
    Windows 11

Version
Eclipse 2024-12 M2

Metadata

Metadata

Assignees

No one assigned

    Labels

    edgeEdge Browser

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions