xul.css is used on android and imports tooltip.css which is not available there
Categories
(Toolkit :: UI Widgets, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox93 | --- | fixed |
People
(Reporter: Gijs, Assigned: Gijs)
References
Details
Attachments
(1 file)
In bug 1721627 I'm experimenting with making tests fail if we request internal resources that aren't present. The idea is to prevent patches from landing if they mis-spell (or forget to hg add
, or forget to include in jar.mn
or similar) subresources like CSS files and images, by failing if we hit chrome: or resource: URLs in tests that are not available (ie where the internal jar/file code cannot find the relevant file).
The android jobs fail because they include xul.css somewhere, and that includes chrome://global/skin/tooltip.css
(see https://searchfox.org/mozilla-central/rev/2022d34edd5817948b27f093cd203ae6adb18a25/toolkit/content/xul.css#19 ), which we don't ship on android.
See e.g. this job on try, which has this logcat which says:
07-22 13:38:37.006 5013 5028 I Gecko : Missing file: chrome://global/skin/tooltip.css
07-22 13:38:37.006 5013 5028 F MOZ_CRASH: Hit MOZ_CRASH(Shouldn't request non-existing chrome or resource URLs!) at /builds/worker/checkouts/gecko/netwerk/base/nsNetUtil.cpp:3329
Presumably we should do one or more of:
- stop including/loading xul.css on android (why is that even happening?)
- ifdef out the tooltip.css include in xul.css so it's not there on android
- include the linux tooltip.css on android
- write a custom tooltip.css file for android (though it's not clear to me how many android devices would have pointing devices so that we care about the tooltips anywhere...)
:agi, can you help clarify what should happen here?
Comment 1•3 years ago
|
||
I would rather copy linux's tooltip.css
for now. I can see some stuff in xul.css
might be used in some about:
pages that we have too. In general I would hope we could move any platform-specific stuff in xul.css
to somewhere in browser
.
Assignee | ||
Comment 2•3 years ago
|
||
bug 1724718 is unearthing more stuff so I'm gonna take a stab at just fixing this.
Assignee | ||
Comment 3•3 years ago
|
||
Assignee | ||
Comment 4•3 years ago
|
||
Updated•3 years ago
|
Comment 6•3 years ago
|
||
bugherder |
Description
•