Commit Graph

3474 Commits

Author SHA1 Message Date
Andrea Marchesini
c6334b35ae Bug 1346247 - Avoid race conditions when SW are updated - part 1 - PServiceWorkerUpdater actor, r=bkelly 2017-03-28 11:48:38 +02:00
Ben Kelly
a68b3b11fd Bug 1350433 Expose WorkerPrivate::ServiceWorkerScope() instead of using WorkerName() all over the place. r=asuth 2017-03-24 19:56:48 -04:00
Ben Kelly
4ffa062ade Bug 1350398 Remove Workers.h include from BindingUtils.h now that ThrowDOMExceptionForNSResult no longer exists. rs=bz 2017-03-24 15:27:11 -04:00
Sebastian Hengst
0b29125389 Backed out changeset 7474a804fd1f (bug 1346247) for asserting at MozPromise.h:911. r=backout 2017-03-24 15:05:03 +01:00
Sebastian Hengst
0f1641164f Backed out changeset 804f99e05804 (bug 1346247) 2017-03-24 15:04:27 +01:00
Sebastian Hengst
5b2cf78b72 Backed out changeset 77fc6f341fef (bug 1346247) 2017-03-24 15:04:23 +01:00
Andrea Marchesini
481fd60471 Bug 1346247 - Bug 1346247 - Avoid race conditions when SW are updated - part 3 - MozPromise, r=bkelly 2017-03-24 13:22:21 +01:00
Andrea Marchesini
b5268bafe7 Bug 1346247 - Bug 1346247 - Avoid race conditions when SW are updated - part 2 - tests, r=bkelly 2017-03-24 13:21:42 +01:00
Andrea Marchesini
561e3f5ffd Bug 1346247 - Bug 1346247 - Avoid race conditions when SW are updated - part 1 - PServiceWorkerUpdater actor, r=bkelly
In this patch I introduce a new actor: PServiceWorkerUpdater managed by
PServiceWorkerManager and running on PBackground. Each time a SoftUpdate() or
Update() operation starts, a PServiceWorkerUpdater is used for having a unique
lock for the update of a particular scope+originAttributes.
The implementation happens on the PBackground thread of the parent process,
where all these PServiceWorkerUpdater actors are taken in an array and, only
the first one for each scope+originAttributes is activated.
2017-03-24 13:21:18 +01:00
Ehsan Akhgari
e67d3e5c18 Bug 1348453 - Make the second argument to ImageBitmap::ExtensionsEnabled() optional; r=baku 2017-03-23 10:27:41 -04:00
Andrea Marchesini
67c2c118a3 Bug 1349572 - FileSystemSync must be able to work also with non nsISeekableStream, r=smaug 2017-03-23 10:53:40 +01:00
Carsten "Tomcat" Book
5f3ac554bc Backed out changeset aa77848f51ee (bug 1349572) for test failures in test_fileReadSlice.xul and others 2017-03-23 08:50:13 +01:00
Andrea Marchesini
15ee5f552d Bug 1349572 - FileSystemSync must be able to work also with non nsISeekableStream, r=smaug 2017-03-23 07:19:55 +01:00
Andrea Marchesini
cd6bd71606 Bug 1341738 - Implement FetchController and FetObserver - part 4 - FetchObserver WebIDL, r=bkelly 2017-03-22 11:06:23 +01:00
Andrea Marchesini
8552a5e7ba Bug 1341738 - Implement FetchController and FetObserver - part 1 - FetchController in WebIDL, r=bkelly 2017-03-22 11:04:57 +01:00
Boris Zbarsky
246fba64e9 Bug 1348331 part 3. Change Preferences::RegisterCallback/RegisterCallbackAndCall/UnregisterCallback to do exact matching on the pref name, not prefix matching. r=froydnj.
MozReview-Commit-ID: GY6J62yWkfk
2017-03-21 14:59:02 -04:00
Boris Zbarsky
ec233151ac Bug 1348331 part 2. Switch Preferences::RegisterCallback/RegisterCallbackAndCall consumers that want prefix matches to the new RefisterPrefixCallback(AndCall) APIs. r=froydnj,padenot
MozReview-Commit-ID: 2ebVZO4fN6i
2017-03-21 14:59:02 -04:00
Andrea Marchesini
50f7937e84 Bug 1340163 - Introducing originNoSuffix as attribute in ContentPrincipalInfo, r=smaug 2017-03-20 16:03:45 +01:00
Catalin Badea
a1b8a7905d Bug 1342255 - Fix crash in respondWith resolved callback. Don't reset interception if the sw throws after .respondWith(). r=asuth 2017-03-20 15:01:04 +00:00
Sebastian Hengst
a472d9b04f Backed out changeset 54a1f0cb64d9 (bug 1340163) for crashing e.g. in browser/components/originattributes/test/browser/browser_cacheAPI.js. r=backout 2017-03-20 15:38:19 +01:00
Andrea Marchesini
38c6ab4035 Bug 1340163 - Introducing originNoSuffix as attribute in ContentPrincipalInfo, r=smaug 2017-03-20 14:51:54 +01:00
Ehsan Akhgari
adb77fecec Bug 1348452 - Give createImageBitmap() an implicit JSContext*; r=baku 2017-03-18 11:55:31 -04:00
Boris Zbarsky
7d85fda7ff Bug 1348215. Fix the SIMPLE_WORKER_PREF setup to not mishandle pref names that start with the worker pref name. r=ehsan
Without this change, we will call WorkerPrefChanged if a pref whose name just
_starts_ with the name of one of our WORKER_SIMPLE_PREF prefs changes.  Then in
WorkerPrefChanged we will get the value of the pref that changed, and store it
under the key identified by the closure, thus writing the value of an incorrect
pref in there.

MozReview-Commit-ID: JTsvvtC5P1o
2017-03-17 14:10:40 -04:00
Ehsan Akhgari
3c91e7a4b7 Bug 1348168 - Disable Mozilla custom ImageBitmap extensions that didn't go through proper API review; r=bzbarsky 2017-03-17 00:10:37 -04:00
Ben Kelly
b9628517d0 Bug 1347739 Don't crash if an ExtendableMessageEvent object has a null source. r=asuth 2017-03-16 21:25:42 -04:00
Till Schneidereit
c7c5b5fa85 Bug 1067942 - Change error message for attempted getter-only property writes to include the property name. r=terrence,ms2ger
MozReview-Commit-ID: 2IyEPyAaoNt
2014-09-30 01:17:55 +02:00
Nicholas Nethercote
8876b32323 Bug 1345262 (part 5) - Fix how JS sampling is started/stopped by the profiler. r=mstange,djvj.
Currently, JS sampling has major problems.

- JS sampling is enabled for all JS threads from the thread that runs
  locked_profiler_start() -- currently only the main thread -- but the JS
  engine can't handle enabling from off-thread, and asserts. This makes
  profiling workers impossible in a debug build.

- No JS thread will be JS sampled unless enableJSSampling() is called, but that
  only happens in locked_profiler_start(). That means any worker threads
  created while the profiler is active won't be JS sampled.

- Only the thread that runs locked_profiler_stop() -- currently only the main
  thread -- ever calls disableJSSampling(). This means that worker threads that
  start being JS sampled never stop being JS sampled.

This patch fixes these three problems in the following ways.

- locked_profiler_start() now sets a flag in PseudoStack that indicates
  JS sampling is desired, but doesn't directly enable it. Instead, the JS
  thread polls that flag and enables JS sampling itself when it sees the flag
  is set. The polling is done by the interrupt callback. There was already a
  flag of this sort (mJSSampling) but the new one is better.

  This required adding a call to profiler_js_operation_callback() to the
  InterruptCallback() in XPCJSContext.cpp. (In comparison, the
  InterruptCallback() in dom/workers/RuntimeService.cpp already had such a
  call.)

- RegisterCurrentThread() now requests JS sampling of a JS thread when the
  profiler is active, the thread is being profiled, and JS sampling is enabled.

- locked_profiler_stop() now calls stopJSSampling() on all live threads.

The patch makes the following smaller changes as well.

- Renames profiler_js_operation_callback() as profiler_js_interrupt_callback(),
  because "interrupt callback" is the standard name (viz.
  JS_AddInterruptCallback()).

- Calls js::RegisterContextProfilingEventMarker() with nullptr when stopping
  JS sampling, so that ProfilerJSEventMarker won't fire unnecessarily.

- Some minor formatting changes.

--HG--
extra : rebase_source : 372f94c963a9e5b2493389892499b1ca205ebc2f
2017-03-10 09:04:23 +11:00
Nicholas Nethercote
d8023679e3 Bug 1345262 (part 2) - Add profiler_{set,clear}_js_context(). r=mstange.
PseudoContext::sampleContext() is always called immediately after
profiler_get_pseudo_stack(). This patch introduces profiler_set_js_context()
and profiler_clear_js_context(), which replace the profiler_get_pseudo_stack()
+ sampleContext() pairs. This takes us a step closer to not having to export
PseudoStack outside the profiler.

--HG--
extra : rebase_source : 8558d1600eafd395cc696d31f3d21fb52a1a74b0
2017-03-09 17:06:35 +11:00
Ben Kelly
12ef9421b4 Bug 1345943 P1 Set the MessageEvent.source to ServiceWorker that called Client.postMessage(). r=asuth 2017-03-10 12:15:07 -05:00
Ben Kelly
546d811304 Bug 1311324 P2 Replace usage of ServiceWorkerMessageEvent with MessageEvent. r=bz 2017-03-09 20:50:13 -05:00
Valentin Gosu
1c5fbd8c6e Bug 1342438 - Remove url .hash encoding/decoding prefs r=bagder
These prefs have been added close to two years ago:
dom.url.encode_decode_hash and dom.url.getters_decode_hash
The main reason for their existence was in case we encounter any web-compat issues. At this point the extra code is mostly useless, and flipping the pref may lead to crashes.

MozReview-Commit-ID: LhAHkYmv0TR

--HG--
extra : rebase_source : 8f2d50d5633496cf165b3925d952bb6475bce3e0
2017-03-08 22:19:34 +01:00
Andrea Marchesini
9749d1a888 Bug 1345277 - Initialize nsIStreamTransportService before dispatching the first worker, r=ehsan 2017-03-08 18:37:08 +01:00
Ben Kelly
7300a549b0 Bug 1345251 Make MozPromise usable on worker threads. r=gerald 2017-03-08 11:45:07 -05:00
Ben Kelly
8325eed6e7 Bug 1345132 Fix races in test_claim.html mochitest. r=catalinb 2017-03-08 10:19:26 -05:00
Shawn Huang
ff64db551b Bug 1339786 - Disable Storage API on Android, r=baku 2017-03-08 19:55:50 +08:00
Michael Layzell
67c4d0b3c1 Bug 1331434 - Part 7: Handle custom cleanup after throwing in /dom/workers, r=baku
MozReview-Commit-ID: 1hKUDi9Oxg7
2017-03-07 19:06:48 -05:00
Carsten "Tomcat" Book
087da3f0d9 merge mozilla-inbound to mozilla-central a=merge 2017-03-07 15:13:31 +01:00
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