Skip to content
Snippets Groups Projects
  1. Sep 06, 2022
  2. Apr 06, 2022
  3. Feb 09, 2022
  4. Aug 12, 2021
    • valenting's avatar
      Bug 1722925 - Remove NS_MutatorMethod in favor of templated... · d97def2f
      valenting authored
      Bug 1722925 - Remove NS_MutatorMethod in favor of templated nsIURIMutator::Apply r=necko-reviewers,kershaw
      
      This basically reverts the changes in 5caa81103c00 (bug 1435671). In that bug
      we switched from having a templated method to using a templated function
      that returned a lambda because the templated method caused a binary size
      regression on windows (MSVC). Since Firefox 67 we no longer support MSVC.
      Using a lambda also required capturing the arguments by value, so it was
      slightly inefficient.
      
      This patch removes NS_MutatorMethod and makes the Apply method a template.
      This improves perfomance as we can just pass the arguments to the called
      function, without worrying about needing to copy them.
      Since MSVC is not supported anymore, and clang and gcc didn't report a
      binary size regression, this is a much better solution.
      
      Differential Revision: https://phabricator.services.mozilla.com/D122081
      d97def2f
    • Iulian Moraru's avatar
      Backed out 2 changesets (bug 1722925) for causing reftest failures in color_quads. CLOSED TREE · 32090542
      Iulian Moraru authored
      Backed out changeset 95a6eacbef27 (bug 1722925)
      Backed out changeset 2e2a98aeca5c (bug 1722925)
      32090542
    • valenting's avatar
      Bug 1722925 - Remove NS_MutatorMethod in favor of templated... · c6b1fa7e
      valenting authored
      Bug 1722925 - Remove NS_MutatorMethod in favor of templated nsIURIMutator::Apply r=necko-reviewers,kershaw
      
      This basically reverts the changes in 5caa81103c00 (bug 1435671). In that bug
      we switched from having a templated method to using a templated function
      that returned a lambda because the templated method caused a binary size
      regression on windows (MSVC). Since Firefox 67 we no longer support MSVC.
      Using a lambda also required capturing the arguments by value, so it was
      slightly inefficient.
      
      This patch removes NS_MutatorMethod and makes the Apply method a template.
      This improves perfomance as we can just pass the arguments to the called
      function, without worrying about needing to copy them.
      Since MSVC is not supported anymore, and clang and gcc didn't report a
      binary size regression, this is a much better solution.
      
      Differential Revision: https://phabricator.services.mozilla.com/D122081
      c6b1fa7e
    • valenting's avatar
      Bug 1722925 - Remove NS_MutatorMethod in favor of templated... · 1da577fe
      valenting authored
      Bug 1722925 - Remove NS_MutatorMethod in favor of templated nsIURIMutator::Apply. r=kershaw, a=RyanVM
      
      This basically reverts the changes in 5caa81103c00 (bug 1435671). In that bug
      we switched from having a templated method to using a templated function
      that returned a lambda because the templated method caused a binary size
      regression on windows (MSVC). Since Firefox 67 we no longer support MSVC.
      Using a lambda also required capturing the arguments by value, so it was
      slightly inefficient.
      
      This patch removes NS_MutatorMethod and makes the Apply method a template.
      This improves perfomance as we can just pass the arguments to the called
      function, without worrying about needing to copy them.
      Since MSVC is not supported anymore, and clang and gcc didn't report a
      binary size regression, this is a much better solution.
      
      Differential Revision: https://phabricator.services.mozilla.com/D122081
      1da577fe
  5. Apr 20, 2021
  6. Mar 10, 2021
  7. Mar 05, 2021
  8. Mar 04, 2021
  9. Jan 15, 2021
  10. Jan 07, 2021
  11. Jan 05, 2021
  12. Sep 29, 2020
  13. Nov 23, 2020
  14. Sep 23, 2020
  15. Aug 07, 2020
  16. Oct 26, 2020
    • Ricky Stewart's avatar
      Bug 1654103: Standardize on Black for Python code in `mozilla-central`. · 02a7b4eb
      Ricky Stewart authored
      Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.
      
      To produce this patch I did all of the following:
      
      1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.
      
      2. Run ./mach lint --linter black --fix
      
      3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.
      
      4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.
      
      5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).
      
      # ignore-this-changeset
      
      Differential Revision: https://phabricator.services.mozilla.com/D94045
      02a7b4eb
  17. Oct 24, 2020
    • Bogdan Tara's avatar
      Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for... · da1098d4
      Bogdan Tara authored
      Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
      
      Backed out changeset ff3fb0b4a512 (bug 1672023)
      Backed out changeset e7834b600201 (bug 1654103)
      Backed out changeset 807893ca8069 (bug 1518999)
      Backed out changeset 13e6b92440e9 (bug 1518999)
      Backed out changeset 8b2ac5a6c98a (bug 1518999)
      Backed out changeset 575748295752 (bug 1518999)
      Backed out changeset 65f07ce7b39b (bug 1518999)
      Backed out changeset 4bb80556158d (bug 1518999)
      Backed out changeset 8ac8461d7bd7 (bug 1518999)
      Backed out changeset e8ba13ee17f5 (bug 1518999)
      da1098d4
  18. Oct 23, 2020
    • Ricky Stewart's avatar
      Bug 1654103: Standardize on Black for Python code in `mozilla-central`.... · c0cea3b0
      Ricky Stewart authored
      Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
      
      Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.
      
      To produce this patch I did all of the following:
      
      1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.
      
      2. Run ./mach lint --linter black --fix
      
      3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.
      
      4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.
      
      5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).
      
      # ignore-this-changeset
      
      Differential Revision: https://phabricator.services.mozilla.com/D94045
      c0cea3b0
  19. Oct 22, 2020
  20. Oct 21, 2020
    • Ricky Stewart's avatar
      Bug 1654103: Standardize on Black for Python code in `mozilla-central`.... · 50762dac
      Ricky Stewart authored
      Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
      
      Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.
      
      To produce this patch I did all of the following:
      
      1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.
      
      2. Run ./mach lint --linter black --fix
      
      3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.
      
      4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).
      
      # ignore-this-changeset
      
      Differential Revision: https://phabricator.services.mozilla.com/D94045
      50762dac
  21. Jul 16, 2020
  22. Jul 14, 2020
  23. Jul 01, 2020
  24. May 17, 2020
  25. Apr 02, 2020
  26. Mar 09, 2020
Loading