Skip to content

Commit

Permalink
core: remove no-unload-listeners audit (#15874)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamraine committed Mar 27, 2024
1 parent 157ff8b commit fc7dc87
Show file tree
Hide file tree
Showing 60 changed files with 282 additions and 1,198 deletions.
20 changes: 0 additions & 20 deletions cli/test/smokehouse/test-definitions/dobetterweb.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,6 @@ const expectations = {
},
},
],
GlobalListeners: [{
type: 'unload',
scriptId: /^\d+$/,
lineNumber: '>300',
columnNumber: '>30',
}],
DevtoolsLog: {
_includes: [
// Ensure we are getting async call stacks.
Expand Down Expand Up @@ -479,20 +473,6 @@ const expectations = {
],
},
},
'no-unload-listeners': {
score: 0,
details: {
items: [{
source: {
type: 'source-location',
url: 'http://localhost:10200/dobetterweb/dbw_tester.html',
urlProvider: 'network',
line: '>300',
column: '>30',
},
}],
},
},
'bf-cache': {
details: {
items: [
Expand Down
86 changes: 0 additions & 86 deletions core/audits/no-unload-listeners.js

This file was deleted.

3 changes: 0 additions & 3 deletions core/config/default-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ const defaultConfig = {
{id: 'EmbeddedContent', gatherer: 'seo/embedded-content'},
{id: 'FontSize', gatherer: 'seo/font-size'},
{id: 'Inputs', gatherer: 'inputs'},
{id: 'GlobalListeners', gatherer: 'global-listeners'},
{id: 'IFrameElements', gatherer: 'iframe-elements'},
{id: 'ImageElements', gatherer: 'image-elements'},
{id: 'InstallabilityErrors', gatherer: 'installability-errors'},
Expand Down Expand Up @@ -222,7 +221,6 @@ const defaultConfig = {
'layout-shift-elements',
'layout-shifts',
'long-tasks',
'no-unload-listeners',
'non-composited-animations',
'unsized-images',
'valid-source-maps',
Expand Down Expand Up @@ -605,7 +603,6 @@ const defaultConfig = {
{id: 'doctype', weight: 1, group: 'best-practices-browser-compat'},
{id: 'charset', weight: 1, group: 'best-practices-browser-compat'},
// General Group
{id: 'no-unload-listeners', weight: 1, group: 'best-practices-general'},
{id: 'js-libraries', weight: 0, group: 'best-practices-general'},
{id: 'deprecations', weight: 5, group: 'best-practices-general'},
{id: 'third-party-cookies', weight: 5, group: 'best-practices-general'},
Expand Down
108 changes: 0 additions & 108 deletions core/gather/gatherers/global-listeners.js

This file was deleted.

91 changes: 0 additions & 91 deletions core/test/audits/no-unload-listeners-test.js

This file was deleted.

Loading

0 comments on commit fc7dc87

Please sign in to comment.