[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser-build/master] Revert "Applying patch for bug 24052"



commit 35392120ea19c1e22cc352e6af5962a676ed5469
Author: Georg Koppen <gk@xxxxxxxxxxxxxx>
Date:   Thu Nov 9 07:48:34 2017 +0000

    Revert "Applying patch for bug 24052"
    
    This reverts commit e0e6bfd780cdbb529aecc57699a8f410f667c62f.
---
 projects/firefox/24052.patch | 57 --------------------------------------------
 projects/firefox/build       |  4 ----
 projects/firefox/config      |  2 --
 3 files changed, 63 deletions(-)

diff --git a/projects/firefox/24052.patch b/projects/firefox/24052.patch
deleted file mode 100644
index a418a97..0000000
--- a/projects/firefox/24052.patch
+++ /dev/null
@@ -1,57 +0,0 @@
-From c5d1bb91512f9dd20e0f54c6f3e6979588cf9f56 Mon Sep 17 00:00:00 2001
-From: Georg Koppen <gk@xxxxxxxxxxxxxx>
-Date: Fri, 27 Oct 2017 20:40:57 +0000
-Subject: [PATCH] Bug 24052: Streamline handling of file:// resources
-
-We should make sure restrictions regarding loading of file:// resources
-are adhered to more strictly, at least on *nix platforms.
-
-This is a workaround for
-https://bugzilla.mozilla.org/show_bug.cgi?id=1412081.
-
-diff --git a/netwerk/base/nsIOService.cpp b/netwerk/base/nsIOService.cpp
-index 0da79c18ae41..0cc67da7b18f 100644
---- a/netwerk/base/nsIOService.cpp
-+++ b/netwerk/base/nsIOService.cpp
-@@ -789,12 +789,20 @@ nsIOService::NewChannelFromURIWithProxyFlagsInternal(nsIURI* aURI,
-         // if calling newChannel2() fails we try to fall back to
-         // creating a new channel by calling NewChannel().
-         if (NS_FAILED(rv)) {
-+#ifdef XP_UNIX
-+        if (rv == NS_ERROR_FILE_TARGET_DOES_NOT_EXIST) {
-+            return rv;
-+        } else {
-+#endif
-             rv = handler->NewChannel(aURI, getter_AddRefs(channel));
-             NS_ENSURE_SUCCESS(rv, rv);
-             // The protocol handler does not implement NewChannel2, so
-             // maybe we need to wrap the channel (see comment in MaybeWrap
-             // function).
-             channel = nsSecCheckWrapChannel::MaybeWrap(channel, aLoadInfo);
-+#ifdef XP_UNIX
-+        }
-+#endif
-         }
-     }
- 
-diff --git a/netwerk/protocol/file/nsFileProtocolHandler.cpp b/netwerk/protocol/file/nsFileProtocolHandler.cpp
-index e55cb9d47460..c24c928b6f02 100644
---- a/netwerk/protocol/file/nsFileProtocolHandler.cpp
-+++ b/netwerk/protocol/file/nsFileProtocolHandler.cpp
-@@ -188,6 +188,13 @@ nsFileProtocolHandler::NewChannel2(nsIURI* uri,
-                                    nsILoadInfo* aLoadInfo,
-                                    nsIChannel** result)
- {
-+#ifdef XP_UNIX
-+    if (aLoadInfo && aLoadInfo->TriggeringPrincipal()) {
-+      if (aLoadInfo->TriggeringPrincipal()->GetIsCodebasePrincipal()) {
-+        return NS_ERROR_FILE_TARGET_DOES_NOT_EXIST;
-+      }
-+    }
-+#endif
-     nsFileChannel *chan = new nsFileChannel(uri);
-     if (!chan)
-         return NS_ERROR_OUT_OF_MEMORY;
--- 
-2.14.2
-
diff --git a/projects/firefox/build b/projects/firefox/build
index 00ab612..f6a7654 100644
--- a/projects/firefox/build
+++ b/projects/firefox/build
@@ -86,10 +86,6 @@ fi
   export CC='gcc -m32'
 [% END -%]
 
-[% IF c("var/linux") || c("var/osx") %]
-  patch -p1 < $rootdir/24052.patch
-[% END -%]
-
 rm -f configure
 rm -f js/src/configure
 make -f client.mk configure CONFIGURE_ARGS="--with-tor-browser-version=[% c("var/torbrowser_version") %] --with-distribution-id=org.torproject --enable-update-channel=[% c("var/torbrowser_update_channel") %] --enable-bundled-fonts"
diff --git a/projects/firefox/config b/projects/firefox/config
index 74e95db..f508250 100644
--- a/projects/firefox/config
+++ b/projects/firefox/config
@@ -81,8 +81,6 @@ input_files:
     enable: '[% c("var/linux") %]'
   - filename: fix-info-plist.py
     enable: '[% c("var/osx") %]'
-  - filename: 24052.patch
-    enable: '[% c("var/linux") || c("var/osx") %]'
   - URL: https://people.torproject.org/~gk/mirrors/sources/msvcr100.dll
     sha256sum: 8793353461826fbd48f25ea8b835be204b758ce7510db2af631b28850355bd18
     enable: '[% c("var/windows-i686") %]'



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits