Skip to main content

#Chrome Browser2 debatiendo

Context

We have an OmniScript that calls DataRaptor/Integration Procedure remote actions to pull data. When a device loses network mid-session, the remote action call fails and OmniScript throws a hard error instead of degrading gracefully. A red error banner names the failing element, shows true underneath, and the "Continue" button doesn't actually recover the flow. 

 

Fix implemented

Before triggering the DataRaptor/IP remote action, we register listeners for the browser's connectivity events:

js

window.addEventListener("online", handleOnline);

window.addEventListener("offline", handleOffline);

On offline → we set a flag and intercept the remote action call, showing a friendly "you're offline" message instead of letting the call fail and throw the error block.On online → we clear the flag and let the remote action proceed normally.

We also check navigator.onLine at call-time as a secondary guard.

This works correctly for every user we've tested, across web (all major browsers) and Mobile Publisher — the offline event fires reliably, our handler runs, and the graceful message shows up instead of the hard error.

The problem

For exactly one user, on Chrome, neither the offline event nor the online event appears to fire at all when the device's actual connectivity changes. Because our handler never runs, the flag never gets set, the remote action call goes through as if the device were offline, and the original OmniScript error surfaces.

 

Affected environment

  • OS: Ubuntu 24.04.2 LTS
  • Device: Lenovo laptop
  • Chrome: Version 151.0.7922.137 (Official Build) (x86_64)

Question for the community

Has anyone seen window.addEventListener("online"/"offline") fail to fire on Chrome for Linux (Ubuntu 24.04) on a specific machine, in an OmniScript/LWC context, while working fine on the same OS/browser combo for other users?  

 

Thanks!

 

 

#Salesforce  #Omnistudio  #DataRaptor  #Chrome Browser

1 respuesta
  1. 20 ago, 15:24

    Hi Rakesh - the root issue is that the window online/offline events (and navigator.onLine) are inherently unreliable, and Linux Chrome is the worst case. Chromium marks the browser 'online' whenever there is any network interface with an IP - even a virtual or IPv6 adapter with no real internet - and it often never fires the offline event on Linux. So on that one Ubuntu user's machine the events genuinely will not fire; it is a documented Chromium limitation, not your code. 

     

    So do not gate your OmniScript logic on those events. Two robust patterns instead: 

     

    1. Handle the failure at the call, not before it. Wrap the DataRaptor IP remote action so that when it fails (network error or timeout) you catch it and show your friendly 'you are offline' message plus a real retry - rather than trying to predict offline up front. In OmniScript, use the element's error handling / a Set Errors plus conditional navigation so the hard error banner never shows. 

     

    2. If you want a proactive signal, run a lightweight heartbeat - a periodic fetch to a tiny known endpoint with a short timeout - and treat a failed or timed-out fetch as offline. That actually tests reachability, which the browser events do not. 

     

    navigator.onLine is fine as a hint (if it says false, you are definitely offline), but never as the source of truth. Catching the actual remote-action failure is what fixes the ungraceful error for everyone, including that Ubuntu user. 

     

    If this helps, please mark it as the Best Answer so it helps the next person - thanks :)

0/9000

I got a notice earlier this wee about some changes to "Root Certificates" that are starting soon. Something around the "DigiCert Global Root G2". I also attended a webinar today around it and it was so far over my head, it was not even funny. I am just trying to determine if there is anything our Org needs to do.  The Help articles are way over my head as well. I don't even know where to start or even what to ask.  Does anyone have any guidance? 

 

#Salesforce Admin #Nonprofit #Systems Administrator #Chrome Browser

1 respuesta
  1. Eric Burté (DEVOTEAM) Forum Ambassador
    10 mar, 23:08

    Hello @Heath Parks, the change was for last February 5th. So if all is still ok, that meant your browser / systems integrating with your Salesforce instance were ok too.

    Eric 

0/9000

Hi All,

 

I am trying to edit a lead record type but I get the following message when I try to access it:

 

We can't display this page because your browser blocks cross-domain cookies, but you can view this page in Salesforce Classic. Click here to open this page in Salesforce Classic.

 

Please contact your Salesforce Administrator, it is possible that they simply need to allow the *.salesforce-setup.com domain, as described in Set Up and Maintain Your Salesforce Organization: Allow the Required Domains

 

The message ONLY appears for that specific record type, as I can access all the other lead record types we have.

I have already checked it with Salesforce Classic and the list of record types does not show that specific RT. Also, I have tried with incognito mode, with another browser (I use Chrome), I have added the URL to the "Allowed to use third-party cookies" list in Chrome's settings, I checked the SF help page 

https://help.salesforce.com/s/articleView?id=000391956&type=1

but I do not have the "DuckDuckGo" extension, so nothing works.

Also, the error only appears in our Sandbox (I can access in PROD and FULL sandbox).

 

Any ideas on how to fix it?

Thank you!

6 respuestas
  1. 28 jun 2024, 18:51

    @Wendy Tolbert -- I unfortunately have not. I worked for several hours with Salesforce support to troubleshoot, but did not resolve the issue. For now, I am using Firefox when the error gets too much in the way, and hoping that a future refresh of my sandbox will resolve it--I'm just not ready to refresh just yet--big project underway!

0/9000

Has anyone else had a user report their page layouts, (edit page screens for example) are being cut off? Maybe this isn't lighting related, but do you know what settings the user should update on their Windows 10, Chrome Browser? 

 

I attached an example of what the user is seeing when on a lead convert page. 

6 comentarios
  1. 7 may 2018, 13:29
    @Tammie Silber Could it maybe be a setting in her browser? Zoom (greater than 100 %) font appearance? accessibility settings? You could try resetting back to the default settings and see if that makes a difference.
0/9000

Has anyone experienced extremely large font in the data.com clean window within the Chrome browser? So large that it prevents users from seeing the "select and proceed to clean" button that now is at bottom of the clean pop-up window?  

1 comentario
0/9000

Interesting anomaly I just encountered. If an xls file is uploaded using IE it is not "Previewable". If it's uploaded using a Chrome browser it is "Previewable"

Anybody ever experience this?

5 comentarios
  1. 23 dic 2014, 17:12
    Actually it shouldn't have anything to do with xls. In IE 11, all files need to be previewed by going to the detail page. The little icon you can hover over to see previews doesn't work. It's a known bug.
0/9000