mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 02:40:22 -10:00
Depends on D46957 We are updating three call sites that were still relying on window.top to get the topmost window. For `getFrameOffsets` and `getRect`, they are currently only called with a non-null `boundaryWindow` argument. That's why this didn't trigger any regression. For `getFrameElement`, I could only find STRs that don't have any user impact. For instance, when the BrowserToolbox debugs a page where you open DevTools, this will load the toolbox in an iframe. This load will trigger `onFrameLoad` in the walker actor. And because we were using `win.top`, getFrameElement would return null, and onFrameLoad will not emit mutations. But I couldn't see any scenario where this had an actual impact for users. Differential Revision: https://phabricator.services.mozilla.com/D46958