Closed Bug 1979014 Opened 9 months ago Closed 9 months ago

Make a few XUL attributes simpler.

Categories

(Core :: XUL, task)

task

Tracking

()

RESOLVED FIXED
143 Branch
Tracking Status
firefox143 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

Attachments

(4 files)

No description provided.

I audited a bit and non-test things use the script setter, which already
removed the attribute, so should be fine / no behavior change in that
regard.

This came up while reviewing some code for the native menubar code on
Linux, which uses SetBoolAttr() and doesn't hide the menubar now:

https://searchfox.org/mozilla-central/rev/86878e73a24fe32ea09dbae5b55362efaf7485c8/widget/gtk/NativeMenuGtk.cpp#770,785,790

That is disabled by default tho.

This test starts failing with the other patch in this bug, but that's
because the feature it's testing was removed (bug 1883140), and the test
is just broken: It expected the collapsed attribute to be missing, but
before my patch you get collapsed="false", which is still truthy from
getAttribute().

FYI, this will probably impact at least TB tests.

Flags: needinfo?(mkmelin+mozilla)

(ah Markus is out)

Flags: needinfo?(richard.marti)

Thanks for the heads up.

Flags: needinfo?(richard.marti)

This matches the changes from bug 15232, and is needed for the other
patch in this bug, as otherwise we won't persist the removed autohide
attribute of the menubar properly (for example).

Would be good to more directly use XULPersist.cpp, perhaps...

Keywords: leave-open
See Also: → 1979333
Flags: needinfo?(mkmelin+mozilla)
Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/0aa2101448ac https://hg.mozilla.org/integration/autoland/rev/98bcb3a4ff0a Make some XUL attributes (hidden/collapsed/autofocus) regular bool attributes. r=dao,desktop-theme-reviewers,credential-management-reviewers,devtools-reviewers,tabbrowser-reviewers,places-reviewers,nchevobbe,search-reviewers,daleharvey,dimi
Keywords: leave-open
Pushed by ealvarez@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/dbbf2d7eec62 https://hg.mozilla.org/integration/autoland/rev/3bdbf0109f6b Fix cocoa native menu handling after the previous patches. r=mac-reviewers,mstange
Flags: needinfo?(emilio)

No. Those are most likely from https://hg-edge.mozilla.org/mozilla-central/rev/90723b8a3963034dad826e37278a3cb2492b4e33 which touched a file that all those reference. I think Benjamin is familiar with FedCM and could evaluate if they are legit bugs or something else.

Flags: needinfo?(emilio) → needinfo?(bvandersloot)
Regressions: 1980139

Any FedCM WPT failures should probably be ignored until implement the WebDriver support for FedCM extensions in Bug 1945580.

Flags: needinfo?(bvandersloot)
Regressions: 1980398
Blocks: 1691321
Type: enhancement → task
Depends on: 15232
Regressions: 1980580
See Also: → 1982748
QA Whiteboard: [qa-triage-done-c144/b143]
Regressions: 1989026
Regressions: 1996449

Sure would be nice if this worked for disabled as well. ;-)

Depends on: 2008041
No longer depends on: 2008041
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: