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

3542 Коммитов

Автор SHA1 Сообщение Дата
Bill McCloskey c197e07ff2 Bug 1363560 - Name more runnables (r=mccr8)
MozReview-Commit-ID: 3hxZDA4JlTV
2017-05-09 21:53:25 -07:00
Andrea Marchesini 40bc26c0ee Bug 1360807 - FileReaderSync must work with sync inputStream - part 4 - Base64EncodeInputStream needs a sync inputStream, r=smaug 2017-05-09 11:04:49 +02:00
Andrea Marchesini 30c1ec2e08 Bug 1360807 - FileReaderSync must work with sync inputStream - part 2 - nsIConverterInputStream needs a syncInputStream, r=smaug 2017-05-09 11:04:07 +02:00
Andrea Marchesini 4e5948b3f2 Bug 1360807 - FileReaderSync must work with sync inputStream - part 1 - SyncRead should read as much as required, r=smaug 2017-05-09 11:03:40 +02:00
Andrea Marchesini 1981f67eb3 Bug 1362119 - part 1 - Moving dom/base/Script{Loader,Element}.* in dom/script, r=ehsan
This patch does these things:

1. it moves nsScriptElement, nsScriptLoader, ScriptSettings, nsIScriptElement
   and nsIScriptLoaderObserver in dom/script
2. it renames nsScriptElement to mozilla::dom::ScriptElement
3. it renames nsScriptLaoder to mozilla::dom::ScriptLoader

--HG--
rename : dom/base/nsScriptElement.cpp => dom/script/ScriptElement.cpp
rename : dom/base/nsScriptElement.h => dom/script/ScriptElement.h
rename : dom/base/nsScriptLoader.cpp => dom/script/ScriptLoader.cpp
rename : dom/base/nsScriptLoader.h => dom/script/ScriptLoader.h
rename : dom/base/ScriptSettings.cpp => dom/script/ScriptSettings.cpp
rename : dom/base/ScriptSettings.h => dom/script/ScriptSettings.h
rename : dom/base/nsIScriptElement.h => dom/script/nsIScriptElement.h
rename : dom/base/nsIScriptLoaderObserver.idl => dom/script/nsIScriptLoaderObserver.idl
2017-05-08 08:24:22 +02:00
btian 4a15743eb6 Bug 1338059 - Part 2: Implement PromiseRejectionEvent, r=bz
MozReview-Commit-ID: 6BZBL9BjO03

--HG--
extra : rebase_source : 1f7aece35191a23b6db9f574fdfdc3a634c9a634
2017-05-05 11:30:19 +08:00
Chris Peterson 3290f0e066 Bug 1360039 - Spoof navigator.hardwareConcurrency = 2 when privacy.resistFingerprinting = true. r=qdot
Trackers use navigator.hardwareConcurrency as yet another source of entropy to fingerprint users. The Firefox Hardware Report says 70% of Firefox users have exactly 2 cores. When the privacy.resistFingerprinting pref is set, we want to blend into the crowd so spoof navigator.hardwareConcurrency = 2 to reduce user uniqueness. This pref was added in bug 1345322 for the Tor uplift project.

https://metrics.mozilla.com/firefox-hardware-report/#goto-cpu-and-memory

MozReview-Commit-ID: CDWAaxjRpqe

--HG--
extra : rebase_source : a24eabf1d0b0ea1706478306287634dae38a8c52
2017-05-02 14:03:08 -07:00
Ben Kelly 6564cff0b5 Bug 1361166 Update mParentStatus synchronously when closing worker thread. r=baku 2017-05-03 07:42:43 -07:00
Bill McCloskey 11b1f07146 Bug 1359245 - Get rid of CycleCollectedJSRuntime::MainContext (r=mccr8)
This is another method that assumes one context per runtime. This patch
eliminates the method.

MozReview-Commit-ID: JHcQ1nyiHSP
2017-04-27 15:34:46 -07:00
Michael Layzell 4688a63a06 Bug 1355608 - Part 2: Eagerly transmit permissions to the content process for service worker registrations, r=catalinb
This requires running code which checks whether or not the permissions have
arrived, potentially delaying a fetch request for a very short period of time if
the permissions are still in-flight.

MozReview-Commit-ID: E6OTY6IDThb
2017-04-27 13:41:15 -04:00
Jason Duell d8fc808f1c Bug 711886 - Fail Websocket if server replies with non-matching subprotocol, r=mcmanus 2016-05-11 08:50:13 -07:00
Andrea Marchesini b6565e5cf3 Bug 1359359 - FileReaderSync should support nsIAsyncInputStream, r=smaug 2017-04-25 22:23:46 +02:00
Cervantes Yu cc5836fbae Bug 1024669 - Part 1: Annotate crash reports with thread names. r=gsvelto
NS_SetCurrentThreadName() is added as an alternative to PR_SetCurrentThreadName()
inside libxul. The thread names are collected in the form of crash annotation to
be processed on socorro.

MozReview-Commit-ID: 4RpAWzTuvPs
2017-02-07 18:57:23 +08:00
Andrea Marchesini 9a89dabb3e Bug 1357473 - Update Console to the latest spec - part 3 - Console.groupEnd(), r=bgrins, r=nchevobbe 2017-04-18 10:04:00 +02:00
Andrea Marchesini e1cf92c22c Bug 1353684 - nsIFileInputStream must return NS_ERROR_NOT_FOUND if Deserialize() fails, r=smaug 2017-04-20 13:39:51 +02:00
Tom Tung 34ae9eb687 Bug 1356466: Make checking function resolve late enough to prevent from unregistering too early. r=bkelly 2017-04-18 16:07:01 +08:00
Carsten "Tomcat" Book b84117e652 Merge mozilla-central to mozilla-inbound 2017-04-19 12:31:58 +02:00
Carsten "Tomcat" Book 284cbb308e Backed out changeset d518009bfe70 (bug 1290951) for causing Bug 1357437 2017-04-19 11:55:33 +02:00
Carsten "Tomcat" Book 7babdc7a78 Backed out changeset a459d48f1d86 (bug 1290951) 2017-04-19 11:55:02 +02:00
Carsten "Tomcat" Book 7b9f2f1715 Backed out changeset 6f30a5669251 (bug 1290951) 2017-04-19 11:55:00 +02:00
Carsten "Tomcat" Book 0a0f322bb7 Backed out changeset 437aa650b9d9 (bug 1290951) 2017-04-19 11:54:57 +02:00
Carsten "Tomcat" Book 73cd20cf99 Backed out changeset 779deac689f9 (bug 1290951) 2017-04-19 11:54:55 +02:00
Carsten "Tomcat" Book b989ecb1ef Backed out changeset 9e1c5c05eb58 (bug 1290951) 2017-04-19 11:54:52 +02:00
Carsten "Tomcat" Book 9dfe2e6996 Backed out changeset a5a8e0001d78 (bug 1290951) 2017-04-19 11:54:50 +02:00
Carsten "Tomcat" Book e72c9d7c1b Backed out changeset 2e133f3b768c (bug 1290951) 2017-04-19 11:54:47 +02:00
Carsten "Tomcat" Book e0324b8ab3 Backed out changeset a4b47c4e9e3b (bug 1290951) 2017-04-19 11:54:45 +02:00
Carsten "Tomcat" Book 7145e26cb8 Backed out changeset 5be709822325 (bug 1290951) 2017-04-19 11:54:42 +02:00
Carsten "Tomcat" Book 7c6d69604b Backed out changeset c351046112bf (bug 1290951) 2017-04-19 11:54:37 +02:00
Ho-Pang Hsu 993c810162 Bug 1290951 - Part 4.2: Add a mochitest for an useless imported script after an update. r=bkelly 2017-04-07 15:02:23 +08:00
Ho-Pang Hsu 3d64dc715a Bug 1290951 - Part 3.2: Tolerate missing imported scripts. r=bkelly 2017-02-28 19:30:50 +08:00
Ho-Pang Hsu 17665be027 Bug 1290951 - Part 3.1: Extend the bytecheck to imported scripts. r=bkelly 2017-04-13 15:04:27 +08:00
Ho-Pang Hsu 05770db16e Bug 1290951 - Part 2.6: Change the relationship between CompareManager, CompareNetwork, and CompareCache. r=bkelly 2017-04-13 15:02:45 +08:00
Ho-Pang Hsu e0fb66e9cf Bug 1290951 - Part 2.5: Move ChannelInfo and PrincipalInfo into CompareNetwork. r=bkelly 2017-04-13 15:01:28 +08:00
Ho-Pang Hsu 64540c2896 Bug 1290951 - Part 2.4: Add mIsMainScript to CompareNetwork. r=bkelly 2017-04-07 14:57:19 +08:00
Ho-Pang Hsu 20d389faf6 Bug 1290951 - Part 2.3: Update the lifecycle of CompareCache. r=bkelly 2017-04-07 14:54:00 +08:00
Ho-Pang Hsu 9559405105 Bug 1290951 - Part 2.2: Make CompareManager::ComparisonFinished() public. r=bkelly 2017-02-23 18:34:36 +08:00
Ho-Pang 00d56f9bdb Bug 1290951 - Part 2.1: Move some functions out of their class definitions. r=bkelly 2017-02-23 18:34:16 +08:00
Ho-Pang Hsu 05cc44be10 Bug 1290951 - Part 1.2: Get the script URL list before actual comparing. r=bkelly 2017-04-07 14:44:35 +08:00
Ho-Pang Hsu 836798bd39 Bug 1290951 - Part 1.1: Move some function implementations out of CompareManager. r=baku 2017-04-07 14:41:22 +08:00
Bill McCloskey 207af130a2 Bug 1343396 - Split CycledCollectedJSContext and XPCJSContext into separate context and runtime classes (r=mccr8)
To run JS in separate cooperative threads, we need to split up per-thread state
from per-runtime state. This patch does that for XPConnect.

MozReview-Commit-ID: 407SlJ7nR6v
2017-04-18 17:01:04 -07:00
Florian Queze f935ddc4b3 Bug 1356569 - Remove notifyObservers' last parameter when it is falsy, r=jaws. 2017-04-14 21:51:39 +02:00
Florian Queze 37ff4fc7cc Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Ben Tian cda6ed446d Bug 1350459 - Remove the [Throws] annotation from Window.navigator, r=qdot
MozReview-Commit-ID: 8vjyVrfa3xT

--HG--
extra : rebase_source : d63942141b562e0e69611f3cbc1da4e9ee522efc
2017-04-14 10:40:03 +08:00
Tom Tung c4b6f4e320 Bug 1251238 - Part 8: Add a test to make sure that timestamps track time as expected and modify the test since we notify the chrome listener when updating. r=bkelly
--HG--
extra : rebase_source : 34878d3a2e9e8c4620eefebab3385fa74a732ba8
2017-03-30 17:25:03 +08:00
Tom Tung 238e9a2210 Bug 1251238 - Part 7: Modify Gtest to verify storing installed/activated time and last updated time works in SWRegistrar. r=bkelly
--HG--
extra : rebase_source : 47fac9772a1cced3f454ba03e0328491926770bf
2017-04-06 12:03:22 +08:00
Tom Tung 4156819b0b Bug 1251238 - Part 6: Merge mLastUpdateCheckTime and mLastUpdateTime. r=bkelly
--HG--
extra : rebase_source : 87adbbee5e15427a04b3888f1d7b1cc9913f5793
2017-04-06 10:39:52 +08:00
Tom Tung 94f26a8af0 Bug 1251238 - Part 5: Store installed/activated time for a service worker and last updated time for a service worker's registration into serviceWorkerRegistrar. r=bkelly
--HG--
extra : rebase_source : 6c4350a972ae396388b6bbae8a139e27dcf8fa6c
2017-04-05 09:59:48 +08:00
Tom Tung cc0246c492 Bug 1251238 - Part 4: Remove calling SetActivateStateUncheckedWithoutEvent() after calling SetActive(), since we've called it on SetActive(). r=bkelly
--HG--
extra : rebase_source : 0603496da7cce1d1268b60f744b2941f11736e27
2017-04-06 15:27:59 +08:00
Tom Tung 1cf8eeb4eb Bug 1251238 - Part 3: Add timestamps to track when a service worker is installed/activated/redundant and when a service worker's registration is updated. r=bkelly
--HG--
extra : rebase_source : ed40ae346a1db5ae40c3baafde25259dc7c56816
2017-04-06 15:26:08 +08:00
Tom Tung 7e01edd0c6 Bug 1251238 - Part 2: Modify test because we notify chrome listener each time when service worker's state is updated. r=bkelly
--HG--
extra : rebase_source : 255c6771dc705c556e82789b1af9b04aed697a0b
2017-03-24 09:57:14 +08:00
Tom Tung f25c306bc0 Bug 1251238 - Part 1: Update service worker's state before notifying the chrome listeners to enure they get correct state information. r=bkelly
--HG--
extra : rebase_source : fcf9c3ea70fb39d06a317119d85ea8f470d3e7e1
2017-03-22 11:39:06 +08:00
Ho-Pang Hsu 3dc15e5580 Bug 1168875 - Part 6: Create a chrome mochitest testcase. r=bkelly
--HG--
extra : rebase_source : 8b78c4ec433015a56940f65497ddc3053132acec
2017-04-10 21:13:22 +08:00
Ho-Pang Hsu 4bdddfee0a Bug 1168875 - Part 3: Insert the timestamp probes into service worker implementation. r=bkelly
--HG--
extra : rebase_source : 5cc75ff725b0f9446938829ef35085ab5cc5c4a1
2017-04-10 21:13:21 +08:00
Ben Kelly d7c4e788f6 Bug 1351935 P1 Make Client.navigate() support cross-origin loads. r=smaug 2017-04-10 21:30:24 -04:00
Sebastian Hengst 1828ea89ca Backed out changeset 7fdcabdbb675 (bug 1024669) for failing mda, GTest and talos jobs. r=backout on a CLOSED TREE 2017-04-10 19:05:44 +02:00
Cervantes Yu 364e524eca Bug 1024669 - Part 1: Annotate crash reports with thread names. r=gsvelto
MozReview-Commit-ID: 4RpAWzTuvPs
2017-02-07 18:57:23 +08:00
Carsten "Tomcat" Book 02ddc23c74 Backed out changeset 7a52d887bcea (bug 1024669) for bustage 2017-04-10 11:43:49 +02:00
Cervantes Yu ece1ce1a7d Bug 1024669 - Part 1: Annotate crash reports with thread names. r=gsvelto
MozReview-Commit-ID: 4RpAWzTuvPs
2017-02-07 18:57:23 +08:00
Ho-Pang Hsu 28ae7dfbde Bug 1353638 - P1: Hide useCache registrationOptions. r=bkelly 2017-04-05 23:42:50 +08:00
Sebastian Hengst 594c2edeec Backed out changeset 321a37f440e8 (bug 1353638) for linting failure in testing/web-platform/meta/MANIFEST.json. r=backout 2017-04-07 18:40:20 +02:00
Ho-Pang Hsu 475f025932 Bug 1353638 - P1: Hide useCache registrationOptions. r=bkelly 2017-04-05 23:42:50 +08:00
Mark Banner 5cb239b14a Bug 1347482 - Change various DOM tests to run the navigator checks in sub-iframes. r=mystor
We have to run the navigator checks in sub-iframes as we need to set preferences which affect navigator's API
which may or may not be already initialised with the current settings. The sub-iframes will have a navigator
object set up with the expected preferences for the test.

The iframes all call into the parent to publish the test results, this is because the SimpleTest infrastructure
doesn't cope with results being published from sub-iframes.

MozReview-Commit-ID: GFVQHMVkbMP

--HG--
rename : dom/power/test/test_bug957899.html => dom/power/test/test_bug957899_iframe.html
rename : dom/presentation/tests/mochitest/test_presentation_availability.html => dom/presentation/tests/mochitest/test_presentation_availability_iframe.html
rename : dom/tests/mochitest/gamepad/test_check_timestamp.html => dom/tests/mochitest/gamepad/test_check_timestamp_iframe.html
rename : dom/tests/mochitest/gamepad/test_gamepad_connect_events.html => dom/tests/mochitest/gamepad/test_gamepad_connect_events_iframe.html
rename : dom/tests/mochitest/gamepad/test_gamepad_extensions.html => dom/tests/mochitest/gamepad/test_gamepad_extensions_iframe.html
rename : dom/tests/mochitest/gamepad/test_gamepad_frame_state_sync.html => dom/tests/mochitest/gamepad/test_gamepad_frame_state_sync_iframe.html
rename : dom/tests/mochitest/gamepad/test_gamepad_hidden_frame.html => dom/tests/mochitest/gamepad/test_gamepad_hidden_frame_iframe.html
rename : dom/tests/mochitest/gamepad/test_gamepad.html => dom/tests/mochitest/gamepad/test_gamepad_iframe.html
rename : dom/tests/mochitest/gamepad/test_navigator_gamepads.html => dom/tests/mochitest/gamepad/test_navigator_gamepads_iframe.html
rename : dom/tests/mochitest/geolocation/test_geolocation_is_undefined_when_pref_is_off.html => dom/tests/mochitest/geolocation/test_geolocation_is_undefined_when_pref_is_off_iframe.html
rename : dom/workers/test/test_navigator.html => dom/workers/test/test_navigator_iframe.html
rename : dom/workers/test/test_navigator.js => dom/workers/test/test_navigator_iframe.js
extra : rebase_source : fe0f3e342cb55b5e9da7038acb59b5e2a5c8767e
2017-04-04 21:53:27 +01:00
Thomas Nguyen afaba58d52 Bug 1339004 - Do DocGroup labeling in dom/security. r=ckerschb,smaug
MozReview-Commit-ID: 3QoH8P4J85I

--HG--
extra : rebase_source : 6f62454001fc02380f8aea99a56eff38de0e9fb6
2017-03-29 10:20:32 +08:00
Makoto Kato 1c93a16bad Bug 1349879 - Intl object is hidden on Android beta and release channel. r=snorp,Waldo
Some interface tests into mochitest is failure on android beta and release.

test_serviceworker_interfaces.js has nonReleaseAndroid flag, so we should use it into test_interfaces.js and test_worker_interfaces.js

MozReview-Commit-ID: A1aHrTXwGil

--HG--
extra : rebase_source : 0990ec8a50b664ac711ee4977a104286f40ae07e
2017-03-30 19:44:28 +09:00
Paul Bignier 9103ac60ef Bug 1352808 - Typo fixes for 'browser' in comments. r=MattN
MozReview-Commit-ID: IA42yQO5Sb8

--HG--
extra : rebase_source : b5426724c5b740639f71e5d058742b01868085e2
2017-04-03 15:26:11 -07:00
Ehsan Akhgari c2e08ee61a Bug 1347425 - Part 1: Move site-specific Navigator.userAgent overrides to a more efficient C++ implementation; r=baku,schien
Necko computes this information in order to set the User-Agent header in
the parent process.  This header is set on all outgoing requests, and
therefore in the content process we can easily copy the value of this
header from the document channel object instead of the inefficient sync
IPC that currently happens in order to access the JavaScript
implementation living in the parent process.
2017-03-28 22:10:33 -04:00
Andrea Marchesini cdd567b0c8 Bug 1346247 - Avoid race conditions when SW are updated - part 3 - MozPromise, r=bkelly 2017-03-28 11:49:16 +02:00
Andrea Marchesini 3c2329f826 Bug 1346247 - Avoid race conditions when SW are updated - part 2 - tests, r=bkelly 2017-03-28 11:48:57 +02:00
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