Closed Bug 961792 Opened 10 years ago Closed 10 years ago

Avoid needless iteration when looking up current window ID in Marionette

Categories

(Remote Protocol :: Marionette, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(b2g-v1.3 fixed)

RESOLVED FIXED
mozilla29
Tracking Status
b2g-v1.3 --- fixed

People

(Reporter: ato, Assigned: ato)

Details

Attachments

(1 file)

At testing/marionette/marionette-server.js:1164 the for-each loop used to look up the current window's server-assigned unique identifier continues after the response has been sent.  This is unnecessary and a potential synchronization problem.
Assignee: nobody → ato
Status: NEW → ASSIGNED
Comment on attachment 8362611 [details] [diff] [review]
0001-Bug-961792-Break-iteration-when-browser-is-found.patch

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

good catch!
Attachment #8362611 - Flags: review?(mdas) → review+
Keywords: checkin-needed
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/ae45c9201c8b
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
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: