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

554949 Коммитов

Автор SHA1 Сообщение Дата
Steve Armand 51f7139dc5 Bug 1390644 - Change the mid-sync state of "Syncing…" to "Syncing Tabs…". r=eoger
MozReview-Commit-ID: Ef1aWhWEnZh

--HG--
extra : rebase_source : 458685d94d16acfb21d080287484869c93d7a091
2017-08-28 21:38:49 -04:00
Josh Matthews a4c8935171 servo: Merge #18290 - Report more specific CSS selector errors (from jdm:selectorerr); r=heycam
Report more specific errors for invalid CSS selectors. Reviewed by @heycam in https://bugzilla.mozilla.org/show_bug.cgi?id=1384216.

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] There are tests for these changes

Source-Repo: https://github.com/servo/servo
Source-Revision: b2f8974ab88c98277f03c727708096edce898974

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 3e6e805e10d74b130a1687dfdb8c9e85ec4d255f
2017-08-29 09:46:22 -05:00
Phil Ringnalda 1a590236f0 Backed out changeset 69be89a46ead (bug 1265578) for eslint failures
MozReview-Commit-ID: 1mEZe6V8Cbi
2017-08-29 09:20:29 -07:00
Dustin J. Mitchell 8ff9eec55c Bug 1390968: python-3 compatibility for taskcluster/**/*.py; r=Alex_Gaynor,gps
MozReview-Commit-ID: Hyfn2PlXvhd

--HG--
extra : rebase_source : 504337cd3742c36f37c059ef2b8cd04067f58277
2017-08-28 21:53:04 +00:00
Dustin J. Mitchell 53df6a181b Bug 1390968: python-3 compatibility for python/**/*.py; r=Alex_Gaynor,gps
This passes `python3 -mcompileall`.  Changes:

 * use `0o` prefix for octal literals
 * print as a function
 * except .. as
 * use six.reraise to replace a multi-argument raise statement
 * use six.string_types and six.moves.configparser
 * remove uses of `L` suffix for long integers

MozReview-Commit-ID: KLaYRNHGpay

--HG--
extra : rebase_source : 6ca1b5447cd28eff8d9f2805add6a0f07e8b4c63
2017-08-28 21:31:30 +00:00
Dustin J. Mitchell 8f96075410 Bug 1390968: add a py(3) job; r=gps
MozReview-Commit-ID: 1BkOEvPKjSD

--HG--
extra : rebase_source : 5b330030b5961cf8557a33346c2b8b7208aaf99c
2017-08-28 20:55:55 +00:00
tiago 1f043922a9 Bug 1265578 - Remove unused 'retrieveRecommendedAddons()' from AddonRepository.jsm. r=aswan
MozReview-Commit-ID: 5CqOcrKgqTU

--HG--
extra : rebase_source : eed865c21c9a228e2ae2a68fd24026269daf0db1
2017-05-30 04:33:26 -03:00
Felipe Gomes 3cc0191877 Bug 1391117 - Prevent nsBrowserGlue's initialization tasks from running twice in case its notification is sent again. r=mikedeboer
MozReview-Commit-ID: Id5A5UoUbeA

--HG--
extra : rebase_source : 206b6dab1a86c3b9836648f43f9ba8ddf358a05d
2017-08-29 12:13:02 -03:00
Brad Werth 1fb5df3521 Bug 1394632: Fix await race condition which could cause timeouts in layout/inspector/tests/chrome/test_parseStyleSheetObservers.html. r=emilio
MozReview-Commit-ID: WGdLNznpcW

--HG--
extra : rebase_source : 88f3883d3ac19054abfa141afc0f822f799c9820
2017-08-28 18:26:34 -07:00
Matt Howell dcf3ddb54a Bug 1394582 - Don't hang forever in the stub installer if the browser was already running. r=agashlin
Fixes a regression from bug 1376597, which caused the stub installer to hang
forever and not respond to the close button if the browser was already running
during the installation.

MozReview-Commit-ID: A1XWGvnlgrS

--HG--
extra : rebase_source : 31d21a3e7c72af874acbebaa30f0f77fc61d555f
2017-08-28 15:12:33 -07:00
Alexandre Poirot 940a343cad Bug 1382377 - Test console against devtools.enabled pref. r=baku
MozReview-Commit-ID: GEayP1MP8PV

--HG--
extra : rebase_source : 402c5f2d3d7d4fcf6e8c81ac551eb3764313ca0d
2017-08-28 19:22:58 +02:00
Alexandre Poirot ce152ea930 Bug 1382377 - Make Console API be a no-op until DevTools are opened at least once. r=baku,jdescottes
MozReview-Commit-ID: 4xuzRQKH3Vg

--HG--
extra : rebase_source : 43d8fe53c387d742c5b1c872cebdfbfc870910b0
2017-08-08 16:29:34 +02:00
Emilio Cobos Álvarez f22a6df801 servo: Merge #18293 - style: Box the PerPseudo<SelectorMap>, so we don't waste a lot of space (from emilio:selector-map-box); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: 5062dc5914d97e16b93c847574282067dcde49f7

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 3f00cc439ea8b24861b230ef25c769a30f581583
2017-08-29 07:37:55 -05:00
Andrew McCreight c06c75d418 Bug 1394655 - Don't call SetNextIdleDeadlineRef on beta or release. r=froydnj
MozReview-Commit-ID: sIO4thBdpq

--HG--
extra : rebase_source : a66b6372ab2effeb6ecc53b6eb170c117a9ba1df
2017-08-28 20:53:05 -07:00
Simon Sapin 89556259fd Bug 1394792 - Add gtest microbenchmark for Servo_DeclarationBlock_GetPropertyValueById. r=emilio
MozReview-Commit-ID: 68RkTgnzdZj

--HG--
extra : rebase_source : 4a4ee4729d87c9cafcf245509abad8d5b0d836c0
2017-08-29 15:27:46 +02:00
Erica Wright 6bac72ab5a Bug 1379226 - Add telemetry probes to measure use of session restore button in tab bar. r=Gijs,liuche
MozReview-Commit-ID: 2u5CtatqBBT

--HG--
extra : rebase_source : db4d17bd5c57bfc5fb5bce4da8b7410152e44cc1
extra : source : 5f66dcf6ca5b0b7f0fa79fa564cecd6132aef783
2017-07-11 16:13:56 -04:00
Andrew Halberstadt 6cd4e21e4b Bug 1394391 - [tryselect] Split hg implementation of files_changed to a list, r=jhford
This fixes a regression from bug 1384593. I was going to add a test for this, but it would be
a better use of time to fix bug 1185599 and add a test there. We already have vcs tests in other
parts of the tree so consolidating them into a single module is likely easier than standing up
another one-off vcs tester.

MozReview-Commit-ID: E51Tb1qC9Wb

--HG--
extra : rebase_source : f957b1857d162fd229dcef0e87668dd270512cf7
2017-08-28 09:13:46 -04:00
Henrik Skupin c80a4170d0 Bug 1394377 - Increase default shutdown timeout to 120s. r=maja_zf
The background thread hang monitor will crash Firefox after 60s if
a shutdown is too slow. Debug builds are slower and as such Marionette
would force kill Firefox right before the hang monitor can kick in.

MozReview-Commit-ID: GGQFPEZ37dg

--HG--
extra : rebase_source : 99223b83c60be1abad1cc23d8a7c9c31a9f39379
2017-08-28 17:35:39 +02:00
Dão Gottwald 7f59f101a8 Bug 1394753 - Remove unstarred48.png. r=mak
MozReview-Commit-ID: EKUEQsOxy50

--HG--
extra : rebase_source : 9e014c80ba2bfae0563dc62af1cf49bca03ad209
2017-08-29 11:51:12 +02:00
Chris H-C 28c67cf8bd bug 1376600 - Remove registered(Keyed)Histograms r=Dexter
With the removal of the old addonHistograms, all histograms are now registered.
So removing registered(Keyed)Histograms should be straightforward?

Unfortunately not, as this was how we filtered data based on dataset
(opt-in/opt-out), so a little more fiddling was needed to get C++ to only
serialize dataset-appropriate data (instead of post-facto filtering it in JS).

MozReview-Commit-ID: HDplhmzmzJl

--HG--
extra : rebase_source : 9c38c97e39e3c4fb192288d751505e1f0f2a2c6d
2017-08-22 09:42:09 -04:00
Thomas Nguyen 1e3bbf38d4 Bug 1394056 - Should not use SOCIAL_ENGINEERING threat type on non-official builds r=francois
MozReview-Commit-ID: J0l4J2zzpWU

--HG--
extra : rebase_source : 9f2e0289d7655a73783ba7b3c87a271572541a2d
2017-08-28 11:35:45 +08:00
Kevin Chen 49e4dfee9c Bug 1392470 - Add wr support for nsDisplayButtonBoxShadowOuter; r=mattwoodrow
MozReview-Commit-ID: Az1w8HusRlX

--HG--
extra : rebase_source : 5c0e6c8eaf601e6996b31f28a2ab7ffbd1bc318a
2017-08-28 11:29:35 +08:00
Ian Bicking 27d708d46e Bug 1390985 - Export Screenshots 16.1.0 to Firefox r=kmag
--HG--
extra : rebase_source : b7f40301eded7052ad0abfe406a1d8177961f2f5
2017-08-25 14:16:22 -05:00
Fischer.json dc58eeba03 Bug 1372592 - Should not display non-persistent-storage sites which stores 0 byte in Preferences Site Data section, r=jaws
MozReview-Commit-ID: BelcT0Lpmba

--HG--
extra : rebase_source : d518efa78c2ad653bdd96bcd54b461a4be192ada
2017-08-24 17:33:06 +08:00
Samael Wang fbc657f448 Bug 1368327 - Do not assert aDocShell in Location, since it's actually possible to be nullptr. r=smaug
MozReview-Commit-ID: ArqkI8TUf8r

--HG--
extra : rebase_source : 9d6850bb6f27293a8e68ecc5c521e4ae769da455
2017-08-28 17:12:47 +08:00
Johan Lorenzo a716c447c0 Bug 1384482 - Rename android-api-15 into android-api-16 r=mtabara
MozReview-Commit-ID: 4j66pTZEJzq

--HG--
rename : mobile/android/config/mozconfigs/android-api-15-frontend/nightly => mobile/android/config/mozconfigs/android-api-16-frontend/nightly
rename : mobile/android/config/mozconfigs/android-api-15-gradle-dependencies/nightly => mobile/android/config/mozconfigs/android-api-16-gradle-dependencies/nightly
rename : mobile/android/config/mozconfigs/android-api-15-gradle/nightly => mobile/android/config/mozconfigs/android-api-16-gradle/nightly
rename : mobile/android/config/mozconfigs/android-api-15-gradle/nightly-artifact => mobile/android/config/mozconfigs/android-api-16-gradle/nightly-artifact
rename : mobile/android/config/mozconfigs/android-api-15/debug => mobile/android/config/mozconfigs/android-api-16/debug
rename : mobile/android/config/mozconfigs/android-api-15/debug-artifact => mobile/android/config/mozconfigs/android-api-16/debug-artifact
rename : mobile/android/config/mozconfigs/android-api-15/l10n-nightly => mobile/android/config/mozconfigs/android-api-16/l10n-nightly
rename : mobile/android/config/mozconfigs/android-api-15/nightly => mobile/android/config/mozconfigs/android-api-16/nightly
rename : mobile/android/config/mozconfigs/android-api-15/nightly-artifact => mobile/android/config/mozconfigs/android-api-16/nightly-artifact
rename : mobile/android/config/mozconfigs/android-api-15/nightly-old-id => mobile/android/config/mozconfigs/android-api-16/nightly-old-id
rename : testing/mozharness/configs/builds/releng_sub_android_configs/64_api_15.py => testing/mozharness/configs/builds/releng_sub_android_configs/64_api_16.py
rename : testing/mozharness/configs/builds/releng_sub_android_configs/64_api_15_artifact.py => testing/mozharness/configs/builds/releng_sub_android_configs/64_api_16_artifact.py
rename : testing/mozharness/configs/builds/releng_sub_android_configs/64_api_15_debug.py => testing/mozharness/configs/builds/releng_sub_android_configs/64_api_16_debug.py
rename : testing/mozharness/configs/builds/releng_sub_android_configs/64_api_15_debug_artifact.py => testing/mozharness/configs/builds/releng_sub_android_configs/64_api_16_debug_artifact.py
rename : testing/mozharness/configs/builds/releng_sub_android_configs/64_api_15_gradle.py => testing/mozharness/configs/builds/releng_sub_android_configs/64_api_16_gradle.py
rename : testing/mozharness/configs/builds/releng_sub_android_configs/64_api_15_gradle_artifact.py => testing/mozharness/configs/builds/releng_sub_android_configs/64_api_16_gradle_artifact.py
rename : testing/mozharness/configs/builds/releng_sub_android_configs/64_api_15_gradle_dependencies.py => testing/mozharness/configs/builds/releng_sub_android_configs/64_api_16_gradle_dependencies.py
rename : testing/mozharness/configs/builds/releng_sub_android_configs/64_api_15_old_id.py => testing/mozharness/configs/builds/releng_sub_android_configs/64_api_16_old_id.py
rename : testing/mozharness/configs/builds/releng_sub_android_configs/64_api_15_partner_sample1.py => testing/mozharness/configs/builds/releng_sub_android_configs/64_api_16_partner_sample1.py
rename : testing/mozharness/configs/single_locale/ash_android-api-15.py => testing/mozharness/configs/single_locale/ash_android-api-16.py
rename : testing/mozharness/configs/single_locale/date_android-api-15.py => testing/mozharness/configs/single_locale/date_android-api-16.py
rename : testing/mozharness/configs/single_locale/jamun_android-api-15.py => testing/mozharness/configs/single_locale/jamun_android-api-16.py
rename : testing/mozharness/configs/single_locale/mozilla-aurora_android-api-15.py => testing/mozharness/configs/single_locale/mozilla-aurora_android-api-16.py
rename : testing/mozharness/configs/single_locale/mozilla-beta_android-api-15.py => testing/mozharness/configs/single_locale/mozilla-beta_android-api-16.py
rename : testing/mozharness/configs/single_locale/mozilla-central_android-api-15.py => testing/mozharness/configs/single_locale/mozilla-central_android-api-16.py
rename : testing/mozharness/configs/single_locale/mozilla-release_android-api-15.py => testing/mozharness/configs/single_locale/mozilla-release_android-api-16.py
rename : testing/mozharness/configs/single_locale/staging_release_mozilla-beta_android_api_15.py => testing/mozharness/configs/single_locale/staging_release_mozilla-beta_android_api_16.py
rename : testing/mozharness/configs/single_locale/staging_release_mozilla-release_android_api_15.py => testing/mozharness/configs/single_locale/staging_release_mozilla-release_android_api_16.py
rename : testing/mozharness/configs/single_locale/tc_android-api-15.py => testing/mozharness/configs/single_locale/tc_android-api-16.py
rename : testing/mozharness/configs/single_locale/try_android-api-15.py => testing/mozharness/configs/single_locale/try_android-api-16.py
extra : rebase_source : d24bd3b0298e4fc21e9e8029e5f69a65fd1012f9
2017-08-09 16:18:15 +02:00
Emilio Cobos Álvarez 36399f2e36 servo: Merge #18292 - style: Prevent Animate to generate NaN float values (from emilio:animate-nan); r=nox
This should fix the assertions in https://bugzilla.mozilla.org/show_bug.cgi?id=1394558.

Source-Repo: https://github.com/servo/servo
Source-Revision: 1c4d0d2d5d3e34e62ad3585b96632f354dbbe208

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : f2941fbe8ccc27e2c55f4e0c8cf1d1f3db2b7c21
2017-08-29 05:18:33 -05:00
Henri Sivonen 30ebfb2e95 Bug 1385836 - Remove special cases obsoleted by "replacement" becoming a label of the replacement encoding. r=emk
MozReview-Commit-ID: 52uO6AVRHWX

--HG--
extra : rebase_source : de5bef4768724c68bc938f9456f906554b6290d1
2017-08-28 12:57:17 +03:00
Scott Wu 7efc20a641 Bug 1390828 - Fix addresses and credit cards list margin and height issues. r=lchang
MozReview-Commit-ID: 79nV5Gr5tdD

--HG--
extra : rebase_source : c0962d1c8c709c89073c41bc9c94bde9851a287b
2017-08-28 17:00:50 +08:00
Emilio Cobos Álvarez ff0fdb1a67 Bug 1394311: Use lowercase consistently for looking up the language group. r=manishearth
This should be the only callee affected, given
gfxPlatformFontList::GetFontPrefLangFor already uses case-insensitive string
comparison.

This makes it also consistent with the rest of the functions in the file, which
lowercase their inputs as well.

MozReview-Commit-ID: 4fNUBdpayHL

--HG--
extra : rebase_source : d669f5da2a1ed06f6348fc6b86eb379b514ddcf3
2017-08-28 09:06:11 +02:00
Tushar Saini (:shatur) 5d241fa804 Bug 1363004 - Implement browsingData.removeFormData webExtension API method on android. r=bsilverberg,Grisha
MozReview-Commit-ID: F0hqTCOCA23

--HG--
extra : rebase_source : d3cab16552d167ef8e598cc59b0595a85434a8e8
2017-06-19 20:53:00 +05:30
Manish Goregaokar 2e7d12d270 servo: Merge #18275 - Mark the CoordData traits as unsafe (from Manishearth:coorddata-unsafe); r=nox
r? @nox

Source-Repo: https://github.com/servo/servo
Source-Revision: bea11cadf9f24109b510c2b865be1c8e49db8926

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 73f5157e32174dea5f692b640a1320088bef4516
2017-08-29 03:57:16 -05:00
Kilik Kuo 216e7acf63 Bug 1393336 - Remove WaitForCDM state from MDSM. r=jwwang,jya
MozReview-Commit-ID: 7XofvBZTerH

--HG--
extra : rebase_source : 99a7c9459bf1c3f0fe8a27e57595d8bebf8ac9c3
2017-08-25 17:11:14 +08:00
Gabriele Svelto dfafcce6ea Bug 1380252 - Send only the crashing thread's stack in crash pings; r=ted.mielczarek
This modifies the minidump analyzer to only output the crashing thread's stack
when invoked. This reduces the raw size of the crash ping by 50% to 70%
depending on the program state when the crash occurred. The minidump-analyzer
can still produce the complete output when invoked with the '--full' option.

MozReview-Commit-ID: 8KaITWqfBKR

--HG--
extra : rebase_source : b71bd47ea1df4fa8fa3da013aef2612a073a42d2
2017-08-16 18:20:40 +02:00
Cosine 57789c39ee Bug 1390658 - Change getMoreDevtools menuitem to new collection r=pbro
The new collection is
https://addons.mozilla.org/firefox/collections/mozilla/framework-devtools/

This URL does not include locale (en-US) as opposed to a previous patch.

MozReview-Commit-ID: 6QdIPabjjmW

--HG--
extra : rebase_source : 10ed963e1ed52cd30169ed69ac783eadf7802045
2017-08-28 16:01:25 -04:00
gasolin 57762031eb Bug 1391659 - add test for refresh onboarding tour after hide all tours;r=rexboy,timdream
MozReview-Commit-ID: EMptFMQj0Ue

--HG--
extra : rebase_source : 41bcdc6cc4933595f17ddcaaebcd6bf95a16076e
2017-08-28 14:56:36 +08:00
gasolin 54c6df28a3 Bug 1391659 - correctly handle onboarding show/hide state after reload;r=rexboy,timdream
MozReview-Commit-ID: 5voukqbZrNO

--HG--
extra : rebase_source : f8817328c830609bcde129edcc6f19782048116f
2017-08-23 11:19:17 +08:00
Emilio Cobos Álvarez 7a255eed16 servo: Merge #18281 - style: Avoid scanning the longhand id twice in the fast path of PropertyDeclarationBlock::parse_common (from emilio:more-parse-dumbness); r=jdm
This makes the overhead of this function much lower according to `perf`.

And in general makes sense, removing overhead from the fast path.

Source-Repo: https://github.com/servo/servo
Source-Revision: bd9cf3ce984081244389ea8326babc7583f7f850

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 43c858e579b246068d7e3aa20489ae28d78d4d7e
2017-08-29 02:48:09 -05:00
Francesco Lodolo (:flod) e1fed48a32 Bug 1394740 - Update permissions string for Find API r=Pike
MozReview-Commit-ID: 2fP0OFqK0Fm

--HG--
extra : rebase_source : c8e41b5db506ccde975adb833bafb3ff5a6c3626
2017-08-29 10:25:38 +02:00
Chris Pearce ec0ac75c45 Bug 1394648 - Switch from nsInt{Point,Rect,Size} to gfx::Int{Point,Rect,Size} in dom/media. r=jwwang
The nsRect.h and nsSize.h headers typedef nsIntRect to gfx::IntRect etc, so the
rect/size objects we use will be the same, just under a different name.
However the old headers #include a bunch of things we don't use, so we if we
use the gfx objects directly we end up with a smaller include graph.

MozReview-Commit-ID: 7S4OSqBJK9m

--HG--
extra : rebase_source : 7cc48507356ce754e8395af957fa68a28711e00a
2017-08-29 14:00:33 +12:00
Chris Pearce 5bf7ddfc19 Bug 1394656 - Don't include nsCOMPtr.h in SharedBuffer.h as its unused. r=jwwang
Including nsCOMPtr also pulls in cycle collection stuff, which complicates the
include graph.

MozReview-Commit-ID: 7YqrkwrVfds

--HG--
extra : rebase_source : 32b865ec1e1ceecba2014d3cdfdd58a92b0ce8fb
2017-08-29 11:09:06 +12:00
Chris Pearce f15f9218c7 Bug 1394656 - Don't include nsAlgorithm.h in AudioSampleFormat.h. r=jwwang
There's nothing in nsAlgorithm.h that we're using in AudioSampleFormat.h,
though it does pull in the definition of NS_ASSERTION(), which we can
replace with an MFBT assertion to simplyfy the include graph.

MozReview-Commit-ID: EXOv2t0hKDc

--HG--
extra : rebase_source : 466afc8922dbe9c209a07073c4946c8b568fd2c1
2017-08-29 11:07:09 +12:00
Emilio Cobos Álvarez 90d0fcbc14 servo: Merge #18280 - style: Avoid dropping a parse error on the floor when checking whether a prop is enabled (from emilio:parse-dumbness); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 441ae08d2408329c5f26deacf64ca488686fd812

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 4e3e66adf55cb20f702b9b39f4e452286c63a11f
2017-08-29 01:34:57 -05:00
Alastor Wu 013f2364d5 Bug 1373888 - part8 : add log. r=cpearce
MozReview-Commit-ID: JyLXnA9J9Ic

--HG--
extra : rebase_source : 56545a7818f5c5ed3b11e31e7b5eb26ca214e19c
2017-08-29 15:28:28 +08:00
Alastor Wu c599481d78 Bug 1373888 - part7 : modify platform wakelocks. r=cpearce,snorp,spohl
* OSX
Make the lock of the type kIOPMAssertionTypeNoDisplaySleep and kIOPMAssertionTypeNoIdleSleep
as a singleton. Won't need to require an extra lock.

* Windows
Add |mRequireForDisplay| to ensure the "audio-playing" won't overwrite the previous
display requirement.

* Android
Add "audio-playing" and "video-playing", and make sure the audio-lock won't be cancel
when receiving "WakeLockDelegate.STATE_LOCKED_BACKGROUND".

MozReview-Commit-ID: 97oNX7H2qij

--HG--
extra : rebase_source : 24fa8b267ad97d668fa55462d1f61ef5c92b632f
2017-08-29 15:28:23 +08:00
Alastor Wu ac5a951f4a Bug 1373888 - part6 : only release the wakelock when video is paused. r=cpearce
Wakelock would automatically handle the lock/unlock by listening "hidden/visible", we
don't need to handle it in HTMLVideoElement.

MozReview-Commit-ID: AcOwR2nqm6L

--HG--
extra : rebase_source : 8f96b8cd908332be33ed3289dd288990da56c1c9
2017-08-29 15:25:57 +08:00
Alastor Wu 5aaf1c6ce7 Bug 1373888 - part5 : only request audio wake lock when it's audible. r=cpearce
No need to prevent sleeping for non-audible audio.

MozReview-Commit-ID: 6p3azSUWTU2

--HG--
extra : rebase_source : 89ff9d1753ac4a23269ec100920e18020ab5aafb
2017-08-29 15:25:44 +08:00
Alastor Wu 0be0a7c288 Bug 1373888 - part4 : request non-display wake lock for audio playing. r=cpearce,spohl
According to [1], kIOPMAssertionTypeNoDisplaySleep prevents display sleep and
kIOPMAssertionTypeNoIdleSleep prevents idle sleep.

We should use kIOPMAssertionTypeNoIdleSleep for audio playing, because it won't
need to block the display.

[1] https://developer.apple.com/library/content/qa/qa1340/_index.html

---

On Windows, ES_DISPLAY_REQUIRED forces display on, and ES_SYSTEM_REQUIRED forces
system on working state [2].

[2] https://msdn.microsoft.com/zh-tw/library/windows/desktop/aa373208(v=vs.85).aspx

MozReview-Commit-ID: Izs29PdzQOW

--HG--
extra : rebase_source : d0726131735b9cedf566f937204e585345b9d5e3
2017-08-29 15:25:34 +08:00
Alastor Wu 6a6ee2a0d7 Bug 1373888 - part3 : rename the topic of the wake lock. r=cpearce
For knowing the wake lock usage more clearly, we should use more specific topic name.

In OSX, you can use "$ pmset -g assertions" to check all the wakelock.
In Windows, using "$ powser -energy" to generate the energy report.

MozReview-Commit-ID: rAXnkxTvLc

--HG--
extra : rebase_source : 42ebf204673d3c913739f64c71c24af20d37c95d
2017-08-29 10:54:28 +08:00
Alastor Wu 71ad2fdb83 Bug 1373888 - part2 : remove the timer which was used for b2g. r=cpearce
The timer was added for the b2g issue, now we can remove it.

MozReview-Commit-ID: BNjIghImCzC

--HG--
extra : rebase_source : c5490d417b2d40619eb7092dfc21b19a99982a1c
2017-08-29 10:54:25 +08:00