Skip to content
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

Merged
merged 3 commits into from
May 16, 2018

Conversation

paulirish
Copy link
Member

@paulirish paulirish commented May 16, 2018

#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

2xview

Copy link
Collaborator

@patrickhulce patrickhulce left a 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
Copy link
Collaborator

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() {
Copy link
Collaborator

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?

@patrickhulce
Copy link
Collaborator

also viewer compile seems to be complaining on travis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants