Closed Bug 1816472 Opened 3 years ago Closed 3 years ago

Try to remove setters for individual window size / position properties.

Categories

(Core :: DOM: Core & HTML, task)

task

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(2 files, 1 obsolete file)

They are problematic as described in bug 1803611.

Content can't do this already, so it seems it should be feasible to remove this by replacing screenX setters by moveTo(<foo>, screenY) etc.

They are problematic as described in bug 1803611.

Content can't do this already, so it seems it should be feasible to
remove this by replacing screenX setters by moveTo(<foo>, screenY) etc.

I'm running a diagnostic patch through try already (see the other patch
attached to the bug), and will fix tests / code as needed in separate
patches, but this can get its own stamp.

Assignee: nobody → emilio
Status: NEW → ASSIGNED

(In reply to Emilio Cobos Álvarez (:emilio) from comment #0)

Content can't do this already,

Can't content currently do this whenever nsGlobalWindowOuter::CanMoveResizeWindows returns true?

Err, I guess you're right. That said other browsers do follow the spec and make this readonly, so I think this should be safe.

See Also: → 1816503
Attachment #9317380 - Attachment description: Bug 1816472 - Remove individual size / position setters. r=smaug,matc → Bug 1816472 - Make individual size / position properties really readonly. r=smaug,matc
Attachment #9317381 - Attachment description: Bug 1816472 - Fix browser_modal_resize.js. r=matc,smaug → Bug 1816472 - Fix tests to avoid using readonly property setters. r=matc,smaug
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/00e6c8164834 Make individual size / position properties really readonly. r=smaug https://hg.mozilla.org/integration/autoland/rev/e8f2fed41bd1 Fix tests to avoid using readonly property setters. r=smaug
Pushed by emilio@crisal.io: https://hg.mozilla.org/integration/autoland/rev/3963969666d1 Fix some tests that I missed because they're skipped on Linux.
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
See Also: → 1816893
Attachment #9317378 - Attachment is obsolete: true
Regressions: 1817418
Regressions: 1820062
Depends on: 1837953
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: