Skip to content
Snippets Groups Projects
  1. Jul 14, 2023
  2. Jul 12, 2023
  3. Jul 18, 2023
  4. Jul 13, 2023
  5. Jul 17, 2023
  6. Jun 27, 2023
  7. Jul 14, 2023
  8. Jun 08, 2023
  9. Jul 04, 2023
    • Mike Conley's avatar
      Bug 1840792 - Be more resilient and timely when dealing with database... · a7c76196
      Mike Conley authored
      Bug 1840792 - Be more resilient and timely when dealing with database corruption during Chrome browser import. r=kpatenio, a=dsmith
      
      This patch does two things:
      
      1. It makes it so that a corrupt database doesn't result in several retries to
         requery the database, as it's extremely unlikely that a corrupt database is
         going to somehow get repaired in the interim.
      2. It makes it so that if any Chrome-based browser resource fails to be acquired
         properly, it still allows other resources from the same (and other!) profiles
         to be imported.
      
      Differential Revision: https://phabricator.services.mozilla.com/D182737
      a7c76196
  10. Jul 12, 2023
  11. Jul 14, 2023
  12. Jul 12, 2023
    • Mike Hommey's avatar
      Bug 1842933 - Use NEON_FLAGS instead of VPX_ASFLAGS for libaom neon code.... · b1b3110b
      Mike Hommey authored
      Bug 1842933 - Use NEON_FLAGS instead of VPX_ASFLAGS for libaom neon code. r=firefox-build-system-reviewers,andi a=RyanVM
      
      Back when libaom was added, VPX_ASFLAGS was more or less the only
      variable that had the right set of flags for NEON support, which
      justified its use. However, it's not set when building against system
      libvpx.
      
      Bug 1791482 improved things, though, and VPX_ASFLAGS, as far as NEON is
      concerned, is now only re-exporting NEON_FLAGS, with the same caveat that
      VPX_ASFLAGS is empty when building against system libvpx.
      
      So we should use NEON_FLAGS instead of VPX_ASFLAGS.
      
      Differential Revision: https://phabricator.services.mozilla.com/D183310
      b1b3110b
  13. Jul 11, 2023
  14. Jul 13, 2023
  15. Jul 07, 2023
  16. Jul 12, 2023
  17. Jul 06, 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
    • Tom Ritter's avatar
      Bug 1830070: Correctly apply RFP Checks to about: documents and deal with... · 839b718a
      Tom Ritter authored
      Bug 1830070: Correctly apply RFP Checks to about: documents and deal with pop-ups (ESR) r=smaug,emilio, a=dsmith
      
      
      This patch has three parts to it, in addition to the many tests
      it adds:
      
      1) Use NS_IsContentAccessibleAboutURI to ensure that only safe
         about: documents get exempted.
      
         With this change, we will no longer allow about:blank or
         about:srcdoc to be exempted base on URI.  If they are to be
         exempted, it will need to be base on other information.
      
      2) In Document::RecomputeResistFingerprinting we previously
         deferred to a Parent Document if we had one, and either the
         principals matched or we were a null principal.
      
         We will do the same thing, except we will also defer to our
         opener as well as the parent document.  Now about:blank
         documents can be exempted.
      
         However, this deferral only works if the opener is
         same-process. For cross-process openers, we make the decision
         ourselves.
      
      We can make the wrong decision though. CookieJarSettings is
      inherited through iframes but it is _not_ inherited through popups.
      (Yet. There's some discussion there, but it's not implemented.)
      
      Conceptually; however, we do want CJS to inherit, and we do want
      RFP to inherit as well.  Because a popup can collude with its
      opener to bypass RFP and Storage restrictions, we should propagate
      the CJS information.
      
      This does lead to an unusual situation: if you have exempted
      b.com, and a.com (which is not exempted) creates a popup for b.com
      then that popup will not be exempted.  But an open tab for b.com
      would be.  And it might be hard to tell those two apart, or why
      they behave differently.
      
      The third part of the patch:
      
      3) In LoadInfo we want to populate information down from the
         opener to the popup.  This is needed because otherwise a
         cross-origin popup will not defer to its opener (because in
         Fission they're in different processes) and will decide if
         it should be exempted itself. It's the CookieJarSettings
         object that prevents the cross-origin document from thinking
         it should be exempted - CJS tells it 'No, you're a child
         (either a subdocument or a popup) and if I say you don't get
         an exemption, you don't.'
      
      
      Finally, there is one more caveat: we can only defer to a parent
      document or opener if it still exists.  A popup may outlive its
      opener. If that happens, and something induces a call to
      RecomputeResistFingerprinting, then (e.g.) an about:blank popup
      may lose an RFP exemption that it had received from its parent.
      This isn't expected to happen in practice -
      RecomputeResistFingerprinting is only called on document creation
      and pref changes I believe.
      
      It is not possible for a popup to _gain_ an exemption though,
      because even if the parent document is gone, the CJS lives on and
      restricts it.
      
      Differential Revision: https://phabricator.services.mozilla.com/D183189
      839b718a
  19. Jul 06, 2023
  20. Jul 07, 2023
  21. Jul 06, 2023
  22. Jun 30, 2023
  23. Jun 29, 2023
  24. Jul 10, 2023
  25. Jul 11, 2023
Loading