Commit graph

1097 commits

Author SHA1 Message Date
@user0
b436b28843
Add @user0’s contributions as of 2023-05-22 2023-11-12 19:36:16 +01:00
@user0
ad06da4868
Add @user0’s contributions as of 2023-05-21 2023-11-12 19:36:12 +01:00
Claudia Pellegrino
e40b13098d
Start mirror of @user0’s contributions 2023-11-12 19:36:09 +01:00
Claudia Pellegrino
b98bae8c5e
Merge 21750e2 from MrOtherGuy/firefox-csshacks 2023-11-12 19:35:34 +01:00
Oliver Smith
758b9c3a17
mobile-config-autoconfig: fix 2x restart
On first start, only restart Firefox once after the files are
installed.

[2023-04-18 07:07:05] Running mobile-config-autoconfig.js
[2023-04-18 07:07:05] Couldn't get Firefox version (expected on first start): TypeError: Services.appinfo.lastAppVersion is null
[2023-04-18 07:07:05] Firefox version: 0 (previous: unknown)
[2023-04-18 07:07:05] Creating CSS file from fragments: /home/user/.mozilla/firefox/ah7sid6m.default-release/chrome/userChrome.css
…
[2023-04-18 07:07:05] Updating previous Firefox version to: 0
[2023-04-18 07:07:05] Triggering Firefox restart
[2023-04-18 07:07:05] Done
[2023-04-18 07:07:11] Running mobile-config-autoconfig.js
[2023-04-18 07:07:11] Firefox version: 102 (previous: 0)
[2023-04-18 07:07:11] Reading fragments from file: /etc/mobile-config-firefox/userChrome.files
[2023-04-18 07:07:11] Fragment with FF version check included: userChrome/popups.before-ff-108.css
[2023-04-18 07:07:11] File is up-to-date: /home/user/.mozilla/firefox/ah7sid6m.default-release/chrome/userChrome.css
[2023-04-18 07:07:11] Reading fragments from file: /etc/mobile-config-firefox/userContent.files
[2023-04-18 07:07:11] File is up-to-date: /home/user/.mozilla/firefox/ah7sid6m.default-release/chrome/userContent.css
[2023-04-18 07:07:11] Updating previous Firefox version to: 102
[2023-04-18 07:07:11] Setting default preferences
[2023-04-18 07:07:11] Done
2023-04-18 09:17:40 +02:00
Oliver Smith
c9a1f7af23
mobile-config-autoconfig: tweak css_files_update
Refactor the condition code, so it's easier to read.
2023-04-18 09:17:40 +02:00
Oliver Smith
aaa603fae7
autoconfig: get_firefox_version: add try…catch
On first run / after:
$ rm ~/.mozilla

The function fails with:
TypeError: Services.appinfo.lastAppVersion is null

Expect the failure so the script doesn't crash.
Revert "autoconfig: get_firefox_version: remove try…catch", but
with another error message.

Without this patch an error shows up when starting Firefox with the
config, until the user manually starts it again.

This reverts commit 2405aabd4c.
2023-04-18 09:17:40 +02:00
MrOtherGuy
21750e272b vertical_bookmarks_toolbar: make placesToolbarItems default to flex
-webkit-box doesn't work correctly in Firefox 112 and 113 so lets
default to flex again and make webkit-box opt-in. It is required for
Fx 114 though, but nightly users need to opt-in to using it.
2023-04-16 12:07:16 +03:00
grreby
b6227bde5f
add links to pmos wiki, add example of network location (MR 30) 2023-04-14 22:09:22 +00:00
MrOtherGuy
97b9f5c3d8 create status_inside_menubar.css 2023-04-14 06:31:27 +03:00
MrOtherGuy
0c1a86cec5 vertical_bookmarks_toolbar: Make PlacesToolbarItems use -webkit-box
This is because scrollbox[orient="horizontal"] has a UA sheet set
important row flex-direction which we cannot override.
2023-04-12 17:23:31 +03:00
MrOtherGuy
92be3549cd buttonlike buttons: Remove custom styling of zoom items in overflow menu 2023-04-10 12:44:25 +03:00
MrOtherGuy
1f74ecee91 buttonlike toolbarbuttons: also remove styling from pinned overflow menu 2023-04-09 21:45:43 +03:00
MrOtherGuy
bb8d623ced buttonlike toolbarbuttons: remove custom sizing inside panels 2023-04-09 20:27:03 +03:00
MrOtherGuy
76f260269d Use scrollbar-gutter in multi-row tabs and bookmarks
This should prevent the appearing/disappearing scrollbar from reflowing
content.
2023-04-09 09:00:12 +03:00
MrOtherGuy
e98c0b62a5 create tab_animated_active_border.css 2023-04-09 08:16:38 +03:00
MrOtherGuy
3377abf584 buttonlike toolbarbuttons: remove normal background from extensions 2023-04-07 18:33:56 +03:00
MrOtherGuy
0722603222 buttonlike_toolbarbuttons: apply to menubar and tabs toolbar
This patch simplies a lot of selectors and makes the changes apply to
buttons in menubar and tabs toolbar. With the exception of
tabs-newtab-button. Additionally, this makes the style
much better support dropdown buttons, combined buttons and findbar
buttons.
2023-04-07 08:32:23 +03:00
Oliver Smith
3b3c589d44
editBookmarkPanel: adjust for current non-ESR FF
Make the bookmarks panel usable again by hiding all controls except for
the name, the "show editor when saving" checkbox and the remove bookmark
/ save buttons.
2023-04-07 01:24:15 +02:00
Oliver Smith
60c7a64c1f
autoconfig: disable firefox-view feature 2023-04-07 01:24:15 +02:00
Oliver Smith
4d9ae227e2
autoconfig: move set_default_prefs down
This part is unrelated to generating the CSS files, so move it towards
the end.
2023-04-07 01:24:15 +02:00
Oliver Smith
c16d19c3f5
README: mention the new log file 2023-04-07 01:24:14 +02:00
Oliver Smith
d2992be5eb
autoconfig: move chrome_dir_init code to function 2023-04-07 01:24:14 +02:00
Oliver Smith
bcaa46fa09
autoconfig: update comment on top of the file 2023-04-07 01:24:14 +02:00
Oliver Smith
2405aabd4c
autoconfig: get_firefox_version: remove try…catch
There is a try…catch around main() now, which logs the exception and
fails with an error that is visible for the user.
2023-04-07 01:24:14 +02:00
Oliver Smith
77e8101caf
autoconfig: store/compare the major FF version
Don't regenerate the firefox config if a part of the version changed
that isn't the major version as this would just lead to needless
regernations and slightly delayed startup.
2023-04-07 01:24:14 +02:00
Oliver Smith
7bfb0ff32f
autoconfig: move log_init code to function 2023-04-07 01:24:14 +02:00
Oliver Smith
314f7a0b04
autoconfig: prefix global variables with g_ 2023-04-07 01:24:14 +02:00
Oliver Smith
ee8d8382d5
userChrome/popups: FF >= 108: fix broken touch
Split the #mainPopupSet CSS rule to an extra file
popups.before-ff-108.css, and adjust autoconfig.js to skip that file if
firefox is newer than >= 108.
2023-04-07 01:24:14 +02:00
Oliver Smith
e2f29799c6
autoconfig: wrap most code in try…catch
Make debugging easier by printing exceptions to the log. For example:

  main() failed: TypeError: fragment.contains is not a function
2023-04-07 01:24:14 +02:00
Oliver Smith
49e6a9866b
autoconfig: regenerate CSS when FF version changes 2023-04-07 01:24:14 +02:00
Oliver Smith
1b0c066793
autoconfig: add write_line() helper func 2023-04-07 01:24:14 +02:00
Oliver Smith
fe45bbc8dc
Combine the CSS files on FF startup
Instead of combining the CSS files during make, just install all of the
fragments and let mobile-config-autoconfig.js combine them.
2023-04-07 01:24:14 +02:00
Oliver Smith
d676f135a8
editorconfig: use tabs in Makefile 2023-04-07 01:24:14 +02:00
Oliver Smith
473cb45ee7
autoconfig: add get_firefox_version function 2023-04-07 01:24:14 +02:00
Oliver Smith
a9dbfcd48b
autoconfig: add log_obj debug function
As the API isn't well documented, add this helper function to log object
properties.
2023-04-07 01:24:13 +02:00
Oliver Smith
4b559c6ec6
autoconfig: don't set default_prefs during restart
As the restart doesn't happen instantly, don't set the default
preferences in the restart code path. Split both code paths into
functions while at it.
2023-04-07 01:24:13 +02:00
Oliver Smith
b6bde3dfae
autoconfig: add log function
It's pretty hard to get the code right in this autoconfig script, as the
only feedback you get is whether the script crashed or not. Add a
logging function to make it easier.
2023-04-07 01:24:13 +02:00
Oliver Smith
9e8c97e894
autoconfig: fix indentation
Indent these two lines, so it's visually clear that they are part of the
condition.
2023-04-07 01:24:13 +02:00
MrOtherGuy
5ab29bc53e tabs below content: Add support for reversed window controls 2023-04-03 17:05:17 +03:00
jane400
8e59b386e3
mobile-config-prefs.js: enable TouchEvents API for mobile detection (MR 29) 2023-04-03 10:38:11 +02:00
MrOtherGuy
647b413152 Remove xul-box use from bunch of styles 2023-03-31 18:26:43 +03:00
MrOtherGuy
a9201944a9 selected_tab_as_urlbar: horizontally center urlbarview to window 2023-03-24 11:43:24 +02:00
MrOtherGuy
0aa8c49b99 selected_tab_as_urlbar: Add mechanism to show back and forward buttons 2023-03-24 10:44:05 +02:00
MrOtherGuy
4650a9fb00 selected_tab_as_urlbar: don't hide nav-bar items is customization view 2023-03-24 10:16:57 +02:00
MrOtherGuy
6d00a86ace Make tabs_on_bottom_menubar_on_top_patch use menubar window controls 2023-03-23 20:27:59 +02:00
MrOtherGuy
505d247b8f floating-findbar: Don't let labels wrap in findbar 2023-03-22 07:03:47 +02:00
MrOtherGuy
b393f711a8 vertical_bookmarks_toolbar: Add workaround for flexbox changes 2023-03-22 07:03:15 +02:00
MrOtherGuy
0ff12e01fe Add support for modern flexbox layout
Flexbox model will replace old xul box as the default display model so
this patch adds support for that in a whole bunch of styles.

A lot of style rules are marked as "Fx < 112 compatibility" rules and
those can be removed when 112 hits release.
2023-03-11 12:26:07 +02:00
bgkillas
02df05f8e9 update useragent to help captchas 2023-03-09 00:00:46 +00:00