### Description I noticed while implementing the [Select Translations Panel](https://bugzilla.mozilla.org/show_bug.cgi?id=1870298) that calling `panel.getOuterScreenRect()` while using Wayland returns the { x: 0, y: 0 } location of the panel every time, compared to X11 which returns the correct location. --- ### Steps to Reproduce 1) Build and run Firefox on Linux using Wayland `export MOZ_ENABLE_WAYLAND=1`. 1a) Open `about:support` and confirm that the `Window Protocol` row says `wayland`. 2) Open the Browser Toolbox and Disable Popup Auto-Hide. 3) Navigate to any web page, e.g. https://es.wikipedia.org. 4) Select some text and open the right-click content context menu. 5) Click the context-menu item that says "Translate Selection to {language}". 6) Use the Browser Toolbox to select the open panel and navigate to the `<panel id="select-translations-panel">` element. 7) Right click the `<panel id="select-translations-panel">` element in the Browser Toolbox and click "Use in Console". 8) When the `temp0` variable appears in the console, run `temp0.getOuterScreenRect()`. **Expected Behavior** The resulting `DOMRect` object has the correct dimensions **and location of the panel**. **Actual Behavior** The resulting `DOMRect` has correct dimensions, **but the location is set to `{ x: 0, y: 0 }`** ``` DOMRect { x: 0, y: 0, width: 455, height: 447, top: 0, right: 455, bottom: 447, left: 0 } ```
Bug 1895036 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
### Description I noticed while implementing the [Select Translations Panel](https://bugzilla.mozilla.org/show_bug.cgi?id=1870298) that calling `panel.getOuterScreenRect()` while using Wayland returns the `{ x: 0, y: 0 }` location of the panel every time, compared to X11 which returns the correct location. --- ### Steps to Reproduce 1) Build and run Firefox on Linux using Wayland `export MOZ_ENABLE_WAYLAND=1`. 1a) Open `about:support` and confirm that the `Window Protocol` row says `wayland`. 2) Open the Browser Toolbox and Disable Popup Auto-Hide. 3) Navigate to any web page, e.g. https://es.wikipedia.org. 4) Select some text and open the right-click content context menu. 5) Click the context-menu item that says "Translate Selection to {language}". 6) Use the Browser Toolbox to select the open panel and navigate to the `<panel id="select-translations-panel">` element. 7) Right click the `<panel id="select-translations-panel">` element in the Browser Toolbox and click "Use in Console". 8) When the `temp0` variable appears in the console, run `temp0.getOuterScreenRect()`. **Expected Behavior** The resulting `DOMRect` object has the correct dimensions **and location of the panel**. **Actual Behavior** The resulting `DOMRect` has correct dimensions, **but the location is set to `{ x: 0, y: 0 }`** ``` DOMRect { x: 0, y: 0, width: 455, height: 447, top: 0, right: 455, bottom: 447, left: 0 } ```
### Description I noticed while implementing the [Select Translations Panel](https://bugzilla.mozilla.org/show_bug.cgi?id=1870298) that calling `panel.getOuterScreenRect()` while using Wayland returns the `{ x: 0, y: 0 }` location of the panel every time, compared to X11 which returns the correct location. --- ### Steps to Reproduce 1) Build and run Firefox on Linux using Wayland `export MOZ_ENABLE_WAYLAND=1`. 2) Open `about:support` and confirm that the `Window Protocol` row says `wayland`. 3) Open the Browser Toolbox and Disable Popup Auto-Hide. 4) Navigate to any web page, e.g. https://es.wikipedia.org. 5) Select some text and open the right-click content context menu. 6) Click the context-menu item that says "Translate Selection to {language}". 7) Use the Browser Toolbox to select the open panel and navigate to the `<panel id="select-translations-panel">` element. 8) Right click the `<panel id="select-translations-panel">` element in the Browser Toolbox and click "Use in Console". 9) When the `temp0` variable appears in the console, run `temp0.getOuterScreenRect()`. **Expected Behavior** The resulting `DOMRect` object has the correct dimensions **and location of the panel**. **Actual Behavior** The resulting `DOMRect` has correct dimensions, **but the location is set to `{ x: 0, y: 0 }`** ``` DOMRect { x: 0, y: 0, width: 455, height: 447, top: 0, right: 455, bottom: 447, left: 0 } ```
### Description I noticed while implementing the [Select Translations Panel](https://bugzilla.mozilla.org/show_bug.cgi?id=1870298) that calling `panel.getOuterScreenRect()` while using Wayland returns the `{ x: 0, y: 0 }` location of the panel every time, compared to X11 which returns the correct location. --- ### Steps to Reproduce 1) Build and run Firefox on Linux using Wayland `export MOZ_ENABLE_WAYLAND=1`. 2) Open `about:support` and confirm that the `Window Protocol` row says `wayland`. 3) Open the Browser Toolbox and Disable Popup Auto-Hide. 4) Navigate to any web page, e.g. https://es.wikipedia.org. 5) Select some text and open the right-click content context menu. 6) Click the context-menu item that says "Translate Selection to {language}". 7) Use the Browser Toolbox to select the open panel and navigate to the `<panel id="select-translations-panel">` element. 8) Right click the `<panel id="select-translations-panel">` element in the Browser Toolbox and click "Use in Console". 9) When the `temp0` variable appears in the console, run `temp0.getOuterScreenRect()`. **Expected Behavior** The resulting `DOMRect` object has the correct dimensions **and location of the panel**. **Actual Behavior** The resulting `DOMRect` has correct dimensions, **but the location is set to `{ x: 0, y: 0 }`** ``` DOMRect { x: 0, y: 0, width: 455, height: 447, top: 0, right: 455, bottom: 447, left: 0 } ```
### Description I noticed while implementing the [Select Translations Panel](https://bugzilla.mozilla.org/show_bug.cgi?id=1870298) that calling `panel.getOuterScreenRect()` while using Wayland returns the `{ x: 0, y: 0 }` location of the panel every time, compared to X11 which returns the correct location. --- ### Steps to Reproduce 1) Build and run Firefox on Linux using Wayland `export MOZ_ENABLE_WAYLAND=1`. 2) Open `about:support` and confirm that the `Window Protocol` row says `wayland`. 3) Open the Browser Toolbox and Disable Popup Auto-Hide. 4) Navigate to any web page, e.g. https://es.wikipedia.org. 5) Select some text on the page and open the right-click content context menu. 6) Click the context-menu item that says "Translate Selection to {language}". 7) Use the Browser Toolbox to select the open panel and navigate to the `<panel id="select-translations-panel">` element. 8) Right click the `<panel id="select-translations-panel">` element in the Browser Toolbox and click "Use in Console". 9) When the `temp0` variable appears in the console, run `temp0.getOuterScreenRect()`. **Expected Behavior** The resulting `DOMRect` object has the correct dimensions **and location of the panel**. **Actual Behavior** The resulting `DOMRect` has correct dimensions, **but the location is set to `{ x: 0, y: 0 }`** ``` DOMRect { x: 0, y: 0, width: 455, height: 447, top: 0, right: 455, bottom: 447, left: 0 } ```
### Description I noticed while implementing the [Select Translations Panel](https://bugzilla.mozilla.org/show_bug.cgi?id=1870298) that calling `panel.getOuterScreenRect()` while using Wayland returns the `{ x: 0, y: 0 }` location of the panel every time, compared to X11 which returns the correct location. --- ### Steps to Reproduce 1) Build and run Firefox on Linux using Wayland `export MOZ_ENABLE_WAYLAND=1`. 2) Open `about:support` and confirm that the `Window Protocol` row says `wayland`. 3) Open the Browser Toolbox and Disable Popup Auto-Hide. 4) Navigate to any web page, e.g. https://es.wikipedia.org. 5) Select some text on the page and open the right-click content context menu. 6) Click the context-menu item that says "Translate Selection to {language}". 7) Wait for the panel to open and complete its translation. 8) Use the Browser Toolbox to select the open panel and navigate to the `<panel id="select-translations-panel">` element. 9) Right click the `<panel id="select-translations-panel">` element in the Browser Toolbox and click "Use in Console". 10) When the `temp0` variable appears in the console, run `temp0.getOuterScreenRect()`. **Expected Behavior** The resulting `DOMRect` object has the correct dimensions **and location of the panel**. **Actual Behavior** The resulting `DOMRect` has correct dimensions, **but the location is set to `{ x: 0, y: 0 }`** ``` DOMRect { x: 0, y: 0, width: 455, height: 447, top: 0, right: 455, bottom: 447, left: 0 } ```