Commit Graph

3366 Commits

Author SHA1 Message Date
Ben Kelly
2c1712e58b Bug 1333573 P5 Validate that final channel load principal does not change. r=baku 2017-02-07 10:28:39 -05:00
Ben Kelly
8625a63853 Bug 1333573 P4 Set WorkerLoadInfo principal as soon as we get the channel. r=baku 2017-02-07 10:28:39 -05:00
Ben Kelly
aa461bc68f Bug 1333573 P3 Move logic to set principal from channel into WorkerLoadInfo. r=baku 2017-02-07 10:28:39 -05:00
Ben Kelly
99c380fb94 Bug 1333573 P2 Make nested worker pass WorkerLoadInfo to main thread when getting channel. r=baku 2017-02-07 10:28:38 -05:00
Ben Kelly
50e8b39d0c Bug 1333573 P1 Move WorkerPrivate::SetPrincipal() logic into a WorkerLoadInfo method. r=baku 2017-02-07 10:28:38 -05:00
Andrea Marchesini
869af55a16 Bug 1335678 - Revert patch for bug 1302566, r=ehsan 2017-02-06 16:37:15 +01:00
Tom Tung
e185f7bc4c Bug 1220936 - Flush console report to innerWindowID by using nsIDocument and nsILoadGroup. r=bkelly. 2017-02-06 09:19:34 +08:00
Ben Kelly
c07494ba04 Bug 1336529 Handle ServiceWorkerInfo destruction while released KeepAliveToken. r=asuth 2017-02-03 14:36:27 -05:00
Andrea Marchesini
1fd70e0029 Bug 1336020 - transferables should be arrays of objects, r=smaug 2017-02-03 11:00:38 +01:00
Andrea Marchesini
270f257d6b Bug 1336020 - postMessages should have transferable as [] by default, r=smaug 2017-02-03 11:00:37 +01:00
Andrea Marchesini
c58769de70 Bug 1336043 - close() should be in DedicatedWorkerGlobalScope and SharedWorkerGlobalScope only, r=bkelly 2017-02-03 08:35:19 +01:00
Andrea Marchesini
2134b5e0e7 Bug 1336044 - No needs of JSContext in SharedWorker CTOR, r=qdot 2017-02-03 07:46:22 +01:00
Sebastian Hengst
3b7bb25ac6 Backed out changeset bf20544a7385 (bug 1336043) for failing wpt interfaces.worker.html. r=backout 2017-02-02 17:35:46 +01:00
Andrea Marchesini
8aa589ac59 Bug 1336043 - close() should be in DedicatedWorkerGlobalScope and SharedWorkerGlobalScope only, r=bkelly 2017-02-02 16:15:24 +01:00
Boris Zbarsky
6540e985fc Bug 1335368 part 18. Get rid of IsCallerChrome in workers. r=bholley 2017-02-01 15:43:38 -05:00
Boris Zbarsky
1f816c60cf Bug 1335368 part 12. Remove the use of IsCallerChrome in FetchRequest. r=bkelly 2017-02-01 15:43:37 -05:00
Sebastian Hengst
ccd3fc9950 Backed out changeset 99587cc6ef23 (bug 1335536) for failing robocop testFilePicker on Android. r=backout 2017-02-01 19:08:22 +01:00
Andrea Marchesini
3b9eaa7785 Bug 1335536 - File.createFromNsIFile and File.createFromFileName should be async - part 1 - tests, r=smaug 2017-02-01 17:13:08 +01:00
Ben Kelly
4c2a1798cd Bug 1335425 Improve ScriptLoader CacheCreator's ability to handle failures and cancelation. r=baku 2017-02-01 06:48:07 -08:00
Andrea Marchesini
43b97e9ea3 Bug 1288768 - Better error reporting for network errors in workers - WPT, r=bz 2017-01-28 15:40:08 +01:00
Andrea Marchesini
e14c51cdfd Bug 1288768 - Better error reporting for network errors in workers, r=bz 2017-01-28 15:39:24 +01:00
Ben Kelly
e552aee61a Bug 1335414 Make ServiceWorkerManager::CreateNewRegistration() safer. r=asuth 2017-01-31 07:29:34 -08:00
Catalin Badea
3d75f82b5f Bug 1316659 - Use OpenWindowRunnable as an observer when waiting for fennec to start before executing an open window operation. r=bkelly
This patch also changes the order in which pending openWindow operations
are executed.
2017-01-31 14:21:52 +00:00
Florian Quèze
bdc1ffa608 Bug 1334831 - script-generated patch to use .remove() instead of .parentNode.removeChild, r=jaws. 2017-01-30 08:10:22 +01:00
Nicholas Nethercote
fd25b06c81 Bug 1328365 (part 1) - Replace tlsTicker with gSampler. r=mstange.
There is a single GeckoSampler and it is currently only accessed on the main
thread, so it's silly to use TLS for it; a normal global variable is better.

This patch also adds main thread assertions to a number of the profiler_*()
functions. Even though bug 1330184 may get rid of some of them, right now they
are a useful as both a sanity check and documentation.

--HG--
extra : rebase_source : 7613eb3cc8089b31180365f6463c81f4556c7b66
2017-01-25 16:00:47 +11:00
Phil Ringnalda
439b10ced6 Backed out 2 changesets (bug 1288768) for wptlint failure
Backed out changeset 3361d527f683 (bug 1288768)
Backed out changeset d8b8219c20d6 (bug 1288768)
2017-01-28 08:10:26 -08:00
Andrea Marchesini
cab859bea8 Bug 1288768 - Better error reporting for network errors in workers - WPT, r=bz 2017-01-28 15:40:08 +01:00
Andrea Marchesini
bc538fc7e0 Bug 1288768 - Better error reporting for network errors in workers, r=bz 2017-01-28 15:39:24 +01:00
Wes Kocher
18e735dcef Merge m-c to inbound, a=merge
MozReview-Commit-ID: EfMOcZbAiSe
2017-01-27 16:39:29 -08:00
Wes Kocher
ae4121c502 Backed out changeset 15a5f1ecca37 (bug 1216175) for m(oth)/m(c2) failures in test_WorkerDebugger.xul a=backout
MozReview-Commit-ID: LOu50H5NS2L
2017-01-27 13:50:12 -08:00
Ben Kelly
5484668122 Bug 1334480 Don't try to update a nullptr registration. r=asuth 2017-01-27 12:04:24 -08:00
Gijs Kruitbosch
8faf5c08a8 Bug 1333164 - fix invalid references to mochitest stylesheet, r=erahm
MozReview-Commit-ID: 1Xxt72jYdm7

--HG--
extra : rebase_source : 15d854ffd6a142687fe5232149a0e370f1c058c2
2017-01-24 14:24:04 +00:00
Andrea Marchesini
6278ae48c8 Bug 1302566 - Get rid of nsContentUtils::IsInPrivateBrowsing, r=ehsan 2017-01-27 16:53:44 +01:00
Wes Kocher
8fa84ca644 Merge inbound to central, a=merge
MozReview-Commit-ID: BZgxmhS6OtM
2017-01-26 16:19:05 -08:00
Catalin Badea
d766bfbd2b Bug 1333112 - Fix windowClient.Navigate leak. r=bkelly 2017-01-26 21:37:17 +02:00
Olli Pettay
c3fe34260f Bug 1333903 - ErrorEvent, CloseEvent, ProgressEvent and FileList should be exposed in workers, r=baku
--HG--
extra : rebase_source : efcc0f77c1ae9838f1c999ec53a129b6f76c4f01
2017-01-26 18:57:59 +02:00
Ben Kelly
3f5c467b20 Bug 1319278 P5 Removed unused TimerThreadEventTarget. r=baku 2017-01-26 08:01:33 -08:00
Ben Kelly
aec8848418 Bug 1319278 P4 Make ServiceWorkerPrivate use new WorkerControlEventTarget instead of TimeThreadEventTarget. r=baku 2017-01-26 08:01:33 -08:00
Ben Kelly
67f0e950f9 Bug 1319278 P3 Make worker GC use new WorkerControlEventTarget. r=baku 2017-01-26 08:01:33 -08:00
Ben Kelly
e3e5175758 Bug 1319278 P2 Make the WorkerPrivate create a WorkerControlEventTarget. r=baku 2017-01-26 08:01:32 -08:00
Ben Kelly
9dfba8baab Bug 1319278 P1 Add a WorkerControlEventTarget that executes runnables as WorkerControlRunnables. r=baku 2017-01-26 08:01:32 -08:00
Christian Holler
4dc29b3b09 Bug 1332361 - Expose TestingFunctions to content in FUZZING builds. r=jandem.
MozReview-Commit-ID: HA0oodPzAeS

--HG--
extra : rebase_source : 896f4d9465b8bd2a5655dec63165f893b0f0f5df
2017-01-25 13:39:54 +01:00
Kartikaya Gupta
1af1a82edf Bug 1312319 - Add a NS_INLINE_DECL_PURE_VIRTUAL_REFCOUNTING macro and replace existing pure-virtual AddRef/Release declarations. r=froydnj
MozReview-Commit-ID: 5yt3O4Hoois

--HG--
extra : rebase_source : 5dad12cd8400b8a783e8407de874d4b7c75cb645
2017-01-25 14:51:34 -05:00
Florian Quèze
0e0865f4fc Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws. 2017-01-25 07:01:52 +01:00
Nicholas Nethercote
22b6d342d7 Bug 1333296 (part 1) - Rename MOZ_ENABLE_PROFILER_SPS as MOZ_GECKO_PROFILER. r=mstange,glandium.
--HG--
extra : rebase_source : 223f3a17f009645369be503392cc1f0cea7f19a1
2017-01-24 14:15:12 +11:00
Bill McCloskey
cf9eef1ea4 Bug 1331804 - Give runnable names to some generic dispatch sites (r=ehsan)
MozReview-Commit-ID: 83IL5zcor1W
2017-01-24 16:34:37 -08:00
Bill McCloskey
ef3d0f1c2e Bug 1331804 - Add more runnable names (r=ehsan)
MozReview-Commit-ID: 1QBmqfgY6WI
2017-01-24 16:34:37 -08:00
Olli Pettay
8607eb6848 Bug 1216175, ensure GC/CC are run in workers, r=baku
--HG--
extra : rebase_source : 588d593153636951d74b6523459f18aee9c56864
2017-01-27 13:27:42 +02:00
Wes Kocher
f7ccafcb58 Backed out 8 changesets (bug 1331804, bug 1332100) for windows vm debug dt5 failures a=backout
Backed out changeset 8bf7f0e27c6c (bug 1331804)
Backed out changeset 600c0b9026c2 (bug 1331804)
Backed out changeset 3a5b5b9ecace (bug 1331804)
Backed out changeset c76432c9954e (bug 1331804)
Backed out changeset 46a9096745e7 (bug 1332100)
Backed out changeset 8b751230fa23 (bug 1331804)
Backed out changeset 2810212347fd (bug 1331804)
Backed out changeset be72b7763910 (bug 1331804)

MozReview-Commit-ID: Ywdsr4GZ4a
2017-01-24 15:12:21 -08:00
Bill McCloskey
5e4b276c5d Bug 1331804 - Give runnable names to some generic dispatch sites (r=ehsan)
MozReview-Commit-ID: 83IL5zcor1W
2017-01-24 10:04:55 -08:00
Bill McCloskey
80aaeed2fc Bug 1331804 - Add more runnable names (r=ehsan)
MozReview-Commit-ID: 1QBmqfgY6WI
2017-01-24 10:04:55 -08:00
Benjamin Bouvier
2552158d1c Bug 1333368: Pass option to always use wasm baseline compiler to workers; r=luke
MozReview-Commit-ID: LB1D6fuAUza

--HG--
extra : rebase_source : 2cbca48ace4098352badade4b4080a7063a14268
extra : amend_source : 857ce4960630e269e8d8cb2551eb6e47d6a0e150
2017-01-24 11:46:50 +01:00
Ben Kelly
30664f7219 Bug 1331619 Make ServiceWorkerClients check the return value of OpenWindow2(). r=catalinb 2017-01-24 06:10:50 -08:00
Ben Kelly
e5bccaf01d Bug 1315446 Avoid crashing if GetCurrentThreadJSContext() or GetCurrentThreadWorkerGlobal() are called after worker shutdown. r=baku 2017-01-24 06:09:22 -08:00
Ben Kelly
ced2265022 Bug 1333082 Handle nullptr mRegistration in ServiceWorkerUpdateJob::ContinueAfterInstallEvent(). r=asuth 2017-01-23 10:50:22 -08:00
Sebastian Hengst
e3d93fdf34 Backed out changeset 2e942ed64921 (bug 1302566) for mass test failures after asserting isPrivate == mRespectPrivacy at imgLoader.cpp:2072. r=backout on a CLOSED TREE 2017-01-23 13:25:19 +01:00
Andrea Marchesini
27afefa942 Bug 1302566 - Get rid of nsContentUtils::IsInPrivateBrowsing, r=ehsan 2017-01-23 12:36:01 +01:00
Catalin Badea
1609baa123 Bug 1328293 - Show if a service worker is listening for fetch events in about:debugging. r=jdescottes 2017-01-22 09:03:00 +02:00
Phil Ringnalda
2b0e87f459 Backed out 2 changesets (bug 1328293) for eslint failures
CLOSED TREE

Backed out changeset a76a454541fc (bug 1328293)
Backed out changeset 42823a93cd16 (bug 1328293)
2017-01-21 12:19:37 -08:00
Catalin Badea
9eb245ebd5 Bug 1328293 - Show if a service worker is listening for fetch events in about:debugging. r=jdescottes 2017-01-21 21:19:35 +02:00
Nicholas Nethercote
12647a7223 Bug 1332577 (part 7) - Rename mozilla_get_pseudo_stack() as profiler_get_pseudo_stack(). r=mstange.
This makes it consistent with other profiler functions.

--HG--
extra : rebase_source : 1e52acdc448691b8859bb147a0c70b198b432fe2
2017-01-20 15:07:05 +11:00
Lars T Hansen
6d7b1e9cef Bug 1312446 - Enable SharedArrayBuffer and Atomics by default. r=shu
--HG--
extra : rebase_source : 308016a3820017d790d7a77d8fc25e1388f04df4
extra : amend_source : 1fc3635840cd1a1021f6f3f9d6491c381a122dc9
2017-01-19 17:22:47 +01:00
Wes Kocher
336f27142f Merge m-c to autoland, a=merge
MozReview-Commit-ID: 3pEpsd3DljH
2017-01-19 16:47:25 -08:00
Ben Kelly
ace278d884 Bug 1331949 Make service worker and cache diagnostic assert code compile on beta. r=asuth 2017-01-19 08:11:41 -08:00
Mark Banner
16e6d381ac Bug 503613 - Remove old 'tail =' lines from xpcshell.ini files; r=gps
MozReview-Commit-ID: 62Hp5ISxowJ

--HG--
extra : rebase_source : daa8efb3409031fea553f4fd0c9d0746e38dc308
extra : histedit_source : b4c23aacf678ba0d0ac9c09191a7c494ead11a08
2017-01-18 10:30:39 +00:00
Kris Maglione
729b7a2019 Bug 1273251: Part 3 - Allow CallbackObject to contain a null callable. r=peterv
MozReview-Commit-ID: FCXVHouhG3I

--HG--
extra : rebase_source : f3e9325559d40bcb4017ec2505f435275d4fea7f
2016-11-14 21:25:37 -08:00
Ben Kelly
8f32455085 Bug 1331656 Make ServiceWorkerManager handle PBackground init failure. r=baku 2017-01-18 12:18:51 -08:00
Florian Quèze
85611a7b6d Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws.
--HG--
extra : rebase_source : a22344ee1569f58f1f0a01017bfe0d46a6a14602
2017-01-17 11:50:25 +01:00
Ben Kelly
96ddcd4808 Bug 1330984 Handle mProfileDir being cleared in ServiceWorkerRegistrar. r=baku 2017-01-16 14:30:12 -05:00
Stone Shih
4a63ec7173 Bug 1267903 - Part 2: Enable related test cases. r=baku
MozReview-Commit-ID: KXDlkewqs9n

--HG--
extra : rebase_source : 70339d4159a51aba8d3688cb31606f806dd7cae8
extra : histedit_source : 043a5de4d8cd8f0774d2fd4c394fa4e462f7cfab
2016-11-17 19:07:53 +08:00
Ben Kelly
700a14067d Bug 1330693 Try to handle SW job double-completion better. r=ehsan 2017-01-16 09:17:15 -05:00
David Parks
e214363851 Bug 1312788 - Log to browser console and telemetry if the parent content to a ServiceWorker is a file. r=bkelly
Info is useful to sandboxing. Logs when ServiceWorker is registered (i.e. each run), not just when it is installed.

--HG--
extra : rebase_source : e21a521a5015c722cfbf2f5a7a23d5cf39a88a18
2017-01-10 15:17:13 -08:00
Ben Kelly
9cf054007d Bug 1330679 Don't force crash if ServiceWorkerManager tries to init during browser shutdown. r=baku 2017-01-13 07:39:30 -08:00
Ben Kelly
d930800016 Bug 1330673 Gracefully handle ServiceWorkerRegistrar not being active. r=baku 2017-01-13 07:39:28 -08:00
Carsten "Tomcat" Book
d69139ac79 merge mozilla-inbound to mozilla-central a=merge 2017-01-13 10:20:25 +01:00
Ben Kelly
798b98749f Bug 1329989 - Simplify the ServiceWorkerRegistrationWorkerThread runnables. r=baku
MozReview-Commit-ID: MPxbX3vNpT
2017-01-12 16:46:24 -08:00
Ben Kelly
43bcf0875f Bug 1330747 Always nullptr check return value from ServiceWorkerManager::GetInstance(). r=asuth 2017-01-12 14:00:36 -08:00
Andrea Marchesini
359ae91eac Bug 1328653 - Merging all the various *OriginAttributes to just one, r=huseby 2017-01-12 17:38:48 +01:00
Wes Kocher
e7af9d37e0 Merge m-c to autoland, a=merge CLOSED TREE
MozReview-Commit-ID: 1X0vSt6PtFn
2017-01-12 16:20:57 -08:00
Xidorn Quan
a8e64a94e1 Bug 1298756 - Use uint8_t/uint16_t as underlying type for enums from webidl. r=bz
MozReview-Commit-ID: 3uS9s5ZrPFd

--HG--
extra : rebase_source : ff64b4468ee99ba08fd8638298a27711b7fb6393
2017-01-12 12:23:37 +11:00
Ryan VanderMeulen
d62662c8d1 Bug 1244697 - Skip test_WorkerDebuggerGlobalScope.reportError.xul on Linux for intermittent timeouts. 2017-01-10 20:23:23 -05:00
Ryan VanderMeulen
f83442a8e0 Bug 1244409 - Skip test_WorkerDebuggerManager.xul on Linux for intermittent timeouts. 2017-01-10 20:22:27 -05:00
Ben Kelly
b54fac30f3 Bug 1329668 Handle partial initialized when ScriptLoader is canceled. r=baku 2017-01-10 08:20:16 -08:00
Ben Kelly
72c6b83915 Bug 1329716 Try to ensure we don't dispatch a SW event if the registration has been removed. r=asuth 2017-01-09 13:40:46 -08:00
Ben Kelly
5b3f27ba05 Bug 1329759 Gracefully handle a missing active service worker during interception. r=asuth 2017-01-09 13:40:46 -08:00
Catalin Badea
8fdb24116b Bug 1325381 - Fix crash with script constructed ExtendableEvent().waitUntil(). r=bkelly
--HG--
extra : rebase_source : 3f471344266b1cd77fa71bb33aed40adb2b52985
2016-12-22 12:27:00 -05:00
Ho-Pang Hsu
6311ff9492 Bug 1290944 - Part 4.2: Update a related gtest. r=bkelly 2017-01-04 17:09:10 +08:00
Ho-Pang Hsu
e1372ee18c Bug 1290944 - Part 3.3: Propagate load flags to ScriptLoader when loading scripts. r=bkelly
--HG--
extra : rebase_source : 6cb8155fc3bee7ce33dc2c102b1da8c6f78b5d2a
extra : histedit_source : 162fc4393380cb44ec9a8ac4dd2b75847ecc33a4
2017-01-04 17:09:00 +08:00
Ho-Pang Hsu
35faba9cdd Bug 1290944 - Part 3.2: Pass LOAD_BYPASS_CACHE caused by script expiration timer to ServiceWorkerInfo. r=bkelly
--HG--
extra : rebase_source : 1922d7aa09cb63afecbd77d6d0922935cbef1211
extra : histedit_source : 122c0f5a3558fdefa6b9397f4846749817725c63
2017-01-04 17:08:58 +08:00
Ho-Pang Hsu
c97ed915b8 Bug 1290944 - Part 3.1: Propogate load flags to ServiceWorkerInfo. r=bkelly
--HG--
extra : rebase_source : 906461c06b5859e3a799f4d0b419bb33d4e076c6
extra : histedit_source : f2cb7a617d5546f624d58795c6ec7b0cc886888d
2017-01-04 17:08:55 +08:00
Ho-Pang Hsu
011108b52a Bug 1290944 - Part 2.3: Set the load flags when registering a service worker. r=bkelly
--HG--
extra : rebase_source : e9aa5dcd79d696dd097fbe88775ba4a5be74d462
extra : histedit_source : 289384bf6f96ddd998828e1c365b3f7256e4f7f8
2017-01-04 17:08:51 +08:00
Ho-Pang Hsu
7b90ecb108 Bug 1290944 - Part 2.2: Load the main script with the load flags of the ServiceWorkerRegistration. r=bkelly
--HG--
extra : rebase_source : 313acc76937d6fe6905f7392101c55e6dddb1beb
extra : histedit_source : 8e0c5ba6490c7820e1066757594e219ad421981a
2017-01-04 17:08:46 +08:00
Ho-Pang Hsu
823817b955 Bug 1290944 - Part 2.1: Save load flags in ServiceWorkerRegistration. r=bkelly
--HG--
extra : rebase_source : 07b7eedfe4e3ab15b118247252217e19880b7a92
extra : histedit_source : 36d071ba90659d05fd071f8fe90ce5703f095390
2017-01-04 17:08:43 +08:00
Andrea Marchesini
94547f20bb 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
Thomas Nguyen
d1229b6f90 Bug 1304623 - Create a pref to control the default referrer policy - part 1. r=bkelly
MozReview-Commit-ID: 6R7kLB6jvhP
2017-01-05 11:30:07 +08:00
Bill McCloskey
8a53959bbe Bug 1320753 - Make TabGroup event target be a ThrottledEventQueue for timers, workers (r=bkelly)
MozReview-Commit-ID: FCfYz02r8yI
2016-12-23 11:48:13 -08:00
Catalin Badea
50c925905e Bug 1325101 - Update nofetch handler mochitest. r=bkelly 2016-12-21 10:38:00 +08:00
Catalin Badea
f6289b3f5b Bug 1325101 - Don't set fetch handler flag for events other than 'fetch'. r=bkelly 2016-12-21 10:16:00 +08:00
Yoshi Huang
2ceecc22f5 Bug 1324115 - Part 2: replace the callers to use C++ helper. r=smaug 2016-12-21 14:59:21 +08:00
Catalin Badea
48e3f68e98 Bug 1181127 - Update ServiceWorkerRegistrar gTest. r=bkelly 2016-12-19 04:38:53 +02:00
Catalin Badea
6f3c7b97ba Bug 1181127 - Mochitest for nofetch handler optimization. r=bkelly 2016-12-19 04:38:53 +02:00
Catalin Badea
82cfe6ab4d Bug 1181127 - Don't run service workers for fetch events if no fetch handlers were added during script's evaluation. r=bkelly
Display a warning when event listeners are added after the script's evaluation.
2016-12-19 04:38:53 +02:00
Andrea Marchesini
e65baf57a5 Bug 1323172 - Fix some mochitest failures, r=me 2016-12-16 10:23:49 +01:00
Andrea Marchesini
4f830c36c0 Bug 1322292 - Some fixes for the Performance API in workers - part 3 - TimeStampToDOMHighRes() in workerPrivate, r=bz 2016-12-16 09:08:05 +01:00
Andrea Marchesini
64b687fb1c Bug 1322292 - Some fixes for the Performance API in workers - part 2 - Get rid of NowBaseTimeStamp(), r=bz 2016-12-16 09:07:39 +01:00
Andrea Marchesini
d1ffedb88f Bug 1323172 - Expose NetworkInformation interface to workers, r=bkelly 2016-12-16 08:50:23 +01:00
Carsten "Tomcat" Book
8d71717fb4 Backed out changeset b7638db235fd (bug 1323172) for test bustage in dom/workers/test/test_navigator.html on a CLOSED TREE 2016-12-15 17:06:22 +01:00
Andrea Marchesini
130d95f581 Bug 1323172 - Expose NetworkInformation interface to workers, r=bkelly 2016-12-15 14:36:47 +01:00
Carsten "Tomcat" Book
2bad844136 Backed out changeset 8f305096ee45 (bug 1323172) for crashes in /test_tcpsocket_enabled_no_perm.html 2016-12-15 14:21:09 +01:00
Andrea Marchesini
87a09a3bb4 Bug 1323172 - Expose NetworkInformation interface to workers, r=bkelly 2016-12-15 12:46:21 +01:00
Thomas Wisniewski
54ad3187aa Bug 1319744 - Ensure that progress events and corresponding LOADING readystatechanges fire as per spec. r=baku 2016-12-13 15:23:01 -05:00
Tomislav Jurin
348bfffc19 Bug 1296189 - Replace NS_RUNTIMEABORT("some string literal message") with MOZ_CRASH(). r=froydnj 2016-12-02 13:46:53 -08:00
Andrea Marchesini
f22cf0451c Bug 1321530 - FileReader.abort() should not throw, r=smaug 2016-12-02 13:16:59 +00:00
Dylan Roeh
9ff1fe4af5 Bug 1235431 - Implement windowClient.focus() for Fennec. r=catalinb 2016-11-14 17:22:13 -06:00
Andrea Marchesini
0980d4aa73 Bug 1321525 - FileReader.readAs* should throw if called nested, r=smaug 2016-12-01 18:57:36 +01:00
Tom Tung
6199b99617 Bug 1271692 - Do not fail event processing if an exception is thrown in ServiceWorker. r=bkelly 2016-11-10 17:53:24 +08:00
Tooru Fujisawa
515ef9ba45 Bug 1321218 - Remove legacy generator from dom/. r=smaug 2016-12-01 18:11:32 +09:00
Tooru Fujisawa
db7ca4ebd1 Bug 1313490 - Part 3: Remove expression closure from dom/. r=mrbkap 2016-11-26 06:41:43 +09:00
Catalin Badea
e991f36d9f Bug 1319334 - Resolve ready promise *after* updating registration.state properties. r=bkelly 2016-11-22 06:38:00 +08:00
Catalin Badea
3475196327 Bug 1317266 - Transition ServiceWorker instances when the SW changes states instead of just invalidating them. r=bkelly 2016-11-21 02:14:54 +00:00
Catalin Badea
781c81773d Bug 1317266 - Test registration.installing getting collected before all statechange events are dispatched. r=bkelly 2016-11-21 02:14:53 +00:00
Catalin Badea
c50fc1bc10 Bug 1263304 - Add a mochitest for asynchronously calling waitUntil(). r=bkelly 2016-11-21 02:14:53 +00:00
Catalin Badea
c9691a4a70 Bug 1263304 - Allow waitUntil() to be called asynchronously. r=bkelly
The behaviour is changed in two ways:
1. waitUntil() will now wait for each promise separately, even if one of
   them is rejected.
2. Extensions can be added asynchronously as long there is a pending
   waitUntil promise.
2016-11-21 02:14:53 +00:00
Catalin Badea
4d1930cd13 Bug 1263304 - Move Service Worker MessageEvent dispatching code to ServiceWorkerPrivate. r=bkelly
This refactoring makes it easier to modify the behaviour of lifetime
extensions by having a single call path for all extendable events.
2016-11-21 02:14:53 +00:00
Boris Zbarsky
884fc2ea5c Bug 1316616 part 1. Replace some redundant code in GetCurrentThreadWorkerPrivate() with a call to a function that we already have. r=bkelly 2016-11-18 16:13:06 -05:00
Andrea Marchesini
42cdd9436b Bug 1318273 - Improve the use of SpecialPowers.pushPrefEnv() - part 2, r=qdot 2016-11-18 09:33:50 +01:00
Andrea Marchesini
2f974ccbce Bug 1318273 - Improve the use of SpecialPowers.pushPrefEnv() - part 1, r=qdot 2016-11-18 09:33:33 +01:00
Sebastian Hengst
7110a88674 Backed out changeset d43b778d95c6 (bug 1318273) for failing mochitest fetch/test_formdataparsing.html. r=backout on a CLOSED TREE 2016-11-17 20:58:38 +01:00
Sebastian Hengst
fdfd8b91d1 Backed out changeset 2560659cda95 (bug 1318273) 2016-11-17 20:57:59 +01:00
Andrea Marchesini
a895bd31ae Bug 1318273 - Improve the use of SpecialPowers.pushPrefEnv() - part 2, r=qdot 2016-11-17 19:36:21 +01:00
Andrea Marchesini
cf2ad8072f Bug 1318273 - Improve the use of SpecialPowers.pushPrefEnv() - part 1, r=qdot 2016-11-17 19:36:01 +01:00
Stone Shih
1ed10ff082 Bug 1305458 Part1: Rename nsIDOMEventTarget::PreHandleEvent to nsIDOMEventTarget::GetEventTargetParent. r=smaug
MozReview-Commit-ID: FM3vDUyLOCb

--HG--
extra : rebase_source : 5a513af84718a6d591f77437a0704984c8fc2b67
2016-10-21 10:11:07 +08:00
Ehsan Akhgari
1488007b30 Bug 1318206 - Remove some unused code for clearing app data; r=baku,mcmanus 2016-11-17 08:30:21 -05:00
Ehsan Akhgari
dc33b55d94 Bug 1312101 - Part 2: Remove AppProcessChecker and code that depends on it; r=baku 2016-11-16 14:51:08 -05:00
Boris Zbarsky
be79f7def4 Bug 1317990. Remove Event::IsChrome in favor of passing CallerType arguments. r=smaug,bkelly 2016-11-16 14:10:22 -05:00
Andrea Marchesini
24085dac28 Bug 1317725 -Correct creation of Sliced Remote Blob actorss when used in FormData in workers, r=smaug
--HG--
rename : dom/workers/test/script_bug1301094.js => dom/workers/test/script_createFile.js
2016-11-16 15:04:23 +01:00
Carsten "Tomcat" Book
e7ca75286b Merge mozilla-central to inbound 2016-11-16 14:53:15 +01:00
Kan-Ru Chen
f8100451db Bug 1314254 - Add mozilla::ipc::IPCResult type and convert IPDL handlers to use new return type. r=billm
We will use the new type for the generated IPDL message handler
prototype to make sure correct error handling method is called.

MozReview-Commit-ID: AzVbApxFGZ0
2016-11-15 04:26:00 +01:00
Thomas Nguyen
b169621e2e Bug 1264792 - Update request'referrer policy when redirect.r=bkelly,dragana.
MozReview-Commit-ID: 3V6W0fuRomZ

--HG--
extra : rebase_source : 4b708f9646ea42ef40c60ba0b7a86e14edf621e3
2016-11-14 15:15:32 +08:00
Boris Zbarsky
9fa05c9f15 Bug 1317591. Get rid of IsCallerChrome usage in Navigator. r=bkelly
This restores the throwing behavior for .userAgent/appVersion/platform that was
incorrectly removed in bug 925847.
2016-11-15 17:44:43 -05:00
Andrea Marchesini
2aba798852 Bug 1303518 - Remove the chrome only constructor for File, r=qdot 2016-11-11 18:56:44 +01:00
Andrea Marchesini
957bc33d4a Bug 1313762 - SharedWorker::PreHandleEvent must be able to deal with widget events, r=smaug 2016-11-11 16:23:32 +01:00
Carsten "Tomcat" Book
dc9b560f7d Backed out changeset f03cd54afbc1 (bug 1263304) for causing frequent timeouts in test_has_permissions.html 2016-11-11 10:48:20 +01:00
Carsten "Tomcat" Book
e84cb96866 Backed out changeset b2d3c6629a37 (bug 1263304) 2016-11-11 10:47:43 +01:00
Carsten "Tomcat" Book
933a225285 Backed out changeset 2c423ac723b6 (bug 1263304) 2016-11-11 10:47:42 +01:00
Catalin Badea
9abfeeb183 Bug 1263304 - Add a mochitest for asynchronously calling waitUntil(). r=bkelly 2016-11-11 00:07:15 +02:00
Catalin Badea
41a29766a9 Bug 1263304 - Allow waitUntil() to be called asynchronously. r=bkelly
The behaviour is changed in two ways:
1. waitUntil() will now wait for each promise separately, even if one of
   them is rejected.
2. Extensions can be added asynchronously as long there is a pending
   waitUntil promise.
2016-11-11 00:07:15 +02:00
Catalin Badea
18617f0ce0 Bug 1263304 - Move Service Worker MessageEvent dispatching code to ServiceWorkerPrivate. r=bkelly
This refactoring makes it easier to modify the behaviour of lifetime
extensions by having a single call path for all extendable events.
2016-11-11 00:07:15 +02:00
Tom Tung
8b030a7e26 Bug 1264178 - Part 2: Change URL's getter function from PassByReference to ReturnByReference. r=bkelly
--HG--
extra : rebase_source : d38a18c5856943b125d4a999091e4532a56934e2
2016-11-07 14:59:00 +08:00
Tom Tung
a63de77d6a Bug 1264178 - Part 1: Expose URL fragment to request but not response. r=bkelly
--HG--
extra : rebase_source : ee0cac184ac64b1fa9185f912753f10b61a55383
2016-11-07 10:16:34 +08:00