Skip to content
Snippets Groups Projects
  1. Nov 16, 2023
    • Igor Oliveira's avatar
      Bug 23104: Add a default line height compensation · 6d119470
      Igor Oliveira authored and Pier Angelo Vendrame's avatar Pier Angelo Vendrame committed
      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.
      Verified
      6d119470
    • Pier Angelo Vendrame's avatar
      Bug 41116: Normalize system fonts. · 6ea259c7
      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.
      Verified
      6ea259c7
  2. Oct 26, 2023
  3. Oct 28, 2023
  4. Oct 12, 2023
  5. Oct 11, 2023
  6. Sep 05, 2023
  7. Sep 08, 2023
  8. Sep 18, 2023
  9. Oct 02, 2023
  10. Aug 03, 2023
  11. Jul 23, 2023
    • Andrew Osmond's avatar
      Bug 1837070 - Ensure we flush OffscreenCanvas when the display list is... · 7106ae10
      Andrew Osmond authored
      Bug 1837070 - Ensure we flush OffscreenCanvas when the display list is recreated. r=lsalzman, a=RyanVM
      
      When we recreate the display list, e.g. after tabbing away, we need to
      ensure we flush the OffscreenCanvas because our resource handles will be
      invalidated. This requires the OffscreenCanvasDisplayHelper to know
      which OffscreenCanvas it belongs to, and a worker reference if necessary
      to do the dispatching for the flush. Otherwise we would require the
      canvas to be updated manually by the web application to repaint.
      
      Differential Revision: https://phabricator.services.mozilla.com/D184324
      7106ae10
  12. Sep 05, 2023
  13. Jul 27, 2023
  14. Jul 14, 2023
  15. Jul 12, 2023
  16. Jul 18, 2023
  17. Jul 13, 2023
  18. Jul 10, 2023
    • Timothy Nikkel's avatar
      Bug 1842325. Ensure that WebRenderLayerManager::mTarget is always cleared... · 9364f47a
      Timothy Nikkel authored
      Bug 1842325. Ensure that WebRenderLayerManager::mTarget is always cleared after a transaction. r=gfx-reviewers,lsalzman, a=dsmith
      
      The scope exit in WebRenderLayerManager::EndTransactionWithoutLayer isn't necessary because there are no early returns in that function, but I added it just in case an early return is added in the future.
      
      The assert in nsDisplayList::PaintRoot currently holds because of how the current code is, but these changes will mean EndEmptyTransaction will handle that case as far as clearing mTarget is concerned.
      
      Differential Revision: https://phabricator.services.mozilla.com/D183069
      9364f47a
  19. Jul 04, 2023
  20. Jun 30, 2023
    • Masayuki Nakano's avatar
      Bug 1840804 - Make `TextEditor::OnBlur` stop finalizing `Selection` if new... · d0189a6d
      Masayuki Nakano authored
      Bug 1840804 - Make `TextEditor::OnBlur` stop finalizing `Selection` if new element already gets focus r=m_kato, a=dsmith
      
      Before bug 1770874, `EditorBase::OnBlur` checked that for both `TextEditor`
      and `HTMLEditor`.  However, accidentally, I removed the check from `TextEditor`.
      Therefore, a call of `EditorBase::FinalizeSelection()` will hide the caret
      even after another editor gets focus.
      
      Therefore, this patch just take it back into `TextEditor::OnBlur`.
      
      Note that I don't think the design mode handling is required there because
      `TextEditor`s shouldn't be created in the design mode document.
      
      Differential Revision: https://phabricator.services.mozilla.com/D182468
      d0189a6d
  21. Jun 28, 2023
  22. Jun 20, 2023
  23. Jun 14, 2023
  24. Jun 07, 2023
  25. Jun 09, 2023
  26. Jun 04, 2023
  27. Jun 03, 2023
    • Stanca Serban's avatar
      Backed out 3 changesets (bug 1833244) for causing multiple failures. · c75ef6f2
      Stanca Serban authored
      Backed out changeset 7bc8c25b2935 (bug 1833244)
      Backed out changeset 4576af83a4ec (bug 1833244)
      Backed out changeset 90a5bbba7b9c (bug 1833244)
      c75ef6f2
    • Jonathan Watt's avatar
      Bug 1833244 p3. Implement sheet orientation switching/rotation for... · c8fa25f2
      Jonathan Watt authored
      Bug 1833244 p3. Implement sheet orientation switching/rotation for `page-orientation`. r=AlaskanEmily,dholbert
      
      Where supported (print preview and print-to-PDF), this implements changing the
      orientation and/or rotation of print sheets, as appropriate, in response to CSS
      `page-orientation`. When supported we:
      
      - in the single page-per-sheet case, rotate the sheet in order to implement
        any `page-orientation` rotation on the sheet. Rotating the sheet is necessary
        so that the pages in the PDF files that we output are correct.
      
      - in the multiple pages-per-sheet case, we already rotate individual pages in
        their grid cell. This change keeps such pages rotated, as appropriate, but
        augments that behavior by switching the orientation of the sheet (based on
        the first page on the sheet) if necessary to best place the page to make
        maximum use of the space.
      
      Depends on D179423
      
      Differential Revision: https://phabricator.services.mozilla.com/D179448
      c8fa25f2
    • Jonathan Watt's avatar
      Bug 1833244 p2. Create infrastructure to pass page dimensions to PrintTarget::BeginPage. r=dholbert · 597c1a27
      Jonathan Watt authored
      OS print drivers/devices know nothing about page dimensions unless we tell
      them. Previously, the physical page dimensions (including orientation) have
      always been the same, so communicating their dimensions once at the start of
      a print has been enough. In preparation for supporting different "physical"
      page dimensions (in the immediate future only different page orientations) when
      we save to PDF, we need to have the infrastructure to pass dimensions through
      on a page-by-page basis. This patch adds that.
      
      None of the PrintTarget subclasses do anything with this extra information yet,
      but in a follow-up patch PrintTargetPDF will use this information to create
      PDFs with mixed page orientations.
      
      Differential Revision: https://phabricator.services.mozilla.com/D179423
      597c1a27
Loading