Skip to content

Commit

Permalink
core(inspector-issue): remove wasmCrossOriginModuleSharingIssue (#13595)
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Jan 25, 2022
1 parent 62848fb commit f59499a
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 20 deletions.
7 changes: 2 additions & 5 deletions lighthouse-core/gather/gatherers/inspector-issues.js
Expand Up @@ -75,14 +75,11 @@ class InspectorIssues extends FRGatherer {
sameSiteCookieIssue: [],
sharedArrayBufferIssue: [],
twaQualityEnforcement: [],
wasmCrossOriginModuleSharingIssue: [],
};
const keys = /** @type {Array<keyof LH.Artifacts['InspectorIssues']>} */(Object.keys(artifact));
for (const key of keys) {
// The wasmCrossOriginModuleSharingIssue key doesn't follow the pattern of the rest. See
// https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/public/devtools_protocol/browser_protocol.pdl;l=811;drc=9c10bf258928b5d169ba6a449f8f33958f7947ea
/** @type {`${key}Details` | `wasmCrossOriginModuleSharingIssue`} */
const detailsKey = (key === 'wasmCrossOriginModuleSharingIssue' ? `${key}` : `${key}Details`);
/** @type {`${key}Details`} */
const detailsKey = `${key}Details`;
const allDetails = this._issues.map(issue => issue.details[detailsKey]);
for (const detail of allDetails) {
if (!detail) {
Expand Down
Expand Up @@ -29,7 +29,6 @@ describe('Has inspector issues audit', () => {
sameSiteCookieIssue: [],
sharedArrayBufferIssue: [],
twaQualityEnforcement: [],
wasmCrossOriginModuleSharingIssue: [],
};
});

Expand Down
Expand Up @@ -248,7 +248,6 @@ describe('_getArtifact', () => {
quirksModeIssue: [],
sharedArrayBufferIssue: [],
twaQualityEnforcement: [],
wasmCrossOriginModuleSharingIssue: [],
});
});

Expand Down Expand Up @@ -304,7 +303,6 @@ describe('_getArtifact', () => {
quirksModeIssue: [],
sharedArrayBufferIssue: [],
twaQualityEnforcement: [],
wasmCrossOriginModuleSharingIssue: [],
});
});
});
Expand Down Expand Up @@ -365,7 +363,6 @@ describe('FR compat', () => {
quirksModeIssue: [],
sharedArrayBufferIssue: [],
twaQualityEnforcement: [],
wasmCrossOriginModuleSharingIssue: [],
});
});

Expand Down Expand Up @@ -401,7 +398,6 @@ describe('FR compat', () => {
quirksModeIssue: [],
sharedArrayBufferIssue: [],
twaQualityEnforcement: [],
wasmCrossOriginModuleSharingIssue: [],
});
});
});
3 changes: 1 addition & 2 deletions lighthouse-core/test/results/artifacts/artifacts.json
Expand Up @@ -12428,8 +12428,7 @@
"quirksModeIssue": [],
"sameSiteCookieIssue": [],
"sharedArrayBufferIssue": [],
"twaQualityEnforcement": [],
"wasmCrossOriginModuleSharingIssue": []
"twaQualityEnforcement": []
},
"SourceMaps": [],
"FullPageScreenshot": {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -142,7 +142,7 @@
"cpy": "^8.1.2",
"cross-env": "^7.0.2",
"csv-validator": "^0.0.3",
"devtools-protocol": "0.0.957544",
"devtools-protocol": "0.0.963043",
"es-main": "^1.0.2",
"eslint": "^8.4.1",
"eslint-config-google": "^0.14.0",
Expand Down Expand Up @@ -216,7 +216,7 @@
"yargs-parser": "^20.2.4"
},
"resolutions": {
"puppeteer/**/devtools-protocol": "0.0.957544"
"puppeteer/**/devtools-protocol": "0.0.963043"
},
"repository": "GoogleChrome/lighthouse",
"keywords": [
Expand Down
Expand Up @@ -49,7 +49,6 @@ Array [
"sameSiteCookieIssueDetails",
"sharedArrayBufferIssueDetails",
"twaQualityEnforcementDetails",
"wasmCrossOriginModuleSharingIssue",
]
`);
});
Expand Down
1 change: 0 additions & 1 deletion types/artifacts.d.ts
Expand Up @@ -568,7 +568,6 @@ declare module Artifacts {
sameSiteCookieIssue: LH.Crdp.Audits.SameSiteCookieIssueDetails[];
sharedArrayBufferIssue: LH.Crdp.Audits.SharedArrayBufferIssueDetails[];
twaQualityEnforcement: LH.Crdp.Audits.TrustedWebActivityIssueDetails[];
wasmCrossOriginModuleSharingIssue: LH.Crdp.Audits.WasmCrossOriginModuleSharingIssueDetails[];
}

// Computed artifact types below.
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -3240,10 +3240,10 @@ detect-newline@^3.0.0:
resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651"
integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==

devtools-protocol@0.0.901419, devtools-protocol@0.0.957544:
version "0.0.957544"
resolved "https://registry.yarnpkg.com/devtools-protocol/-/devtools-protocol-0.0.957544.tgz#2e05d8ce73bb63a9c96abd40a86cd6e467e24693"
integrity sha512-Fs5II73fwKnh+raJ+u/d/YSN/HfWcW6aERnYWeELzO04yuYt78iItsM9bK10Z0hIDVTVgA40cMK8Lk59SBYDEg==
devtools-protocol@0.0.901419, devtools-protocol@0.0.963043:
version "0.0.963043"
resolved "https://registry.yarnpkg.com/devtools-protocol/-/devtools-protocol-0.0.963043.tgz#03a35b7df8bf5ee64b4c1f4f23ef5e8bd9293efb"
integrity sha512-yROi8O/R6ORwt1oIe5CnXWGZUL1FbbFdjl7hA73STeIeX0jpowZqZsgDBU6wQ3Vr+4M8vByq/dJLcgwZGke4Tw==

diff-sequences@^27.4.0:
version "27.4.0"
Expand Down

0 comments on commit f59499a

Please sign in to comment.