Commit a2e88642 authored by Ihar Hrachyshka's avatar Ihar Hrachyshka
Browse files

firefox: copy *.dylibs on darwin



Without these, some functionality seems broken (e.g. Crypto API).

Resolves #394029

Signed-off-by: default avatarIhar Hrachyshka <ihar.hrachyshka@gmail.com>
parent c0b20967
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -405,10 +405,12 @@ let
        + lib.optionalString isDarwin ''
          cd "${appPath}"

          # These files have to be copied and not symlinked, otherwise tabs crash.
          # The omni.ja files have to be copied and not symlinked, otherwise tabs crash.
          # Maybe related to how omni.ja file is mmapped into memory. See:
          # https://github.com/mozilla/gecko-dev/blob/b1662b447f306e6554647914090d4b73ac8e1664/modules/libjar/nsZipArchive.cpp#L204
          for file in $(find . -type l -name "omni.ja"); do
          #
          # The *.dylib files are copied, otherwise some basic functionality, e.g. Crypto API, is broken.
          for file in $(find . -name "omni.ja" -o -name "*.dylib"); do
            rm "$file"
            cp "${browser}/${appPath}/$file" "$file"
          done