Bug 1255894: Part 12 - Re-enable response body filtering in release builds. r=me
authorKris Maglione <maglione.k@gmail.com>
Thu, 07 Sep 2017 16:39:00 -0700
changeset 429128 604fd3302562dc2059a8de3231818a1b618b8ffe
parent 429127 74c32b25b40364c4126872c52ee24c02e8cb4a2e
child 429129 70dca88c5cc3cfb927d49068645456e913e5e7ff
push id7761
push userjlund@mozilla.com
push dateFri, 15 Sep 2017 00:19:52 +0000
treeherdermozilla-beta@c38455951db4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1255894
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1255894: Part 12 - Re-enable response body filtering in release builds. r=me MozReview-Commit-ID: AEEkHir3FvG
toolkit/components/extensions/ext-c-webRequest.js
toolkit/components/extensions/test/mochitest/mochitest-common.ini
--- a/toolkit/components/extensions/ext-c-webRequest.js
+++ b/toolkit/components/extensions/ext-c-webRequest.js
@@ -1,24 +1,17 @@
 /* -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- */
 /* vim: set sts=2 sw=2 et tw=80: */
 "use strict";
 
-var {
-  ExtensionError,
-} = ExtensionCommon;
-
 this.webRequest = class extends ExtensionAPI {
   getAPI(context) {
     return {
       webRequest: {
         filterResponseData(requestId) {
-          if (AppConstants.RELEASE_OR_BETA) {
-            throw new ExtensionError("filterResponseData() unsupported in release builds");
-          }
           requestId = parseInt(requestId, 10);
 
           return context.cloneScope.StreamFilter.create(
             requestId, context.extension.id);
         },
       },
     };
   }
--- a/toolkit/components/extensions/test/mochitest/mochitest-common.ini
+++ b/toolkit/components/extensions/test/mochitest/mochitest-common.ini
@@ -127,17 +127,17 @@ skip-if = os == 'android'
 [test_ext_webrequest_auth.html]
 skip-if = os == 'android'
 [test_ext_webrequest_background_events.html]
 [test_ext_webrequest_hsts.html]
 [test_ext_webrequest_basic.html]
 [test_ext_webrequest_filter.html]
 [test_ext_webrequest_frameId.html]
 [test_ext_webrequest_responseBody.html]
-skip-if = release_or_beta || os == 'android'
+skip-if = os == 'android'
 [test_ext_webrequest_suspend.html]
 [test_ext_webrequest_upload.html]
 skip-if = os == 'android' # Currently fails in emulator tests
 [test_ext_webrequest_permission.html]
 [test_ext_webrequest_websocket.html]
 [test_ext_webnavigation.html]
 [test_ext_webnavigation_filters.html]
 [test_ext_window_postMessage.html]