Closed Bug 1199002 Opened 9 years ago Closed 9 years ago

Propagate JavaScript errors from executing script commands

Categories

(Remote Protocol :: Marionette, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ato, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: pi-marionette-server)

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.
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()?
(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.
Depends on: 1123506
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.