-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
misc: replace TODOs with github issue links #7049
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,8 +129,6 @@ class OptimizedImages extends Gatherer { | |
* @return {Promise<?{fromProtocol: boolean, originalSize: number, jpegSize: number, webpSize: number}>} | ||
*/ | ||
calculateImageStats(driver, networkRecord) { | ||
// TODO(phulce): remove this dance of trying _getEncodedResponse with a fallback when Audits | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. at this point, I'm not sure it makes sense. It's a solid fallback option for when the protocol fails. |
||
// domain hits stable in Chrome 62 | ||
return Promise.resolve(networkRecord.requestId).then(requestId => { | ||
if (this._getEncodedResponseUnsupported) return; | ||
return this._getEncodedResponse(driver, requestId, 'jpeg').then(jpegData => { | ||
|
@@ -153,7 +151,7 @@ class OptimizedImages extends Gatherer { | |
}).then(result => { | ||
if (result) return result; | ||
|
||
// Take the slower fallback path if getEncodedResponse isn't available yet | ||
// Take the slower fallback path if getEncodedResponse didn't work | ||
// CORS canvas tainting doesn't support cross-origin images, so skip them early | ||
if (!networkRecord.isSameOrigin && !networkRecord.isBase64DataUri) return null; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -221,7 +221,7 @@ class NetworkRecorder extends EventEmitter { | |
return; | ||
} | ||
|
||
// TODO(phulce): log these to sentry? | ||
// TODO: https://github.com/GoogleChrome/lighthouse/issues/7041 | ||
if (!data.redirectResponse) { | ||
return; | ||
} | ||
|
@@ -231,7 +231,6 @@ class NetworkRecorder extends EventEmitter { | |
const modifiedData = { | ||
...data, | ||
// Copy over the initiator as well to match DevTools behavior | ||
// TODO(phulce): abandon this DT hack and update Lantern graph to handle it | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not convinced this is necessary anymore, it's probably easier to just stay in sync with wht devtools does |
||
initiator: originalRequest.initiator, | ||
requestId: `${originalRequest.requestId}:redirect`, | ||
}; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,6 @@ const RESOURCE_TYPES = { | |
module.exports = class NetworkRequest { | ||
constructor() { | ||
this.requestId = ''; | ||
// TODO(phulce): remove default DevTools connectionId | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not convinced this is necessary anymore |
||
this.connectionId = '0'; | ||
this.connectionReused = false; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,6 @@ trap teardown EXIT | |
|
||
colorText "Generating a fresh LHR..." "$purple" | ||
set -x | ||
# TODO(phulce): add a lantern LHR-differ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not convinced this is necessary anymore |
||
node "$lhroot_path/lighthouse-cli" -A="$lhroot_path/lighthouse-core/test/results/artifacts" --throttling-method=devtools --quiet --output=json --output-path="$freshLHRPath" | ||
set +x | ||
|
||
|
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.
I'm not sure if it's worth keeping the TODO for things like this that aren't so targeted at a single point (or that single point is easy to find again since the goal is to remove something altogether)
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.
removed