Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

83
Visualizações
Detecting browser tab crash in mobile Safari

We are building a web application that sometimes crashes in Mobile Safari due to a jetsam event, where the OS kills the process because of bad memory usage. We think we have a handle on the bug, but some testing shows that it still very occasionally happens, so we want to build some monitoring to gather details on when it happens. Is there a reliable way to detect when the tab crashes that avoids false positives when the tab is closed? Looking at the device logs at the jetsam event, the web process PID (which I believe is just the affected tab since the other tabs were okay) is killed.

Our current plan was to listen to visibilitychange and detect pairs of hidden and visible events, and then count times that we only saw the visible event as a "session crash". However, mobile Safari doesn't seem to comply with the Page Visibility API when a browser tab is closed. We weren't able to see a visibilitychange === hidden event fire on tab close, which would make that scenario look like a crash.

Also considered using a Service Worker to send a heartbeat, but similarly can't think of how to remove false positives of normal tab closes.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda