Closed
Bug 1090272
Opened 10 years ago
Closed 10 years ago
Attempting to switch to an invalid frame causes a server side error
Categories
(Remote Protocol :: Marionette, defect)
Remote Protocol
Marionette
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla36
People
(Reporter: mdas, Assigned: davehunt)
Details
Attachments
(1 file)
If you do try to switch to an invalid index: framesLength = marionette.execute_script("return window.frames.length") marionette.switch_to_frame(framesLength) or any number higher than framesLength, then the server will try to switch into that non-existing frame and will hit an exception: W/GeckoConsole( 206): [JavaScript Error: "TypeError: curFrame is undefined" {file: "chrome://marionette/content/marionette-listener.js" line: 1778}] We should instead detect that we don't have this number of frames and return an appropriate error.
Reporter | ||
Comment 1•10 years ago
|
||
Also errors out for invalid frame indices like -2
Assignee | ||
Comment 2•10 years ago
|
||
Try: https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=d7dd77333f24
Reporter | ||
Comment 3•10 years ago
|
||
Comment on attachment 8512830 [details] [diff] [review] Raise NoSuchFrameException when attempting to switch to a non-existant frame by index. v1.0 Review of attachment 8512830 [details] [diff] [review]: ----------------------------------------------------------------- awesome, works well locally
Attachment #8512830 -
Flags: review?(mdas) → review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 4•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/69d426d27d31
Keywords: checkin-needed
Comment 5•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/69d426d27d31
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
Updated•1 year ago
|
Product: Testing → Remote Protocol
You need to log in
before you can comment on or make changes to this bug.
Description
•