Skip to content
This repository has been archived by the owner on Aug 20, 2018. It is now read-only.

Bug 762126 - Allow to specify the screenshot path via the persisted object (CLI option) #81

Closed
wants to merge 10 commits into from

Conversation

davehunt
Copy link
Member

This created the file in the appropriate directory, however I was unable to open the image even if it was created in the temporary path location. There also seems to be some discrepancy with file types - a comment mentions PNG but the file name is JPG.

let file = Cc["@mozilla.org/file/directory_service;1"]
.getService(Ci.nsIProperties).get("TmpD", Ci.nsILocalFile);
file.append("mozmill_screenshots");
var frame = {}; Components.utils.import('resource://mozmill/modules/frame.js', frame);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we import frame I would say we should do it globally.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you provide some guidance here? If I take this out of the method scope I am no longer able to retrieve the screenshotPath. No errors, but the screenshot is saved in the temporary directory.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where have you moved this line to? To the top of the module? Where the other import statements are? That should work and I don't see a reason why it fails. I would need some code to give a qualified answer.

@davehunt
Copy link
Member Author

I rebased and got in a bit of a mess here, so I've moved to another pull request (#88).

@davehunt davehunt closed this Aug 16, 2012
@whimboo
Copy link
Contributor

whimboo commented Aug 16, 2012

You can always force a push or retrieve the code again from your remote branch. Just for the next time.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants