Граф коммитов

3487 Коммитов

Автор SHA1 Сообщение Дата
Shawn Huang 9c76c33226 Bug 1268804 Part 4: Add isSecureContext pref in test_interfaces for StorageManager, r=bz 2017-03-07 16:28:56 +08:00
Shawn Huang 9bcc4a5ca9 Bug 1343463 - Move indexeddb service worker test to serviceworkers folder, r=baku
--HG--
rename : dom/indexedDB/test/service_worker.js => dom/workers/test/serviceworkers/service_worker.js
rename : dom/indexedDB/test/service_worker_client.html => dom/workers/test/serviceworkers/service_worker_client.html
rename : dom/indexedDB/test/test_serviceworker.html => dom/workers/test/serviceworkers/test_serviceworker.html
2017-03-07 13:40:37 +08:00
Wei-Cheng Pan 510ba75c20 Bug 1310127 - Part 17: Use MOZ_MUST_USE in netwerk/protocol/http r=smaug
MozReview-Commit-ID: 5gvVZtsa3yS

--HG--
extra : rebase_source : 5e1ab2fc06ae58f18abb8909ac93f9512abbe220
2016-12-20 11:49:32 +08:00
Ben Kelly 50f268f7ad Bug 1343308 P1 Make Clients.matchAll() only return Clients controlled by the current service worker. r=baku 2017-03-01 13:08:54 -05:00
Ho-Pang Hsu e4dd777d56 Bug 1175163 - Part 1: Migrate claim_fetch_worker to wpt. r=bkelly 2017-03-01 11:30:15 +08:00
Andrea Marchesini 9d68a92efe Bug 1298823 - Make Request constructor throw less often, r=qdot 2017-03-01 11:44:38 +01:00
Joel Maher f297f17181 Bug 1339232 - annotate more dom/* moz.build files with BUG_COMPONENT. r=overholt
MozReview-Commit-ID: 2HbPxGkrVfv
2017-03-01 08:20:25 -05:00
Ben Kelly d03573312b Bug 1266747 P3 Sort output of Clients.matchAll(). r=smaug 2017-02-28 22:12:27 -05:00
Ben Kelly 68348a54d1 Bug 1266747 P2 Track last focus time on ServiceWorkerClient. r=smaug 2017-02-28 22:12:27 -05:00
Sebastian Hengst 4a1eb5e2a6 Backed out changeset e54c8d21e4c1 (bug 1266747) 2017-02-28 18:54:24 +01:00
Sebastian Hengst 78abfe9e2f Backed out changeset 274999e28c07 (bug 1266747) 2017-02-28 18:54:20 +01:00
Ben Kelly b019e8eace Bug 1266747 P3 Sort output of Clients.matchAll(). r=smaug 2017-02-28 10:48:51 -05:00
Ben Kelly 21c36b41bf Bug 1266747 P2 Track last focus time on ServiceWorkerClient. r=smaug 2017-02-28 10:48:51 -05:00
Jan Varga e161ee742d Bug 1311057 - Part 1: Remove support for packaged apps from asmjscache; r=luke 2017-03-06 18:38:40 +01:00
Carsten "Tomcat" Book e5ba19f18b Backed out changeset 271dd75925bd (bug 1343463) for causing test failures in test_navigator_secureContext.html
--HG--
rename : dom/workers/test/service_worker.js => dom/indexedDB/test/service_worker.js
rename : dom/workers/test/service_worker_client.html => dom/indexedDB/test/service_worker_client.html
rename : dom/workers/test/test_serviceworker.html => dom/indexedDB/test/test_serviceworker.html
2017-03-06 13:57:47 +01:00
Shawn Huang 4f875a9b13 Bug 1343463 - Move indexeddb service worker test to workers folder, r=baku
--HG--
rename : dom/indexedDB/test/service_worker.js => dom/workers/test/service_worker.js
rename : dom/indexedDB/test/service_worker_client.html => dom/workers/test/service_worker_client.html
rename : dom/indexedDB/test/test_serviceworker.html => dom/workers/test/test_serviceworker.html
2017-03-06 16:24:33 +08:00
Masatoshi Kimura 7be7b11a1c Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher
This patch is generated by the following sed script:
find . ! -wholename '*/.hg*' -type f \( -iname '*.html' -o -iname '*.xhtml' -o -iname '*.xul' -o -iname '*.js' \) -exec sed -i -e 's/\(\(text\|application\)\/javascript\);version=1.[0-9]/\1/g' {} \;

MozReview-Commit-ID: AzhtdwJwVNg

--HG--
extra : rebase_source : e8f90249454c0779d926f87777f457352961748d
2017-02-23 06:10:07 +09:00
Luke Wagner 4c0bba7f15 Bug 1342060 - Followup to 391047948db4 to fix Android tests (r=jorendorff)
MozReview-Commit-ID: HDD8v9tIEe7

--HG--
extra : rebase_source : 0236e646038b0c145e34d5cedb18b8034d0c4aa4
2017-02-23 16:38:39 -06:00
Luke Wagner 6f8ce1e317 Bug 1342060 - wasm: enable by default (r=bbouvier,sr=jorendorff)
MozReview-Commit-ID: LozhxKgleFc

--HG--
extra : rebase_source : 1821c3965c46044e99a132398ea862f49eb6aca0
2017-02-23 13:02:40 -06:00
Ben Kelly e070aa7b47 Bug 1340654 P1 Set referrer policy in service workers. r=baku 2017-02-23 10:54:42 -05:00
Ben Kelly 0599debb95 Bug 1340652 P2 Override worker principal after channel load completes to get correct principal URL. r=baku 2017-02-23 10:54:41 -05:00
Ben Kelly 8fc68b959d Bug 1340652 P1 Assert principal URL matches final worker script URL. r=baku 2017-02-23 10:54:41 -05:00
Ben Kelly eec3246c3e Bug 1341040 Rename ServiceWorkerInfo::GetPrincipal() to Principal(). r=baku 2017-02-20 10:31:32 -05:00
Ben Kelly f256497070 Bug 1339823 Create a pristine principal in ServiceWorkerPrivate::SpawnWorkerIfNeeded(). r=baku 2017-02-20 09:31:24 -05:00
Carsten "Tomcat" Book 816ee3bdee Backed out changeset 59e30ba1b38f (bug 1339823) on a CLOSED TREE 2017-02-20 15:26:36 +01:00
Ben Kelly 15556e0e96 Bug 1339823 Create a pristine principal in ServiceWorkerPrivate::SpawnWorkerIfNeeded(). r=baku 2017-02-20 09:05:55 -05:00
Tom Ritter cf34ec74c9 Bug 1336527 Define RegisterIdlePeriod r=baku
MozReview-Commit-ID: A41UJ6OHvP7

--HG--
extra : rebase_source : 0191c1bbece94bb9dabbf2daf56351a624efa481
2017-02-17 13:29:12 -06:00
Tom Tromey d2667a2b27 Bug 1060419 - make AppendPrintf and nsPrintfCString use Printf.h, r=froydnj
MozReview-Commit-ID: 2E8FoiNxU8L

--HG--
extra : rebase_source : 810ac727bef0751f24edea18c52e0ec170bf367d
2016-12-14 09:32:21 -07:00
Tom Tromey 5f8f360823 Bug 1060419 - make log_print use Printf.h, r=froydnj
MozReview-Commit-ID: BIZ1GQEZ1vs

--HG--
extra : rebase_source : 2f1f0aa12493c44f352d9a7e8683e7bb72d2d75b
2016-12-15 20:16:31 -07:00
Ben Kelly 1e7618bfa7 Bug 1339844 P3 Test for Client.type in mochitest. r=asuth 2017-02-15 15:12:37 -05:00
Ben Kelly 76b97762b7 Bug 1339844 P1 Implement the Client.type attribute. r=asuth 2017-02-15 15:12:37 -05:00
Ben Kelly 101a286625 Bug 1322111 P2 Make importScripts() use TYPE_INTERNAL_WORKER_IMPORT_SCRIPTS. r=ckerschb 2017-02-15 09:55:58 -05:00
Tooru Fujisawa a33056dda7 Bug 1283712 - Part 8: Add WorkerErrorBase, WorkerErrorNote, and WorkerErrorReport. r=bholley 2017-02-15 23:53:07 +09:00
Jeff Walden ca2e1ac4c0 Bug 1287006 - Don't pass Maybe by value in miscellaneous places. r=froydnj
--HG--
extra : rebase_source : 145f2fc605ff917d3067826a9daebdce07bde02a
2017-02-13 09:07:40 -08:00
Ben Kelly 9c913de880 Bug 1337522 P2 Set ServiceWorker principal earlier. r=baku 2017-02-14 10:06:39 -05:00
Ben Kelly adfc2e425e Bug 1337522 P1 Add diagnostic assertions that worker principal is valid before compilation. r=baku 2017-02-14 10:06:39 -05:00
Ben Kelly 839d472b39 Bug 1337543 P6 Persist response headers for offlined service worker scripts. r=baku 2017-02-14 10:06:39 -05:00
Ben Kelly 9b7436dd89 Bug 1337543 P4 Apply CSP headers to ServiceWorker when loading offlined script. r=baku 2017-02-14 10:06:38 -05:00
Ben Kelly 6e8c6089aa Bug 1337543 P3 Factor out code to set WorkerPrivate CSP from headers. r=baku 2017-02-14 10:06:38 -05:00
Ben Kelly f86436457f Bug 1337543 P2 Improve ServiceWorker asserts and verify load principal does not inherit CSP. r=baku 2017-02-14 10:06:38 -05:00
Ben Kelly 3032201406 Bug 1337543 P1 ServiceWorker should not inherit CSP from registration principal. r=baku 2017-02-14 10:06:38 -05:00
Ben Kelly e4d4ffc92a Bug 1337543 P0 Sanitize the nsIPrincipal used to register a service worker to ensure CSP is not persisted. r=baku 2017-02-14 10:06:38 -05:00
Ben Kelly f3f0c6e1d7 Bug 1339116 Improve the ServiceWorkerPrivate timer code. r=asuth 2017-02-14 08:49:44 -05:00
Shawn Huang 8be9c484be Bug 1338438 - Test interfaces on both http and https channels, r=bz
--HG--
rename : dom/tests/mochitest/general/test_interfaces.html => dom/tests/mochitest/general/test_interfaces.js
rename : dom/workers/test/test_navigator.html => dom/workers/test/test_navigator.js
2017-02-14 17:28:58 +08:00
Wes Kocher c8fa3242ab Merge m-c to inbound, a=merge
MozReview-Commit-ID: Lt0WpWkto4h
2017-02-13 17:07:33 -08:00
Masatoshi Kimura 24a8330f71 Bug 1219523 - Remove the "dom.workers.latestJSVersion" pref. r=baku
MozReview-Commit-ID: 92fCMCLTxRp

--HG--
extra : rebase_source : 728d515eb2f2d5c0a03e80866ec2c56443c3dce8
2017-02-12 13:37:38 +09:00
Brian Hackett 01a649c197 Bug 1337112 - Remove links from JSRuntime to its single context and zone group, r=jandem,jonco.
--HG--
extra : rebase_source : ebf319af724d5f829cdf5c2386dc82d49be89989
2017-02-10 16:47:50 -07:00
Ben Kelly 9c8728e4a8 Bug 1338523 Make worker SetPrincipalOnMainThread fallible. r=baku 2017-02-10 13:34:38 -05:00
Ben Kelly 774823dcf7 Backout 959dce51f8cb (bug 1338523) for incorrect bug number in commit message. r=me 2017-02-10 13:33:28 -05:00
Ben Kelly 58ba9ead8c Bug 1338532 Make worker SetPrincipalOnMainThread fallible. r=baku 2017-02-10 13:30:47 -05:00
Nicholas Nethercote 5b394d20a8 Bug 1338957 (part 2) - Remove out-of-date comment. r=mstange.
Bug 1337189 part 17 was the change that made this comment no longer true.
2017-02-13 16:36:25 +11:00
Boris Zbarsky e1822e6a63 Bug 1306170 part 6. Implement WindowOrWorkerGlobalScope.origin. r=bkelly 2017-02-13 16:06:47 -05:00
Sebastian Hengst 8caccb81dd Backed out changeset f4f59e7c1be7 (bug 1337543) for crashing in various mochitest and web-platform-tests, e.g. dom/security/test/csp/test_child-src_worker.html. r=backout on a CLOSED TREE 2017-02-13 19:00:56 +01:00
Sebastian Hengst ed19785e65 Backed out changeset 2f2511d69d2e (bug 1337543) 2017-02-13 19:00:01 +01:00
Sebastian Hengst 6d0a01350d Backed out changeset c0157164852c (bug 1337543) 2017-02-13 18:59:57 +01:00
Sebastian Hengst 72db5e922e Backed out changeset 9e09a36b7c0c (bug 1337543) 2017-02-13 18:59:52 +01:00
Sebastian Hengst db434480b3 Backed out changeset 901f0df29f8f (bug 1337543) 2017-02-13 18:59:44 +01:00
Ben Kelly 414b756468 Bug 1337543 P6 Persist response headers for offlined service worker scripts. r=baku 2017-02-13 12:15:59 -05:00
Ben Kelly 7a88545b94 Bug 1337543 P4 Apply CSP headers to ServiceWorker when loading offlined script. r=baku 2017-02-13 12:15:59 -05:00
Ben Kelly 30ce58b092 Bug 1337543 P3 Factor out code to set WorkerPrivate CSP from headers. r=baku 2017-02-13 12:15:58 -05:00
Ben Kelly c1df3df72e Bug 1337543 P2 Improve ServiceWorker asserts and verify load principal does not inherit CSP. r=baku 2017-02-13 12:15:58 -05:00
Ben Kelly 2a1682f2ee Bug 1337543 P1 ServiceWorker should not inherit CSP from registration principal. r=baku 2017-02-13 12:15:58 -05:00
Catalin Badea ba35125979 Bug 1337033 - Remove code handling MIME input streams with bodies that contain headers. r=bkelly 2017-02-10 14:10:59 +00:00
Tim Huang 756cf900c9 Bug 1336802 - Part 2: Updating the whole code base to make sure nsILoadInfo get null check. r=smaug
--HG--
extra : rebase_source : 22149fd540fd02119afe9fe5c9a815d01cf959c1
2017-02-07 11:49:34 +08:00
Tooru Fujisawa 33a302accc Bug 1320408 - Part 22: Remove JSContext* parameter from ProxyObject::renew and Wrapper::Renew. r=jandem 2017-02-08 23:04:57 +09:00
Andrea Marchesini 8cf1cb8c2f Bug 1335536 - File.createFromNsIFile and File.createFromFileName should be async - part 1 - tests, r=smaug 2017-02-08 10:18:32 +01:00
Makoto Kato 0d01065054 Bug 1215247 - Turn on ICU and Intl API for Android. r=Waldo
Intl API (ECMA-402) already supports most web browsers such as Edge (including Windows 10 Mobile), Chrome (including Android), and upcoming Safari 10(https://developer.apple.com/library/prerelease/content/releasenotes/General/WhatsNewInSafari/Articles/Safari_10_0.html).

Also IDN2008 support, and number control by <input type="number"> require ICU.  And, although gfx has own unicode table, we want to remove this if ICU is supported on all platform.

Also, new L20N framework (aka L20N) wants to use Intl API to localize UI.

So I would like to use ICU as default on Fennec Android.

Negative issue is file size.  ICU has big table, file size of libxul.so will be following.  This support requires additional 4.4MB.

before this ... 26287379 bytes
after this  ... 30692696 bytes

Although android OS already has ICU, ICU version is different per OS version.  And our ICU requirement is 50.1+ (Android 4.0 uses ICU 48) and exported fucntion name of ICU has ICU version suffix.  So we cannot use it.

MozReview-Commit-ID: 5R5iNMzWNjS

--HG--
extra : rebase_source : fceb3ee320f885e7c03749f76cf0ad7699a21c2c
2016-08-01 14:14:22 +09:00
Ben Kelly fa883b7bc2 Bug 1333573 P9 Refactor worker proxy release of main thread objects to reduce duplicate code. r=baku 2017-02-07 10:28:39 -05:00
Ben Kelly 75937028fd Bug 1333573 P8 Update test_chromeWorkerJSM.xul to expect synchronous SecurityError. r=baku 2017-02-07 10:28:39 -05:00
Ben Kelly 3e2defe12c Bug 1333573 P7 Release WorkerLoadInfo data on main thread if we fail nested worker creation. r=baku 2017-02-07 10:28:39 -05:00
Ben Kelly 0096e443be Bug 1333573 P6 Move ForgetMainThreadObjects() into WorkerLoadInfo. r=baku 2017-02-07 10:28:39 -05:00
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