Regarding the impact of Google Chrome 78 or later versions and Microsoft Edge 82 or later versions

 
Google Chrome 78 and Microsoft Edge 82 do not allow a processing of the synchronous XMLHttpRequest (synchronous XHR) within an event fired when leaving or closing a webpage.

Our standard functions are not affected by this specification change of Google Chrome and Microsoft Edge.


However, it might have an impact on programs and partner solutions you created.
For each partner solution, please contact each sales partner.

The following four types of events are affected.
Synchronous XHR will not be allowed within this event, so if you use Synchronous XHR you will need to fix it.

■ beforeunload

    // Event settings (onbeforeunload )
    window.onbeforeunload = function(e){
        // ...
    }
    // Event settings (addEventListener)
    window.addEventListener( "beforeunload", function ( event ) {
        // ...
    } ) ;

■ unload

    // Event settings (onunload)
    window.onunload = function ( event ) {
        // ...
    }

    // Event settings (addEventListener)
    window.addEventListener( "unload", function ( event ) {
        // ...
    } ) ;

■ pagehide

  // Event settings (onpagehide)
  window.onpagehide = function ( event ) {
      // ...
  }
  // Event settings (addEventListener)
  window.addEventListener( "pagehide", function ( event ) {
      // ...
  } ) ;

■ visibilitychange 

  // Event settings (onvisibilitychange)
  document.onvisibilitychange = function ( event ) {
      // ...
  }
  // Event settings (addEventListener)
  document.addEventListener( "visibilitychange", function ( event ) {
      // ...
  } ) ;


In addition to the synchronous XHR direct use, the synchronous XHR is also used inside the Client JavaScript API of Accel Platform as shown below.

  ・JsspRpc
  ・A method of an imui component to acquire information dynamically
  ・Numeric display format API

Note that as interim measures (optional) for Google Chrome 78 and Microsoft Edge 82, it is possible to allow the synchronous XHR processing within the corresponding event.


  ■Allows synchronous XHR requests in page dismissal

    Allows synchronous XHR requests during page dismissal when the page is being navigated away or closed by the user.
When the user leaves or closes the page, allow synchronous XHR requests while leaving (closing) the page.

Google Chrome: chrome://flags/#allow-sync-xhr-in-page-dismissal
    Microsoft Edge: edge://flags/#allow-sync-xhr-in-page-dismissal


・To allow, change to Enabled. (Default is Disabled)
      ・As of May 2020, this interim measure (optional) is scheduled to be abolished in Google Chrome 88 and Microsoft Edge 88.

 -- Target --------------------------------------------------------------------- 
iAP/Accel Platform/All Updates  
 --------------------------------------------------------------------------------


FAQID:1013
Was this article helpful?
0 out of 0 found this helpful
Powered by Zendesk