Commit Graph

14 Commits

Author SHA1 Message Date
Jan Henning
a7b3ab2ffd Bug 1429488 - Part 5: Support persisting moz-extension resources. r=Gijs
Bug 1344926 integrated static themes more closely into the existing infra-
structure for lightweight themes and also intended the static theme's image data
to be persisted to disk as well.

While the headerURL image file is in fact successfully copied out of the
extension archive into the profile, the persist progress listener being used
isn't equipped to properly handle this case and therefore the success callback
is never executed.

As a result
- the callback passed to _persistImages in the LWTManager isn't executed,
  either, although because setting the fallbackThemeData passes in an empty
  callback anyway, no one noticed.
- the persist operation never actually completes, so subsequent calls to
  currentThemeForDisplay() always return the original moz-extension:// image URI
  and never the persisted file from the profile folder.

For Android we definitively require a working callback in order to be able to
forward the fixed-up theme data once the image data has been persisted, so the
persistProgressListener's logic is modified accordingly.
Additionally, because as far as the LWTManager is concerned, WE static themes
are only fallback themes and a call to LWTManager.currentTheme will therefore
never return a WE static theme, the LWTPersister's logic to check whether the
theme, whose files have just been successfully persisted, is still the current
theme, needs to be modified.

Differential Revision: https://phabricator.services.mozilla.com/D10729
2018-10-22 22:08:01 +02:00
Mark Banner
462116b7f9 Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop
Automatic changes by ESLint, except for manual corrections for .xml files.

Differential Revision: https://phabricator.services.mozilla.com/D4439
2018-08-31 05:59:17 +00:00
Tim Nguyen
7dc4012ef9 Bug 1413144 - Make accentcolor and textcolor optional. r=jaws
MozReview-Commit-ID: 3jERl4H9vcv
2018-07-10 13:27:55 +01:00
Stephen A Pohl
5b094ec28e Bug 1466335: Automatically apply the dark theme on startup if the OS is in dark mode. r=dao 2018-06-27 13:59:40 -04:00
Dão Gottwald
608c918914 Bug 1448059 - Load compacttheme.css directly in browser.xul rather than from browser-compacttheme.js. r=bgrins
MozReview-Commit-ID: FldhNQ3V3v2
2018-03-22 17:40:36 +01:00
Gijs Kruitbosch
e17c63d00b Bug 1416822 - remove INSTALL_COMPACT_THEMES define now that we always ship compact themes, r=bgrins
MozReview-Commit-ID: 118eGLpRqjg
2017-11-13 17:10:49 +00:00
Dão Gottwald
e4aa04f0e6 Bug 1389744 - Stop repositioning pinned tabs when (un)selecting the Dark/Light theme. r=florian
Dark/Light themes don't affect the tab strip layout anymore, so this entirely unnecessary work.

MozReview-Commit-ID: C37VZsd8r2J
2017-08-12 12:50:26 +02:00
Florian Queze
d3c36892fa Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst
42670ceca0 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Florian Queze
9b4f73599f Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Dão Gottwald
50ec7e2ee4 Bug 1354789 - Cache layout information needed in _positionPinnedTabs. r=florian
MozReview-Commit-ID: 7RmuvvsXFTy
2017-04-10 15:19:52 +02:00
Brian Grinstead
df0ce751e5 Bug 1314091 - Remove devtools-specific logic out of browser-devedition and into devtools-browser;r=ochameau
The devtools theme is no longer relevant when dealing with compact themes, since it doesn't
affect the theme colors. But we still need it for styling other things related to devtools
in browser.xul, like the splitter between the toolbox and page and gcli.

MozReview-Commit-ID: 2CXDuwQY19x
2017-01-13 11:53:58 -08:00
Brian Grinstead
266c79c64e Bug 1314091 - Expose 'compact' themes instead of the Dev Edition theme;r=Gijs
This commit does the following:
* Install two lightweight themes instead of one
* Introduce a build config to install the themes instead of relying on channel: INSTALL_COMPACT_THEMES
* Change browser-compacttheme to use the new themes instead of the old one
* Remove inferBrightness since the lwt colors are part of the compact theme definision, as opposed
  to the devedition theme which could be light or
* Update CSS to use :-moz-lwtheme-darktext and :-moz-lwtheme-brighttext instead of [devtoolstheme]

MozReview-Commit-ID: 4gKU68drlE2
2017-01-13 11:53:58 -08:00
Brian Grinstead
736b5301b8 Bug 1314091 - Rename devedition.* to compacttheme.*;r=Gijs
MozReview-Commit-ID: 9y9BTK2TeAr
2017-01-13 11:53:58 -08:00