1. 05 Feb, 2021 2 commits
  2. 06 Dec, 2019 1 commit
    • Gabriele Svelto's avatar
      Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan · ace6d106
      Gabriele Svelto authored
      The inclusions were removed with the following very crude script and the
      resulting breakage was fixed up by hand. The manual fixups did either
      revert the changes done by the script, replace a generic header with a more
      specific one or replace a header with a forward declaration.
      
      find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
          interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
          if [ -n "$interfaces" ]; then
              if [[ "$interfaces" == *$'\n'* ]]; then
                regexp="\("
                for i in $interfaces; do regexp="$regexp$i\|"; done
                regexp="${regexp%%\\\|}\)"
              else
                regexp="$interfaces"
              fi
              interface=$(basename "$path")
              rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
                  hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
                  if [ $hits -eq 0 ]; then
                      echo "Removing ${interface} from ${path2}"
                      grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
                      mv -f "$path2".tmp "$path2"
                  fi
              done
          fi
      done
      
      Differential Revision: https://phabricator.services.mozilla.com/D55442
      
      --HG--
      extra : moz-landing-system : lando
      ace6d106
  3. 04 Dec, 2019 2 commits
    • Dorel Luca's avatar
    • Gabriele Svelto's avatar
      Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan · bc9290f7
      Gabriele Svelto authored
      The inclusions were removed with the following very crude script and the
      resulting breakage was fixed up by hand. The manual fixups did either
      revert the changes done by the script, replace a generic header with a more
      specific one or replace a header with a forward declaration.
      
      find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
          interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
          if [ -n "$interfaces" ]; then
              if [[ "$interfaces" == *$'\n'* ]]; then
                regexp="\("
                for i in $interfaces; do regexp="$regexp$i\|"; done
                regexp="${regexp%%\\\|}\)"
              else
                regexp="$interfaces"
              fi
              interface=$(basename "$path")
              rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
                  hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
                  if [ $hits -eq 0 ]; then
                      echo "Removing ${interface} from ${path2}"
                      grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
                      mv -f "$path2".tmp "$path2"
                  fi
              done
          fi
      done
      
      Differential Revision: https://phabricator.services.mozilla.com/D55442
      
      --HG--
      extra : moz-landing-system : lando
      bc9290f7
  4. 02 Aug, 2019 3 commits
    • Dan Minor's avatar
      Bug 1356046 - Remove expired media telemetry; r=jya,alwu,bryce · 082a390c
      Dan Minor authored
      This removes all telemetry which expired in Firefox 69 or earlier, with the
      exceptions of the following, which we plan to renew:
      * AUDIO_TRACK_SILENCE_PROPORTION
      * MEDIA_AUTOPLAY_WOULD_BE_ALLOWED_COUNT
      * MEDIA_AUTOPLAY_WOULD_NOT_BE_ALLOWED_COUNT
      * MEDIACACHESTREAM_LENGTH_KB
      * MEDIA_MKV_CANPLAY_REQUESTED
      * MEDIA_PAGE_COUNT
      * MEDIA_PAGE_HAD_MEDIA_COUNT
      * VIDEO_DROPPED_FRAMES_PROPORTION
      * VIDEO_PLAY_TIME
      * VIDEO_HIDDEN_PLAY_TIME
      * VIDEO_HIDDEN_PLAY_TIME_PERCENTAGE
      * VIDEO_INFERRED_DECODE_SUSPEND_PERCENTAGE
      * VIDEO_INTER_KEYFRAME_AVERAGE_MS
      * VIDEO_INTER_KEYFRAME_MAX_MS
      * VIDEO_SUSPEND_RECOVERY_TIME_MS
      * VIDEO_VP9_BENCHMARK_FPS
      * WEB_AUDIO_BECOMES_AUDIBLE_TIME
      * WEBVTT_TRACK_KINDS
      
      Differential Revision: https://phabricator.services.mozilla.com/D37313
      
      --HG--
      extra : moz-landing-system : lando
      082a390c
    • arthur.iakab's avatar
      Backed out changeset b8661a3b5dc2 (bug 1356046) for causing buid bustages on... · 7aef3168
      arthur.iakab authored
      Backed out changeset b8661a3b5dc2 (bug 1356046) for causing buid bustages on HTMLMediaElement.cpp CLOSED TREE
      7aef3168
    • Dan Minor's avatar
      Bug 1356046 - Remove expired media telemetry; r=jya,alwu,bryce · a13ff75b
      Dan Minor authored
      This removes all telemetry which expired in Firefox 69 or earlier, with the
      exceptions of the following, which we plan to renew:
      * AUDIO_TRACK_SILENCE_PROPORTION
      * MEDIA_AUTOPLAY_WOULD_BE_ALLOWED_COUNT
      * MEDIA_AUTOPLAY_WOULD_NOT_BE_ALLOWED_COUNT
      * MEDIACACHESTREAM_LENGTH_KB
      * MEDIA_MKV_CANPLAY_REQUESTED
      * MEDIA_PAGE_COUNT
      * MEDIA_PAGE_HAD_MEDIA_COUNT
      * VIDEO_DROPPED_FRAMES_PROPORTION
      * VIDEO_PLAY_TIME
      * VIDEO_HIDDEN_PLAY_TIME
      * VIDEO_HIDDEN_PLAY_TIME_PERCENTAGE
      * VIDEO_INFERRED_DECODE_SUSPEND_PERCENTAGE
      * VIDEO_INTER_KEYFRAME_AVERAGE_MS
      * VIDEO_INTER_KEYFRAME_MAX_MS
      * VIDEO_SUSPEND_RECOVERY_TIME_MS
      * VIDEO_VP9_BENCHMARK_FPS
      * WEB_AUDIO_BECOMES_AUDIBLE_TIME
      * WEBVTT_TRACK_KINDS
      
      Differential Revision: https://phabricator.services.mozilla.com/D37313
      
      --HG--
      extra : moz-landing-system : lando
      a13ff75b
  5. 26 Jul, 2019 1 commit
    • Nicholas Nethercote's avatar
      Bug 1563139 - Remove StaticPrefs.h. r=glandium · 18fae65f
      Nicholas Nethercote authored
      This requires replacing inclusions of it with inclusions of more specific prefs
      files.
      
      The exception is that StaticPrefsAll.h, which is equivalent to StaticPrefs.h,
      and is used in `Codegen.py` because doing something smarter is tricky and
      suitable for a follow-up. As a result, any change to StaticPrefList.yaml will
      still trigger recompilation of all the generated DOM bindings files, but that's
      still a big improvement over trigger recompilation of every file that uses
      static prefs.
      
      Most of the changes in this commit are very boring. The only changes that are
      not boring are modules/libpref/*, Codegen.py, and ServoBindings.toml.
      
      Differential Revision: https://phabricator.services.mozilla.com/D39138
      
      --HG--
      extra : moz-landing-system : lando
      18fae65f
  6. 28 Jun, 2019 1 commit
  7. 25 Feb, 2019 1 commit
  8. 19 Nov, 2018 1 commit
  9. 19 Mar, 2018 1 commit
    • Nicholas Nethercote's avatar
      Bug 1448222 - Remove MediaPrefs. r=jya · 51f2b494
      Nicholas Nethercote authored
      This patch converts all the prefs in MediaPrefs to the new StaticPrefs system.
      
      Note that the "media.wmf.skip-blacklist" pref was present in both MediaPrefs
      and gfxPrefs. The copy in MediaPrefs was never used; this explains why this
      patch does not add an entry for it to StaticPrefList.h.
      
      Note also that the patch removes themedia.rust.mp4parser pref, because it's
      unused.
      
      MozReview-Commit-ID: IfHP37NbIjY
      
      --HG--
      extra : rebase_source : df84ea813b7c366d7be663c696891325610149c8
      51f2b494
  10. 22 Nov, 2017 2 commits
    • JW Wang's avatar
      Bug 1419666 - MemoryBlockCacheTelemetry::NotifyCombinedSizeGrown() should... · d7f80c5a
      JW Wang authored
      Bug 1419666 - MemoryBlockCacheTelemetry::NotifyCombinedSizeGrown() should assert the main thread only for the first call. r=bechen,gerald
      
      For the 2nd call might happen off the main thread.
      
      MozReview-Commit-ID: 701p2GGuiEo
      
      --HG--
      extra : rebase_source : 049d91e3ecc86d3776ad6809e5e22678bd713a27
      d7f80c5a
    • JW Wang's avatar
      Bug 1419668 - set mMaxBlocks according to MediaPrefs::MediaMemoryCacheMaxSize(). r=bechen,gerald · 799dbc5e
      JW Wang authored
      Since MemoryBlockCache is used only when the content length is smaller than
      MediaPrefs::MediaMemoryCacheMaxSize() * 1024, we should set mMaxBlocks according
      to the pref value to prevent blocks from being evicted unexpectedly.
      
      MozReview-Commit-ID: BaI0A0VUbkv
      
      --HG--
      extra : rebase_source : 252d469c101cafe3fed51a759c3fac63db5f161a
      extra : source : 8aa941397a3d2a354689c1e9d0a5a18bb659366a
      799dbc5e
  11. 18 Sep, 2017 1 commit
  12. 05 Jul, 2017 1 commit
  13. 30 Jun, 2017 3 commits
  14. 15 Jun, 2017 4 commits
  15. 12 Jun, 2017 1 commit
    • Gerald Squelart's avatar
      Bug 1371882 - MEMORYBLOCKCACHE_ERRORS telemetry to catch unexpected errors... · cb4bc96a
      Gerald Squelart authored
      Bug 1371882 - MEMORYBLOCKCACHE_ERRORS telemetry to catch unexpected errors without crashing - r=cpearce,francois
      
      No errors are expected to happen in MemoryBlockCache (except a few
      'InitAllocation', which would still be good to know about), but instead of
      taking drastic measures in these cases (i.e., crash), I would prefer to
      collect some telemetry first.
      
      MozReview-Commit-ID: 4WdFS34lgzj
      
      --HG--
      extra : rebase_source : 5600d0b93d4d438d8cc9cf5a74d9fbf24fe2822e
      cb4bc96a
  16. 09 Jun, 2017 1 commit
    • Gerald Squelart's avatar
      Bug 1371882 - Implement MemoryBlockCache - r=cpearce · b901a472
      Gerald Squelart authored
      Memory-backed block cache.
      At initialization, allocates memory needed to store the expected content
      length.
      If MediaCache attempts to write/move beyond the expected size, we grow the
      buffer accordingly, as we cannot fully trust HTTP headers. (Future patch will
      ensure we put a limit to this growth.)
      
      MozReview-Commit-ID: GHxYMGXYrwI
      
      --HG--
      rename : dom/media/MediaBlockCacheBase.h => dom/media/MemoryBlockCache.h
      extra : rebase_source : 4fe263006839ba82a77d124f147adf5943cfa651
      b901a472
  17. 09 Jul, 2017 2 commits
  18. 20 Jun, 2017 1 commit