diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2005-09-21 23:49:19 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2005-09-21 23:49:19 +0000 |
commit | 44036f0330db37bf8d71dd5b78bbb85980141c56 (patch) | |
tree | 4b8845a2591cb8722d79480d4deffaf4412531c7 /www/firefox10/files | |
parent | 9caf96ed77a4118d25885835e832b0231d077c26 (diff) | |
download | ports-44036f0330db37bf8d71dd5b78bbb85980141c56.tar.gz ports-44036f0330db37bf8d71dd5b78bbb85980141c56.zip |
Notes
Diffstat (limited to 'www/firefox10/files')
-rw-r--r-- | www/firefox10/files/patch-CAN-2005-2871 | 104 | ||||
-rw-r--r-- | www/firefox10/files/patch-browser_app_mozilla.in | 14 |
2 files changed, 8 insertions, 110 deletions
diff --git a/www/firefox10/files/patch-CAN-2005-2871 b/www/firefox10/files/patch-CAN-2005-2871 deleted file mode 100644 index eca8515adbdb..000000000000 --- a/www/firefox10/files/patch-CAN-2005-2871 +++ /dev/null @@ -1,104 +0,0 @@ -Index: netwerk/base/src/nsStandardURL.cpp -=================================================================== -RCS file: /cvs/mozilla/netwerk/base/src/nsStandardURL.cpp,v -retrieving revision 1.60.16.2 -diff -p -u -1 -2 -r1.60.16.2 nsStandardURL.cpp ---- netwerk/base/src/nsStandardURL.cpp 17 Feb 2005 23:40:53 -0000 1.60.16.2 -+++ netwerk/base/src/nsStandardURL.cpp 9 Sep 2005 16:34:46 -0000 -@@ -403,24 +403,25 @@ nsStandardURL::AppendToBuf(char *buf, PR - // 4- update url segment positions and lengths - nsresult - nsStandardURL::BuildNormalizedSpec(const char *spec) - { - // Assumptions: all member URLSegments must be relative the |spec| argument - // passed to this function. - - // buffers for holding escaped url segments (these will remain empty unless - // escaping is required). - nsCAutoString encUsername; - nsCAutoString encPassword; - nsCAutoString encHost; -+ PRBool useEncHost; - nsCAutoString encDirectory; - nsCAutoString encBasename; - nsCAutoString encExtension; - nsCAutoString encParam; - nsCAutoString encQuery; - nsCAutoString encRef; - - // - // escape each URL segment, if necessary, and calculate approximate normalized - // spec length. - // - PRInt32 approxLen = 3; // includes room for "://" -@@ -440,34 +441,36 @@ nsStandardURL::BuildNormalizedSpec(const - approxLen += encoder.EncodeSegmentCount(spec, mBasename, esc_FileBaseName, encBasename); - approxLen += encoder.EncodeSegmentCount(spec, mExtension, esc_FileExtension, encExtension); - approxLen += encoder.EncodeSegmentCount(spec, mParam, esc_Param, encParam); - approxLen += encoder.EncodeSegmentCount(spec, mQuery, esc_Query, encQuery); - approxLen += encoder.EncodeSegmentCount(spec, mRef, esc_Ref, encRef); - } - - // do not escape the hostname, if IPv6 address literal, mHost will - // already point to a [ ] delimited IPv6 address literal. - // However, perform Unicode normalization on it, as IDN does. - mHostEncoding = eEncoding_ASCII; - if (mHost.mLen > 0) { -+ useEncHost = PR_FALSE; - const nsCSubstring& tempHost = - Substring(spec + mHost.mPos, spec + mHost.mPos + mHost.mLen); - if (IsASCII(tempHost)) - approxLen += mHost.mLen; - else { - mHostEncoding = eEncoding_UTF8; - if (gIDNService && -- NS_SUCCEEDED(gIDNService->Normalize(tempHost, encHost))) -+ NS_SUCCEEDED(gIDNService->Normalize(tempHost, encHost))) { - approxLen += encHost.Length(); -- else { -+ useEncHost = PR_TRUE; -+ } else { - encHost.Truncate(); - approxLen += mHost.mLen; - } - } - } - - // - // generate the normalized URL string - // - mSpec.SetLength(approxLen + 32); - char *buf; - mSpec.BeginWriting(buf); -@@ -483,25 +486,30 @@ nsStandardURL::BuildNormalizedSpec(const - mAuthority.mPos = i; - - // append authority - if (mUsername.mLen > 0) { - i = AppendSegmentToBuf(buf, i, spec, mUsername, &encUsername); - if (mPassword.mLen >= 0) { - buf[i++] = ':'; - i = AppendSegmentToBuf(buf, i, spec, mPassword, &encPassword); - } - buf[i++] = '@'; - } - if (mHost.mLen > 0) { -- i = AppendSegmentToBuf(buf, i, spec, mHost, &encHost); -+ if (useEncHost) { -+ mHost.mPos = i; -+ mHost.mLen = encHost.Length(); -+ i = AppendToBuf(buf, i, encHost.get(), mHost.mLen); -+ } else -+ i = AppendSegmentToBuf(buf, i, spec, mHost); - net_ToLowerCase(buf + mHost.mPos, mHost.mLen); - if (mPort != -1 && mPort != mDefaultPort) { - nsCAutoString portbuf; - portbuf.AppendInt(mPort); - buf[i++] = ':'; - i = AppendToBuf(buf, i, portbuf.get(), portbuf.Length()); - } - } - - // record authority length - mAuthority.mLen = i - mAuthority.mPos; - diff --git a/www/firefox10/files/patch-browser_app_mozilla.in b/www/firefox10/files/patch-browser_app_mozilla.in index 6389a61b5e8b..414bc881e492 100644 --- a/www/firefox10/files/patch-browser_app_mozilla.in +++ b/www/firefox10/files/patch-browser_app_mozilla.in @@ -123,7 +123,7 @@ # Use run-mozilla.sh in the current dir if it exists # If not, then start resolving symlinks until we find run-mozilla.sh -@@ -82,149 +114,221 @@ +@@ -82,151 +114,221 @@ curdir=`dirname "$progname"` progbase=`basename "$progname"` run_moz="$curdir/run-mozilla.sh" @@ -183,7 +183,6 @@ -fi - -script_args="" --moreargs="" -debugging=0 -MOZILLA_BIN="${progbase}-bin" - @@ -385,7 +384,8 @@ -# Default action - no running instance or _USE_EXIST (${_USE_EXIST}) ! -eq 1 -########################################################################### Main --while [ $# -gt 0 ] +-pass_arg_count=0 +-while [ $# -gt $pass_arg_count ] -do - case "$1" in - -p | --pure | -pure) @@ -402,8 +402,11 @@ - shift 2 - ;; - *) -- moreargs="$moreargs \"$1\"" -- shift 1 +- # Move the unrecognized argument to the end of the list. +- arg="$1" +- shift +- set -- "$@" "$arg" +- pass_arg_count=`expr $pass_arg_count + 1` - ;; - esac -done @@ -449,7 +452,6 @@ +fi -export MRE_HOME --eval "set -- $moreargs" +# real invocation +eval "set -- ${moreargs}" |