Skip to content

Do not use Emulation.setVisibleSize #2831

Closed

Description

@dgozman

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

Activity

  1. brendankenny commented on Aug 2, 2017

    @brendankenny
    Contributor

    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?)

    @paulirish

  2. patrickhulce commented on Aug 2, 2017

    @patrickhulce
    Collaborator

    @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?

  3. dgozman commented on Aug 2, 2017

    @dgozman
    ContributorAuthor

    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.

  4. wardpeet commented on Aug 3, 2017

    @wardpeet
    Collaborator

    @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.

    if (chrome.version < 62) {
      setVisibleSize(...)
    }
    
  5. self-assigned this
    on Oct 2, 2017
  6. added this to the Sprint Uno: Oct 2-13 milestone on Oct 2, 2017
  7. added a commit that references this issue on Oct 12, 2017
    5538a98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions