Commit Graph
144 Commits
Author SHA1 Message Date
Ben Kelly 4103eeec71 Bug 1334165 Don't allow event dispatch after WebSocket allows worker thread to exit cleanly. r=baku 2017-01-27 06:06:33 -08:00
Boris Zbarsky d0200ecadf Bug 1333540. Common up the skippability implementations that are basically copy/pastes of the DOMEventTargetHelper one. r=smaug 2017-01-24 20:40:11 -05:00
Boris Zbarsky 33b60b6ff4 Bug 1332322 part 2. Rename nsWrapperCache::IsBlack to nsWrapperCache::HasKnownLiveWrapper. r=mccr8 2017-01-24 20:38:58 -05:00
Boris Zbarsky 56245bfc2c Bug 1332322 part 1. Add an nsWrapperCache function to mark the wrapper as 'live' for GC purposes. r=mccr8 2017-01-24 20:33:54 -05:00
Wei-Cheng Pan 2af5e12dfa Bug 1323949 - Use MOZ_MUST_USE in netwerk/protocol/websocket r=valentin
MozReview-Commit-ID: 6lNrHbDIUez
2016-11-23 18:00:42 +08:00
Stone Shih 60ae1f5fde Bug 1267903 - Part 1: Implement EventSource for Worker. r=baku 2016-10-24 10:11:04 +08:00
Andrea Marchesini 923becca2e Bug 1323425 - WebSocket::CreateAndDispatchCloseEvent must check if mImpl has been nullified, r=smaug 2017-01-05 16:16:30 +01:00
Andrea Marchesini 28f084ecf0 Bug 604026 - Sync event loops in workers should be created only if compatible with the worker shutdown status, r=bkelly 2017-01-05 10:05:32 +01:00
Tomislav Jurin 9ff3007b90 Bug 1296189 - Replace NS_RUNTIMEABORT("some string literal message") with MOZ_CRASH(). r=froydnj 2016-12-02 13:46:53 -08:00
Andrea Marchesini ee8c17508b Bug 1320297 - Thread-safe use of ErrorResult in WebSocket, r=qdot 2016-11-28 19:12:57 +01:00
Andrea Marchesini d315c76a50 Bug 1313385 - WebSocketImpl::mSecure should be initialized in the CTOR, r=qdot 2016-10-27 20:16:15 +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
Christoph Kerschbaumer 20276535fd Bug 1299766 - Bring back contentpolicy check for websockets in child to avoid missing context for addon implemented content policies within parent. r=jduell 2016-09-05 13:54:41 +02:00
Michael Layzell f2f13378b5 Bug 1018486 - Part 1: Changes in dom/, r=baku
MozReview-Commit-ID: 4tCUM4KRe81
2016-09-07 10:50:35 -04:00
Ben Kelly bee31710b3 Bug 1293690 P2 Set explicit status levels to fail at when calling WorkerHolder::HoldWorker. r=baku 2016-08-18 07:11:04 -07:00
Phil Ringnalda 6ef267a68f Backed out 10 changesets (bug 1290116, bug 1293690) for build bustage
CLOSED TREE

Backed out changeset bbc14d107fca (bug 1290116)
Backed out changeset a81b6ce5c25f (bug 1290116)
Backed out changeset e0b9c25b6125 (bug 1290116)
Backed out changeset 8e9a9ba04ce5 (bug 1290116)
Backed out changeset 2d5ad5e9ed20 (bug 1290116)
Backed out changeset eb7da0dbfc72 (bug 1290116)
Backed out changeset 6a4e8c92faae (bug 1290116)
Backed out changeset 0342d98afa10 (bug 1293690)
Backed out changeset d84b0768f0ce (bug 1293690)
Backed out changeset f9f62ade9508 (bug 1293690)
2016-08-17 21:16:43 -07:00
Ben Kelly 72fb8c6934 Bug 1293690 P2 Set explicit status levels to fail at when calling WorkerHolder::HoldWorker. r=baku 2016-08-17 20:01:35 -07: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
Jarda Snajdr 88dd7086f2 Bug 1286281 - Part 2: Add static chrome-only method to create server-side WebSocket to WebIDL r=baku
MozReview-Commit-ID: CNEkI9UP2mw
2016-07-29 07:01:00 -07:00
Andrea Marchesini 1588269bb3 Bug 1280167 - "WebSocket WorkerRunnableDispatcher uses ModifyBusyCountFromWorker wrongly" [r=khuey] 2016-07-21 00:42:00 +08:00
Iris Hsiao 51bd22990e Backed out changeset 79b1ba1f1f4b (bug 1280167) 2016-07-21 17:45:05 +08:00
Andrea Marchesini f6d9e5c341 Bug 1280167 - WebSocket WorkerRunnableDispatcher uses ModifyBusyCountFromWorker wrongly, r=khuey 2016-07-21 10:15:24 +02:00
Chris Peterson 6c0f810682 Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo 2016-07-20 22:03:25 -07:00
Christoph Kerschbaumer fb2355c1a2 Bug 1119989 - Assert that mPrincipal and doc's Principal are same origin in WebSocket.cpp. r=tanvi 2016-06-21 13:31:56 +02:00
Andrea Marchesini 796bda032a Bug 1269154 - Get rid of WorkerFeature: WorkerHolder, r=khuey 2016-06-23 10:53:14 +02:00
Carsten "Tomcat" Book ef49710e52 Backed out changeset 1c5d78c7ba43 (bug 1269154) for bustage on a CLOSED TREE 2016-06-23 10:13:54 +02:00
Andrea Marchesini 274f4e927f Bug 1269154 - Get rid of WorkerFeature: WorkerHolder, r=khuey 2016-06-22 17:24:35 +02:00
Christoph Kerschbaumer 4dd7563d92 Bug 1271198 - Convert Websockets to use AsyncOpen2(). r=jduell 2016-05-17 12:04:11 +02:00
Jonathan Watt 9c5b8de022 Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky 2016-06-07 21:10:18 +01:00
Andrea Marchesini 4fd580b703 Bug 1277226 - Implement MainThreadWorkerRunnable, r=sicking 2016-06-08 07:12:05 +02:00
Jonas Sicking a6a228b2c1 Bug 1272100: Websocket changes in preparation of FlyWeb landing. Make websocket code support acting as the server side of a websocket connection. r=michal 2016-06-01 02:35:33 -07:00
Xidorn Quan 4843f879c0 Bug 1276549 - Remove rvalue reference mark for already_AddRefed params of nsIEventTarget::Dispatch and related methods. r=froydnj
MozReview-Commit-ID: J5RAfGW3X7T
2016-06-01 10:04:54 +10:00
Sebastian Hengst 8bc16a6aea Backed out changeset 2292661153e3 (bug 1271198) for web-platform failures. r=backout on a CLOSED TREE 2016-05-19 17:06:04 +02:00
Christoph Kerschbaumer 1545ce5c04 Bug 1271198 - Convert Websockets to use AsyncOpen2() (r=jduell) 2016-05-19 15:42:01 +02:00
Sebastian Hengst 7e88cd47a7 Backed out changeset 854a8df494d3 (bug 1271198) for many assertions at nsHttpChannel.cpp:5204. r=backout on a CLOSED TREE 2016-05-19 14:23:51 +02:00
Christoph Kerschbaumer dcac96fb7a Bug 1271198 - Convert Websockets to use AsyncOpen2() (r=jduell) 2016-05-19 11:54:02 +02:00
Kyle Huey fd4a780de1 Bug 1269056: Part 1 - Implement a rough PostDelayedTask equivalent on nsThread. r=froydnj 2016-05-12 15:15:43 -07:00
Andrea Marchesini fddf33c51f Bug 1267904 - Add telemetry for WorkerMainThreadRunnable, r=khuey 2016-05-03 09:09:47 +02: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
Boris Zbarsky 4699524211 Bug 1265072 part 4. Get rid of uses of GetDocumentFromScriptContext in WebSocket code. r=smaug 2016-04-20 18:04:36 -04:00
Nathan Froyd eaa8e05f0f Bug 1265056 - don't needlessly construct nsAutoCString temporaries in dom/; r=baku 2016-04-15 19:46:45 -04:00
Kyle Huey 1f6993705a Bug 1263311: Part 3 - s/nsCancelableRunnable/CancelableRunnable/g. r=froydnj 2016-04-11 11:40:06 -07:00
Wes Kocher dd9b334d33 Backed out 3 changesets (bug 1263311) for Windows build failures in ServiceWorkerPrivate.cpp CLOSED TREE
Backed out changeset 0434a548e1fe (bug 1263311)
Backed out changeset 60b1be29446c (bug 1263311)
Backed out changeset 18132498bc40 (bug 1263311)

MozReview-Commit-ID: LPEa05QobdQ
2016-04-11 12:50:56 -07:00
Kyle Huey 7a575c886c Bug 1263311: Part 3 - s/nsCancelableRunnable/CancelableRunnable/g. r=froydnj 2016-04-11 11:40:06 -07:00
Andrea Marchesini 6d2ba6f687 Bug 712329 - WebSocket should not complain in the console when the document is navigated away, r=smaug 2016-03-29 18:57:36 +01:00