Граф коммитов

34 Коммитов

Автор SHA1 Сообщение Дата
Haik Aftandilian 58ac4dd796 Bug 1448374 - Loading a .javascript file from a WebExtension's web_accessible_resources messing with macOS file associations r=jimm
From content processes, on Mac, use ContentHandlerService::GetTypeFromExtension()
instead of trying to query the OS directly for MIME information.
Trying to get MIME information from the OS is blocked by content process
sandboxing on Mac.

MozReview-Commit-ID: KGJHDBklxvb

--HG--
extra : rebase_source : ae46525eee622d64ffc6e263b19682aec033480a
2018-04-03 13:42:43 -07:00
Chris Peterson 37efe4d0e6 Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj
MozReview-Commit-ID: DCPTnyBooIe

--HG--
extra : rebase_source : cfec2d96faeb11656d86d760a34e0a04cacddb13
extra : intermediate-source : 6176724d63788b0fe8caa3f91607c2d93dbaa7ec
extra : source : eebbb0600447f9b64aae3bcd47b4be66c02a51ea
2017-11-05 19:37:28 -08:00
Wei-Cheng Pan 9a0fc7767f Bug 1293212 - Add MOZ_MUST_USE to prevent potential bugs. r=smaug
MozReview-Commit-ID: EuyeBkDlk2G

--HG--
extra : rebase_source : de8d5a95f74b757b7441cdc1e0f2dadb3a77ac6e
2016-08-08 18:16:15 +08:00
Phil Ringnalda d8ad3d3bc3 Back out 26a015091dbc (bug 1293212) for OS X failures in /html/webappapis/system-state-and-capabilities/the-navigator-object/protocol.html 2016-08-15 19:42:54 -07:00
Wei-Cheng Pan 4ae87d0adc Bug 1293212 - Add MOZ_MUST_USE to prevent potential bugs. r=smaug
MozReview-Commit-ID: EuyeBkDlk2G

--HG--
extra : rebase_source : b728e1dd7e1ddfec3315f397e35dcb11eeab1ffa
2016-08-08 18:16:15 +08:00
Ehsan Akhgari 1b83407ce9 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
Andrew Quartey 99b595ed0e Bug 878144 - Remove nsExternalHelperAppService::FixFilePermissions. r=paolo 2013-08-14 16:26:07 -04:00
Ehsan Akhgari e368dc9c85 Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.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 PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Geoff Lankow 5cefea8480 Bug 749930 - Replace uses of nsILocalFile with nsIFile (compiled code only); r=bsmedberg 2012-06-06 14:08:30 +12:00
Gervase Markham 82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Michael Wu d2b70213ac Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Boris Zbarsky acf3555766 Bug 624995. Make sure to fix the file permissions on Mac when downloading, now that mac's nsILocalFile::Create actually pays attention to permissions. r=josh, a=blocker 2011-01-18 21:20:35 -05:00
Brad Lassey 09f8d096e6 bug 582616 - Sharing back-end for Android r=mwu,mfinkle sr=stuart a=blocking-fennec 2010-09-30 11:37:36 -04:00
Steven Michaud e4958ecdca get rid of nsIInternetConfigService. b=489864 r=josh sr=roc 2009-06-23 14:09:19 -05:00
dmose@mozilla.org aba72c6e99 Add an l10n strategy for web-based protocol handler updating (bug 395277); r=myk, sr=biesi, r=gavin (for browser/ pieces), a=blocking-1.9+; late-l10n checkin 2008-02-19 20:46:35 -08:00
sdwilsh@shawnwilsher.com 09e384652c Bug 389969 - There is no protocol handling dialog. r=cbiesinger, sr=dmose, a=schrep 2007-07-30 16:33:16 -07:00
sdwilsh@shawnwilsher.com 801e29f7d0 Bug 385065 - protocol handling dialog. I accidentally reverted this change when I landed Bug 385065. r=cviesinger, sr=dmose 2007-07-26 14:23:56 -07:00
sdwilsh@shawnwilsher.com d813830a5f Bug 388701 - nsExternalHelperAppService::GetProtocolHandlerInfo should get OS Specific implementation. r=cbiesinger, sr=dmose 2007-07-22 11:40:24 -07:00
dmose@mozilla.org 12f5a83e26 Implement backend changes for web-based protocol handlers a la WhatWG HTML5 draft (bug 380415). r=cbiesinger@gmx.at, sr=jonas@sicking.cc 2007-05-25 08:17:44 -07:00
mozilla.mano%sent.com ec33eaa645 Bug 264648 - Implement nsOSHelperAppService::GetApplicationDescription for OS X (in order to show an application description in the confirmation dialog for). r=jhpedemonte, sr=smfr, a=asa. 2005-07-20 19:03:41 +00:00
dveditz%cruzio.com 430d42c69d bug 263546: move external protocol warning down a level, r=jsr,sr=darin 2004-10-25 07:46:01 +00:00
gerv%gerv.net f7f3cb2736 Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-04-17 16:52:41 +00:00
cbiesinger%web.de 14177dedcb Bug 235502 nsIMIMEService, nsIMIMEInfo should use nsACString/nsAString instead of string/wstring
r=bzbarsky sr=darin
2004-04-15 20:56:37 +00:00
cbiesinger%web.de 7ea034fb6b bug 78919, last part. r=bzbarsky sr=darin.
This adds a new method launchWithFile on nsIMIMEInfo which takes care of opening
the selected (preferred or default) application on the mime info with a
specified document. defaultDescription is now readonly, and defaultApplication
no longer available.
This also removes the clone method which was unused in the entire tree.
2004-02-23 22:49:28 +00:00
cbiesinger%web.de e92cc5ddfd 78919 part 2. always return a nsIMIMEInfo from the OS HelperAppServices, and don't
create MIMEInfos outside of them directly.
r=bzbarsky sr=darin
2003-11-15 15:01:39 +00:00
cbiesinger%web.de bb37693039 147679 GetFromMIMEType on Windows only gets one extension and needs rethinking r=bzbarsky sr=darin
this merges nsIMIMEService::GetFromType and GetFromExtension
2003-07-25 16:48:00 +00:00
bzbarsky%mit.edu 4d2505d4e4 Fix bug 86640 -- change helper app dialog to properly remember the selected
course of action, move the "neverAsk" information from prefs back to
mimeTypes.rdf, remove the "Reset" button from helper app prefs, set up a way to
select "use default OS helper" for a given type.  Patch by Bill Law
<law@netscape.com> and Philip K. Warren <pkw@us.ibm.com>, r=biesi, sr=bzbarsky,
what passes for moa in helper apps=bzbarsky.
2003-01-12 01:14:35 +00:00
mscott%netscape.com d43ed03fe4 Bug #74783 --> never get the mac creator and file type from our hard coded list of content types. Always get them from internet config. Mac only change. r=sspitzer sr=sfraser 2001-04-13 00:43:52 +00:00
mscott%netscape.com 4db17fe50b Bug #67598 --> remove CanHandleContent and DoContent
as this code has been reconsolidated in the base class for
all to use. For everyone, if the mime type is unknown or octet,
then try to guess a content type by file extension in doContent.
Also, if we can't find a mime type, create a new one for all platforms
so we don't need to bring up the ucth dialog.

sr=sspitzer
2001-02-07 02:43:18 +00:00
mscott%netscape.com 5ea7a20158 Bug #43556 --> merging nsIMIMEService and making it use OS specific information. r=valeski 2000-09-15 06:06:58 +00:00
mscott%netscape.com 677c8d5d17 Bug #43583 --> re-organizing how we launch helper apps to work with the helper app dialog.
r=alecf
2000-07-07 01:48:17 +00:00
mscott%netscape.com ad5c9fe08a Bug #38374 --> more updates for external helper application support. (NOT PART OF THE BUILD)
code review will come when this is done and gets turned on.

More mac file updates.
2000-06-22 04:41:36 +00:00
mscott%netscape.com 164e9d6254 Bug #30157 --> add the ability to launch urls using OS default protocol handlers. (NOT PART OF THE BUILD)
code review will come when this is done and gets turned on.

part of the mac internet config stuff.
2000-06-18 22:48:43 +00:00
mscott%netscape.com f623c5b424 Bug #38374 --> more updates for external helper application support. (NOT PART OF THE BUILD)
code review will come when this is done and gets turned on.

Mac specific implementation of the helper app service. Note: this is incomplete...I have added FIX ME comments
in all the places where we need Mac specific information for interacting with internet config.
2000-06-18 19:54:37 +00:00