Commit Graph

569408 Commits

Author SHA1 Message Date
Noemi Erli
c6ea2b9c8f Merge mozilla-central to mozilla-autoland. r=merge a=merge CLOSED TREE 2017-11-15 12:13:56 +02:00
Noemi Erli
e515bbaf88 Backed out changeset aa3d66cd3c40 (bug 1415872) for ES failure in toolkit/components/extensions/test/browser/head.js:37:7 r=backout on a CLOSED TREE
--HG--
extra : amend_source : f07f736626fd98258d126f5d63a614297695ab4a
2017-11-15 12:08:22 +02:00
Noemi Erli
550148ab69 Merge inbound to mozilla-central r=merge a=merge 2017-11-15 11:57:12 +02:00
Lee Salzman
29099d481c Bug 1416607 - error when Moz2DImageRenderer fails to create a NativeFontResource or UnscaledFont. r=jrmuizel
MozReview-Commit-ID: Jool723LUFX
2017-11-14 23:15:31 -05:00
Andreea Pavel
3349ecafbd Backed out 1 changesets (bug 1402828) for failing devtools/client/netmonitor/test/browser_net_copy_as_curl.js r=backout a=backout on a CLOSED TREE
Backed out changeset 4d059e20a773 (bug 1402828)
2017-11-15 06:12:53 +02:00
Gabriel Luong
16731e0120 Bug 1387511 - Part 2: Format css-grid.js r=pbro 2017-11-14 22:02:51 -05:00
Gabriel Luong
f085fec318 Bug 1387511 - Part 1: Use the grid negative number platform API to render negative line numbers correctly in css grid inspector. r=pbro 2017-11-14 22:02:44 -05:00
Matthew Gregan
feb6071e04 Bug 1409904 - Don't bother logging when audioipc server's poll() hits EINTR. r=kamidphish
MozReview-Commit-ID: 854rPXdmbny
2017-11-15 15:40:23 +13:00
Andreea Pavel
3a1d0056a8 Backed out 1 changesets (bug 1416948) for already being pushed in autoland by bug 1416456 r=backout a=allstarschh on a CLOSED TREE
Backed out changeset 9dd7ba5308be (bug 1416948)
2017-11-15 04:31:23 +02:00
Mark Banner
7f5c3c3582 Bug 1375689 - Turn on experimentalObjectRestSpread in ESlint options. r=mossop
MozReview-Commit-ID: BLZp3HskBji

--HG--
extra : rebase_source : 721d0586deb572a5e989547d592d741cc9d15950
2017-11-14 13:21:16 +00:00
Blake Kaplan
a7ba580113 Bug 1389836 - Don't recreate mHandlerInfo for every little change. r=bz
There are non-cost reference return values on IPDL structs. We should take
advantage of them in order not to recopy everything everytime something
changes.

MozReview-Commit-ID: D4hG2moE3f

--HG--
extra : rebase_source : 4edca9b1a808f99dd60be908bbb197757bf9b90a
2017-11-14 15:37:47 -08:00
Eitan Isaacson
d567085ce1 Bug 1414447 - Use displayed definitions in toolbox component for kb nav. r=jryans 2017-11-13 15:31:00 -05:00
Ya-Chieh Wu
cc97d12776 Bug 1381153 - Part 2: Look up MayHaveTransformAnimation in nsIFrame. r=mstange
Find out where we use MayHaveTransformAnimation in EffectSet
and change them to MayHaveTransformAnimation in nsIFrame.

MozReview-Commit-ID: GhkztK8JtNa
2017-11-12 23:23:00 -05:00
Ya-Chieh Wu
d2e5bc76eb Bug 1381153 - Part 1: Cache MayHaveOpacityAnimation and MayHaveTransformAnimation in nsIFrame. r=mstange, r=mats
There are two places where I have to cache the status of MayHaveOpacityAnimation
and MayHaveTransformAnimation. First place is in |nsIFrame:init()| where an
element is associated with a frame. Second place is in
|KeyframeEffectReadOnly::UpdateEffectSet()| where the script can add animations
on element.

btw I keep the original two flags of MayHaveOpacityAnimation and
MayHaveTransformAnimation in EffectSet because there is no guarantee that
an element has been associated with a frame when we call to |UpdateEffectSet()|.
But we still want to keep the benefits that we can quickly look up
MayHaveOpacityAnimation or MayHaveTransformAnimation. So I keep them in
EffectSet and transfer the status into nsIFrame when we bind an element
to a frame in nsIFrame:Init().

MozReview-Commit-ID: JDwyAQQTKA7
2017-11-13 18:15:00 -05:00
Michael Ratcliffe
5c136a9918 Bug 1415167 - Network Monitor to use prop-types and react-dom-factories r=Honza
@Honza: Please wait for a green try before reviewing this.

MozReview-Commit-ID: 5KlOkYLnorj

--HG--
extra : rebase_source : 339c2dda1eb2afaf490e6bacb613addeece42d04
2017-11-08 11:19:48 +00:00
Tim Nguyen
5cfc3ef89b Bug 1415872 - Implement colors.tab_text and colors.background_tab_text. r=jaws
MozReview-Commit-ID: Gp5CHqmOi6A

--HG--
extra : rebase_source : 8ca5d8107d9ea7479c0690ba12c9baf418cddf01
2017-11-10 11:58:50 +00:00
steveck-chung
cdefaace6e Bug 1417032 - Avoid reverting the masked number while saving credit card. r=lchang
MozReview-Commit-ID: BhWC5cQIGF9

--HG--
extra : rebase_source : c48b0d55c884441bcd4c709376979d0e66d2d303
2017-11-15 13:39:06 +08:00
Luke Chang
a817a561c5 Bug 1417316 - [Form Autofill] Do not clear the cached autocomplete result when popup closed as it might be reused. r=ralin
MozReview-Commit-ID: 5uOHP5Feuvh

--HG--
extra : rebase_source : aa225be9211bcf7aba45098c99394a46a5932039
2017-11-15 16:12:08 +08:00
Xidorn Quan
7d5f568abc Bug 1417281 part 2 - Add 32x32 theme icon in browser_ext_browserAction_theme_icons.js test so that it works as expected on HiDPI as well. r=mixedpuppy
MozReview-Commit-ID: DLFuxxeVyTR

--HG--
extra : rebase_source : 4c83df88e8a99a5886f481774dfbf0ce4eec16ab
2017-11-14 17:55:06 -08:00
Xidorn Quan
d1120869f6 Bug 1417281 part 1 - Trigger subtree restyle when lwtheme / lwthemetextcolor attribute on root element of XUL document is changed. r=heycam
MozReview-Commit-ID: 2RM3ZkWKiSl

--HG--
extra : rebase_source : a4619229de23a55696a37974d2daa007b7e803a3
2017-11-14 17:53:11 -08:00
Thomas Nguyen
5bd3a1a2c6 Bug 1416344 - refactor computing referrer policy and remove uninitilized maybe value r=valentin
MozReview-Commit-ID: 7VoRaUSE096

--HG--
extra : rebase_source : 2c0aa81b5751fe187494df75e6d853b64f5b9b47
2017-11-13 19:23:47 +08:00
JW Wang
819392126d Bug 1417305. P3 - treat NS_BASE_STREAM_CLOSED as success. r=bechen,gerald
Since we don't want to treat NS_BASE_STREAM_CLOSED as abort or error, let's just
treat it as success to simplify the call flow.

MozReview-Commit-ID: 1Fubaq6lfAq

--HG--
extra : rebase_source : b9168704aa618eca553d96770e3256aadcc4b925
2017-11-15 11:24:22 +08:00
JW Wang
15d26ae3e8 Bug 1417305. P2 - move some code from NotifyDataEnded() into NotifyDownloadEnded() to make the code more readable. r=bechen,gerald
MozReview-Commit-ID: LveThVjuemq

--HG--
extra : rebase_source : 8a3164b767fa86468725de9401db308daeba591d
2017-11-15 11:07:06 +08:00
JW Wang
e02c72ba9e Bug 1417305. P1 - let callers of MediaResourceCallback::NotifyDataEnded() decide whether to call it synchronously. r=bechen,gerald
Instead of doing dispatch inside MediaResourceCallback::NotifyDataEnded(),
we let the callers decide whether to call the function synchronously. This is required
by ChannelMediaResource::CacheClientNotifyDataEnded() which will run off the main thread.

MozReview-Commit-ID: IzUYw8QMZbD

--HG--
extra : rebase_source : b888049d5b999a37515f00e52ae02dcf17f227e8
extra : intermediate-source : 7b660cd9b9fbb1a00e427b8e9074c9b736a80ae9
extra : source : cc055c39bd9fbbeb4354bbbebe0c46512be6e3a3
2017-11-10 14:27:59 +08:00
Blake Kaplan
47a7f17127 Bug 1389836 - Push extensions from MIME info objects to the child. r=bz
It would be really nice to push all of this back up to the parent or to at
least make it asynchronous. I think it should be possible since we control
when we send the DOM events, but for the moment this should work.

With this patch, I extend ProxyMIMEInfo and HandlerInfo with information about
the available extensions for a given MIME type. On Linux, at least, we read
the system (in my case GNOME) registry in the child and handlers.json in the
parent finally merging them again in the child (in
ContentHandlerService::FillHandlerInfo). Even though I was unable to get my
mochitest to work, it did work well enough that I could verify that this patch
was getting all of the proper extensions to the nsContentAreaDragDrop.cpp
code.

MozReview-Commit-ID: AR3VayMUiDN

--HG--
extra : rebase_source : f9861e46e92fb7e8d297eff3e5d61a3c18912b47
2017-11-01 17:49:22 -07:00
Blake Kaplan
192a69cf57 Bug 1389836 - Put HandlerServiceChild in the proper namespace. r=bz
Non ns-prefixed classes are supposed to be in either the mozilla namespace or
a sub namespace (such as dom, css, or others).

MozReview-Commit-ID: 8bF6bP49NLG

--HG--
extra : rebase_source : bfa5e6da36c49ea7bb333eb58d168ef614c07c0b
2017-10-25 14:58:50 -07:00
Ethan Lin
8e57800f5a Bug 1416076 - We should set visible rect to display item before computing visibility. r=mattwoodrow
MozReview-Commit-ID: HngrLGSS6St

--HG--
extra : rebase_source : deac5b74dd8490a39c08f6944c359f27bc3cd7f9
2017-11-13 15:48:01 +08:00
Ray Lin
c49fb9da0d Bug 1415836 - Make form autofill dropdown footer text centered. r=lchang
MozReview-Commit-ID: Aw8bQFlGQj3

--HG--
extra : rebase_source : d1e707b458cc9de278a79604663860ea5cb4e6a6
2017-11-15 11:49:00 +08:00
Hiroyuki Ikezoe
1db8e96c69 Bug 1415729 - Make 'necessary_update_should_be_invoked' test in file_restyles.html more strict. r=birtles
Before this change, the test calls getAnimations() after changing animation
duration.  Unfortunately it was wallpapering what's going on there actually
since getAnimations() flushes pending styles.  This patch drops the
getAnimations() call and makes it clear how many restyles happen there.

MozReview-Commit-ID: A0a5MlTyBnD

--HG--
extra : rebase_source : cc20d2c6945f81f72c753137441b8d84ff52ff63
2017-11-15 13:43:20 +09:00
Hiroyuki Ikezoe
4ed9f9ddff Bug 1415729 - Use arrow function in file_restyles.html. r=birtles
MozReview-Commit-ID: AcjDRK36d9d

--HG--
extra : rebase_source : 2d853c3c4702e775275a49f2eb3552ef00b7d295
2017-11-15 12:30:04 +09:00
John Lin
93c62b59f7 Bug 1417006 - remove tombstone files but keep the directory. r=dminor
MozReview-Commit-ID: Ds87KZ47vf1

--HG--
extra : rebase_source : 0578a58107b39abb546758cd8aa21c89e7b4b81f
2017-11-13 16:10:35 +08:00
Kevin Chen
49b2130100 Bug 1415469 - Remove mDeviceResetSequenceNumber from TDR process since we don't need it anymore; r=dvander
MozReview-Commit-ID: 3uQQwW8QOJA

--HG--
extra : rebase_source : ab6090ad51a2a4714f1739a30d854d624d187239
2017-11-08 15:26:43 +08:00
Tom Ritter
d86bb6f599 Bug 1414067 Fix the compiler test for FORTIFY_SOURCE r=glandium
MozReview-Commit-ID: 8ozY0Zbuczx

--HG--
extra : rebase_source : 7c99ea332b0da1ac20ec1037fb0dc4ac9088d8f8
2017-11-14 12:13:30 -06:00
Mike Hommey
1f75d81c1c Bug 1417234 - Use SRWLock as Mutex for mozjemalloc on Windows. r=njn
SRWLock is more lightweight than CriticalSection, but is only available
on Windows Vista and more. So until we actually dropped support Windows
XP, we had to use CriticalSection.

Now that all supported Windows versions do have SRWLock, this is a
switch we can make, and not only because SRWLock is more lightweight,
but because it can be statically initialized like on other platforms,
allowing to use the same initialization code as on other platforms,
and removing the requirement for a DllMain, which in turn can allow
to statically link mozjemalloc in some cases, instead of requiring a
shared library (DllMain only works on shared libraries), or manually
call the initialization function soon enough.

There is a downside, though: SRWLock, as opposed to CriticalSection, is
not fair, meaning it can have thread scheduling implications, and can
theoretically increase latency on some threads. However, it is the
default used by Rust Mutex, meaning it's at least good enough there.
Let's see how things go with this.

--HG--
extra : rebase_source : 337dc4e245e461fd0ea23a2b6b53981346a545c6
2017-11-14 12:58:33 +09:00
Edgar Chen
fb66a70ad5 Bug 1414077 - Don't try to scroll image if the image document is not visible; r=bz
MozReview-Commit-ID: J7Roez2btL

--HG--
extra : rebase_source : c65e1bd1239516dbf64d0025e41832a157d0d2ad
2017-11-07 17:51:13 +08:00
Chris Manchester
0ae43c13af Bug 1416490 - Backed out changeset 6a412222f22e (bug 1320738) in favor of fixing the underlying issue. r=glandium
MozReview-Commit-ID: 5JaoquWq5Jj

--HG--
extra : rebase_source : 70f3cff23ab7d4d0f0e79d1cf207b0462c355ce0
2017-11-13 23:34:20 -08:00
Chris Manchester
8055730c30 Bug 1416490 - Ensure environment variables that are configure options are passed from configure to old-configure. r=glandium
MozReview-Commit-ID: GFP8bahu1bb

--HG--
extra : rebase_source : 1ff35a8b6470308b71dc74c2befb8219a41534c2
2017-11-13 23:33:35 -08:00
Chris Manchester
2473770fb6 Bug 1416490 - Check for a value passed to RUSTC_OPT_LEVEL rather than whether its value was a default. r=glandium
The current code will fail if "RUSTC_OPT_LEVEL=" is passed. This can happen
if the value isn't present and that fact is injected into js' configure. We
only want to respect RUSTC_OPT_LEVEL if a value is passed, so we simply check
for the presence of a value rather than its origin.

MozReview-Commit-ID: 6GhLfprJEEn

--HG--
extra : rebase_source : 40f3e381a128e04d65cc0175df32cdcd8302e05e
2017-11-13 22:07:46 -08:00
Makoto Kato
717646428c Bug 1416618 - Cannot show short date format (yy/MM/dd'('ddd')') correctly. r=jfkthame
On Windows 7, there is yy/mm/dd'('ddd')' as short date format of Japanese.
When selecting this, ddd isn't converted to day of the week correctly.

FindInReadable will update start position iterator even if not found. So when
using FindInReadable again, we have to reset start position iterator.

MozReview-Commit-ID: AoS1Txq3Twc

--HG--
extra : rebase_source : 2f02189d0288e833debb2d4ca47efbca632924e5
2017-11-14 10:53:51 +09:00
Blake Kaplan
a64ff6d116 Bug 1417279 - Remove an odd second case from nsArray::IndexOf. r=froydnj
Now that nsArray uses nsCOMArray under the hood, we don't have to do weird
ForwardEnumeration hacks to start IndexOf at a non-zero index.

MozReview-Commit-ID: 3ReDV0BT0hn

--HG--
extra : rebase_source : 399a988d00fabaa314eb7592b2aacf277a2ca477
2017-11-14 16:34:42 -08:00
Gregory Szorc
69bf04fc25 Bug 1416052 - Fixup for test_clobber.py; r=me
Forgot to push the updated patch to review.

Test-only change. So self-reviewing.

CLOSED TREE

--HG--
extra : amend_source : 44bbf8748ce10982e6a3d96ff9ed42d3dc653f3f
2017-11-14 16:08:35 -08:00
Gregory Szorc
fd8c53148d Bug 1416052 - Remove OBJDIR_TARGETS; r=nalexander
Now that we require mach to run client.mk and mach only invokes
client.mk for full builds (the "build" target) and configure
(the "configure" target), we should no longer have anyone using
client.mk as a proxy to make targets in the build backend.

So remove that feature.

MozReview-Commit-ID: BbaMdZHnRXy

--HG--
extra : rebase_source : 570e81a62e35cbe4ea27e011883a306f23f3024c
2017-11-09 23:31:36 -08:00
Gregory Szorc
10cdc19783 Bug 1416052 - Remove build_and_deploy target; r=nalexander
This was added before mach AFAICT. If people need this functionality,
we can add a mach command.

MozReview-Commit-ID: HL52nJE2SMQ

--HG--
extra : rebase_source : cdf67a997731e7f1f94e16aa36c3f806c09779e8
2017-11-09 23:15:03 -08:00
Gregory Szorc
2f56664d5a Bug 1416052 - Check clobber state from Python; r=nalexander
The clobber logic is already written in Python. Now that we
always use mach in front of client.mk, we can check the clobber
state before we execute client.mk.

Since we always check the clobber state, we can remove the
CLOBBER files from various dependencies in client.mk. The
clobberer code should ensure everything is in a good state.

The refactor of the clobber Python code required some changes to
its testing. We drop some support for verifying output strings.
But testing this correctly would require a bit of effort. I don't
think it is worth it.

MozReview-Commit-ID: 69CoImCgtNm

--HG--
extra : rebase_source : c925bb49fd54fe6a5abaa4ac9dc0833e139c6a57
2017-11-09 23:13:59 -08:00
Gregory Szorc
ad52bc487e Bug 1416052 - Remove reference to undefined BUILD_PROJECT_ARG; r=nalexander
I'm pretty sure this was related to the now removed feature for
building multiple projects.

MozReview-Commit-ID: 4AG7lsk6BLS

--HG--
extra : rebase_source : b677a141161255ffeea57358d4f497fc05c8fb1c
2017-11-09 22:42:54 -08:00
Gregory Szorc
4c710821d7 Bug 1416052 - Remove mkdir of objdir from client.mk; r=nalexander
Now that mach is being used to invoke client.mk, we can perform
objdir directory creation there.

Removing the use of mkdir_deps meant that we could remove some
included make files which AFAICT were only used to provide
$(mkdir_deps).

MozReview-Commit-ID: 4ZRToz8xqZy

--HG--
extra : rebase_source : 8d0d2430b33863e1dec8cee84e72178307d1c6e0
extra : source : d223afd90123eba035714288d5da9394b2dbb8d8
2017-11-09 22:41:17 -08:00
Gregory Szorc
1bddd821c8 Bug 1416052 - Remove comment filtering; r=nalexander
The auto-generated make file that we include (and the `mach environment`
output that we included before that) should not contain comment lines.
I think it is safe to remove the code that filters them out.

It is possible a multi-line value in mozconfigs could contain lines
looking like comments and this may cause problems. I'm inclined to
believe that this scenario doesn't exist. If someone complains and
we need to bring back support, we could certainly do that.

MozReview-Commit-ID: 8kKw91HH4ms

--HG--
extra : rebase_source : 3fab8af7f713c91632f3d5172664832af10b555f
2017-11-09 22:26:26 -08:00
Gregory Szorc
e4998a9e14 Bug 1416052 - Move export of FOUND_MOZCONFIG to Python; r=nalexander
This should have the same net result.

TBH, I'm not 100% convinced we need this export. It is only needed
to send variables to sub-makes. And the only make file reading
FOUND_MOZCONFIG is client.mk. Since the code that evals the
auto-generated make file is always executed in client.mk, we
shouldn't need this export.

All this code is going away soon anyway. So I'm inclined to cargo
cult this just in case.

MozReview-Commit-ID: DqF1BU702A

--HG--
extra : rebase_source : 31859c0d4bb6ceb06367bf0ca554d79d57d2d0c3
2017-11-09 22:23:14 -08:00
Gregory Szorc
5da7c49fc4 Bug 1416052 - Generate a make file to include in client.mk; r=nalexander
Currently, client.mk calls `mach environment` to obtain a make file
to be evaluated in the context of client.mk. The reason it is
implemented this way is because client.mk could be an entrypoint to
the build system.

With recent changes that require the use of mach to use client.mk,
we are now guaranteed to have Python code running before client.mk
is invoked. This means we don't need to invoke `mach` from client.mk.

This commit ports the code for generating a client.mk suitable make
file from `mach environment` to the build dispatcher. We now write out
a new .mozconfig-client-mk file in the objdir. client.mk is changed
to cat this file and to include it as a native make file.

The OBJDIR environment variable is also set so client.mk knows where
to read the auto-generated file from.

This commit should be backwards compatible.

Hopefully it is obvious, but this new make file is only temporary.
As soon as the remaining mozconfig logic is moved out of client.mk,
we should be able to simplify down to a single "include" in client.mk.

MozReview-Commit-ID: BEfWo76Z1qA

--HG--
extra : rebase_source : 752df93f816b95bda108a3c787d7f4941b136bbb
2017-11-09 22:27:16 -08:00
Gregory Szorc
550570a148 Bug 1416052 - Remove references to MOZ_CURRENT_PROJECT; r=nalexander
Actual uses of this variable were removed by 5fb427c50ca3
(bug 1412431). This is dead code.

MozReview-Commit-ID: GsDqpXZol2L

--HG--
extra : rebase_source : ce6eb799aa8a20e7a9af0587167bf05a6095b8df
2017-11-09 21:47:43 -08:00