This patch was generated by a script. Here's the source of the script for future reference: find . \( -iname "*.cpp" -o -iname "*.h" \) | \ xargs -n 1 sed -i "s/nsRefPtr<nsIRunnable>/nsCOMPtr<nsIRunnable>/g"