question

SarkarSaurav-9545 avatar image
2 Votes"
SarkarSaurav-9545 asked catmanjan answered

“script error” pop-up during login page rendered within office application

Hi All,

We have developed MS WEB DAV server to handle the office files in our server side and open the office files on our client side when triggered from MS Office URI schema.

We are using MS-OFBA for user authentication

https://docs.microsoft.com/en-us/openspecs/sharepoint_protocols/ms-ofba/26f3c38b-0a7a-4789-8980-adffaf58a110

As part of MS-OFBA we are supposed to return a login URL and then a corresponding HTML.

This HTML is being loaded by the Office client's embedded browser for user login form.

Now during the load of this HTML we are getting "script error" with "Syntax Error" popup.

We noticed that the login page uses javascript "const" which ends up with the following script error.

line 20 char 13 syntax error.

Const is supported by all the modern browsers, so not sure why the embedded browser view within office is not able to load it properly.

This is only happening in Windows , In Mac its works fine.

I am not able to find any way to debug this problem.

Can you please provide some hints on how to fix this problem ?

Version details

Windows 10

IE Version 1909 (OS Build 18363.1256)

Microsoft Edge 87.0.664.75

Microsoft Office 365 Pro Plus Version 2002 (Build 12527.21416)

.NET Version 4.8

Best Regards,

Saurav

office-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

emizhang-msft avatar image
0 Votes"
emizhang-msft answered SarkarSaurav-9545 commented

Hi @SarkarSaurav-9545,
What version of Windows did you use?
What browser did you use?
Did you use this component? https://developer.mozilla.org/en-us/docs/web/javascript/reference/statements/const
Try to check the browser compatibility from list:
60241-287.png


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.





287.png (27.9 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @emizhang-msft thanks for the reply.

I have updated with the version details in my original post.

As i mentioned that this issue is with the embedded browser inside the office applications so i am not sure the actual browser and version used

in embedded manner.

Best Regards,
Saurav

0 Votes 0 ·
catmanjan avatar image
0 Votes"
catmanjan answered

The embedded browser within Office used for MS-OFBA is running in IE8 compatibility mode so you will need to modify your login page to remove the dependency on const and other ECMAScript 6 only functionality

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.