Commit Graph
127 Commits
Author SHA1 Message Date
Chris Peterson 9d57db3beb Bug 1218258 - Fix -Wshadow warnings in toolkit/components/downloads. r=paolo
toolkit/components/downloads/ApplicationReputation.cpp:598:14 [-Wshadow] declaration shadows a local variable
toolkit/components/downloads/ApplicationReputation.cpp:721:15 [-Wshadow] declaration shadows a local variable
toolkit/components/downloads/ApplicationReputation.cpp:809:29 [-Wshadow] declaration shadows a local variable
toolkit/components/downloads/nsDownloadManager.cpp:1268:36 [-Wshadow] declaration shadows a local variable
toolkit/components/downloads/nsDownloadManager.cpp:1483:33 [-Wshadow] declaration shadows a local variable
2015-10-19 20:07:52 -07:00
Chris Peterson 998a7f6464 Bug 1218258 - Fix -Wimplicit-fallthrough warnings in toolkit/components/downloads. r=paolo
toolkit/components/downloads/nsDownloadManager.cpp:498:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
toolkit/components/downloads/nsDownloadManager.cpp:512:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
toolkit/components/downloads/nsDownloadManager.cpp:526:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
toolkit/components/downloads/nsDownloadManager.cpp:540:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
toolkit/components/downloads/nsDownloadManager.cpp:559:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
toolkit/components/downloads/nsDownloadManager.cpp:583:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
toolkit/components/downloads/nsDownloadManager.cpp:602:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
toolkit/components/downloads/nsDownloadManager.cpp:630:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
toolkit/components/downloads/nsDownloadManager.cpp:653:3 [-Wimplicit-fallthrough] unannotated fall-through between switch labels
2015-10-19 19:59:31 -07:00
Nathan Froyd 4e6d8f6705 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Christoph Kerschbaumer 1320eb4095 Bug 1206146 - Use channel->AsyncOpen2() in embedding/components/webbrowserpersist/nsWebBrowserPersist.cpp (r=sicking) 2015-09-19 20:24:39 -07:00
Birunthan Mohanathas a29151dc87 Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Ryan VanderMeulen fdc968a05f Bug 1181533 - Add nsCRTGlue.h and prtime.h includes to nsDownloadManager.cpp to fix --disable-safe-browsing build bustage. r=froydnj
CLOSED TREE
2015-07-08 09:07:00 -04:00
Emanuel Hoogeveen b30abdc582 Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
Kartikaya Gupta ebe4a3e37e Bug 1039866 - Rip out a bunch of metro-only code. r=jimm,gavin,rstrong 2015-04-23 15:10:30 -04:00
Nathan Froyd 023e3d5c3f Bug 1153267 - part 1 - use smart-pointer .forget() instead of NS_ADDREF+assign; r=ehsan 2015-03-31 10:03:49 -04:00
Jared Wein ca23c36960 Bug 1115717 - Warning dialog when exiting Private Browsing with active downloads could be made less technical. r=paolo 2015-01-15 16:04:34 -05:00
Jim Chen 60b2a7d4b1 Bug 1116589 - Use templated JNI classes in generated bindings; r=snorp 2015-01-09 19:33:57 -05:00
Ehsan Akhgari 02d309afa1 Bug 1106116 - Load images for notifications triggered from private browsing windows as private; r=jdm 2014-11-28 14:08:29 -05:00
Sid Stamm 7327eccdb3 Bug 704320 - Add referrer policy support for nsIWebBrowserPersist and its consumers. (r=jst) 2014-11-18 08:47:14 -05:00
Paolo Amadini 425a7f755a Bug 1096014 - Regression: Unable to complete downloads in Firefox for Android. r=mfinkle 2014-11-13 11:16:04 +00:00
Magnus Melin f8110da23a Bug 1074793 - Set more restrictive permissions for downloads in the temporary directory. r=paolo 2014-11-02 15:15:43 +02:00
wesj 829714379a Bug 1070488 - Add files downloaded in private browsing to the Android Download Manager. r=paolo 2014-10-08 21:55:00 -07:00
Wes Johnston 291c164cc5 Bug 1070086 - Move download integration code to its own class. r=bnicholson 2014-10-20 12:24:49 -07:00
Christoph Kerschbaumer 17e43a4437 Bug 1041180: Remove deprecated nsIChannelPolicy (r=sstamm,jduell,jst) 2014-10-15 19:11:45 -07:00
Christoph Kerschbaumer 5ce1f0e42b Bug 1038756: Callsites creating a channel in /toolkit/components/downloads/ (r=pamadini) 2014-09-21 09:43:12 -07:00
Wes Johnston defca3da11 Bug 816318 - Media scanner shouldn't run in private mode. r=mfinkle 2014-09-18 00:20:03 -07:00
Robert Bindar a0e0e8b231 Bug 899585 - Add custom data support in the Notification constructor r=baku 2014-08-20 17:56:12 -07:00
Marco Castelluccio b4b54be170 Bug 911636 - Webapp Runtime migration to Downloads.jsm. r=myk, r=paolo 2014-08-19 08:50:00 -04:00
Monica Chew aeda299594 Bug 1011799: Integrate nsIRedirectChannel redirects into application reputation check 2014-05-28 16:06:21 -07:00
Marco Castelluccio ba5f2530b1 Bug 965414 - Don't try to use the JS downloads implementation in the webapp runtime because we don't have one. r=paolo 2014-04-27 12:22:00 -04:00
Birunthan Mohanathas eeb9aaaa94 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
snigdha 724d084f99 Bug 798033 - Headers should generally not do "using namespace" at file scope. r=jib, r=jmathies, r=rjesup, r=ekr, r=ncameron, r=blassey 2014-04-01 08:29:25 -04:00
Drew Willcoxon 5a25763248 Bug 911307 - Reflect changes to top sites immediately in about:newtab (part 1, Places patch). r=mak 2014-03-28 23:30:04 -07:00
Phil Ringnalda 304bd1a718 Backed out 2 changesets (bug 911307) for frequent timeouts in browser_newtab_perwindow_private_browsing.js
Backed out changeset 70638b7c97f1 (bug 911307)
Backed out changeset 3951f7e82b4c (bug 911307)
2014-03-29 12:13:11 -07:00
Drew Willcoxon 4d07122113 Bug 911307 - Reflect changes to top sites immediately in about:newtab (part 1, Places patch). r=mak 2014-03-28 23:30:04 -07:00
Nathan Froyd c8acba35ef Bug 984466 - change CallQueryInterface to assert in cases of trivial conversions; r=ehsan 2014-03-17 13:00:17 -04:00
Ryan VanderMeulen 86af8bac61 Backed out changeset 6f05267b4afc (bug 798033) for Android bustage. 2014-03-05 09:55:52 -05:00
snigdha 238d3a6bf5 Bug 798033 - Headers should generally not do "using namespace" at file scope. r=jib, r=jmathies, r=rjesup, r=ekr, r=ncameron, r=blassey 2014-03-05 08:47:45 -05:00
Monica Chew 0e414605b1 Bug 928536: Integrate signature verification info into application reputation call in download manager (r=paolo) 2014-01-27 13:39:00 -08:00
Phil Ringnalda d5fec3f193 Backed out 3 changesets (bug 928536) for build bustage
CLOSED TREE

Backed out changeset 750054102e68 (bug 928536)
Backed out changeset baa309383864 (bug 928536)
Backed out changeset 1ff2aed7f76f (bug 928536)
2014-02-05 08:29:17 -08:00
Monica Chew 6a36540abe Bug 928536: Integrate signature verification info into application reputation call in download manager (r=paolo) 2014-01-27 13:39:00 -08:00
Neil Rashbrook faa06fc386 Bug 514173 Make literal string buffers shareable r=dbaron,ehsan,bholley 2014-01-08 20:51:38 +00:00
Ehsan Akhgari 68bfe70f09 Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
This patch was automatically generated by the following script:

#!/bin/bash
# Command to convert PRUnichar to char16_t

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*modules/libmar*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name prtypes.h \
       ! -name Char16.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Trevor Saunders b4ae5fdd96 bug 949821 - use MOZ_UTF16 more and NS_LITERAL_STRING less r=froydnj 2013-12-12 20:50:01 -05:00
Chris Kitching 69fdb42135 Bug 913985: Part 5 - Refactor the Bridge to use the generated code. r=kats 2013-11-12 10:41:01 -08:00
Ryan VanderMeulen 4501219603 Backed out 7 changesets (bug 913985) for intermittent Android crashes.
Backed out changeset 53513a959cf0 (bug 913985)
Backed out changeset d23d1e678417 (bug 913985)
Backed out changeset a9c9187b4f4a (bug 913985)
Backed out changeset c6b02e4a3e35 (bug 913985)
Backed out changeset 895dae322e3c (bug 913985)
Backed out changeset 3d97e6a53313 (bug 913985)
Backed out changeset 892bb017f8ba (bug 913985)
2013-11-19 10:56:09 -05:00
Chris Kitching e115439e46 Bug 913985 - Part 5: refactor the Bridge to use the generated code. r=kats 2013-11-12 10:41:01 -08:00
Reuben Morais 988cb04771 Bug 904298 - Use CheckPermission to check for the desktop-notification permission. r=sicking 2013-11-11 21:56:21 -02:00
Paolo Amadini 93ef94dbfb Bug 928349 - Add a build-time setting to use only the JavaScript API for downloads, and enable it in Firefox for Desktop. r=enn 2013-10-23 21:46:47 +02:00
Birunthan Mohanathas 37fac24a80 Bug 784739 - Switch from NULL to nullptr in toolkit/components/ (2/2); r=ehsan 2013-10-10 16:38:19 -04:00
Chris Kitching 69f2f80f9a Bug 794981 - Part 4: Consistently pass nsAString into the JNI methods, instead of the veritable smorgasbord of string types previously used. r=kats 2013-09-09 08:57:36 -04:00
Doug Turner 7767c0773f Bug 906072 - Remove Maemo port. r=romaxa, r=ted, r=johns 2013-08-25 16:56:53 -07:00
Quentin Glidic 00ec58d593 Bug 884708 - Port GTK2 to GTK3, build fixes. r=karlt 2013-06-13 14:24:31 +02:00
Paolo Amadini 458d385d2d Bug 895403 - Disable methods of nsIDownloadManager that are replaced by the JavaScript API. r=enn 2013-08-16 11:02:24 +02:00
Monica Chew f32c46b257 Move execution from nsExternalAppHandler to nsDownload (b=858234, r=paolo) 2013-05-27 18:33:39 -07:00
Christian Ascheberg c983760972 Bug 863063: quitting private browsing mode does not delete partially downloaded files, r=mak 2013-05-15 01:47:25 +02:00