Closed Bug 811574 Opened 12 years ago Closed 11 years ago

Set default timeout for marionette to non-zero

Categories

(Remote Protocol :: Marionette, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 815757

People

(Reporter: wlach, Unassigned)

References

Details

Attachments

(1 file, 1 obsolete file)

Setting a 0 timeout breaks async scripts by default. Of course, the amount of time you need to run scripts is context dependant, but it would be good to set some kind of sane default (say, 30 or 60 seconds) so at least basic things will work out of the box.
Attached patch patch v1.0 (obsolete) — Splinter Review
This sets the default timeout to 10 seconds. I'll have a test for this in my patch for Bug 815361, which will check it using get_script_timeout.

try submission: https://tbpl.mozilla.org/?tree=Try&rev=dea1535ea77a
Attachment #685350 - Flags: review?(jgriffin)
Comment on attachment 685350 [details] [diff] [review]
patch v1.0

Review of attachment 685350 [details] [diff] [review]:
-----------------------------------------------------------------

Instead of setting 10,000 (or whatever number) in a number of places, I think we should pass the default timeout into marionette-listener in newSession.  This way, we don't have to remember to change it in N places the next time we want to tweak it, we only have to change it in marionette-actors.js.
Attachment #685350 - Flags: review?(jgriffin) → review-
Attached patch patch v2.0Splinter Review
Like this?
Attachment #685350 - Attachment is obsolete: true
Attachment #685363 - Flags: review?(jgriffin)
Comment on attachment 685363 [details] [diff] [review]
patch v2.0

Review of attachment 685363 [details] [diff] [review]:
-----------------------------------------------------------------

I think the marionette-listener changes are missing in this patch.
Attachment #685363 - Flags: review?(jgriffin) → review-
Addressing the default timeout in Bug 815757, where we're refactoring the script timeout work.
No longer blocks: 815361
Depends on: 815757
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: