New issue
Advanced search Search tips

Issue 634308 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 605517
Owner:
Closed: Aug 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

SAP: Blocking sync XHR during microtask execution would crash all of our HTML5 based apps

Reported by andreas....@sap.com, Aug 4 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.34 Safari/537.36

Steps to reproduce the problem:
Open https://launchpad.support.sap.com/ or
https://fiorilaunchpad.sap.com/ 
This is the entry page of every SAP customer even in their in-house environment. 

These are the entry pages of every SAP customer, similar pages are used in their in-house environment. Those pages only show one (prominent) occurrence of the issue. It also affects all apps which can be started from here.

What is the expected behavior?
Correct execution of the web application without warning

What went wrong?
The following WARNING appears immediately on startup in the browser console: "Invoking 'send()' on a sync XHR during microtask execution is deprecated and will be removed in M54, around October 2016. See https://www.chromestatus.com/features/5647113010544640 for more details." 

Did this work before? Yes With earlier Chrome versions

Chrome version: Version 52.0.2743.82 (64-bit)  Channel: stable
OS Version: 10.11.6
Flash Version: Shockwave Flash 22.0 r0

In case invoking 'send()' on a sync XHR during microtask execution will be removed, our HTML5 based technology and all apps would not work anymore.
 
Components: -UI Blink>Network>XHR
Labels: -Arch-x86_64 -OS-Mac OS-All
Owner: jochen@chromium.org
Status: Assigned (was: Unconfirmed)
Over to jochen@, since they own the effort to deprecate sync XHR inside nested event loops. jochen@, what should we do here?
Thanks for reaching out. I guess you are aware of how to work around this issue, but I realize that changing a huge codebase on a short notice is difficult, so we will reconsider this change.

However, could you maybe share how you plan to act on the deprecation of sync XMLHttpRequests in general, so we can better plan how to proceed there?
Hi Jochen,
We have evaluated the work arounds - they woun't work for us. As we have multiple layers (technology, application, partner and customer extensions) all layers (including APIs) would be affected (a huge ammount of apps). The deprecation would mean for us to stop support of Chrome with our newest web technology.
Kind Regards, Andreas

Yes, I got that part. My question was, why is your newest web technology based on an API that's deprecated in all browsers? Ie right now, you should get two warnings: one about microtasks and one about sync xhrs in general. The latter is there since a long time - longer than promises are around.
Mergedinto: 605517
Status: Duplicate (was: Assigned)
Hi Jochen,
We are working on moving away from synchronous XHRs in the UI framework and we started to encourage application development teams in-house and our customers to adopt their applications step-wise. Our applications might be adopted within a dedicated period of time – but then also our customers would need to fix their applications. Our customers expect a high degree of stability and compatibility to run their enterprise applications.
Kind Regards, Andreas
glad to hear that you have plans to move away from sync XHRs, thank you!

I agree that a high degree of stability is desirable, however, that'll only work when we work together - not using deprecated APIs is part of that. Anyways, I removed this particular deprecation, so the feature will continue to work for now.
Thanks a lot, so far! Close cooperation is much appreciated! 

Sign in to add a comment