WebView / WebControl objects - IE control issue

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Well, I discovered something really weird and so bad that it gotta be a bug...

    I looks like from the transition of Fusion 2.0 to 2.5 something have changed breaking any kind of page loading extension (WebView, Web Control Object, even ActiveX elements)
    Some pages will break because javascript is disabled and these extensions will run in Internet Explorer 7 Compatibility View instead of using the normal IE or Edge engine.
    Phi and I was discussing about this on Discord, and we found out that in Fusion 2.5 the WebView extension was loading correctly, with JS and using Edge's engine (although it thinks it's on windows 8 instead of 10, and using an older version of Edge)
    But on Fusion 2.5, it's broken. He tested the older WebView version (1.30) on Fusion 2.5, but the problem persists.
    I believe that some change in Fusion 2.5 broke it, because it doesn't seem to be a problem with those extensions.

    It could also be the reason some people complained about WebView in the past, as seem here: Please login to see this link.

    Here's the test, Fusion 2.5:
    Please login to see this attachment. Please login to see this attachment.
    Please login to see this attachment.

    Now Fusion 2.0:
    Please login to see this attachment.
    Please login to see this attachment.

    As you can see, something is broken.
    All these pages work normally in any browser in the computer, IE, Edge, Chrome, Firefox...
    Disabling firewall and antivirus does not change it.

    Please, this needs to be fixed... :(

    Edited 2 times, last by NaitorStudios (February 4, 2020 at 12:18 AM).

  • Those objects don't depend on anything in Fusion, they are totally independent. No change in Fusion could explain what you say.

    Quote

    He tested the older WebView version (1.30) on Fusion 2.5, but the problem persists.

    Make sure he removed the Unicode version and then restart Fusion 2.5 before testing the old non-Unicode version.

  • Well, you can test yourself. There's a problem that makes any WebView pratically useless on Windows, nobody seem to know what causes this, it's 1000% reproducible, and nobody seem to care.
    I have a lot of ideas that depend on WebView working, going back to 2.0 just because of this is insanity.
    Barelly giving up on software development using Fusion because of this... I love doing things Fusion's way, but this is a absurd limitation.

    If Fusion isn't causing this, at least explain why in Fusion 2.0 it works and in Fusion 2.5 don't, on the same computer.

  • mm not fully understand this page reflect the same results in edge and webview2

    Please login to see this attachment.

    Please login to see this attachment.

    all test conducted with edge and windows 10, as you may see there results are the same inside webview and edge.

    Fusion version 292.22 and latest webview2 object version

    Regards,


    Fernando Vivolo

    ... new things are coming ...

  • Fernando, It didn't worked on my computer and Phi's computer.
    I have no idea what causes this, but for Phi it worked on Fusion 2.0 but not on 2.5

    We have to know what causes this, or people can build broken apps that work on their pcs but not on others!

    Testing the same mfa as yours:

    Please login to see this attachment.

  • [MENTION=10153]Fuuriokun[/MENTION] open the regedit.exe
    - type this path -> Computer\HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION
    - right click
    - new
    - DWORD (and set exe name of your fusion app - value set to 11001 - and check decimal)
    - run your exe

    Please login to see this link.

  • I was thinking about steam somehow blocking it...
    [MENTION=6268]Fernando[/MENTION] Yes, I'm using Fusion 2.5+ Developer Build R292.22, already tried reinstaling and updating the extension, it's on 2.1
    The folder didn't even existed here, creating it did not fixed, I added an dword with the name "*" so it works with all apps...

    But there must be a better way, people make softwares for companies with Fusion, having to mess with Registry Keys shouldn't be a thing...

    Edit: I was testing Process Monitor and this appered on registry, added by WebView, but it still doesn't work.

    Please login to see this attachment.

    The ones above look to be the legacy names of the Fusion windows runtime, this is the full list of newer runtime executables, it looks like Fusion 2.5 randomly(?) picks one of these:

    Please login to see this attachment.

    Adding all the runtime executables, fixed it.
    SO, it was somewhat Fusion's fault, it did changed something, new executables was added, I don't know why exactly but...
    (it looks like it may be different runtimes, like screensaver, but in my computer it seem to almost ever run Windows runtime with edrtex.exe)

    Both WebView and Web Control Object (and maybe others that need to add FEATURE_BROWSER_EMULATION to the regitry) need to be updated for the new executable variants.
    Also, would be nice if in the extension we could select with browser it would emulate

    Edit2: It looks like closing the apps also deletes the whole folder in the registry, which breaks the temporary "fix"
    And it looks like it uses edrt.exe only when "Compress the runtime is enabled"

    Edited 14 times, last by NaitorStudios (February 4, 2020 at 6:16 PM).

  • The WebView2 Object write / erase this registry each time it runs, can you explain memore why you think this is an error or bug?, see that it does not delete the name of your application

    AND

    it write only the one is in use

    Regards,


    Fernando Vivolo

    ... new things are coming ...

  • WebView2 does it almost right, it adds the values (only edrt.exe and edrt.vhost.exe, but Fusion's uses more than these nowadays) and deleted the VALUES leaving the folder when closed.
    But, Web Control Object does it differently, it looks like it can't add the key and values, but on exiting it deletes the WHOLE key (folder) from registry, so if the user (or another software) add another software to the list through regedit, Web Control Object will delete it all, not only what it create.

    The problem is: Browser emulation will not work in some because the executable name is different from what the extension adds.
    I did found an workaround by adding the key and values through registry extension, but imagine a person that doesn't know how to use this, wrecking others computers...
    The extensions need to add ALL windows runtime executables to work properly, but it only adds two that are not used anymore (it was used on Fusion 2.0, and it may be used when Compress Runtime is ON.

    My executables uses mostly edrtex.exe (sometimes I have seen it using stdrtex.exe), which ISN'T added by WebView2 nor Web Control Object.

    Edit: Also it looks like WebView2 only add the values, but if the key (folder) do not exists it will not create it.

    Edited 2 times, last by NaitorStudios (February 4, 2020 at 7:15 PM).

  • Sorry the object detect the module, so if you set compress you will see the compress one, if you set normal will see the normal one, and also detect if you running in editor mode, this does not ring a bell


    please test more and let me know.

    AND

    the object only deletes the registry it added, does not delete any Key folder. again this is not correct.

    Regards,


    Fernando Vivolo

    ... new things are coming ...

  • Something is really strange in your PC you have in current user configuration only valid for MACHINE

    AND

    you don't have the BROWSER EMULATION that should be there from installation

    I will add something in the extension to recreate the key, but this should be in your PC from windows installation.

    not a clue why your list is different seems to have all but not the emulation.

    Please login to see this attachment.

    Regards,


    Fernando Vivolo

    ... new things are coming ...

    Edited once, last by Fernando (February 5, 2020 at 3:17 AM).

  • Just a few clarifications as apparently you seem a bit confused with how everything works.

    Quote

    WebView2 does it almost right, it adds the values (only edrt.exe and edrt.vhost.exe, but Fusion's uses more than these nowadays)

    Webview2 gets the name of the current EXE, it does not add keys for edrt.exe, it adds them for the name of the current EXE, and this sounds correct (from what I see in the source code). I just saw a possible issue if you use a sub-app it will delete the key when the sub-app ends, this can perhaps cause an issue if you use the webview object later.

    Quote

    The problem is: Browser emulation will not work in some because the executable name is different from what the extension adds.

    If you use WebView2, this shouldn't happen.

    IIRC the WebControl object is outdated and you should use WebView2 nowadays. Why do you want to use the WebControl object?

    Quote

    The extensions need to add ALL windows runtime executables to work properly

    Not at all, it just needs to add the current EXE and that's what Webview2 does.

    Quote

    but it only adds two that are not used anymore (it was used on Fusion 2.0, and it may be used when Compress Runtime is ON.

    edrt.exe is used when you run the app from the editor, it's not an old MMF2 thing. And no it's not used when Compress Runtime is ON.

    And no, Fusion doesn't pick a runtime EXE randomly, lol :) It takes the runtime that corresponds to the build type and options you selected in the properties.

    Quote

    Edit: Also it looks like WebView2 only add the values, but if the key (folder) do not exists it will not create it.

    This can be the origin of your problems yes, if the folder doesn't exist. I guess Fernando can modify the object to create the FEATURE_BROWSER_EMULATION folder if it doesn't exist.

  • Thanks [MENTION=5114]Yves[/MENTION]

    I will check the sub-app condition mentioned above.

    @[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]Fuuriokun
    [/FONT]
    A new extension is available in Extension Manager that add the missing key

    FEATURE_BROWSER_EMULATION, still missing the sub app control.

    Regards,


    Fernando Vivolo

    ... new things are coming ...

  • [MENTION=6268]Fernando[/MENTION] well, now it looks like it's working correctly :D Thanks for the update

    [MENTION=5114]Yves[/MENTION] Well, about Windows Control Object, there are features to add fill elements, get specific lines of text, this is useful for my automation system, this is why I still use it.
    It really don't have any drawback that I can see, fixing the browser emulation it works just like WebView2 but with more features...
    You should see the video that I made showing what was the problem, I did created the key and the previous version wasn't adding the correct file names.
    You can see with you own eyes: Please login to see this link.
    It still not add the values with the exact file name ("game bla bla bla.exe") but it's adding the correct internal file name now edrtex.exe (works in the editor), stdrtex.exe (works for the built file)
    All I said was based in the research I did seeing exactly what WebView2 added or removed to the Windows Registry and what show up on Task Manager, I work with computers my entire life (since a child in 1995), I'm also a technician, I know what I was seeing and you can check the video if you still believe I was seeing it "wrong".

    Edit: Now everyone can test if their WebView2 isn't working correctly, [MENTION=5114]Yves[/MENTION], I made a little example that check exactly what WebView was doing and what it currently does, you can test for yourself.
    This can be used in the future to debug if it breaks again, I included two exe (before and after the fix) and their mfa:
    Please login to see this link.

    Edited 2 times, last by NaitorStudios (February 5, 2020 at 3:36 PM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!