Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
763 views
in Technique[技术] by (71.8m points)

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

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

question from:https://stackoverflow.com/questions/65930671/script-error-pop-up-during-login-page-rendered-within-office-application

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...