Commit Graph

501558 Commits

Author SHA1 Message Date
Sylvestre Ledru
97d06d3189 Bug 1318004 - Replace string literals containing escaped characters with raw string literals. r=Ehsan
MozReview-Commit-ID: KOk13e23Py

--HG--
extra : rebase_source : 7e9794dd3b44a1e2f3dcdd4ffe998c2536e307a6
2016-11-16 17:07:03 +01:00
Sylvestre Ledru
2901996124 Bug 1318004 - Replace default bodies of special member functions with = default; r=Ehsan
MozReview-Commit-ID: 33AOhtFrXS8

--HG--
extra : rebase_source : 6541778fe7d44d9b54441108a03d72f3cc8b91ad
2016-11-16 18:26:14 +01:00
Ting-Yu Lin
cd7d086eb1 Bug 1317588 Part 5 - Change Side's operator++ from postfix to prefix. r=mats
The postfix operator++ was actually incorrectly implemented as a prefix
version. Since it's only used in NS_FOR_CSS_SIDES, let's changed it to
prefix version.

MozReview-Commit-ID: GbdB2ZC9KyW

--HG--
extra : rebase_source : a46deea148e07609ca32e6836738de7296090f95
2016-11-23 16:55:04 +08:00
Ting-Yu Lin
2705923138 Bug 1317588 Part 4 - Remove side bits defined in BorderConsts.h r=mats
Those bits are already defined as enum in gfx/2d/Types.h.

MozReview-Commit-ID: 8E81lW9WnAg

--HG--
extra : rebase_source : 959d723a7a223b08a4f0935f4cc4ff894cae1260
2016-11-21 11:56:35 +08:00
Ting-Yu Lin
754b6c9659 Bug 1317588 Part 3 - Remove #define NS_SIDE_TOP/RIGHT/BOTTOM/LEFT. r=mats
This patch was written with the help of the following script. Also, manually
add mozilla qualifier to the enum values in nsStyleCoord.h, gfxRect.h, and
Types.h to make it build.

function rename() {
find .\
     -type f\
     ! -path "./obj*"\
     ! -path "./.git"\
     ! -path "./.hg"\
     \( -name "*.cpp" -or\
        -name "*.h" \)\
        -exec sed -i -e "s/$1/$2/g" "{}" \;
}

rename "NS_SIDE_TOP" "eSideTop"
rename "NS_SIDE_RIGHT" "eSideRight"
rename "NS_SIDE_BOTTOM" "eSideBottom"
rename "NS_SIDE_LEFT" "eSideLeft"

MozReview-Commit-ID: 9T0ORsqM6nP

--HG--
extra : rebase_source : 884ad96104c6e9cf6c8b3145d2d3a071ecccfe6a
2016-11-18 18:12:25 +08:00
Ting-Yu Lin
c9cfd878cb Bug 1317588 Part 2 - Remove mozilla::css::Side typedef. r=mats
This patch is written with the help of the following script.

function rename() {
find .\
     -type f\
     ! -path "./obj*"\
     ! -path "./.git"\
     ! -path "./.hg"\
     \( -name "*.cpp" -or\
        -name "*.h" \)\
        -exec sed -i -e "s/$1/$2/g" "{}" \;
}

rename "css::Side" "Side"

MozReview-Commit-ID: DPV6vivpPUp

--HG--
extra : rebase_source : 9c4f66dc9d2b26c89a4517fba4ff9c5db413411b
2016-11-18 16:28:38 +08:00
Ting-Yu Lin
3a4c674931 Bug 1317588 Part 1 - Move NS_FOR_CSS_SIDES and operator++ to gfx/2d/Types.h. r=mats
Make them live with the definition of enum Side.

MozReview-Commit-ID: 5uJPxFPOj79

--HG--
extra : rebase_source : 566f1a680ae85b61b1af0f643f59a4d1ac7472d3
2016-11-18 15:25:33 +08:00
cku
fd94212fce Bug 1319667 - Part 3. Test case for mask longhands on svg element. r=mstange
MozReview-Commit-ID: HF1NiNPfzQs

--HG--
extra : rebase_source : 16ad8f6db362520c7e6ecf949d8a7ed99877b3d5
2016-11-23 14:02:07 +08:00
cku
5ee6e3966a Bug 1319667 - Part 2. Move DrawResult from function parameter of PaintClipMask to the return value. r=mstange
Enlight by "Bug 1314536 - Part 1"

MozReview-Commit-ID: Iogdh7LWsWa

--HG--
extra : rebase_source : aacc88ac39551aeb5ffbb84a11580a0d2eec73cc
2016-11-24 00:08:13 +08:00
cku
6a4c5689f0 Bug 1319667 - Part 1. Allow mask longhands apply to SVG elements. r=mstange
Originally, we use the follwoing statement to determine whether generate mask
for an SVG element:
aUsage.shouldGenerateMaskLayer =
  maskFrames.Length() == 1 && maskFrames[0];

maskFrames[0] is not null only if that mask resource is an SVG-mask. That means
we will not generate mask for image mask to any SVG one.

MozReview-Commit-ID: 4QiifC6J0UR

--HG--
extra : rebase_source : aa90599fc4955c0eb6e5d9d10c168b8643c32e03
2016-11-23 13:51:36 +08:00
Kilik Kuo
de713f4c77 Bug 1319686 - Remove the use of AutoNoJSAPI from HTMLMediaElement::NotifyAudioChannelAgent r=jwwang
MozReview-Commit-ID: FMKloJPpT93

--HG--
extra : rebase_source : 8796cdb9085882c319234595d5fa9aef67ba6532
2016-11-23 18:16:31 +08:00
Daosheng Mu
ab1fbc2684 Bug 1318586 - Adjust OpenVR controller button mapping to be consistency; r=kip
MozReview-Commit-ID: 6ODcMjqYQNP

--HG--
extra : rebase_source : 71a34032d866f373eac2396e80f3ed4ce12f963a
2016-11-18 16:36:51 +08:00
Stone Shih
dc05661157 Bug 1301708 - nsWindow::DealWithPopup() should do nothing at receiving WM_ACTIVATE for a popup window and its wParam includes WA_CLICKACTIVATE. r=masayuki
When the first time user clicks download panel popup to hide the drop marker popup, Windows fires WA_ACTIVATE with wParam includes WA_CLICKACTIVATE to the download panel. In that case the popupWindow is the drop marker. We shouldn't roll up popups by handling WA_ACTIVATE since we'll handle the rollup behavior with WM_LBUTTONDOWN message.

MozReview-Commit-ID: 43jCgdBjjUN

--HG--
extra : rebase_source : 371de468252e7716e2ffe30520939650f76a4222
2016-11-10 16:09:25 +08:00
maliu
1bf966a5c8 Bug 1319302 - RTL support for Firefox for Android, r=sebastian
MozReview-Commit-ID: bKzW07YBDy

--HG--
extra : rebase_source : 591b8f98a7a287dbf2b7748a97211c81a3ac11aa
2016-11-11 16:10:21 +08:00
Boris Chiou
f045a91867 Bug 1317178 - Pass the property name to Servo_DeclarationBlock_SerializeOneValue. r=birtles
In order to use single_value_to_css() in
Servo_DeclarationBlock_SerializeOneValue(), we need to pass the property name
and a flag for custom properties.

MozReview-Commit-ID: 5HfI2qOmPwP

--HG--
extra : rebase_source : 968468b3c9313c4ec3007ee9883075c8fc4ab769
2016-11-22 19:18:18 +08:00
JW Wang
8565b864ed Bug 1319790 - add assertions to detect if MediaDecoder is deleted without Shutdown() being called. r=kaku
Also call mResourceCallback->Disconnect() in the destructor in case Shutdown() is not called to avoid dangling pointer.

MozReview-Commit-ID: 1qV4m8nWlGq

--HG--
extra : rebase_source : f40f77d64ccaace921625067ff8c51e322eec1b9
2016-11-24 11:59:18 +08:00
JW Wang
b89b9e675b Bug 1319357 - clean up media elements when media tests are done. r=jya
MozReview-Commit-ID: GHJAwxR50AG

--HG--
extra : rebase_source : bdb6d045fddf65d18779b056baa496dc1c71e756
extra : source : 691ffaaf98a3796c92bab0e58eb56d0212601acc
2016-11-22 17:02:08 +08:00
JW Wang
109db02de3 Bug 1319698 - Remove MediaDecoderReader::SetIdle(). r=jya
MozReview-Commit-ID: ArGqum1MSIO

--HG--
extra : rebase_source : fddf43d270607c1ed4bab938b9d8b5f83dd0f8fb
2016-11-23 17:30:31 +08:00
Chris Pearce
27f8f13960 Bug 1316215 - Merge SelectGMP and LaunchGMP into one synchronous IPC operation. r=gerald
We were seeing almost permaorange failures in the WebRTC H.264/GMP tests
due to the GMP being shutdown in the parent process in between the
content process performing an OOP select operation and then performing
an OOP launch operation.

That is, in GeckoMediaPluginServiceChild::GetContentParent() in between
the SendSelectGMP completing and the SendLaunchGMP completing, the GMP
would shutdown and so when the launch operation ran in the main process
it would fail.

The select and launch are seperate operations so that the crash handler
can be reported to the content process and an association can be made
in the content process between the plugin ID and the crash helper before
we try to launch the GMP. This is so that if the GMP crashes on startup,
we're ready to handle the crash.

However it turns out that if the GMP crashes on startup, the crash report
message comes in after another round of the event/IPC message loop. So we
actually do have time in the content process to connect the crash helper
after the launch fails.

So in order to fix the problem of the GMP shutting down in between select
and launch, we can partially revert the changes I made in Bug 1267918 to
merge selecting and launching GMPs back into a single operation.


MozReview-Commit-ID: 5n4T1Gqlvr3

--HG--
extra : rebase_source : 6e6892a5e32a485b5bfc2f93bddb2d2fe5a422bd
2016-11-22 14:17:59 +13:00
Chris Pearce
39f5dc88d5 Bug 1316215 - Make GMPParent::IsUsed() take into account whether there are pending GetContentParent calls. r=gerald
In a similar vein to the previous patch, while we're waiting on a
GetContentParent promise to resolve, we don't want the GMPParent
to shutdown. So make IsUsed() check whether we're waiting on a
GetContentParent promise to resolve, so we don't pull the rug out
from under any code waiting to get a content parent to bridge a
GMP.

MozReview-Commit-ID: 8cTCuXLXMsK

--HG--
extra : rebase_source : 8cc04d57ea1ef4e48c7ff088dbb12eabe4b3b223
extra : source : f79a51d9bd193024f7359ba6ff75076b15d15faf
2016-11-18 12:37:14 +13:00
Chris Pearce
4fa2a5c829 Bug 1316215 - Block GMPContentParent close while a GMPService::GetContentParent is being processed. r=gerald
When GMPService::GetContentParent returns a MozPromise, we end up failing in
test_peerConnection_scaleResolution.html with e10s enabled because we Close()
the GMPContentParent twice. The test causes two GMPVideoEncoderParents to
be created. When the number of IPDL actors on the GMPContentParent reach 0,
we close the IPC connection. With GetContentParent() returning a MozPromise,
it's more async, and so we can end up requesting the content parent in order
to create the second GMPVideoEncoderParent, but while we're waiting for
the promise to resolve the previous GMPVideoEncoderParent is destroyed and
the GMPContentParent closes its IPC connection. Then the GetContentParent
promise resolves, and that fails to operate correctly since it's closed its
IPC connection.

My solution here is to add a "blocker" that prevents the GMPContentParent from
being shutdown while we're waiting for the GetContentParent promise to resolve.

MozReview-Commit-ID: HxBkFkmv0tV

--HG--
extra : rebase_source : 59aa7bcfe8b8f44274d136d6147a946542a64fff
extra : source : 59ab10349b58b0fbe13dca9312ec82332f7c3dbe
2016-11-16 10:59:08 +13:00
Chris Pearce
c93e08bf59 Bug 1316215 - Promisify GMPService GetGMPContentParent and GetServiceChild. r=gerald
MozReview-Commit-ID: 5ydGmZWGzWG

--HG--
extra : rebase_source : bc61628e97243db55b68d1efc93e7b55f32628e5
extra : intermediate-source : 7ca4bd360797b8207d26e46192400307cf046593
extra : source : eda96f88317dbf0c696aeaab8993bf2f030517c0
2016-11-09 15:52:22 +13:00
Xidorn Quan
934b500aa8 Bug 1319994 - Use NS_ERROR for not-implemented CSS rules. r=heycam
MozReview-Commit-ID: 9E1ThQuqBf1

--HG--
extra : rebase_source : be254d83da1f1969f26b5e1f92a6df72323c7202
2016-11-24 16:28:28 +11:00
Iris Hsiao
f2a7e74795 Backed out changeset b3574d03261b (bug 1319286) for GTest Assertion failures 2016-11-24 13:26:39 +08:00
Henry Chang
4c00c22835 Bug 1319286 - Cache nsIUrlClassifierDBService.getTables result until next update. r=francois.
MozReview-Commit-ID: ItjTQNzCVED

--HG--
extra : rebase_source : b652adb6fe696d6c25c423c8c7456247983d8050
extra : source : 3cb85811b61f8d16e2d5604af838d9cd982a5a4c
2016-11-22 10:39:58 +08:00
Alastor Wu
ba429ab233 Bug 1301055 - part4 : special error dispatching stragedy for Fennec. r=jwwang
On Fennec, we would use external app (Android view) to play the media whih is
unsupported by gecko. We implement some special logic in error sink.

(1) dispatch "OpenMediaWithExternalApp" event
we use this event to start the android video player

(2) doesn't dispatch "error" event
some JS players won't let user to trigger play() again after receving the "error".
So we don't dispatch that event if we want to play the unsupported media more than once.

MozReview-Commit-ID: 7fZK5hdvaOG

--HG--
extra : rebase_source : 929db331c22e31a74f76dfa89a99a8adac65d0f6
2016-11-24 10:24:08 +08:00
Alastor Wu
5d4571103c Bug 1301055 - part3 : modify test prefs. r=jwwang
On fennec we have the special workaround that is doesn't dispatch the "error" event when the error is
"MEDIA_ERR_SRC_NOT_SUPPORTED" because we will use an external app to open it.

But we don't want this behavior affect the tests we already have, so close the pref.

MozReview-Commit-ID: 9aoy1vnekvY

--HG--
extra : rebase_source : 9ac045b7595eadd36039bc6f42b32e4d3eac421b
2016-11-24 10:24:06 +08:00
Alastor Wu
a455141cb1 Bug 1301055 - part2 : create a error sink to handle media element's error related event. r=bkelly,jwwang
Error sink would be response for the error handling, we could write different
error dispatching stragedies for different situation. eg. if we can play
unsupported type media with external app, we won't dispatch the "error" event on fennec.

MozReview-Commit-ID: Lm4x9ksspAY

--HG--
extra : rebase_source : 05331714425ea111d21f06fc03abfc1b016654ca
2016-11-24 10:24:04 +08:00
Alastor Wu
cfe81f3b38 Bug 1301055 - part1 : allow to replay the same video again. r=snorp
MozReview-Commit-ID: LNz6vEeMZOL

--HG--
extra : rebase_source : f2529c77ed453a6ba14d6df6b3d0f4d504af2a08
2016-11-24 10:24:02 +08:00
Ting-Yu Lin
62055a1981 Bug 1316549 Part 4 - Use logical names for ComputeEllipseLineInterceptDiff(). r=dbaron
This patch is just renames. No logic change for the function.

MozReview-Commit-ID: K7w0YL3G3gu

--HG--
extra : rebase_source : d72ecdcb4d4455f4950c8673c81fbfc7c1b4f54c
2016-11-18 13:54:09 +08:00
Ting-Yu Lin
ece375de5b Bug 1316549 Part 3 - Fix <shape-box> with border-radius in writing-mode. r=dbaron
The tests cases are designed based on the integer solution to the ellipse
equation (x/a)^2 + (y/b)^2 = 1, where x=36, y=32, a=60, b=40.

MozReview-Commit-ID: De2fXcb6ypP

--HG--
extra : rebase_source : a64f490ff41c020b84025266c0c255d93a158eea
2016-11-14 18:11:45 +08:00
Ting-Yu Lin
111246d956 Bug 1316549 Part 2 - Fix assertion failure: aRadiusY > 0 in FloatInfo::XInterceptAtY(). r=dbaron
We need to consider the case when only one of the four corner radius is
specified. The two reftests are added to test 'border-top-right-radius' and
'border-bottom-right-radius', respectively.

MozReview-Commit-ID: De2fXcb6ypP

--HG--
extra : rebase_source : 51da04a7a7d60d580b46d9ac8ed4bfd7e9666766
2016-11-14 18:11:45 +08:00
Ting-Yu Lin
c7596e7d85 Bug 1316549 Part 1 - Fix LogicalSideForLineRelativeDir() for eLineRelativeDirLeft/Right. r=jfkthame
According to the spec, 6.4. Abstract-to-Physical Mappings,
line-left/line-right are equal to inline-start/inline-end when the direction
is the same. So we should use IsBlockLTR() instead of IsLineInverted().

https://drafts.csswg.org/css-writing-modes-3/#logical-to-physical

MozReview-Commit-ID: 7onE0SuHtdj

--HG--
extra : rebase_source : df0083ed7e28469a2343a8607840585e93502b80
2016-11-17 14:10:55 +08:00
peter chang
b96fe0d665 Bug 1317083 - Try to wait for IPDL connection before texture client creation, r=nical
MozReview-Commit-ID: JLpubGsE0eu

--HG--
extra : rebase_source : 713dc0ece6fa22ec6b5a283836de336b411b7e2a
2016-11-15 17:50:50 +08:00
Astley Chen
438b9ab220 Bug 1270406 - Remove :-moz-dir support. r=xidorn
MozReview-Commit-ID: HRBj6YF4hZS

--HG--
extra : rebase_source : 6375c14e9f2a79d3d84c8e929569fc818b137762
2016-11-22 23:05:18 +08:00
Astley Chen
33ca2973e8 Bug 1270406 - Unprefix pseudo-class dir in DevTool resources. r=pbro
MozReview-Commit-ID: Dw5DhErHkY8

--HG--
extra : rebase_source : 433e1e764025578074d4fff132233b880d405b20
2016-11-22 23:05:18 +08:00
Astley Chen
7300c4565f Bug 1270406 - Unprefix pseudo-class dir in browser resources. r=adw
MozReview-Commit-ID: KatEWpJcGXs

--HG--
extra : rebase_source : 314f27c26a71ea01a7e192ce0d658bbf8e829f28
2016-11-22 23:05:17 +08:00
JW Wang
b765703fb7 Bug 1319701 - Remove MediaDecoderReaderWrapper::mForceZeroStartTime. r=kaku
MozReview-Commit-ID: DHRR4U7LT1M

--HG--
extra : rebase_source : 62f98aaa05466c3acbea04463b5667155fbcaaee
2016-11-23 17:34:12 +08:00
Mike Hommey
84aa5c4927 Bug 1319959 - Set _topsrcdir, _objdir, MOZ_BUILD_ROOT and DIST from python configure. r=gps
In some cases, on OSX, python's `os.path.realpath` and shell's `pwd -P`
don't agree on the case of paths on case-insensitive filesystems.

So make everyone agree by using the value from python configure.

--HG--
extra : rebase_source : 4d26bf30f3f125c4f75d42f79d8a80a4a0bf11ec
2016-11-24 09:47:15 +09:00
Kit Cambridge
3c0365a2de Bug 1318814 - ObjectUtils.deepEqual should not consider objects and primitives as equal. r=mossop
MozReview-Commit-ID: ExWi55h80ag

--HG--
extra : rebase_source : 108ac9ed163968adf256f8c0aab208bda8fca742
2016-11-22 15:48:42 -07:00
JW Wang
6ee4345dd8 Bug 1319356 - clean up media elements when tests are done. r=cpearce
MozReview-Commit-ID: CYJDwPJ5E2P

--HG--
extra : rebase_source : 47263f67046cdf6fd1194611c88fe6cda2332d6b
extra : intermediate-source : 957bad997b3b0fc292b66222226ada4ecdc43aef
extra : source : 216105eb9044ef77606b1577f815e354276ee651
2016-11-21 13:54:40 +08:00
Daosheng Mu
ab3dd3ce52 Bug 1318618 - Support nsCString data type in gfxPrefs; r=dvander
MozReview-Commit-ID: w5051nuVR5

--HG--
extra : rebase_source : 3af34967b0c9c432c6b77014479be98bd0f54387
2016-11-23 09:38:02 +08:00
Masayuki Nakano
f33e5256c6 Bug 1316505 part.2 The "wheel" event of <scrollbox> should use |.scrollByPixels()| instead of |.scrollByPages()| for respecting high resolution delta value and making the scroll smoother r=mstange
Similar to the previous patch, "wheel" event should use |.scrollByPixels()| instead of |.scrollByPages()| because |.scrollByPages()| doesn't support high resolution delta value.

This patch makes the "wheel" event handler of <scrollbox> use |.scrollByPixels()| at handling "wheel" events whose deltaMode is DOM_DELTA_PAGE and multiplies the delta value and |.scrollClientSize|.

MozReview-Commit-ID: 1nyD7niiq3W

--HG--
extra : rebase_source : 41265adb74c015be88bd35d7cdc3cd18a585cf84
2016-11-13 18:04:08 +09:00
Masayuki Nakano
b6f661b681 Bug 1316505 part.1 The "wheel" event handler of <scrollbox> should use |.scrollByPixels()| for respecting wheel event's scroll speed and scrolling smoother r=mstange
Currently, ths "wheel" event handler of <scrollbox> uses |.scrollByIndex()|.  However, it scrolls too fast when "wheel" event has high resolution delta value when its deltaMode is DOM_DELTA_LINE.

For respecting the delta value, it should use |.scrollByPixels()|.  Therefore, this patch implements new readonly property, |.lineScrollAmount|, which returns font size of the |.scrollbox| and makes "wheel" event handler multiplies the delta value and |.lineScrollAmount|.

MozReview-Commit-ID: KzIvJyxqrn5

--HG--
extra : rebase_source : 0e11608bf4c47cd7aeef3c1a91b705cfcdf281ab
2016-11-13 19:17:07 +09:00
Botond Ballo
b32f766ad0 Bug 1319892 - Turn the reftest for bug 735857 into a web platform reftest. r=mstange
MozReview-Commit-ID: FTnk8t72Wb9

--HG--
extra : rebase_source : 45f84bb4894b76715659aa1e077ae13a8d6fe269
2016-11-23 15:39:27 -05:00
Mark Hammond
682d81fa5d Bug 1316500 - remove use of tasks and promise.jsm promises from Sync tests. r=tcsc
MozReview-Commit-ID: 5itPSLBKguc

--HG--
extra : rebase_source : 2b16f697902736ef39cded96c1bd98b547136263
2016-11-10 14:34:38 +11:00
Tomislav Jovanovic
92b6927b24 bug 1253418 - implement contextMenu page_action and browser_action contexts r=kmag
MozReview-Commit-ID: Ftp77zmxo4B

--HG--
extra : rebase_source : ed46fe948f0898e13dcc551721d56c5151a4bc4c
2016-11-09 21:03:33 +01:00
Hammad Akhtar
0c3b469c02 Bug 1302765 - Allow ./mach taskgraph .. --parameters P to take a URL. URL building mechanism fixed; r=dustin
MozReview-Commit-ID: 7reezQj9Bds

--HG--
extra : rebase_source : a571294e80491b0918e21697d922abfaa91432b6
2016-11-24 01:15:33 +05:30
Robert Helmer
60a6754766 Bug 1272446 - rebuild addons DB from manifests when schema has changed r=kmag
MozReview-Commit-ID: BHzwRJaFU7V

--HG--
extra : rebase_source : 1b1a1553f63924f9fca2da1dfc1b40cf37bafdd0
2016-11-22 12:56:18 -08:00
Jonas Finnemann Jensen
cffd9885e8 Bug 1319449 - Set -o pipefail and other robustness improvements for image_builder. r=dustin
MozReview-Commit-ID: 5oIdvcrScRt

--HG--
extra : rebase_source : 6b6dd2dc3b3e8465127d33fb428877f68537ad5b
2016-11-22 14:13:15 -08:00