Bug 1570997 - Remove fetchCacheDescriptor trait. r=jdescottes.

This was added in Firefox 61, so we can safely remove it now.

Differential Revision: https://phabricator.services.mozilla.com/D40543

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Nicolas Chevobbe 2019-08-06 15:41:18 +00:00
parent 05df0254b8
commit 57a0bb08b3
3 changed files with 1 additions and 8 deletions

View File

@ -568,15 +568,10 @@ class WebConsoleWrapper {
// that networkInfo.updates has all we need.
// Note that 'requestPostData' is sent only for POST requests, so we need
// to count with that.
// 'fetchCacheDescriptor' will also cause a network update and increment
// the number of networkInfo.updates
const NUMBER_OF_NETWORK_UPDATE = 8;
let expectedLength = NUMBER_OF_NETWORK_UPDATE;
if (
this.webConsoleUI.webConsoleClient.traits.fetchCacheDescriptor &&
res.networkInfo.updates.includes("responseCache")
) {
if (res.networkInfo.updates.includes("responseCache")) {
expectedLength++;
}
if (res.networkInfo.updates.includes("requestPostData")) {

View File

@ -218,7 +218,6 @@ const WebConsoleActor = ActorClassWithSpec(webconsoleSpec, {
this.traits = {
transferredResponseSize: true,
selectedObjectActor: true, // 44+
fetchCacheDescriptor: true,
};
if (this.dbg.replaying && !isWorker) {

View File

@ -16,7 +16,6 @@ types.addDictType("console.traits", {
evaluateJSAsync: "boolean",
transferredResponseSize: "boolean",
selectedObjectActor: "boolean",
fetchCacheDescriptor: "boolean",
});
types.addDictType("console.startlisteners", {