-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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(viewer): switch to 2x viewer within the same tab #5231
Conversation
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.
WFM! 👍
@@ -175,19 +175,18 @@ class LighthouseReportViewer { | |||
} | |||
|
|||
/** | |||
* Opens new tab with compatible report viewer version | |||
* Opens legacy viewer in current tab, then renders report |
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.
comment is a bit weird to me since everything that happens after navigating to legacy viewer isn't captured here
/** | ||
* @override | ||
*/ | ||
sendJsonReport() { |
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.
anything else to undo for viewerPath and whatnot?
also viewer compile seems to be complaining on travis |
#5204 used postMessage to open the 2x viewer, but this faces problems with popup blockers.
This PR reverts most of that one, and uses IDB and
location.href = ...
to store and open the 2x report.The complementary 2.x branch PR to this one is: #5232