Propagate JavaScript errors from executing script commands

RESOLVED FIXED

Status

defect
RESOLVED FIXED
4 years ago
3 years ago

People

(Reporter: ato, Unassigned)

Tracking

(Blocks 1 bug, {pi-marionette-server})

Firefox Tracking Flags

(Not tracked)

Details

Reporter

Description

4 years ago
When scripts are injected using Execute Script or Execute Async Script, we should catch any errors that are thrown and propagate them to the local end as "javascript error"’s.
Reporter

Updated

4 years ago
Blocks: webdriver
What if that is an unrelated error as thrown by Firefox in a different component? Means how can we filter out errors as produced by the code in execute_(async_)script()?
Reporter

Comment 2

4 years ago
(In reply to Henrik Skupin (:whimboo) from comment #1)
> What if that is an unrelated error as thrown by Firefox in a different
> component? Means how can we filter out errors as produced by the code in
> execute_(async_)script()?

I imagine we would wrap the code block that is injected.  This isn’t a proposal for a content-wide window.onerror handler.
Reporter

Updated

4 years ago
Depends on: 1123506
Reporter

Updated

3 years ago
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.