Commit graph

223 commits

Author SHA1 Message Date
Frédéric Wang
8d75a376ce Bug 1882144 - Remove layout.css.math-style.enabled and layout.css.math-depth.enabled prefs. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D202940
2024-02-29 16:37:40 +00:00
Nicolas Chevobbe
f49ecf937b Bug 1880428 - [devtools] Make line highlight background color semi-transparent so text selection is visible. r=ochameau,devtools-reviewers.
The background color of the line highlight was opaque, hiding any
text selection that could be on that line.
Using a color with some transparency makes the selection visible.
We take this as an opportunity to fix and refactor the CSS for
line highlight.

Differential Revision: https://phabricator.services.mozilla.com/D201941
2024-02-15 17:20:19 +00:00
Calixte
e5281da685 Bug 1876547 - Fix browser_parsable_css.js with var(...) containing new lines r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D199633
2024-01-25 15:51:27 +00:00
Emilio Cobos Álvarez
0c9d13b1e9 Bug 1875084 - Fix expected browser_parsable_css error message with zoom disabled. r=saschanaz
This test parses scrollbars.css as an author stylesheet (not as a
user-agent stylesheet).

https://hg.mozilla.org/mozilla-central/rev/3e000fc4c30e enabled zoom in
chrome code, which meant that zoom is now an understood property there,
and the error is that zoom: document is only enabled on UA sheets
(intentionally).

Differential Revision: https://phabricator.services.mozilla.com/D198959
2024-01-18 16:26:40 +00:00
Gregory Pappas
c6d9bdce19 Bug 1873594 - Remove layout.css.color-mix.enabled and layout.css.color-mix.color-spaces.enabled r=emilio,devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D197986
2024-01-14 01:24:01 +00:00
Emilio Cobos Álvarez
cca9bd6975 Bug 1872997 - Improve and simplify DevTools' xul:panel tooltip implementation. r=devtools-reviewers,desktop-theme-reviewers,dao,nchevobbe
This adds proper borders and radii on Windows and Linux, which are
otherwise not present, and simplifies a bit the code by using the same
code path across platforms, and between HTML and XUL.

Remove some ::-moz-focus-inner styles which no longer apply to un-themed
buttons.

The extra -0.5 offset I think was compensating for the margins and
missing border-box sizing.

Differential Revision: https://phabricator.services.mozilla.com/D197793
2024-01-11 10:16:55 +00:00
Emilio Cobos Álvarez
d110c6bcbf Bug 1855763 - Disable -moz-transform and enable zoom on Nightly. r=zcorpan
Disable zoom on a couple tests that otherwise fail. They're known
issues:

 * offsetWidth/Height not being unzoomed (button-min-width).
 * getComputedStyle not being unzoomed (font-size-interpolation-003.html)
 * ResizeObserver box not being unzoomed (https://github.com/w3c/csswg-drafts/issues/9398).

Differential Revision: https://phabricator.services.mozilla.com/D189644
2023-10-19 11:17:11 +00:00
Emilio Cobos Álvarez
d3e01ffbda Bug 1856755 - Fix browser_parsable_css.js to account for the previous patch.
I thought I had updated D190025 with this trivial change but I hadn't.

MANUAL PUSH: Trivial orange fix CLOSED TREE
2023-10-09 02:56:47 +02:00
Mark Banner
87ca8e8a39 Bug 1845064 - Update files in browser/base/content/test/static/ to pass the rejected-words linter. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D184365
2023-07-24 15:23:06 +00:00
Stanca Serban
74033863ce Backed out 2 changesets (bug 1845064, bug 1801416) for causing mochitests failures in browser_parsable_css.js. CLOSED TREE
Backed out changeset 0072ca947732 (bug 1845064)
Backed out changeset 97d46689ef0a (bug 1801416)
2023-07-24 23:23:24 +03:00
Mark Banner
64cf79554f Bug 1845064 - Update files in browser/base/content/test/static/ to pass the rejected-words linter. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D184365
2023-07-24 15:23:06 +00:00
Noemi Erli
009812504a Backed out 2 changesets (bug 1801416, bug 1845064) for causing failures in browser_all_files_referenced.js CLOSED TREE
Backed out changeset 6588b692c52d (bug 1845064)
Backed out changeset 29325effffdb (bug 1801416)
2023-07-24 22:07:49 +03:00
Mark Banner
d9a4dda484 Bug 1845064 - Update files in browser/base/content/test/static/ to pass the rejected-words linter. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D184365
2023-07-24 15:23:06 +00:00
Emilio Cobos Álvarez
7e60f84b6e Bug 1843663 - Remove pre windows-10-specific media queries and styles. r=dao,Gijs,handyman,settings-reviewers
Some basic clean-up. I want to do this before doing bigger changes in
bug 1843044.

There's tons more code that can get cleaned-up on the widget side, but
let's start with this.

Differential Revision: https://phabricator.services.mozilla.com/D183622
2023-07-18 14:11:33 +00:00
Emilio Cobos Álvarez
bd1b363ff9 Bug 1824886 - Rewrite AnonymousContent to use a shadow tree. r=smaug,TYLin,sfoster,devtools-reviewers,nchevobbe
Subtle things:

 * We now have shadow trees in NAC, inception! Only a couple lines of
   code in the style system had to be changed to match :host rules and
   so properly.

 * Had to make highlighters.css contentaccessible, because otherwise we
   can't load it from the shadow tree. I don't think it's a big deal.

 * I removed some of the code from highlighters.css that claimed that
   stuff inherited from the html element. That's just no longer true.

 * Had to switch from `setAttribute("style", ...)` to `.style = ...;`.
   This is needed because CSSOM from chrome code bypasses CSP (as
   AnonymousContent did), but setAttribute() doesn't, see bug 1424474.

Differential Revision: https://phabricator.services.mozilla.com/D173998
2023-07-09 11:34:05 +00:00
Stanca Serban
15c8455338 Backed out changeset 1c835137f532 (bug 1824886) for causing multiple failures. CLOSED TREE 2023-07-06 02:11:59 +03:00
Emilio Cobos Álvarez
3338831b84 Bug 1824886 - Rewrite AnonymousContent to use a shadow tree. r=smaug,TYLin,sfoster,devtools-reviewers,nchevobbe
Subtle things:

 * We now have shadow trees in NAC, inception! Only a couple lines of
   code in the style system had to be changed to match :host rules and
   so properly.

 * Had to make highlighters.css contentaccessible, because otherwise we
   can't load it from the shadow tree. I don't think it's a big deal.

 * I removed some of the code from highlighters.css that claimed that
   stuff inherited from the html element. That's just no longer true.

 * Had to switch from `setAttribute("style", ...)` to `.style = ...;`.
   This is needed because CSSOM from chrome code bypasses CSP (as
   AnonymousContent did), but setAttribute() doesn't, see bug 1424474.

Differential Revision: https://phabricator.services.mozilla.com/D173998
2023-07-05 21:59:44 +00:00
Cosmin Sabou
fb92d5f42f Backed out 2 changesets (bug 1824886) for causing failures on browser_all_files_referenced.js. CLOSED TREE
Backed out changeset 650ef77d1c4d (bug 1824886)
Backed out changeset 1c835137f532 (bug 1824886)
2023-07-06 00:42:53 +03:00
Emilio Cobos Álvarez
454c0b932e Bug 1824886 - Rewrite AnonymousContent to use a shadow tree. r=smaug,TYLin,sfoster,devtools-reviewers,nchevobbe
Subtle things:

 * We now have shadow trees in NAC, inception! Only a couple lines of
   code in the style system had to be changed to match :host rules and
   so properly.

 * Had to make highlighters.css contentaccessible, because otherwise we
   can't load it from the shadow tree. I don't think it's a big deal.

 * I removed some of the code from highlighters.css that claimed that
   stuff inherited from the html element. That's just no longer true.

 * Had to switch from `setAttribute("style", ...)` to `.style = ...;`.
   This is needed because CSSOM from chrome code bypasses CSP (as
   AnonymousContent did), but setAttribute() doesn't, see bug 1424474.

Differential Revision: https://phabricator.services.mozilla.com/D173998
2023-07-05 18:21:31 +00:00
Emilio Cobos Álvarez
8c3ee86d6d Bug 1835062 - Make CSSStyleRule a GroupRule. r=smaug,dshin
Lazily create the rule list since most style rules won't have child
rules.

Remaining failures in the cssom tests are tracked in other bugs.

Differential Revision: https://phabricator.services.mozilla.com/D180649
2023-06-14 09:36:22 +00:00
Mark Banner
130a655906 Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +00:00
Dana Keeler
f0596227b1 Bug 1811645 - avoid an American English colloquialism meaning "nonsense" r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D175802
2023-04-20 22:24:00 +00:00
Fred Chasen
6d0ebc445f Bug 1818819 - Enable support for forced-color-adjust property by default r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D173766
2023-03-30 15:18:40 +00:00
Emilio Cobos Álvarez
e3da0edc32 Bug 1822759 - Fix browser_parsable_css.js to account for @media not (-moz-platform...). r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D173065
2023-03-20 20:33:13 +00:00
Nicolas Chevobbe
4a124d54ef Bug 1773549 - [devtools] Add widget for linear easing function. r=devtools-reviewers,jdescottes.
This adds an authoring tool similar to the one we have for cubic bezier.
A swatch is added next to `linear()` functions and clicking on it will show
the widget.
Modifying the line in the widget will update the value of the `linear()` function
in the rule view.

Differential Revision: https://phabricator.services.mozilla.com/D153333
2023-03-08 17:39:37 +00:00
Emilio Cobos Álvarez
755b25a9cf Bug 1818927 - Remove minimal-xul.css. r=dholbert
No longer needed.

Differential Revision: https://phabricator.services.mozilla.com/D171012
2023-02-27 10:03:51 +00:00
Emilio Cobos Álvarez
382eca8d53 Bug 1818927 - Move scrollbar-related rules from minimal-xul.css to scrollbars.css. r=dholbert
No behavior change, both these sheets get loaded in all pages
unconditionally, and the new order matches the order they get
loaded in.

Differential Revision: https://phabricator.services.mozilla.com/D171008
2023-02-27 10:03:50 +00:00
Norisz Fay
feb7ac30db Backed out 6 changesets (bug 1818927) for causing bc failurs on browser_parsable_css.js CLOSED TREE
Backed out changeset 02c5f8c116b5 (bug 1818927)
Backed out changeset 6cf817fdd398 (bug 1818927)
Backed out changeset 0f0342ee4149 (bug 1818927)
Backed out changeset 4f944842cde4 (bug 1818927)
Backed out changeset 08ad4bea30d6 (bug 1818927)
Backed out changeset f50bb20ae41d (bug 1818927)
2023-02-27 02:49:46 +02:00
Emilio Cobos Álvarez
70c054eacf Bug 1818927 - Move scrollbar-related rules from minimal-xul.css to scrollbars.css. r=dholbert
No behavior change, both these sheets get loaded in all pages
unconditionally, and the new order matches the order they get
loaded in.

Differential Revision: https://phabricator.services.mozilla.com/D171008
2023-02-26 23:09:19 +00:00
Calixte
d62c4c4d55 Bug 1809042 - Update pdf.js to new version fcaeb5db88658efec7b42b77be5fa6945a18eb0a r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D166249
2023-01-07 21:12:09 +00:00
Calixte
5b60cb0884 Bug 1808197 - Use a specific UI for pdf.js in GeckoView r=florian,pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D165967
2023-01-04 20:50:08 +00:00
Emilio Cobos Álvarez
2e5132f48e Bug 1802338 - Centralize z-indices that fight in the browser area. r=Gijs
Not sure if this is worth it, your call. But it's a bit clearer to
figure out what fights with what.

Differential Revision: https://phabricator.services.mozilla.com/D163003
2023-01-03 13:35:26 +00:00
Updatebot
ade8761e5e Bug 1807983 - Update PDF.js to c791e01bfc280fb6abc476dece21c6a88d2340df r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D165722
2023-01-03 12:45:25 +00:00
Mark Banner
3a07fcf436 Bug 1806503 - Automatically replace Cu.reportError with console.error (browser/actors, browser/base). r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D165068
2022-12-27 10:08:58 +00:00
Emilio Cobos Álvarez
ccf616b673 Bug 1799343 - Simplify XUL popup handling. r=TYLin
* Make non-menulist popups just absolute positioned top-layer items.
 * Simplify menulist popups to just be static-positioned items under
   nsMenuFrame.

We need to keep kPopupList only for nsMenuFrame. In the future it can be
removed, see TODO in xul.css

Differential Revision: https://phabricator.services.mozilla.com/D161404
2022-11-09 20:38:04 +00:00
Csoregi Natalia
9d2ea21e26 Backed out 3 changesets (bug 1799343, bug 1799580) for causing failures on /browser_history_after_appMenu.js. CLOSED TREE
Backed out changeset 63c270ba91ad (bug 1799343)
Backed out changeset 713e6f0fbd20 (bug 1799580)
Backed out changeset 42d1b8742662 (bug 1799343)
2022-11-09 21:26:06 +02:00
Emilio Cobos Álvarez
5c5c337a98 Bug 1799343 - Simplify XUL popup handling. r=TYLin
* Make non-menulist popups just absolute positioned top-layer items.
 * Simplify menulist popups to just be static-positioned items under
   nsMenuFrame.

We need to keep kPopupList only for nsMenuFrame. In the future it can be
removed, see TODO in xul.css

Differential Revision: https://phabricator.services.mozilla.com/D161404
2022-11-09 14:19:22 +00:00
Cristian Tuns
01dcbc81d3 Backed out 2 changesets (bug 1799580, bug 1799343) for causing mochitest failures on win7 CLOSED TREE
Backed out changeset fb0df93a4719 (bug 1799580)
Backed out changeset 493c9ca00c91 (bug 1799343)
2022-11-09 07:15:51 -05:00
Emilio Cobos Álvarez
b513d45bea Bug 1799343 - Simplify XUL popup handling. r=TYLin
* Make non-menulist popups just absolute positioned top-layer items.
 * Simplify menulist popups to just be static-positioned items under
   nsMenuFrame.

We need to keep kPopupList only for nsMenuFrame. In the future it can be
removed, see TODO in xul.css

Differential Revision: https://phabricator.services.mozilla.com/D161404
2022-11-09 09:17:21 +00:00
Sandor Molnar
8e6fe2de11 Backed out 4 changesets (bug 1799343) for causing multiple crashes. CLOSED TREE
Backed out changeset 3150074bccfd (bug 1799343)
Backed out changeset 7f6358a0b692 (bug 1799343)
Backed out changeset 34f040f379b1 (bug 1799343)
Backed out changeset a609c8c27ca8 (bug 1799343)
2022-11-08 05:54:37 +02:00
Emilio Cobos Álvarez
7c743cf916 Bug 1799343 - Simplify XUL popup handling. r=TYLin
* Make non-menulist popups just absolute positioned top-layer items.
 * Simplify menulist popups to just be static-positioned items under
   nsMenuFrame.

We need to keep kPopupList only for nsMenuFrame. In the future it can be
removed, see TODO in xul.css

Differential Revision: https://phabricator.services.mozilla.com/D161404
2022-11-08 00:18:00 +00:00
Mark Banner
8d1ebcb9d6 Bug 1792365 - Convert toolkit/modules consumers to use ES module imports directly. r=webdriver-reviewers,perftest-reviewers,geckoview-reviewers,extension-reviewers,preferences-reviewers,desktop-theme-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,robwu,Gijs,sgalich,bytesized,AlexandruIonescu,dao,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D158094
2022-09-29 06:52:34 +00:00
Boris Chiou
8b587cf6c1 Bug 1789447 - Part 2: Drop @scroll-timeline rule entirely. r=emilio,hiro
This rule is not used in tests and should be removed per spec.

Differential Revision: https://phabricator.services.mozilla.com/D157249
2022-09-22 03:47:11 +00:00
Kris Maglione
a78b44be00 Bug 1777886 - Check that denylist/intermittent files actually exist in startup perf tests. r=florian
This will require that entries for renamed files be updated so that they don't
accidentally start being loaded under the new name later. It also prevents
dead code entries from sticking around after their targets are removed.

Using `throttledMapPromises` is probably not strictly necessary given the
small number of entries in most lists, but since it already exists, we may as
well use it here.

Differential Revision: https://phabricator.services.mozilla.com/D150921
2022-07-08 00:59:02 +00:00
Csoregi Natalia
4fbcd99c2c Backed out changeset 558ec2a25702 (bug 1777886) for failures on browser_startup.js. CLOSED TREE 2022-07-08 03:09:14 +03:00
Kris Maglione
834e8c64b8 Bug 1777886 - Check that denylist/intermittent files actually exist in startup perf tests. r=florian
This will require that entries for renamed files be updated so that they don't
accidentally start being loaded under the new name later. It also prevents
dead code entries from sticking around after their targets are removed.

Using `throttledMapPromises` is probably not strictly necessary given the
small number of entries in most lists, but since it already exists, we may as
well use it here.

Differential Revision: https://phabricator.services.mozilla.com/D150921
2022-07-07 22:31:29 +00:00
Calixte
545bb2486b Bug 1774017 - Update pdf.js to version 1a6ae5f03480d7c655dff7aea3d39d10d05d9197 r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D149144
2022-06-13 15:59:45 +00:00
Calixte
f49c8e03e9 Bug 1764886 - Update pdf.js to version 2.14.171 r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D143819
2022-04-15 14:39:47 +00:00
criss
4666a062b0 Backed out changeset a1e9e031f3a1 (bug 1764886) for causing failures on browser_parsable_script.js . CLOSED TREE 2022-04-15 16:57:08 +03:00
Calixte
addedf097a Bug 1764886 - Update pdf.js to version 2.14.171 r=pdfjs-reviewers,marco
Differential Revision: https://phabricator.services.mozilla.com/D143819
2022-04-15 12:50:55 +00:00