You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not needed anymore, since setDeviceMetricsOverride does it automatically.
We are going to remove setVisibleSize soon, so we better stop calling it from lighthouse.
EDIT: dmitry indicates this was removed in m61, but we need to verify that.
verified that the protocol changes are in 61.0.3155.0
Hmm, was setDeviceMetricsOverride fixed after a screenshot bug a few months ago? We added setVisibleSize in #1839 when we our screenshots weren't cropped to the emulated viewport size. Not sure what the story was at the time (did we file a crbug? or is that WAI and we need to do something else for screenshots?)
That's correct, it was fixed recently. Might even have to wait for m62 to be on the safe side. I just filed this to not forget about cleanup opportunity.
@brendankenny@patrickhulce how do we feel to already beta test this with wrapping it around an if so we can test on canary or isn't this something we want.
Activity
brendankenny commentedon Aug 2, 2017
Hmm, was
setDeviceMetricsOverridefixed after a screenshot bug a few months ago? We addedsetVisibleSizein #1839 when we our screenshots weren't cropped to the emulated viewport size. Not sure what the story was at the time (did we file a crbug? or is that WAI and we need to do something else for screenshots?)@paulirish
patrickhulce commentedon Aug 2, 2017
@brendankenny I think it was fixed recently to be unnecessary, so we might need to wait for m61 to hit stable before removing it entirely?
dgozman commentedon Aug 2, 2017
That's correct, it was fixed recently. Might even have to wait for m62 to be on the safe side. I just filed this to not forget about cleanup opportunity.
wardpeet commentedon Aug 3, 2017
@brendankenny @patrickhulce how do we feel to already beta test this with wrapping it around an if so we can test on canary or isn't this something we want.
core(emulation): remove use of deprecated Emulation.setVisibleSize