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

521892 Коммитов

Автор SHA1 Сообщение Дата
Ting-Yu Lin 36df42df35 Bug 775624 Part 2 - Add bit-fields and methods for frame completion status. r=dholbert
MozReview-Commit-ID: B2DEaWYTtAE

--HG--
extra : rebase_source : a468e954a7f963b947e5ed1366d6f361ab361bad
2017-02-13 15:25:50 +08:00
Ting-Yu Lin 9c347956ae Bug 775624 Part 1 - Convert nsReflowStatus to a class mimicking uint32_t. r=dholbert
Lay down the foundation for this refactor work so that nsReflowStatus could
be converted to bit-fields piece by piece, and each patch can be built (but
may not pass tests).

This change causes some build warnings, due to some debug logs printing
nsReflowStatus as an integer, but that will be fixed by Part 24 later.

All the operators related to uint32_t will be removed at the end of this
patch series by Part 23.

The yoda conditions are swapped in order to build successfully.

DisplayReflowExit() incorrectly declares aStatus as uint32_t. Change it to
const reference because nsReflowStatus is now a class.

MozReview-Commit-ID: 5DOpaP85ywJ

--HG--
extra : rebase_source : 53ca0750b5f764fcbf7ba2d00c9ec606aed704c2
2017-02-10 17:29:10 +08:00
Alastor Wu ea63f2e354 Bug 1192818 - part4 : only mute media element if there is alive track. r=jwwang
If we don't have any alive track in MediaTrackList, we don't need to mute
MediaElement.

MozReview-Commit-ID: 9vY692O7N0e

--HG--
extra : rebase_source : 3abd2fb360385b1975dbffd9dcaf4e395b1afda1
2017-02-23 14:16:44 +08:00
Alastor Wu ff6bcbcbb8 Bug 1192818 - part3 : modify test. r=baku
MozReview-Commit-ID: HNXcbFbYfor

--HG--
extra : rebase_source : 3033f7c3827acbac33d772e087bebece3487e118
2017-02-23 14:15:49 +08:00
Alastor Wu 606eb319fa Bug 1192818 - part2 : only dispatch DOMAudioPlaybackStarted when there is audible sound. r=baku
The DOMAudioPlaybackStarted event would affect the tabbrowser's attribute,
"soundPlaying", and this attribute should indicate whether the tab is audible or not. However, in present codebase, even the tab has "soundplaying", it doens't mean
the tab has audible sound, you need to check extra attribute, "muted".

After applying this patch, tabbrowser can only own one of the attributes ("soundplaying"
or "mute"). These attributes won't exist at the same time, so we can easily know
whether the tab is audible by checking "soundPlaying".

Let's see an example,
step1. playing a playing audio
  - tab owns "soundPlaying"
step2. mute the tab
  - tab owns "muted"
step3. stop audio
  - tab owns "muted"
step4. replay the audio
  - tab owns "muted"
step5. unmute the tab
  - tab owns "soundPlaying"
step6. stop audio
  - tab owns ""

MozReview-Commit-ID: EEKEbAVzsVm

--HG--
extra : rebase_source : 823d501e9162ae8b611f2e97dd763c1eec16c2cf
2017-02-23 14:15:47 +08:00
Alastor Wu c268fbdbaf Bug 1192818 - part1 : dispatch DOMAudioPlaybackStopped when mute the tab. r=baku
The root cause of the intermittent fail is because "DOMAudioPlaybackStopped" has no directly relationship with browser.mute()/unmute().

In [1], the "DOMAudioPlaybackStopped" is caused by audio stop playing, not by calling the browser.mute(). If the audio stops playing before calling the wait_for_event(), the test would be time-out. I guess the bug 1302280 is also caused by same reason.

So this patch would do two thinngs,
1. dispatch "DOMAudioPlaybackStopped" when we mute tab
2. loop the audio in test file, to make sure the "DOMAudioPlaybackStopped" is
   dispatched when muting the audio, not the file ended.
[1] https://goo.gl/ymUv8P

MozReview-Commit-ID: 5RnyBRE73lQ

--HG--
extra : rebase_source : 40ad97cbf84da6f5d013d832cb12e3ed88473dfd
2017-02-23 14:15:45 +08:00
Alastor Wu 1cbd80653d Bug 1326114 - only do duration checking for active-media. r=sebastian
Since we don't want to show the media control for the short sound, so we added the duration checking.
And this checking only needs to be run when the media is active, we don't need to check the inactive media.

MozReview-Commit-ID: AaVGi77nXJ1

--HG--
extra : rebase_source : c565fe64ec4030f0519eb0a8cfe493e95bae4fe4
2017-02-23 12:13:49 +08:00
Phil Ringnalda 68316b419c Backed out 2 changesets (bug 1303060) for Windows static-analysis bustage
CLOSED TREE

Backed out changeset 729a1b8c7e47 (bug 1303060)
Backed out changeset 604605ca738c (bug 1303060)
2017-02-22 21:55:15 -08:00
Aaron Klotz f3b557f70c Bug 1303060: Additions to ipc/mscom for out-of-process components; r=jimm
MozReview-Commit-ID: IYjONGbBraG

--HG--
extra : rebase_source : a6eb90db7a9c21b91b9e763a15a9a661d41c5e77
2017-02-17 16:20:51 -07:00
Aaron Klotz af5bd498da Bug 1303060: ipc/mscom changes for handler and payload support; r=jimm
MozReview-Commit-ID: 13NFW1pgxix

--HG--
extra : rebase_source : 18cc11d4c1dc62bc0ee428608f6cb57e32c4d0af
2017-02-17 17:30:03 -07:00
Tom Klein 4f68f40cfe Bug 1339066 - Don't add a private tab opened while viewing the normal-mode tab strip. r=sebastian
MozReview-Commit-ID: AZEZq4boaJW

--HG--
extra : rebase_source : de6fad976ce5227af441a0c6386e36658bfe83c8
2017-02-16 07:25:54 -06:00
Phil Ringnalda 806e31d5b2 Backed out changeset 437ff32b12ea (bug 1340446) for Mac and Windows build bustage
CLOSED TREE
2017-02-22 20:27:17 -08:00
Alastor Wu aae0c127cd Bug 1340191 - reverse the checking condition. r=sebastian
Since BBC website puts their audio in another iframe, we can't get the media
element to check its duration, so we always return false.

The ideal way to fix it is to get every iframe and check its element, but I think
it's not very easy to do considering the flexibility of using iframe and the cost time.

First, if we want to get the information inside iframe, we need to listen the
onload event, but it's async operation. If there are lots iframe, we need to spend
lots time to wait every iframe. The worst situation is we got the nested iframe,
it would need lots time and effect to wait every iframe loaded and get the element we want.

Therefore, I would prefer the workaround which is to reverse the checking condition,
that is we only check duration for the main window.

MozReview-Commit-ID: F93BjbzRMXO

--HG--
extra : rebase_source : 9409649db241b466967ab1e7f467e177c06c728f
2017-02-22 15:51:08 +08:00
Andrew McCreight 380f5a71da Bug 1341809 - Fix unified build bustage in GroupedHistory.{h,cpp}. r=Ehsan
MozReview-Commit-ID: JCZdiiHM41e

--HG--
extra : rebase_source : 8616d9d3f6497ad38ced0eca40b581f0e11cdc75
2017-02-22 13:32:06 -08:00
Alfredo.Yang 698b618177 Bug 1340446 - check the rounding error smaller or euqal to one. r=kinetik
MozReview-Commit-ID: 4JvuY1yHGRk

--HG--
extra : rebase_source : 7274abd9a3e9fba1d7a3daa15fc33b054a6ddded
2017-02-22 11:38:16 +08:00
Shane Caraveo a4ed9eb735 Bug 1313459 support CUI areas for browserAction, r=aswan
MozReview-Commit-ID: IoPOCv6M0qy

--HG--
extra : rebase_source : b032c4e8d1f9fe3cdc79ea9216540b7de51a572a
2017-02-22 18:47:16 -08:00
Alfredo.Yang e4420d1268 Bug 1331330 - compare rust parser and stagefright sample table. r=kinetik
MozReview-Commit-ID: G6ZqSNNo00J

--HG--
extra : rebase_source : 858fe82da9f92417c843e2292519a58afa2f82e2
2017-02-21 15:30:03 +08:00
Josh Matthews 814d03f8f0 servo: Merge #14962 - Remove network requests from image cache thread (from jdm:image_script_load); r=Ms2ger,glennw,emilio
The design of initiating network requests from the image cache thread was simple, but it makes it difficult to implement image loading that conforms to the HTML specification. These changes make the implementation of HTMLImageElement responsible for network requests for `<img>` elements, and CSS-based images (background-image, bullets, etc.) are requested by the script thread to ensure that the layout thread does not attempt to retain unsafe pointers to DOM nodes during asynchronous operations.

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

Source-Repo: https://github.com/servo/servo
Source-Revision: 854d720b21dda68034233a25385c4f2564a4a2d5

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 845215025ea28e20cf0372075841172a4ed5206c
2017-02-22 17:50:48 -08:00
Boris Zbarsky 39855cf6b2 Bug 1341927. Fix the stylo reftest setup to set prefs via the normal mechanism and hence not run afoul of the reftest harness canvas caching. r=heycam
MozReview-Commit-ID: 9XlVwTV964w

--HG--
extra : rebase_source : 70262f7d6863cdee769700d449f8e2183af7225d
2017-02-22 19:30:57 -05:00
cku 0c4924ad08 Bug 1336480 - Part 2. Test case. r=mstange
MozReview-Commit-ID: K4EZOOzd1ND

--HG--
extra : rebase_source : d00b8c1e80c018e33dbf811c71f1a65bf5f4683e
2017-02-20 18:04:44 +08:00
cku dc40936bd9 Bug 1336480 - Part 1. Apply suface limitation in nsFilterInstance::ComputeNeededBoxes. r=mstange
There is no need to limit output space bounds in
nsFilterInstance::OutputFilterSpaceBounds(), it's just far too early.
MozReview-Commit-ID: 9i9huKDGxq6

--HG--
extra : rebase_source : 3f7a16fe27f661e79087c6a302235b01f65169d5
2017-02-21 00:08:38 +08:00
Xidorn Quan da079e7d01 servo: Merge #15682 - Simplify defining arc ffi types (from upsuper:arc-types); r=Manishearth
r? @Manishearth

I don't have a good sense for creating syntax... so if you have any suggestion for the syntax of `impl_arc_ffi` macro, it would be appreciated.

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 5be76e20de735b8762a89b5e3ef88ded550ad81a
2017-02-22 15:58:35 -08:00
David Keeler 1cb166d7e9 bug 1341734 - remove the disableSHA1rollout addon r=jcj
MozReview-Commit-ID: 5PUT6csFK5H

--HG--
extra : rebase_source : 8e7995d65421b0f2f1ff22ba83d4504a0fe97b4c
2017-02-22 13:37:12 -08:00
Brian Birtles 5e50069015 Bug 1026804 - Turn on dom.event.highrestimestamp.enabled by default; r=smaug
MozReview-Commit-ID: HDvzwTbERci

--HG--
extra : rebase_source : 3cdb22268a905de36900d64e77440dc80875ffce
2017-02-21 13:50:43 +09:00
Gerald Squelart c76a0fb731 Bug 1341452 - Write nsresult name in MediaResult::Description() - r=jya
Also only show the separator between code and message if there actually is a
message.

MozReview-Commit-ID: 6Cb4YnFi2fT

--HG--
extra : rebase_source : 98183484972fa1c910f0e5e7fe4d46c763e97eb8
2017-02-21 16:30:44 +11:00
Gerald Squelart dbb8cb16a7 Bug 1341452 - Use MSC's __FUNCSIG__ or gcc/clang's __PRETTY_FUNCTION__ in MediaResult's RESULT_DETAIL - r=jya
Since these are used in diagnostic messages intended for developers, more
detailed information should help with distinguishing some issues. E.g.:
Before: "Init"
After: "virtual RefPtr<MP4Demuxer::InitPromise> mozilla::MP4Demuxer::Init()"

MozReview-Commit-ID: TgNNn66Ilj

--HG--
extra : rebase_source : 572af3a82d046bb790c4b54e13bc45451229c9e0
2017-02-21 14:44:40 +11:00
Wes Kocher 72ecfb5fd6 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 7gVISUXnm2Q
2017-02-22 15:07:12 -08:00
Wes Kocher b7294d3167 Merge inbound to central, a=merge
MozReview-Commit-ID: 2R3yE5OIznC
2017-02-22 15:01:04 -08:00
Wes Kocher 5a7f5284cd Merge autoland to central, a=merge
MozReview-Commit-ID: 5l8P3DzMNXz
2017-02-22 14:55:21 -08:00
Tom Schuster 20d9359561 Bug 1341692 - Enable passing %TypedArray%.prototype.set tests. r=anba 2017-02-22 18:10:29 +01:00
Kai Engert fb7e5cbb5d Bug 1324096, PSM should check the roots module for a flag, that allows to distinguish between Mozilla-CA-Policy CAs and other CAs, r=dkeeler 2017-02-22 18:02:48 +01:00
Daniel Holbert 2bf2cfcd23 (no bug) Tweak some source files in layout to have correct number of newline characters at the end (exactly 1). (no review, whitespace-only, DONTBUILD)
MozReview-Commit-ID: 1hEEkCMy0pL
2017-02-22 08:58:50 -08:00
ffxbld b1044cf7c2 No bug, Automated HPKP preload list update from host bld-linux64-spot-038 - a=hpkp-update 2017-02-22 08:08:41 -08:00
ffxbld 138dd68d33 No bug, Automated HSTS preload list update from host bld-linux64-spot-038 - a=hsts-update 2017-02-22 08:08:39 -08:00
Carsten "Tomcat" Book 197fbb6eb9 Backed out changeset d8122277e9fd (bug 1341214) for causing on m-c problems in vp tc tasks 2017-02-22 15:33:42 +01:00
Carsten "Tomcat" Book 42bc96ae3d Backed out changeset 5ffd6c7264ce (bug 1341214) 2017-02-22 15:33:17 +01:00
Carsten "Tomcat" Book 9d982b9508 merge mozilla-inbound to mozilla-central a=merge 2017-02-22 14:33:38 +01:00
Sebastian Hengst c171511b3c Backed out changeset a6267555a244 (bug 1341218) for various test failures, e.g. xpcshell test dom/push/test/xpcshell/test_service_parent.js. r=backout 2017-02-22 11:21:37 +01:00
Sebastian Hengst 0ea43f8182 Backed out changeset f0886e3477a5 (bug 1341250) 2017-02-22 11:20:46 +01:00
Iris Hsiao 7a962a70f2 Backed out changeset 2d21596af124 (bug 1337229) for developer's request 2017-02-22 17:40:13 +08:00
Iris Hsiao eb16544eaf Backed out changeset 3cf38f4d7395 (bug 1322317) for stylo test failure 2017-02-22 17:31:04 +08:00
Jonathan Kew 2fd356c331 Bug 1295299 - Cherry-pick harfbuzz fix 44f7d6ecde9bf7427a05cbe73ed5d668b8a72b2a. r=jrmuizel 2017-02-22 09:17:50 +00:00
Sebastian Hengst 4ad1529674 Backed out changeset 5739a7f790f2 (bug 1333899) for failing reftest svg-image-datauri-1.html on Linux opt and pgo. r=backout 2017-02-22 10:00:50 +01:00
Sebastian Hengst 10a6e4f120 Backed out changeset f82fd05e7699 (bug 1333899) 2017-02-22 09:59:57 +01:00
Sebastian Hengst eba24aae1e Backed out changeset fbb7cc8d04b9 (bug 1333899) 2017-02-22 09:59:53 +01:00
Sebastian Hengst 7bb022c060 Backed out changeset c1544abd34c2 (bug 1340903) for frequent failure of docshell/test/unit/test_setUsePrivateBrowsing.js on Linux opt and pgo. r=backout 2017-02-22 09:59:29 +01:00
Andrea Marchesini c83982c31f Bug 1341250 - Moving nsExpandedPrincipal in separate files, r=qdot
--HG--
rename : caps/nsPrincipal.cpp => caps/nsExpandedPrincipal.cpp
rename : caps/nsPrincipal.h => caps/nsExpandedPrincipal.h
2017-02-22 10:01:43 +01:00
Andrea Marchesini 0626b9d52e Bug 1341218 - nsNullPrincipal should consider its URI in ::Write/::Read, r=qdot 2017-02-22 10:01:43 +01:00
Alessio Placitelli f300032c35 Bug 1334469 - Make sure Keyed Histogram APIs don't allow empty keys. r=gfritzsche
iff --git a/toolkit/components/telemetry/docs/collection/histograms.rst b/toolkit/components/telemetry/docs/collection/histograms.rst

MozReview-Commit-ID: EkiP42ZVpqz
2017-02-21 06:03:00 +01:00
Sebastian Hengst 918b5fdc92 No bug - Fix typo in localization comment for positionAndDuration.nameFormat. r=me DONTBUILD 2017-02-22 09:46:10 +01:00