{"action":"created","issue":{"url":"https://api.github.com/repos/vanowm/FirefoxCookiesManagerPlus/issues/123","repository_url":"https://api.github.com/repos/vanowm/FirefoxCookiesManagerPlus","labels_url":"https://api.github.com/repos/vanowm/FirefoxCookiesManagerPlus/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/vanowm/FirefoxCookiesManagerPlus/issues/123/comments","events_url":"https://api.github.com/repos/vanowm/FirefoxCookiesManagerPlus/issues/123/events","html_url":"https://github.com/vanowm/FirefoxCookiesManagerPlus/issues/123","id":181078823,"number":123,"title":"Read-Only not working","user":{"login":"SergeGardien","id":21199594,"avatar_url":"https://avatars.githubusercontent.com/u/21199594?v=3","gravatar_id":"","url":"https://api.github.com/users/SergeGardien","html_url":"https://github.com/SergeGardien","followers_url":"https://api.github.com/users/SergeGardien/followers","following_url":"https://api.github.com/users/SergeGardien/following{/other_user}","gists_url":"https://api.github.com/users/SergeGardien/gists{/gist_id}","starred_url":"https://api.github.com/users/SergeGardien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergeGardien/subscriptions","organizations_url":"https://api.github.com/users/SergeGardien/orgs","repos_url":"https://api.github.com/users/SergeGardien/repos","events_url":"https://api.github.com/users/SergeGardien/events{/privacy}","received_events_url":"https://api.github.com/users/SergeGardien/received_events","type":"User","site_admin":false},"labels":[{"id":170782554,"url":"https://api.github.com/repos/vanowm/FirefoxCookiesManagerPlus/labels/Bug","name":"Bug","color":"fc2929","default":false},{"id":353267635,"url":"https://api.github.com/repos/vanowm/FirefoxCookiesManagerPlus/labels/Need%20info","name":"Need info","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-10-05T07:01:42Z","updated_at":"2016-11-01T00:31:27Z","closed_at":null,"body":"I've set the content and expiry date of a cookie to read-only but this is reset to read-write soon as I close and reopen Firefox.\n\nI've tried the \"Set as default cookies manager\" option for Cookies Manager+ with no luck.\n\nHow can I fix this issue?\n"},"comment":{"url":"https://api.github.com/repos/vanowm/FirefoxCookiesManagerPlus/issues/comments/257461000","html_url":"https://github.com/vanowm/FirefoxCookiesManagerPlus/issues/123#issuecomment-257461000","issue_url":"https://api.github.com/repos/vanowm/FirefoxCookiesManagerPlus/issues/123","id":257461000,"user":{"login":"vanowm","id":511517,"avatar_url":"https://avatars.githubusercontent.com/u/511517?v=3","gravatar_id":"","url":"https://api.github.com/users/vanowm","html_url":"https://github.com/vanowm","followers_url":"https://api.github.com/users/vanowm/followers","following_url":"https://api.github.com/users/vanowm/following{/other_user}","gists_url":"https://api.github.com/users/vanowm/gists{/gist_id}","starred_url":"https://api.github.com/users/vanowm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanowm/subscriptions","organizations_url":"https://api.github.com/users/vanowm/orgs","repos_url":"https://api.github.com/users/vanowm/repos","events_url":"https://api.github.com/users/vanowm/events{/privacy}","received_events_url":"https://api.github.com/users/vanowm/received_events","type":"User","site_admin":false},"created_at":"2016-11-01T00:31:27Z","updated_at":"2016-11-01T00:31:27Z","body":"I can now reproduce it myself. The readonly data is not being saved at all.\r\nFor unknown reason JSON.stringify at [line 706 in coomanPlusCore.jsm](https://github.com/vanowm/FirefoxCookiesManagerPlus/blob/af18ee4640bdb61a15150856462880f48c8be736/src/chrome/modules/coomanPlusCore.jsm#L706) returns empty readonly object.\r\n\r\nFor debug added  two lines:\r\n```\r\nlog(data.readonly, 1);\r\nlog(JSON.stringify(data.readonly));\r\n```\r\n\r\nIt returned:\r\n```\r\nCM+ (coomanPlusCore.jsm:709:1): (object):\r\nCU61t4JuyExUKrAuZj0Ekg== (object): [object Object]\r\n{\r\n    expires (number): 1666350653\r\n}\r\n\r\n ----------\r\nCM+ (coomanPlusCore.jsm:710:1): (string):[]\r\n\r\n```\r\nWHAT THE F@???\r\n\r\nIt probably has something to do with the mess in scopes, that mozilla created.\r\nI filed a bug report about similar [issue](https://bugzilla.mozilla.org/show_bug.cgi?id=1261622) a while back.\r\n\r\nIMO mozilla is trying [kill off XUL based extensions](https://blog.mozilla.org/addons/2015/08/21/the-future-of-developing-firefox-add-ons/) by driving developers insane with this kind of bullsh!t."}}
{"actor":{"display_login":"vanowm"}}