Closed Bug 895803 Opened 11 years ago Closed 11 years ago

controller.open() doesn't work in Metro mode due to missing stop() method on the browser object

Categories

(Testing Graveyard :: Mozmill, defect, P1)

All
Windows 8.1

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: andrei, Assigned: whimboo)

References

Details

(Keywords: regression, Whiteboard: [mozmill-2.0+][ateamtrack: p=mozmill q=2013q3 m=1])

Attachments

(1 file)

We can't run *any* test under Metro mode atm.
Tracked this regression down to the landing of bug 865641

We need to fix this before the new rc of mozmill 2.0
Bumping priority to P1
Please make sure to file bugs in the right component, and set the right flags and dependencies. This is not a mozmill-test issue.
Blocks: 865641
Component: Mozmill Tests → Mozmill
Keywords: regression
Product: Mozilla QA → Testing
Hardware: x86 → All
Hm, Andrei would you mind to test something for me? What about the following change in controller.js:

-       this.browserObject.stop();
+       this.browserObject.selectedBrowser.stop();

Does that fix the problem for you in Metro mode?
Flags: needinfo?(andrei.eftimie)
Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Awesome, that fixes the issue!
Flags: needinfo?(andrei.eftimie)
Summary: Mozmill fails to run tests Metro mode with the following failure: "this.browserObject.stop is not a function" → controller.open() doesn't work in Metro mode due to missing stop() method on the browser object
Attached patch Patch v1Splinter Review
Turns out that for Firefox Desktop we also have selectedBrowser with the stop() method available. So we can still unify it.
Attachment #778388 - Flags: review?(dave.hunt)
Attachment #778388 - Flags: feedback?(andrei.eftimie)
Comment on attachment 778388 [details] [diff] [review]
Patch v1

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

Looks good.

Works fine in both Metro and Desktop mode and under OSX.
Attachment #778388 - Flags: feedback?(andrei.eftimie) → feedback+
Comment on attachment 778388 [details] [diff] [review]
Patch v1

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

Looks good, thanks Henrik.
Attachment #778388 - Flags: review?(dave.hunt) → review+
Landed as:
https://github.com/mozilla/mozmill/commit/55be32027cb133f734ebd67f31646c46183c87eb
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [mozmill-2.0+] → [mozmill-2.0+][ateamtrack: p=mozmill q=2013q3 m=1]
OS: Windows 8 Metro → Windows 8.1
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: