Commit Graph
29 Commits
Author SHA1 Message Date
Michael Layzell ebf1597966 Bug 1336510 - Part 2: Fix lambda captures of this in PresentationConnection, r=smaug
MozReview-Commit-ID: 2fuMHyspjhs
2017-02-24 14:34:20 -05:00
Wes Kocher 4f2e3a1877 Backed out 8 changesets (bug 1336510) for windows debug mn-e10s failures a=backout
Backed out changeset 419ada2f9e81 (bug 1336510)
Backed out changeset 19239f566a93 (bug 1336510)
Backed out changeset c8aeead6fe83 (bug 1336510)
Backed out changeset 422e63b872b5 (bug 1336510)
Backed out changeset 21869174dfd3 (bug 1336510)
Backed out changeset 57476b9f342d (bug 1336510)
Backed out changeset e842cdaaa7e5 (bug 1336510)
Backed out changeset bd943b368ff7 (bug 1336510)

MozReview-Commit-ID: 2z3Wa9QFkX4
2017-02-23 16:07:41 -08:00
Michael Layzell 3ca41325bb Bug 1336510 - Part 2: Fix lambda captures of this in PresentationConnection, r=smaug
MozReview-Commit-ID: 2fuMHyspjhs
2017-02-23 12:24:12 -05:00
Tom Tromey a4b717ab39 Bug 1060419 - make log_print use Printf.h, r=froydnj
MozReview-Commit-ID: BIZ1GQEZ1vs
2016-12-15 20:16:31 -07:00
Shih-Chiang Chien 43a18962a6 Bug 1291971 - Part 1, enable controller idlharness test. r=smaug.
MozReview-Commit-ID: bDuOdLpPDh
2016-10-04 00:22:34 +02:00
Andrea Marchesini 0ff867be40 Bug 1312412 - Introducing BlobImplString, r=smaug 2016-10-25 07:53:54 +02:00
Andrea Marchesini 5816360242 Bug 1310967 - Update MessageEvent to the latest spec, r=smaug 2016-10-25 07:48:05 +02:00
Sebastian Hengst 6f01376048 Backed out changeset 1fc115bbc7be (bug 1310967) for failing test_messageEvent_init.html. r=backout 2016-10-24 19:14:38 +02:00
Andrea Marchesini 4e495f34fc Bug 1310967 - Update MessageEvent to the latest spec, r=smaug 2016-10-24 17:10:46 +02:00
Andrea Marchesini d833048596 Bug 1309139 - Get rid of NS_NewDOMMessageEvent, r=smaug 2016-10-12 15:17:10 +02:00
Kershaw Chang fedb43540b Bug 1301259 - Part2: Close the connected/connecting connection before starting reconnecting, r=smaug 2016-09-28 23:35:00 +02:00
Kershaw Chang 85815f337e Bug 1228474 - Support sending blob/arraybuffer for data channel. r=smaug 2016-09-17 19:42:00 -04:00
Nicholas Nethercote b5810a1eb4 Bug 1299384 - Use MOZ_MUST_USE with NS_warn_if_impl(). r=erahm.
This change avoids lots of false positives for Coverity's CHECKED_RETURN
warning, caused by NS_WARN_IF's current use in both statement-style and
expression-style.

In the case where the code within the NS_WARN_IF has side-effects, I made the
following change.

> NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));
> -->
> Unused << NS_WARN_IF(NS_FAILED(FunctionWithSideEffects()));

In the case where the code within the NS_WARN_IF lacks side-effects, I made the
following change.

> NS_WARN_IF(!condWithoutSideEffects);
> -->
> NS_WARNING_ASSERTION(condWithoutSideEffects, "msg");

This has two improvements.
- The condition is not evaluated in non-debug builds.
- The sense of the condition is inverted to the familiar "this condition should
  be true" sense used in assertions.

A common variation on the side-effect-free case is the following.

> nsresult rv = Fn();
> NS_WARN_IF_(NS_FAILED(rv));
> -->
> DebugOnly<nsresult rv> = Fn();
> NS_WARNING_ASSERTION(NS_SUCCEEDED(rv), "Fn failed");
2016-09-02 17:12:24 +10:00
Shih-Chiang Chien 1822d8c190 Bug 1292057 - add NSPR log for Presentation API. r=kershaw
MozReview-Commit-ID: Ko1BrG99Uqj
2016-08-15 18:26:13 +08:00
Kershaw Chang 4f6cef49d3 Bug 1197690 - Part2: Implement reconnect, r=smaug 2016-08-02 19:11:00 +02:00
Shih-Chiang Chien d1736335bc Bug 1276378 - Part 2: Implement PresentationConnection.terminate(). r=smaug
MozReview-Commit-ID: 7GqgIdsuM3f
2016-06-14 08:15:07 +01:00
Kershaw Chang 60a9ceb64c Bug 1210340 - Implement PresentationConnection.close(), r=smaug 2016-07-13 00:18:00 +02:00
Kershaw Chang 817ba01559 Bug 1258600 - Part2: Implement onconnect, onclose and onterminate event handlers, r=smaug 2016-05-30 08:48:00 +02:00
Kershaw Chang 2cc8871570 Bug 1258602 - Part1: Add PresentationConnectionList, r=smaug 2016-05-29 19:59:00 +02:00
KuoE0 8434496296 Bug 1234492 - Part 1 - Add direction in PresentationService, r=smaug
Conflicts:
	dom/presentation/PresentationConnection.cpp
	dom/presentation/PresentationService.cpp
	dom/presentation/interfaces/nsIPresentationService.idl
	dom/presentation/ipc/PPresentation.ipdl
	dom/presentation/ipc/PresentationIPCService.cpp
	dom/presentation/ipc/PresentationParent.cpp
2016-04-18 02:19:00 +02:00
Ryan VanderMeulen e6e0857e41 Backed out 3 changesets (bug 1234492) for frequent OSX test_presentation_dc_receiver.html failures.
Backed out changeset 94ec70bf8c22 (bug 1234492)
Backed out changeset ac0e65743b5d (bug 1234492)
Backed out changeset 801cac365dd9 (bug 1234492)
2016-04-24 18:50:55 -04:00
KuoE0 6a84e01e73 Bug 1234492 - Part 1: Add direction in PresentationService. r=smaug 2015-11-27 16:06:32 +08:00
Junior Hsu 168111d292 Bug 1148307 - Part 2, let session transport send DOM string. r=smaug 2016-04-11 11:20:55 +08:00
Sebastian Hengst cd7dbf8185 Backed out changeset dfe4cc7062d1 (bug 1148307) 2016-04-11 13:12:26 +02:00
Junior Hsu 62649df93f Bug 1148307 - Part 2 - let session transport send DOM string. r=smaug 2016-04-11 11:20:55 +08:00
Kyle Huey e95edb30a9 Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Nathan Froyd 54dfa729a9 Bug 1218454 - part 2 - don't #include nsContentUtils.h from CallbackObject.h; r=bz
We used to need nsContentUtils.h here for nsCxPusher, but since that got
moved to ScriptSettings.h, we no longer need nsContentUtils.h for
anything.
2015-10-26 12:14:47 -04: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
Sean Lin 590d0288b1 Bug 1212702 - [Presentation WebAPI] Rename to PresentationConnection. Part 1 - WebIDL bindings. r=smaug 2015-10-12 10:36:31 +08:00