- May 29, 2023
-
-
Many fonts have issues with their vertical metrics. they are used to influence the height of ascenders and depth of descenders. Gecko uses it to calculate the line height (font height + ascender + descender), however because of that idiosyncratic behavior across multiple operating systems, it can be used to identify the user's OS. The solution proposed in the patch uses a default factor to be multiplied with the font size, simulating the concept of ascender and descender. This way all operating systems will have the same line height only and only if the frame is outside the chrome.
-
Pier Angelo Vendrame authored
System fonts are an enormous fingerprinting vector. Even with font allow lists and with our custom configuration on Linux, which counter metrics measurements, getComputedStyle leaks several details. This patch counters both these kinds of attacks.
-
- Feb 02, 2023
-
-
Stephen A Pohl authored
Differential Revision: https://phabricator.services.mozilla.com/D168625
-
- Feb 04, 2023
-
-
Emilio Cobos Álvarez authored
Includes fix for bug 1803268.
-
- Jan 23, 2023
-
-
Robert Longson authored
Differential Revision: https://phabricator.services.mozilla.com/D167459
-
- Dec 29, 2022
-
-
Kershaw Chang authored
Bug 1807879 - Remove MOZ_DIAGNOSTIC_ASSERT_ENABLED for mSheetCompleteCalled and mIntentionallyDropped, r=emilio a=RyanVM Differential Revision: https://phabricator.services.mozilla.com/D165658
-
- Dec 27, 2022
-
-
Kershaw Chang authored
-
- Nov 09, 2022
-
-
Olli Pettay authored
Bug 1633019 - Crash in [@ mozilla::PresShell::EventHandler::MaybeFlushThrottledStyles], r=masayuki a=RyanVM GetViewManager() may return null if the relevant presshell is being destroyed. This is a guess fix, but the crash reports seem to hint about this issue. Differential Revision: https://phabricator.services.mozilla.com/D161587
-
- Oct 05, 2022
-
-
Timothy Nikkel authored
Bug 1792643. Set clip on background items for table cols and colgroups, when the table row, rowgroup or table has captured clip. r=mstange, a=dmeehan Exactly like bug 1735265 except a frame other then the cell, between the cell and the table frame is a stacking context. Differential Revision: https://phabricator.services.mozilla.com/D158471
-
- Sep 13, 2022
-
-
Emilio Cobos Álvarez authored
The regressing bug accidentally swapped the foreground / bg colors in a way such that it doesn't look like there's an outline. Do some adjacent clean-up while at it, and add a test. Differential Revision: https://phabricator.services.mozilla.com/D156947
-
- Sep 19, 2022
-
-
Daniel Holbert authored
Bug 1786910: Ignore 'align-content' when determining the aligned static position of abspos flex children. r=TYLin a=RyanVM Before this patch, we honored `align-content` (in combination with `align-self`) for cross-axis alignment for abspos flex children **in cases where the flex container was multi-line**. This was a bit weird, but was required by the spec, and made some sense in the spirit of aligning the abspos box as if it were the sole flex item in a flex container. Now the CSSWG has resolved in [1] to simplify things by just ignoring `align-content` for abspos flex children. So, this patch updates us in accordance with this change. Such items now only have to look at `align-self` for cross-axis alignment to determine their static position in their flex container. Before this commit, we had a bunch of WPT tests to check the impact of every align-content value, with all of the various flavors of directionality. Now that align-content has *no effect* in any of these cases, all of these tests become pretty trivial and redundant. Rather than carrying them all forward with trivial "no impact" expectations for each scenario, I've just updated the first/simplest such test to expect no-behavioral-impact and I've removed the rest. [1] https://github.com/w3c/csswg-drafts/issues/7596#issuecomment-1225952646 Differential Revision: https://phabricator.services.mozilla.com/D157571
-
- Sep 12, 2022
-
-
Emilio Cobos Álvarez authored
We had zero tests for this, and when I implemented the optimization to avoid reframing in most cases I apparently swapped the arguments ;_; Fix <input type=search> which suffered from the same issue, but we don't ship by default. Differential Revision: https://phabricator.services.mozilla.com/D155394
-
- Sep 06, 2022
-
-
Olli Pettay authored
Differential Revision: https://phabricator.services.mozilla.com/D156605
-
- Aug 29, 2022
-
-
Timothy Nikkel authored
The code that bug 1754436 deleted checked to make sure there was a widget for the returned view, but it looks like it's possible in some edge cases to have an open popup that doesn't have a widget (most likely just for a split second). We need a widget to dispatch the event, and if it doesn't have a widget it's not visible so no point in touching it at all anyways. Differential Revision: https://phabricator.services.mozilla.com/D155819
-
- Jul 05, 2022
-
-
Jonathan Kew authored
Bug 1777209 - Use DrawSurface rather than FillRect to paint <canvas>, and don't use EXTEND_PAD when writing to PDF. r=jrmuizel, a=RyanVM Differential Revision: https://phabricator.services.mozilla.com/D150601
-
- Jul 12, 2022
-
-
Emilio Cobos Álvarez authored
I don't think why we have a mobile stylesheet (IIUC Android doesn't have tooltips...), but I noticed that most tooltip styles are the same and it should be doable to just unify them in xul.css. We can't keep the platform-specific bits on their own stylesheet because it loads _before_ xul.css, and thus overrides wouldn't quite do. Depends on D151640 Differential Revision: https://phabricator.services.mozilla.com/D151641
-
- Jul 29, 2022
-
-
Emilio Cobos Álvarez authored
These don't get styles early enough to make a shadow decision before Show(). This also matches the previous behavior (nothing would set nsWidgetInitData::mDropShadow for these windows), so this is the less risky fix. It seems somewhat sketchy to use a popup window for these to begin with (Linux for example maps them to a toplevel Window, at least on Wayland...), but let's not change too much right now. The hbrBackground change is a no-op because we can't have a brush before Create() is called, we update it in SetBackgroundColor(). Differential Revision: https://phabricator.services.mozilla.com/D153095
-
- Jul 20, 2022
-
-
Emilio Cobos Álvarez authored
Manage their shadow style per-window instead. It is a bit unfortunate, but alas, seems to work, and we had existing code for various workarounds, so it's not too gross. The menulist special-case isn't needed anymore, menulists always have eTransparencyTransparent nowadays on Windows. Differential Revision: https://phabricator.services.mozilla.com/D151994
-
- Aug 03, 2022
-
-
Andrew Osmond authored
Bug 1782947 - Check for null pres context in nsLayoutUtils::GetTextRunFlagsForStyle. r=jfkthame, a=RyanVM Differential Revision: https://phabricator.services.mozilla.com/D153583
-
- Jul 12, 2022
-
-
Emilio Cobos Álvarez authored
Bug 1778718 - Make filter/backdrop-filter wrapping work when ignoring a scroll frame. r=tnikkel, a=RyanVM Factor the code to build the top layer and wrapping for filters into a common function. Differential Revision: https://phabricator.services.mozilla.com/D151475
-
Emilio Cobos Álvarez authored
This code-path will be hit with the next patch. Depends on D151473 Differential Revision: https://phabricator.services.mozilla.com/D151474
-
- Jul 11, 2022
-
-
Emilio Cobos Álvarez authored
This doesn't change behavior but makes the next patch simpler, and makes the ignore-scrollframe and non-ignore-scrollframe code-paths match. Differential Revision: https://phabricator.services.mozilla.com/D151473
-
- Jun 21, 2022
-
-
Emilio Cobos Álvarez authored
Right now we rely on the menulist to be injected by hand in all the relevant windows. Instead create it lazily, making the select code more standalone. The DevTools window was missing it, for example. Differential Revision: https://phabricator.services.mozilla.com/D149620
-
- Jun 24, 2022
-
-
Emilio Cobos Álvarez authored
It causes unnecessary flashes in some cases, like the sidebar which intentionally loads about:blank. Differential Revision: https://phabricator.services.mozilla.com/D150096
-
- Jun 07, 2022
-
-
Emilio Cobos Álvarez authored
If the tooltip node and the target node are in different documents, we'd use the tooltip's CSS-to-dev-pixel scale to convert. This is basically bug 1756323 but for XUL, I thought we wouldn't have cross-document zoom like that but apparently I was wrong... Differential Revision: https://phabricator.services.mozilla.com/D148402
-
- Jun 20, 2022
-
-
Emilio Cobos Álvarez authored
-
- Jun 15, 2022
-
-
Botond Ballo authored
Bug 1773256 - Use ProjectPoint when transforming coordinates from parent to child in BrowserParent. r=tnikkel a=pascalc This patch also backs out the incorrect fix for bug 1745834 (see comment 12 on the bug for an explanation). Differential Revision: https://phabricator.services.mozilla.com/D149321
-
Andrew McCreight authored
We're seeing a lot of null crashes here. Maybe we're running script since we last checked mPrintObject and the printer was disconnected or something along those lines, so just add a null check. Differential Revision: https://phabricator.services.mozilla.com/D149387
-
- Jun 09, 2022
-
-
Emilio Cobos Álvarez authored
nsMenuPopupFrame initialized the view z-index to a hard-coded INT32_MAX, but then reset it on restyles based on ZIndex() in SyncFrameViewProperties(). We specify z-index here, so use a consistent z-index all around: https://searchfox.org/mozilla-central/rev/ace2c59e6c56b2dcba25af1aa8903a5e7f9a5857/toolkit/content/xul.css#255-256 I suspect this is also causing that weird bug about menus going under other menus on macOS (bug 1763990). Differential Revision: https://phabricator.services.mozilla.com/D148762
-
- Jun 08, 2022
-
-
Magnus Melin authored
Differential Revision: https://phabricator.services.mozilla.com/D148372
-
- Jun 07, 2022
-
-
Nicolas Silva authored
-
- May 31, 2022
-
-
Glenn Watson authored
Bug 1771556 - Handle backdrop capture failing clip check when sub-graph is visible r=gfx-reviewers,lsalzman a=pascalc This can happen when there is a long nested chain of backdrop-filters and float inaccuracies cause the final capture primitive to be culled. Differential Revision: https://phabricator.services.mozilla.com/D147704
-
- May 29, 2022
-
-
Daniel Holbert authored
Bug 1770273: Annotate reftest 1673510-1.html as reliably failing on win7 (instead of skipped). r=jfkthame Based on the retriggers on Try, the test seems to always fail on this platform. So let's mark it as failing instead of skipped, so that we find out if this issue becomes fixed at some point. Differential Revision: https://phabricator.services.mozilla.com/D147554
-
- May 28, 2022
-
-
Emilio Cobos Álvarez authored
None of the consumer need to mutate styles, and this saves some ugly const_casting on the next patch. Doesn't change behavior. Differential Revision: https://phabricator.services.mozilla.com/D147555
-
- May 27, 2022
-
-
Razvan Cojocaru authored
Bug 1767124e - Change the return type of nsLayoutUtils::GetTransformToAncestorScaleExcludingAnimated to MatrixScalesDouble. r=botond Differential Revision: https://phabricator.services.mozilla.com/D147100
-
Emilio Cobos Álvarez authored
After bug 1730284 we don't use it for throttling iframes, so the only remaining use the test-only nsIDOMWindowUtils.paintCount. None of the tests using it rely on the empty transaction case, so we should be able to just remove this. Differential Revision: https://phabricator.services.mozilla.com/D146589
-
Emilio Cobos Álvarez authored
Bug 1769580 - Add a terrible hack to avoid Netgear's <select>s from overflowing port numbers. r=dholbert Not a fan of this, I'd rather not do this... A potential, maybe less hacky alternative, would be to resolve text-indent by truncating rather than rounding. That would effectively round down the 0.01px to zero. Differential Revision: https://phabricator.services.mozilla.com/D146993
-
- May 26, 2022
-
-
Karl Tomlinson authored
Differential Revision: https://phabricator.services.mozilla.com/D147408
-
Jonathan Kew authored
Bug 1770981 - Split the nsBlockFrame "line cursor" into separate cursors used for display-list building vs frame queries. r=layout-reviewers,Jamie,emilio Differential Revision: https://phabricator.services.mozilla.com/D147203
-
Martin Robinson authored
Differential Revision: https://phabricator.services.mozilla.com/D146693
-