Commit Graph

440 Commits

Author SHA1 Message Date
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
Emanuel Hoogeveen
b30abdc582 Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
Juan Gomez
89035d527e Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
Nicholas Nethercote
d2f1cca00c Bug 1175810 (part 1) - Remove PL_DHashTableEnumerator() use from nsScriptNameSpaceManager. r=bz.
PLDHashTable::Iterator is so much better. Lots of plumbing removed here.
2015-06-17 20:30:15 -07:00
Ryan VanderMeulen
7aba9d7002 Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage. 2015-06-25 19:48:42 -04:00
Juan Gomez
7323e89a40 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-06-24 14:11:00 -04:00
Edwin Flores
dc0534d58f Bug 1160445 - Add detailed logging for EME promise failures - r=cpearce,bholley 2015-06-03 13:42:50 +12:00
Fabrice Desré
48b859b3c7 Bug 1161677 - Expose dev mode state read-only through the navigator.hasFeature() api r=ehsan 2015-05-23 17:38:24 -07:00
Andrew McCreight
8d2d5e489f Bug 1157995 - Tell the cycle collector about Navigator::mMediaDevices. r=smaug 2015-05-20 09:55:06 -07:00
Andrea Marchesini
b45d15ecff Bug 1166231 - Make nsIDOMBlob an empty interface, r=ehsan 2015-05-19 15:36:37 +01:00
Andrea Marchesini
a8f15ce969 Bug 1159401 - Split Blob and File classes, r=bz 2015-05-12 13:09:51 +01:00
Wes Kocher
040b8fe0e4 Backed out 2 changesets (bug 1159401) for b2g build bustage
Backed out changeset adfee1efb1e1 (bug 1159401)
Backed out changeset 70c63c8546e3 (bug 1159401)
2015-05-11 14:54:02 -07:00
Andrea Marchesini
5d622f89aa Bug 1159401 - patch 1 - Split Blob and File in 2 classes, r=bz 2015-05-11 18:50:50 +01:00
Ryan VanderMeulen
95df0286b8 Backout revisions 4287533203fb and 96a3ebfe09d8 (bug 1159401) for bustage.
CLOSED TREE
2015-05-11 11:43:59 -04:00
Andrea Marchesini
2ffeefc77a Bug 1159401 - patch 1 - Split Blob and File in 2 classes, r=bz 2015-05-11 15:20:06 +01:00
Kershaw Chang
af0952357e Bug 1126694 - Impl of DeviceStorageAreaListener. r=bz, dhylands 2015-05-04 08:11:00 +02:00
Andrew McCreight
92010d3e4c Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Boris Zbarsky
0a010b1519 Bug 1155946 part 2. Add mayResolve methods to DOM classes with resolve hooks. r=peterv 2015-04-28 12:25:55 -04:00
Carsten "Tomcat" Book
7892686ad3 merge mozilla-inbound to mozilla-central a=merge 2015-04-23 15:41:03 +02:00
Fabrice Desré
15c5802316 Bug 1157028 - Add feature detection for OpenMobile r=ehsan 2015-04-22 14:21:44 -07:00
James Cheng
72dbcb49bc Bug 1026350 - Part 1: Inputport API implementation. r=baku 2015-04-08 03:07:00 -04:00
Chris Pearce
fc131df128 Bug 1146201 - Delay navigator.requestMediaKeySystemAccess if CDM not downloaded yet or needs update. r=jwwang,ehsan 2015-03-31 20:50:01 +13:00
Ehsan Akhgari
96751b0022 Bug 1147695 - Enable interception of beacons through service workers; r=nsm
Currently when sending a beacon, HttpBaseChannel::ShouldIntercept tries
to get access to the nsINetworkInterceptController interface through the
channel's notification callbacks, but in this case the notification
callback is the nsCORSListenerProxy object (thanks to
nsCORSListenerProxy::Init).

nsCORSListenerProxy already knows how to forward calls to
nsIInterfaceRequestor::GetInterface to mOuterNotificationCallbacks, and
ShouldIntercept calls GetInterfce.  But mOuterNotificationCallbacks is
set by default to the callbacks of the channel at the time
nsCORSListenerProxy is called, and the callbacks on this channel is
intentionally null, so ShouldIntercept bails out and the beacon never
gets intercepted.

This patch extends nsCORSListenerProxy to make it aware of
nsINetworkInterceptController, and have it route the request for
nsINetworkInterceptController correctly to the docshell without the need
to mess with the notification callbacks.

This will be tested in bug 1147699.
2015-03-28 16:28:37 -04:00
Bevis Tseng
edf4bff485 Bug 1114935 - Part 5.2: Build MozIccManager by default. r=echen, r=htsai, r=glandium 2015-01-14 14:43:32 +08:00
Ehsan Akhgari
ea41d8de48 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -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 MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Jan-Ivar Bruaroey
f26e7e9311 Bug 1145403 - Don't open MediaManager on shutdown. r=jesup 2015-03-19 18:43:25 -04:00
Boris Zbarsky
3a822d99b4 Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp.  The
rest of this diff was generated by running the following commands:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Gregor Wagner
1f49174393 Backout Bug 1114935 for causing bug 1144567. 2015-03-18 11:48:52 -07:00
Bevis Tseng
1432ee09f9 Bug 1114935 - Part 5.2: Build MozIccManager by default. r=echen, r=htsai, r=glandium 2015-01-14 14:43:32 +08:00
Christoph Kerschbaumer
bbfe0f8fe5 Bug 1111834 - CORS request after preflight should not follow 30x redirect (r=sicking) 2015-02-19 13:43:40 -08:00
Chris Pearce
b4787dae6e Bug 1124031 part 4 - Enforce min CDM version from keySystem string. r=bz 2015-02-20 14:38:08 +13:00
Bill McCloskey
4fa2c1a788 Bug 1133099 - Add window.navigator.mozE10sEnabled flag (r=jst) 2015-02-17 14:10:45 -08:00
Gijs Kruitbosch
46818f9b33 Bug 1133583 - pass window in EME notifications instead of null subject, r=cpearce 2015-02-16 21:25:11 +00:00
Chris Pearce
4ebd7db9d9 Bug 1111160 - Dispatch observer service notifications when content succeeds or fails to get CDM access. r=bz 2015-02-14 08:52:42 +13:00
Boris Zbarsky
df5e5b1a5d Bug 1157451. Make nsCORSListenerProxy::Init take an enum, not a boolean, to indicate what to do with data: URIs. And make it required, not defaulted to disallowing. r=smaug 2015-04-22 20:30:10 -04:00
Chris Pearce
75e6320785 Bug 1131755 - Make media.eme.enabled pref enable/disable EME rather than hide/expose EME. r=bz 2015-02-12 11:27:25 +13:00
Andrea Marchesini
bec5452722 Bug 1018320 - RequestSync API - patch 5 - mozSetMessageHandlerPromise, r=fabrice 2015-01-13 09:53:22 +00:00
Christoph Kerschbaumer
11a5d113f3 Bug 1116624 - Move CORS into dom/security (r=sicking) 2014-12-30 15:54:59 -08:00
Phil Ringnalda
7b7a96ba69 Backed out 7 changesets (bug 1018320)
Backed out changeset 2ef1c26d77d3 (bug 1018320)
Backed out changeset bce9ed290ddd (bug 1018320)
Backed out changeset 8c01c134e40f (bug 1018320)
Backed out changeset 46353577ef7a (bug 1018320)
Backed out changeset edf5737d6e0e (bug 1018320)
Backed out changeset c6fcdd1c681f (bug 1018320)
Backed out changeset 5e26604cc6e0 (bug 1018320)
2015-01-04 08:40:27 -08:00
Andrea Marchesini
56e83d74a1 Bug 1018320 - RequestSync API - patch 5 - mozSetMessageHandlerPromise, r=fabrice 2015-01-04 10:37:11 +01:00
Christoph Kerschbaumer
53eb534a4a Bug 1080987 - navigator.sendBeacon() needs to sent origin header (r=sicking) 2014-11-19 16:03:39 -08:00
Patrick McManus
ad2b489529 bug 1003450 - [2/3] Group Dependency nodes for HTTP/2 r=hurley 2014-12-06 14:26:50 -05:00
Reuben Morais
be116dfe89 Bug 1098470 - Move manifest.* scope from navigator.getFeature to navigator.hasFeature. r=ehsan 2014-12-03 10:50:46 -08:00
Boris Zbarsky
ffbd31df6a Bug 1087851 part 1. Rename WrapNewBindingObject to GetOrCreateDOMReflector to make it clearer what it does. r=peterv for the idea; patch itself is just search-and-replace 2014-11-26 14:25:20 -05:00
Vladimir Vukicevic
f5426376d4 Bug 1036604 - Add VRDevice interfaces, navigator.getVRDevices call, and Oculus Rift gfxVR; r=bz,jrmuizel 2014-07-09 12:24:49 -07:00
Chris Pearce
8562ed2a55 Bug 1095257 - Implement Navigator.requestMediaKeySystemAccess(). r=edwin r=bz r=peterv 2014-11-18 22:13:02 +13:00
Carsten "Tomcat" Book
6c841ba00c Backed out changeset 7fa6291d952d (bug 1095257) for suspicion of causing jit tests 2014-11-18 13:14:36 +01:00
Chris Pearce
8d8d5e0d65 Bug 1095257 - Implement Navigator.requestMediaKeySystemAccess(). r=edwin r=bz r=peterv 2014-11-18 22:13:02 +13:00
Chris Pearce
52011039a3 Bug 1095257 - backout 54f79521758b due to m3 failures. r=backout r=bz 2014-11-18 19:49:13 +13:00
Chris Pearce
4802c7e785 Bug 1095257 - Implement Navigator.requestMediaKeySystemAccess(). r=edwin r=bz 2014-11-18 17:20:02 +13:00