MicrosoftEdge / MicrosoftEdge/WebView2Feedback

window.moveTo does not work

Open
#1,153 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug priority-low tracked
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Description
window.moveTo() does not work in WebView2. It works in browsers, but only in certain contexts (e.g. popup windows, but not browser tabs).

Version
SDK: 1.0.774.44
Runtime: Stable 89.0.774.68
Framework: Win32
OS: Windows 10 20H2

Repro Steps
I just took the getting started guide: https://docs.microsoft.com/en-us/microsoft-edge/webview2/gettingstarted/win32
And set the navigation URL to this repro page: https://downloads.scirra.com/labs/bugs/window-moveto.html

Clicking the button calls window.moveTo(10, 10). This does not work in WebView2. Perhaps the webview could automatically position its parent window (if we tell it which window that is and allow it).

AB#32474687

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Win32 getting started guide and run the linked window.moveTo repro page in the stated WebView2 runtime. Compare the behavior with browsers and determine whether the reported call should move the host window; the work is done when the behavior is resolved or its supported limitation is clearly established.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
desktop-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.