Skip to content

Commit

Permalink
[wptrunner] Recognize "tab crashed" as a crash status code. (#49298)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnj authored Nov 20, 2024
1 parent ea5f982 commit 0829f93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/wptrunner/wptrunner/executors/executorwebdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,8 @@ def run_func(self):
# TODO(https://github.com/w3c/webdriver/issues/1308): The http
# status and status code below are chromium specific. Replace
# that with a standarded code once the issue is resolved.
if e.http_status == 500 and e.status_code == "disconnected":
if e.http_status == 500 and (e.status_code == "disconnected" or
e.status_code == "tab crashed"):
status = "CRASH"
if status is None:
status = "INTERNAL-ERROR" if self.protocol.is_alive() else "CRASH"
Expand Down

0 comments on commit 0829f93

Please sign in to comment.