{"action":"opened","issue":{"url":"https://api.github.com/repos/karma-runner/karma-firefox-launcher/issues/30","labels_url":"https://api.github.com/repos/karma-runner/karma-firefox-launcher/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/karma-runner/karma-firefox-launcher/issues/30/comments","events_url":"https://api.github.com/repos/karma-runner/karma-firefox-launcher/issues/30/events","html_url":"https://github.com/karma-runner/karma-firefox-launcher/issues/30","id":64012534,"number":30,"title":"Allow height and width to be given to allow responsive testing","user":{"login":"jamescookie","id":805926,"avatar_url":"https://avatars.githubusercontent.com/u/805926?v=3","gravatar_id":"","url":"https://api.github.com/users/jamescookie","html_url":"https://github.com/jamescookie","followers_url":"https://api.github.com/users/jamescookie/followers","following_url":"https://api.github.com/users/jamescookie/following{/other_user}","gists_url":"https://api.github.com/users/jamescookie/gists{/gist_id}","starred_url":"https://api.github.com/users/jamescookie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamescookie/subscriptions","organizations_url":"https://api.github.com/users/jamescookie/orgs","repos_url":"https://api.github.com/users/jamescookie/repos","events_url":"https://api.github.com/users/jamescookie/events{/privacy}","received_events_url":"https://api.github.com/users/jamescookie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-24T14:38:21Z","updated_at":"2015-03-24T14:38:21Z","closed_at":null,"body":"Both PhantomJS and Chrome allow you to give the initial dimensions of the browser to allow responsive testing, but not firefox.\r\n\r\nI thought it would be trivial but it turns out not to be simple. \r\n\r\nModifying this [line](https://github.com/karma-runner/karma-firefox-launcher/blob/master/index.js#L55) to the following should work, but doesn't?\r\n\r\n```\r\nself._execCommand(command, [url, '-profile', self._tempDir, '-no-remote -width 335 -height 670']);\r\n```\r\n\r\nThis is what I did get working, but it's not pretty - Add the following before this [line](https://github.com/karma-runner/karma-firefox-launcher/blob/master/index.js#L54):\r\n\r\n```\r\nfs.writeFileSync(self._tempDir + '/xulstore.json', '{\"chrome://browser/content/browser.xul\":{\"main-window\":{\"width\":\"335\",\"height\":\"670\"}}}');\r\n```\r\n\r\nObviously, the height and width should be passed in (I was just tinkering to try to get it to work)\r\n\r\nMaybe something else altogether?\r\n"}}