Closed Bug 1460977 Opened 6 years ago Closed 6 years ago

Load searchbar stylesheets in browser.xul instead of with XBL <resources>

Categories

(Firefox :: Search, task, P1)

task

Tracking

()

RESOLVED FIXED
Firefox 62
Tracking Status
firefox62 --- fixed

People

(Reporter: bgrins, Assigned: bgrins)

References

Details

Attachments

(1 file)

It'll be easier to migrate to a Custom Element if there aren't XBL <stylesheet> tags, and loading the sheets directly in browser.xul fits in with how we load other sheets from browser/components (like downloads).

Since doing this would change the cascade from XBL to document sheet there's a potential for specificity bugs. Although in the end IMO it will be more simple tohave the styles at the document level since we have other searchbar rules loaded in the theme's browser.css at the document level (like in urlbar-searchbar.inc.css).
Blocks: 1460982
Comment on attachment 8975135 [details]
Bug 1460977 - Load searchbar styles directly in browser.xul

I'm not seeing any Talos issues with the change, so I'd like to try and get this landed if it doesn't cause styling issues. I've tested locally on an OSX build with/without the patch through various search states and haven't found any difference between:

- empty search box
- search box with text
- autocomplete result styling
- add new search engine button (i.e. on https://developer.mozilla.org/en-US/)

Unfortunately though, I don't think this is covered by mozscreenshots, and I also could be missing a UI state / component. Anything else we should be checking on here? Also, if you have a Windows build handy would you be able to check with that? If not I can test next week.
Attachment #8975135 - Flags: review?(adw)
Comment on attachment 8975135 [details]
Bug 1460977 - Load searchbar styles directly in browser.xul

https://reviewboard.mozilla.org/r/243498/#review249404

Looks good to me, I don't notice any differences either.  I don't have a Windows build handy at the moment.  I'm on macOS.  Could you please test on Windows and Linux before landing?
Attachment #8975135 - Flags: review?(adw) → review+
Assignee: nobody → bgrinstead
Status: NEW → ASSIGNED
Priority: -- → P1
Did manual testing in Windows and don't see any changes with the patch applied
Pushed by bgrinstead@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f4355e937251
Load searchbar styles directly in browser.xul r=adw
https://hg.mozilla.org/mozilla-central/rev/f4355e937251
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 62
Type: enhancement → task
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: