Menu

#864 JavaScript is not always executed in HTML GUI under Windows 10

HTML UI 0.1
closed-migrated
nobody
9
2018-03-27
2016-01-27
No

The Saros HTML view in Eclipse is not always displayed on Windows 10 machines, meaning: the problem described below has only been observerd on Windows 10 machines so far, but not consistently.

Symptoms:

  • The Saros HTML view in Eclipse only shows as a white area.
  • A right-click in that area reveals the correct URL (e.g. file:///F:/Development/saros/de.fu_berlin.inf.dpp.ui.frontend/html/dist/main-page.html) and correct loaded content (same as de.fu_berlin.inf.dpp.ui.frontend/html/main-page.html). It looks like the Javascript which should replace the div#Saros node is not executed, which is supported by the failure to execute even the simplest JavaScript (see first comment below).
  • Opening the dist/main-page.html file in Mozilla Firefox and Microsoft Edge results in a properly rendered UI.
  • Opening it in Microsoft Internet Explorer requires to allow the execution of "active contents" on the local machine.
  • The behavior in Eclipse is the same with our without MS IE installed.

Discussion

  • Franz Zieris

    Franz Zieris - 2016-01-27

    Instead of the "empty" main-page.html which loads the bundle.js, I tried the following self-contained HTML+JavaScript file:

    <!doctype html>
    <html>
    <head>
        <meta charset="utf-8">
        <title>JavaScript Test</title>  
    </head>
    
    <body>
        <script type="text/javascript">
        function sayHello() {
            document.getElementById("foo").style.color = "#ff0000";
        }
        </script>
        <div>
            <a href="javascript:sayHello();">Say Hello to</a>
            <span id="foo">the World</span>
        </div>
    
        <noscript>JavaScript is not active</noscript>
    </body>
    
    </html>
    

    In all three installed browsers (MS IE 11, MS Edge 25, Firefox 43) this site works as expected ("the World" becomes red) and -- unless I deactivate JavaScript -- the noscript content is not shown.
    In the HTML view, however, the noscript is also not rendered but the JavaScript call is not executed.

     
  • Christian

    Christian - 2016-01-30

    If you use

    <a onclick="sayHello(); return false;" href="#">Say Hello to</a>
    

    instead, it works inside Eclipse 3.7.2.

     
  • Stefan Rossbach

    Stefan Rossbach - 2017-04-13

    PRIO 9 - As the issue would result in an unusable application.

     
  • tobous

    tobous - 2018-03-27
    • Status: open --> closed-migrated
     

Log in to post a comment.