{"action":"created","issue":{"url":"https://api.github.com/repos/MobileChromeApps/cordova-plugin-chrome-apps-bootstrap/issues/5","labels_url":"https://api.github.com/repos/MobileChromeApps/cordova-plugin-chrome-apps-bootstrap/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/MobileChromeApps/cordova-plugin-chrome-apps-bootstrap/issues/5/comments","events_url":"https://api.github.com/repos/MobileChromeApps/cordova-plugin-chrome-apps-bootstrap/issues/5/events","html_url":"https://github.com/MobileChromeApps/cordova-plugin-chrome-apps-bootstrap/issues/5","id":96005517,"number":5,"title":"Unconfigurable attribute for window.location","user":{"login":"wuhengzhi","id":1527639,"avatar_url":"https://avatars.githubusercontent.com/u/1527639?v=3","gravatar_id":"","url":"https://api.github.com/users/wuhengzhi","html_url":"https://github.com/wuhengzhi","followers_url":"https://api.github.com/users/wuhengzhi/followers","following_url":"https://api.github.com/users/wuhengzhi/following{/other_user}","gists_url":"https://api.github.com/users/wuhengzhi/gists{/gist_id}","starred_url":"https://api.github.com/users/wuhengzhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wuhengzhi/subscriptions","organizations_url":"https://api.github.com/users/wuhengzhi/orgs","repos_url":"https://api.github.com/users/wuhengzhi/repos","events_url":"https://api.github.com/users/wuhengzhi/events{/privacy}","received_events_url":"https://api.github.com/users/wuhengzhi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-20T07:49:51Z","updated_at":"2015-08-20T15:08:29Z","closed_at":"2015-07-27T19:58:41Z","body":"@agrieve Please look at https://codereview.chromium.org/1148803003, the attributes for window.location were made of Unforgeable, that is the attributes are unconfigurable.\r\nIn api/app/window.js,\r\n```\r\n  var hostDescriptor = {\r\n    configurable: true,\r\n    enumerable: true,\r\n    get: function() {\r\n      var parts = /^([^:]*):\\/\\/([^/]*)(\\/[^#?]*)/.exec(this.href);\r\n      return parts ? parts[2] : \"\";\r\n    }\r\n  };\r\n```\r\n```configurable: true``` should be removed or set to false.\r\nThis issue causes the CrossWalk black screen when use this plugin. Please look at https://crosswalk-project.org/jira/browse/XWALK-4554"},"comment":{"url":"https://api.github.com/repos/MobileChromeApps/cordova-plugin-chrome-apps-bootstrap/issues/comments/133043767","html_url":"https://github.com/MobileChromeApps/cordova-plugin-chrome-apps-bootstrap/issues/5#issuecomment-133043767","issue_url":"https://api.github.com/repos/MobileChromeApps/cordova-plugin-chrome-apps-bootstrap/issues/5","id":133043767,"user":{"login":"scalasm","id":4135077,"avatar_url":"https://avatars.githubusercontent.com/u/4135077?v=3","gravatar_id":"","url":"https://api.github.com/users/scalasm","html_url":"https://github.com/scalasm","followers_url":"https://api.github.com/users/scalasm/followers","following_url":"https://api.github.com/users/scalasm/following{/other_user}","gists_url":"https://api.github.com/users/scalasm/gists{/gist_id}","starred_url":"https://api.github.com/users/scalasm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scalasm/subscriptions","organizations_url":"https://api.github.com/users/scalasm/orgs","repos_url":"https://api.github.com/users/scalasm/repos","events_url":"https://api.github.com/users/scalasm/events{/privacy}","received_events_url":"https://api.github.com/users/scalasm/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T15:08:29Z","updated_at":"2015-08-20T15:08:29Z","body":"I'm quite new to Cordova and Chome Apps so maybe I'm doing particularly stupid when following the guide. I updated to 0.7.4 and created an Hello World project from scratch and:\r\n\r\n1) if I package & deploy the app by using \"cca run android --device\", the app runs ok on my device;\r\n2) if I use the Chrome Dev Editor (for making use of the live deployment feature) I see the blank screen and on the logcat I'm always getting something like this:\r\n\r\nD/SystemWebChromeClient(29861): : Line 0 : Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.\r\nI/chromium(29861): [INFO:CONSOLE(0)] \"Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.\", source:  (0)\r\nD/CordovaWebViewImpl(29861): onPageFinished(file:///data/data/org.chromium.appdevtool/files/apps/app1uun3rt/www/plugins/cordova-plugin-chrome-apps-bootstrap/chromeapp.html)\r\nW/BindingManager(29861): Cannot call determinedVisibility() - never saw a connection for the pid: 29861\r\nD/SystemWebChromeClient(29861): file:///data/data/org.chromium.appdevtool/files/apps/app1uun3rt/www/plugins/cordova-plugin-chrome-apps-bootstrap/api/app/window.js: Line 237 : Uncaught TypeError: Cannot redefine property: host\r\nI/chromium(29861): [INFO:CONSOLE(237)] \"Uncaught TypeError: Cannot redefine property: host\", source: file:///data/data/org.chromium.appdevtool/files/apps/app1uun3rt/www/plugins/cordova-plugin-chrome-apps-bootstrap/api/app/window.js (237)\r\n\r\nAny idea?  "}}