Open Bug 1820038 Opened 1 year ago Updated 1 year ago

window.__wptrunner_process_next_event is not a function after added .headers for a test

Categories

(Testing :: web-platform-tests, defect)

Default
defect

Tracking

(Not tracked)

People

(Reporter: sefeng, Unassigned, NeedInfo)

Details

Attachments

(1 file)

Attached patch patchSplinter Review

With the attached patch, running

./mach wpt --headless testing/web-platform/tests/fetch/orb/tentative/script-unlabeled.sub.html

will incur the `window.__wptrunner_process_next_event error.

Here's the full stack

 0:36.49 WARNING Traceback (most recent call last):
  File "/home/sefeng/.local/workspace/mozilla/mozilla-unified/testing/web-platform/tests/tools/wptrunner/wptrunner/executors/executormarionette.py", line 837, in run_func
    self.result = True, self.func(self.protocol, self.url, self.timeout)
  File "/home/sefeng/.local/workspace/mozilla/mozilla-unified/testing/web-platform/tests/tools/wptrunner/wptrunner/executors/executormarionette.py", line 960, in do_testharness
    result = protocol.base.execute_script(
  File "/home/sefeng/.local/workspace/mozilla/mozilla-unified/testing/web-platform/tests/tools/wptrunner/wptrunner/executors/executormarionette.py", line 86, in execute_script
    return method(script, new_sandbox=False, sandbox=None)
  File "/home/sefeng/.local/workspace/mozilla/mozilla-unified/testing/marionette/client/marionette_driver/marionette.py", line 1806, in execute_async_script
    rv = self._send_message("WebDriver:ExecuteAsyncScript", body, key="value")
  File "/home/sefeng/.local/workspace/mozilla/mozilla-unified/testing/marionette/client/marionette_driver/decorators.py", line 24, in _
    return func(*args, **kwargs)
  File "/home/sefeng/.local/workspace/mozilla/mozilla-unified/testing/marionette/client/marionette_driver/marionette.py", line 663, in _send_message
    self._handle_error(err)
  File "/home/sefeng/.local/workspace/mozilla/mozilla-unified/testing/marionette/client/marionette_driver/marionette.py", line 675, in _handle_error
    raise errors.lookup(error)(message, stacktrace=stacktrace)
marionette_driver.errors.JavascriptException: TypeError: window.__wptrunner_process_next_event is not a function
stacktrace:
        @testing/web-platform/tests/tools/wptrunner/wptrunner/executors/executormarionette.py:91:8
        @testing/web-platform/tests/tools/wptrunner/wptrunner/executors/executormarionette.py:92:8


 0:36.49 TEST_END: ERROR, expected OK - TypeError: window.__wptrunner_process_next_event is not a function
Traceback (most recent call last):
  File "/home/sefeng/.local/workspace/mozilla/mozilla-unified/testing/web-platform/tests/tools/wptrunner/wptrunner/executors/executormarionette.py", line 837, in run_func
    self.result = True, self.func(self.protocol, self.url, self.timeout)
  File "/home/sefeng/.local/workspace/mozilla/mozilla-unified/testing/web-platform/tests/tools/wptrunner/wptrunner/executors/executormarionette.py", line 960, in do_testharness
    result = protocol.base.execute_script(
  File "/home/sefeng/.local/workspace/mozilla/mozilla-unified/testing/web-platform/tests/tools/wptrunner/wptrunner/executors/executormarionette.py", line 86, in execute_script
    return method(script, new_sandbox=False, sandbox=None)
  File "/home/sefeng/.local/workspace/mozilla/mozilla-unified/testing/marionette/client/marionette_driver/marionette.py", line 1806, in execute_async_script
    rv = self._send_message("WebDriver:ExecuteAsyncScript", body, key="value")
  File "/home/sefeng/.local/workspace/mozilla/mozilla-unified/testing/marionette/client/marionette_driver/decorators.py", line 24, in _
    return func(*args, **kwargs)
  File "/home/sefeng/.local/workspace/mozilla/mozilla-unified/testing/marionette/client/marionette_driver/marionette.py", line 663, in _send_message
    self._handle_error(err)
  File "/home/sefeng/.local/workspace/mozilla/mozilla-unified/testing/marionette/client/marionette_driver/marionette.py", line 675, in _handle_error
    raise errors.lookup(error)(message, stacktrace=stacktrace)
marionette_driver.errors.JavascriptException: TypeError: window.__wptrunner_process_next_event is not a function
stacktrace:
        @testing/web-platform/tests/tools/wptrunner/wptrunner/executors/executormarionette.py:91:8
        @testing/web-platform/tests/tools/wptrunner/wptrunner/executors/executormarionette.py:92:8


The severity field is not set for this bug.
:jgraham, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(james)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: