-
Notifications
You must be signed in to change notification settings - Fork 9.5k
core(full-page-screenshot): remove audit, move to top-level #14657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -205,12 +205,16 @@ function getYargsParser(manualArgv) { | |||
type: 'string', | |||
describe: 'The path to the budget.json file for LightWallet.', | |||
}, | |||
'disable-full-page-screenshot': { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit long, I think we can shorten to --disable-screenshot
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are so many screenshots that could refer to.
@@ -60,6 +60,7 @@ export class ReportUIFeatures { | |||
*/ | |||
initFeatures(lhr) { | |||
this.json = lhr; | |||
this._fullPageScreenshot = Util.getFullPageScreenshot(lhr); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to store this on the object? getFullPageScreenshot
isn't an expensive operation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typechecking. It needed to be set to a variable somewhere to do type narrowing.
Co-authored-by: Adam Raine <[email protected]>
full-page-screenshot
auditMake FullPageScreenshot a legacy base artifact. Remains a regular FR artifact.this was a bad idea because in legacy bf-cache-failures (which is disabled for FR) needs to happen LAST, so this became too hacky to run FPS code at just the right time in legacy afterPass.lhr.fullPageScreenshot
disableFullPageScreenshot
setting and--disable-full-page-screenshot
CLI flag