Commit Graph
65 Commits
Author SHA1 Message Date
Ben Kelly bc8430a393 Bug 1266747 P3 Sort output of Clients.matchAll(). r=smaug 2017-02-28 22:12:27 -05:00
Ben Kelly a6bc476ccc Bug 1266747 P2 Track last focus time on ServiceWorkerClient. r=smaug 2017-02-28 22:12:27 -05:00
Sebastian Hengst bb1d0a884f Backed out changeset e54c8d21e4c1 (bug 1266747) 2017-02-28 18:54:24 +01:00
Sebastian Hengst 6742a18dac Backed out changeset 274999e28c07 (bug 1266747) 2017-02-28 18:54:20 +01:00
Ben Kelly b0c03e2291 Bug 1266747 P3 Sort output of Clients.matchAll(). r=smaug 2017-02-28 10:48:51 -05:00
Ben Kelly 1608316343 Bug 1266747 P2 Track last focus time on ServiceWorkerClient. r=smaug 2017-02-28 10:48:51 -05:00
Ben Kelly b919c4b61d Bug 1339844 P1 Implement the Client.type attribute. r=asuth 2017-02-15 15:12:37 -05:00
Andrea Marchesini f0aa583269 Bug 1336020 - transferables should be arrays of objects, r=smaug 2017-02-03 11:00:38 +01:00
Andrea Marchesini 21b2cb9c61 Bug 1336020 - postMessages should have transferable as [] by default, r=smaug 2017-02-03 11:00:37 +01:00
Andrea Marchesini 1f0f0c675e Bug 1313004 - ServiceWorkerMessageEvent can be generated code, r=qdot 2016-10-26 22:00:17 +02:00
Andrea Marchesini ee7e3a1b38 Bug 1312705 - Update ServiceWorkerMessageEvent to the latest version of the spec, r=smaug 2016-10-25 18:22:46 +02:00
Lars T Hansen 30645f2bc5 Bug 1302036 - DOM changes to conform to new JS engine API for cloning. r=baku 2016-10-24 15:14:45 +02:00
Andrea Marchesini ae47ca23c2 Bug 1308956 - Get rid of MessagePortList - part 1 - MessagePortList removed from events, r=smaug 2016-10-13 15:19:24 +02:00
Ben Kelly 1d07830caa Bug 1300658 P5 Make service worker APIs use the MainThreadTaskQueue. r=baku 2016-09-13 20:14:02 -07:00
Wes Kocher e70a727506 Backed out 6 changesets (bug 1300658) for frequent Windows VM Xpcshell failures a=backout
Backed out changeset 6cf3a60640cf (bug 1300658)
Backed out changeset c74062a27462 (bug 1300658)
Backed out changeset 39fbc61739ef (bug 1300658)
Backed out changeset 0b9d70b040a2 (bug 1300658)
Backed out changeset 4e921d61f036 (bug 1300658)
Backed out changeset 56496fad6494 (bug 1300658)
2016-09-12 16:34:08 -07:00
Ben Kelly c55871977b Bug 1300658 P5 Make service worker APIs use the MainThreadTaskQueue. r=baku 2016-09-12 12:32:21 -07:00
Ben Kelly 449d185850 Backout rev 5c7368370ff9 to 980659720b86 (bug 1300118 and bug 1300658) for incorrect bug number in commit message. r=me 2016-09-12 12:29:17 -07:00
Ben Kelly 07e44cb284 Bug 1300658 P5 Make service worker APIs use the MainThreadTaskQueue. r=baku 2016-09-12 11:21:02 -07:00
Nicholas Nethercote 887efe04d5 Bug 1299727 - Rename NS_WARN_IF_FALSE as NS_WARNING_ASSERTION. r=erahm.
The new name makes the sense of the condition much clearer. E.g. compare:

  NS_WARN_IF_FALSE(!rv.Failed());

with:

  NS_WARNING_ASSERTION(!rv.Failed());

The new name also makes it clearer that it only has effect in debug builds,
because that's standard for assertions.
2016-09-01 15:01:16 +10:00
Andrea Marchesini c8a40161f0 Bug 1264053 - MessagePort should support transferable objects in multi-e10s, r=sfink, r=smaug, r=jorendorff, r=janv 2016-07-21 15:29:42 +02:00
Nicholas Nethercote 1cef4f427a Bug 1294620 - Use infallible XPIDL attribute getters more. r=erahm.
This makes a lot of code more compact, and also avoids some redundant nsresult
checks.

The patch also removes a handful of redundant checks on infallible setters.
2016-08-12 15:19:29 +10:00
Nicholas Nethercote 1f65390cc9 Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.

As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.
2016-08-08 12:18:10 +10:00
Kyle Huey a9cf047227 Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Ben Kelly 8ca71e437f Bug 1266178 Make ServiceWorkerClient not assert if the document doesn't have an outer window. r=ehsan 2016-04-21 14:14:45 -07:00
Ehsan Akhgari 50368dc73a Bug 1259164 - Set ServiceWorkerMessageEvent.origin correctly when calling ServiceWorkerClient.postMessage(); r=bkelly 2016-03-28 15:14:40 -04:00
Kyle Huey 56bfa0ab15 Bug 1257032: Make files in dom/workers actually build without unification. r=baku 2016-03-16 11:51:11 -07:00
Kyle Huey e95edb30a9 Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Ehsan Akhgari 50246c3862 Bug 1142768 - Return the original document URI from ServiceWorkerClient.url; r=bkelly 2016-01-08 14:16:47 -05:00
Ehsan Akhgari f08794455e Bug 1222464 - Part 1: Save a client ID for top-level navigations on the docshell and assign it as the document ID when we start loading the document; r=jdm
For top-level navigations, we need to compute the client ID when we decide to
intercept the document load, and we need to make sure the document that will
be created later will end up using that same ID.
2015-12-02 20:36:56 -05: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
Andrea Marchesini d3afd48953 Bug 1209919 - Improving naming and comments in StructuredCloneHelper, r=smaug 2015-09-30 13:22:08 +01:00
dimi 1b1df46d2d Bug 1143717 - Implement the ServiceWorkerMessageEvent interface. r=baku 2015-09-22 16:56:48 +08:00
Andrea Marchesini 8ffb255cfa Bug 1204775 - SharedWorker.port should be a 'real' MessagePort, r=khuey 2015-09-16 11:27:56 +08:00
Wes Kocher b5d1789b6c Backed out changeset ccfddcbccdac (bug 1204775) for sharedworker bustage 2015-09-15 11:08:09 -07:00
Andrea Marchesini 6fc6f7c041 Bug 1204775 - SharedWorker.port should be a 'real' MessagePort, r=khuey 2015-09-16 00:47:19 +08:00
Andrea Marchesini a2c814e845 Bug 1198795 - ipc/StructuredCloneUtils should be merged with StructuredCloneHelper, r=smaug 2015-09-02 17:20:30 +01:00
Andrea Marchesini ca8beb8e59 Bug 1186307 - StructuredCloneHelper in workers.postMessage(), r=smaug 2015-08-27 17:19:13 +01:00
Nigel Babu ad0137c71f Backed out a19daae11647 (Bug 1186307) for W8 and W4 bustage on CLOSED TREE 2015-08-27 15:04:25 +05:30
Andrea Marchesini 29e5030756 Bug 1186307 - StructuredCloneHelper in workers.postMessage(), r=smaug 2015-08-27 09:06:09 +01:00
Catalin Badea d3e17c25fb Bug 1193133 - Drop the document and window references from ServiceWorker. r=bkelly 2015-08-17 10:38:34 -07:00
Ryan VanderMeulen 40078e5972 Backed out changesets 2381f29f63c2 and 9f2469ea7f01 (bug 1193133) for frequent w-p-t crashes/asserts. a=me 2015-08-14 09:00:59 -04:00
Catalin Badea 7786469599 Bug 1193133 - Drop the document and window references from ServiceWorker. r=bkelly 2015-08-13 13:35:10 -07:00
Andrea Marchesini a553c2153c Bug 1186307 - part 1 - Unify the StructuredCloneCallbacks in WorkerPrivate.cpp, r=smaug 2015-08-10 16:33:23 +01:00
Kaku Kuo b05b1cd04b Bug 1044102 - Part 3 - Support StructuredClone. r=baku 2015-07-30 20:50:00 +02:00
Catalin Badea 429477ee08 Bug 1179685 - Fix messageport assert in wpt service worker test. r=baku 2015-07-14 17:41:13 -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
Hiroyuki Ikezoe b61dee95d7 Bug 1179982 - Fix all compile errors in dom/workers on non-unified build. r=mrbkap 2015-07-02 14:54:00 +02:00
Ehsan Akhgari 689fe1ac1b Bug 1179567 - Make ServiceWorker keep its document and window alive; r=baku
Without this, ServiceWorker::PostMessage won't work when the window has
been cleaned up, since at that time the event targets are disconnected
from their owners and GetParentObject() will return null.
2015-07-02 09:48:27 -04:00
Ehsan Akhgari 1cf3e9d3cb Bug 1163410 - Ensure that JSAPI is properly initialized before calling ServiceWorkerClientPostMessageRunnable::DispatchDOMEvent; r=nsm 2015-07-01 20:45:13 -04:00
Wes Kocher c57da41a24 Backed out changeset c3d3ec68482b (bug 1163410) 2015-07-01 17:18:00 -07:00