Aarhus University Seal

Practical AJAX Race Detection for JavaScript Web Applications

Research output: Contribution to book/anthology/report/proceedingArticle in proceedingsResearchpeer-review



  • Christoffer Quist Adamsen
  • ,
  • Anders Møller
  • Saba Alimadadi, Northeastern University, United States
  • Frank Tip, Northeastern University, United States

Asynchronous client-server communication is a common source of errors in JavaScript web applications. Such errors are difficult to detect using ordinary testing because of the nondeterministic scheduling of AJAX events. Existing automated event race detectors are generally too imprecise or too inefficient to be practically useful. To address this problem,we present a newapproach based on a lightweight combination of dynamic analysis and controlled execution that directly targets identification of harmful AJAX event races. We experimentally demonstrate using our implementation, Ajax- Racer, that this approach is capable of automatically detecting harmful AJAX event races in many websites, and producing informative error messages that support diagnosis and debugging. Among 20 widely used web pages that use AJAX, AjaxRacer discovers harmful AJAX races in 12 of them, with a total of 72 error reports, and with very few false positives.

Original languageEnglish
Title of host publicationESEC/FSE 2018 - Proceedings of the 2018 26th ACM Joint Meeting on European So ftware Engineering Conference and Symposium on the Foundations of So ftware Engineering
EditorsGary T. Leavens, Alessandro Garcia, Corina S. Păsăreanu
Number of pages11
Place of publicationNew York, NY, USA
PublisherAssociation for Computing Machinery
Publication year26 Oct 2018
ISBN (print)978-1-4503-5573-5
ISBN (electronic)9781450355735
Publication statusPublished - 26 Oct 2018
EventThe ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) - Lake Buena Vista, United States
Duration: 4 Nov 20189 Nov 2018
Conference number: 26


ConferenceThe ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE)
LandUnited States
ByLake Buena Vista

    Research areas

  • JavaScript, dynamic analysis, event race detection

See relations at Aarhus University Citationformats

Download statistics

No data available

ID: 133013700