Browser: Web Editor: it does not work in Google Chrome anymore

Browser: Web Editor: it does not work in Google Chrome anymore

antonJ2C2R
Explorer Explorer
1,654 Views
9 Replies
Message 1 of 10

Browser: Web Editor: it does not work in Google Chrome anymore

antonJ2C2R
Explorer
Explorer

Latest stable Google Chrome 68+, latest beta 69+ tested.

Open document and get a white blank page.

Chrome console throws an exception:

Uncaught TypeError: document.fullscreenEnabled is not a function
    at Object.get [as fullscreenEnabled] (fusion_web_bundle_20180809~171411.js:126)
    at new t (fusion_web_bundle_20180809~171411.js:126)
    at fusion_web_bundle_20180809~171411.js:126
    at Object.<anonymous> (fusion_web_bundle_20180809~171411.js:126)
    at n (fusion_web_bundle_20180809~171411.js:1)
    at Object.<anonymous> (fusion_web_bundle_20180809~171411.js:126)
    at n (fusion_web_bundle_20180809~171411.js:1)
    at Object.<anonymous> (fusion_web_bundle_20180809~171411.js:65)
    at n (fusion_web_bundle_20180809~171411.js:1)
    at Object.<anonymous> (fusion_web_bundle_20180809~171411.js:65)
0 Likes
1,655 Views
9 Replies
Replies (9)
Message 2 of 10

HughesTooling
Consultant
Consultant

Works for me using 68.033440.106 on windows 8.1. 

 

Mark

Mark Hughes
Owner, Hughes Tooling
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


0 Likes
Message 3 of 10

antonJ2C2R
Explorer
Explorer

Yea, forgot to mention that I am using Ubuntu Linux. I'll check if it works on Windows in my case and investigate a bit more if it does.

0 Likes
Message 4 of 10

antonJ2C2R
Explorer
Explorer

Ok, so I was a bit wrong. It works in Chrome 68, but it does not work in Chrome 69.

 

I looked into Fusion 360 JS code, particularly fullscreen.js.

There is a method check:

 

  // TBD: Opera, Microsoft support?
  if (document.body.requestFullscreen) {
    // This is the W3C's standard. As far as I know, nobody implements it
    // with this name.

This method (document.body.requestFullscreen) does not exist in Chrome 68 but it does exist in Chrome 69. So this check pass and there comes an issue.

Close by is a culprit code:

    Object.defineProperty(fullscreenNative, 'fullscreenEnabled', {
      get: function() {
        return document.fullscreenEnabled();
      },
      enumerable: true
    });

That "return document.fullscreenEnabled();" is were it ends. There is no such method. Even if w3schools has defined it as an actual method (https://www.w3schools.com/jsref/met_document_fullscreenenabled.asp), it still does not exist. You can see at the same page on w3schools that they used it as a property in every example. Documentation error?

So that line of code should be "return document.fullscreenEnabled" and it will work.

 

Meanwhile I had to use a Tampermonkey script to undefine "document.body.requestFullscreen" before fullscreen.js kicks in and then next check of "document.body.webkitRequestFullscreen" method passes and everything works again.

 

Tampermonkey script for those Chrome beta users:

// ==UserScript==
// @name         Fusion 360 fullscreen bodge
// @namespace    http://veretenenko.ru/
// @version      0.1
// @description  Fusion 360 fullscreen bodge
// @author       Anton Veretenenko
// @match        https://web.fusion.autodesk.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    console.log('Tampered!');
    document.body.requestFullscreen = undefined;
})();

 

0 Likes
Message 5 of 10

pierre-yves.monarque
Autodesk
Autodesk

Hi 

 

Thank you for this detailed analysis.

I could not reproduce the issue.

 

I have done some smoke tests on

- Window 10, Chrome BETA 69.0.3497.57 : OK

- macOS Sierra, Chrome Canary 70.0.3535.0 : OK

 

On which OS are you facing this issue when creating a new design with Chrome Beta 69?

Thanks

Pierre-Yves Monarque
Autodesk Fusion 360 Team
0 Likes
Message 6 of 10

antonJ2C2R
Explorer
Explorer

As I said previously, I am using Ubuntu, version Ubuntu 18.04.1 LTS.

0 Likes
Message 7 of 10

pierre-yves.monarque
Autodesk
Autodesk

Okay, thanks for clarifying.

We only support stable versions of Chrome but we keep close watch on this.

 

Regards

Pierre-Yves Monarque
Autodesk Fusion 360 Team
0 Likes
Message 8 of 10

pierre-yves.monarque
Autodesk
Autodesk

The issue is reproduced on MacOS with current google chrome Canary (71.0.3554.0).

We are working on it.

 

Thanks for sharing this information.

 

 

Pierre-Yves Monarque
Autodesk Fusion 360 Team
0 Likes
Message 9 of 10

Anonymous
Not applicable

Hi

Web Fusion 360 should now work on all Chrome Browser (Stable, Beta, Canary).

Please let us know if you are still experiencing issues.

 

Regards

 

 

 

0 Likes
Message 10 of 10

pierre-yves.monarque
Autodesk
Autodesk

Hi

Web Fusion 360 should now work on all Chrome Browsers (Stable, Beta, Canary).

Please let us know if you are still experiencing issues.

 

Regards

Pierre-Yves Monarque
Autodesk Fusion 360 Team
0 Likes