diff --git a/tools/wptrunner/wptrunner/browsers/firefox.py b/tools/wptrunner/wptrunner/browsers/firefox.py index d1c11707c96748..e59cd90b0a37dc 100644 --- a/tools/wptrunner/wptrunner/browsers/firefox.py +++ b/tools/wptrunner/wptrunner/browsers/firefox.py @@ -306,7 +306,7 @@ def on_output(self, line): """Write a line of output from the firefox process to the log""" if "GLib-GObject-CRITICAL" in line: return - if(line): + if line: data = line.decode("utf8", "replace") if self.stack_fixer: data = self.stack_fixer(data)