Bug 846200 - Fix permission granting in reporting.py module; r=davehunt
authorKyle Machulis <kyle@nonpolynomial.com>
Fri, 29 Aug 2014 00:40:08 -0700
changeset 202320 ab60d3c61f55ecfdf29c430c740abbabb98e9e1c
parent 202319 3ecbe14009fbe0fbabc7a7f6cf0b41eeafe3f494
child 202321 50e7ed7a5a9f2811768820a54845a55317ff1840
push id10168
push userkmachulis@mozilla.com
push dateFri, 29 Aug 2014 07:39:33 +0000
treeherderb2g-inbound@ab60d3c61f55 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdavehunt
bugs846200
milestone34.0a1
Bug 846200 - Fix permission granting in reporting.py module; r=davehunt
testing/marionette/client/marionette/runner/mixins/reporting.py
--- a/testing/marionette/client/marionette/runner/mixins/reporting.py
+++ b/testing/marionette/client/marionette/runner/mixins/reporting.py
@@ -248,16 +248,17 @@ class HTMLReportingTestResultMixin(objec
         try:
             # TODO make screenshot consistant size by using full viewport
             # Bug 883294 - Add ability to take full viewport screenshots
             debug['screenshot'] = self.marionette.screenshot()
             debug['source'] = self.marionette.page_source
             self.marionette.switch_to_frame()
             debug['settings'] = json.dumps(self.marionette.execute_async_script("""
 SpecialPowers.addPermission('settings-read', true, document);
+SpecialPowers.addPermission('settings-api-read', true, document);
 var req = window.navigator.mozSettings.createLock().get('*');
 req.onsuccess = function() {
   marionetteScriptFinished(req.result);
 }""", special_powers=True), sort_keys=True, indent=4, separators=(',', ': '))
         except:
             pass
         return debug