Closed Bug 696494 Opened 13 years ago Closed 13 years ago

Get rid of all gBrowser references in Mozmill

Categories

(Testing Graveyard :: Mozmill, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ahal, Assigned: ahal)

References

Details

Attachments

(1 file)

In desktop Firefox you can use the global gBrowser object to get a reference to the tabbedbrowser. In Fennec, this global object doesn't exist. Instead you need to call window.getBrowser();
This patch replaces all instances of gBrowser with getBrowser().
It passes all the mutt tests (js and python) in desktop Firefox. Note that most (if not all) mozmill tests will still fail in fennec due to chrome code touching content.
Attachment #568785 - Flags: review?(jhammel)
Blocks: 695026
Comment on attachment 568785 [details] [diff] [review]
Patch 1.0 - Replace gBrowser with getBrowser()

i'm surprised that's all there is but if it passes tests, looks good :)
Attachment #568785 - Flags: review?(jhammel) → review+
confirmed that this passes with mutt for me (linux 32, nightly)
Yeah, I'm surprised it was that simple as well, though it makes sense since gBrowser is basically just a convenience object.

master: https://github.com/mozautomation/mozmill/commit/73a99688375719e300281d40f7693573e3dbd086
Assignee: nobody → ahalberstadt
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
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: