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

588954 Коммитов

Автор SHA1 Сообщение Дата
Nicolas Chevobbe 1ea09e91a2 Bug 1450195 - Remove old-event-emitter usage from gcli; r=miker.
MozReview-Commit-ID: IYAQJ4KqEet

--HG--
extra : rebase_source : 7b15bbbd0876a14259242724836ab90b93d7bb2b
2018-03-30 09:20:11 +02:00
Jim Chen debcdf257b Bug 1441971 - Restart aborted script load for waiting XULDocument loads; r=bz
When a particular XULDocument load is aborted, its pending script loads
are aborted as well. However, there may be additional XULDocuments
waiting for the same scripts to load. If we continue with the abort, all
the waiting docs will end up with aborted script loads as well.

This patch makes us load the script again for the waiting docs, so that
one aborted doc load does not affect other docs that just happen to be
waiting on the same scripts to load.

MozReview-Commit-ID: FFGBjOLXCDt

--HG--
extra : rebase_source : 945c83eb804c2b8f9901897a23e3e0c6f202aedb
2018-02-28 14:46:06 -05:00
Shane Caraveo b0897b3378 Bug 1448599 - fix WebRequest events for redirected channels when onBeforeRedirect is not used, r=kmag
If any WebRequest listener *other* than onBeforeRedirect was used, and a channel was redirected,
the ChannelWrapper was not updated with the redirected channel.  This broke most listeners for
redirected channels and specifically an extension would never see events for the new channel.

MozReview-Commit-ID: BwXToTD5LEu

--HG--
extra : rebase_source : 866a7ee8e1f34b9710e28cfe21c13a848e08c0b5
2018-04-02 21:12:07 -05:00
Andrew McCreight 27f44d82d0 Bug 1438688, part 6 - Compile XPT information to C++ at build time. r=glandium,njn
This patch handles the actual generation of the static data structures
used to represent XPT information. XPT files are generated in the same
way as they are now, but they are used only as an intermediate
representation to speed up incremental compilation rather than
something used by Firefox itself. Instead of linking XPTs into a
single big XPT file at packaging time, they are linked into a single
big C++ file at build time, that defines the various static consts in
XPTHeader.

In xpt.py, every data structure that can get written to disk gets an
additional code_gen() method that returns a representation of that
data structure as C++ source code. CodeGenData aggregates this
information together, handling deduplication and the final source code
generation.

The ctors are needed for XPTConstValue to statically initialize the
different union cases without resorting to designated initializers,
which are part of C99, not C++. Designated initializers appear to be
supported in C++ code by Clang and GCC, but not MSVC. The ctors must
be constexpr to ensure they are actually statically initialized so
they can be shared between Firefox processes.

I also removed an unnecessary "union" in XPTConstDescriptor.

Together, these patches reduce the amount of memory reported by
xpti-working-set from about 860,000 bytes to about 200,000 bytes. The
remaining memory is used for xptiInterface and xptiTypelibGuts (which
are thin wrappers around the XPT interfaces and header) and hash
tables to speed up looking up interfaces by name or IID. That could
potentially be eliminated from dynamic allocations in follow up
work. These patches did not affect memory reporting because XPT arenas
are still used by the remaining XPTI data structures.

MozReview-Commit-ID: Jvi9ByCPa6H

--HG--
extra : rebase_source : a9e48e7026aab4ad1b7f97e50424adf4e3f4142f
2018-03-12 10:30:35 -07:00
Andrew McCreight da728cc408 Bug 1438688, part 5 - Merge XPTInterfaceDirectoryEntry and XPTInterfaceDescriptor. r=njn
With fully linked XPT data, there is exactly one directory entry per
descriptor, plus one per unresolved interface. There are 1200 of the
former and 40 of the latter. By merging them, we save a 32 bit int per
directory entry, at the cost of 11 bytes per unresolved interface.

This will make VerifyAndAddEntryIfNew slightly slower because it has
to do an nsID equality check rather than a null check, but I can't
imagine that will matter.

My main goal for this patch is to reduce the size of the executable,
to avoid a regression with my static XPT information patches, but it
should reduce memory a little bit, too.

MozReview-Commit-ID: L35YdOuAyF4

--HG--
extra : rebase_source : 8358a73a0f8f81081661538d4a7c9a31b1aa7a56
2018-03-12 13:36:15 -07:00
Andrew McCreight 40c8743812 Bug 1438688, part 4 - Hoist arrays to XPTHeader. r=njn
To allow XPT information to be shared between processes, it needs to
not contain any pointers, because they cause relocations. I've
eliminated pointers by hoisting all of the variable length data
structures to XPTHeader, into a single array for each type of
data. These data structures now use an index into these arrays to find
their first element. Strings are similar, but they are mashed into a
single giant string, including embedded null terminators. Modifying
the accessor methods to support this is easy, because there is only a
single global instance of each of these arrays in XPTHeader.

MozReview-Commit-ID: 5rgwaEBvDYl

--HG--
extra : rebase_source : 2e423f088d662920a89f3b66c70d26fe340b5fce
2018-02-28 15:12:07 -08:00
Andrew McCreight e80864c94c Bug 1438688, part 3 - Remove XPT files from the packaging process. r=glandium
Now that XPT files are not loaded from files at runtime, code for
packaging XPT files can be removed.

This means that a couple of test XPIDL interfaces will get shipped in
builds to users that weren't before, but I don't think that matters
much.

This also puts XPT files into the local objdir for the XPIDL makefile,
instead of dist/bin, because they are no longer part of the
distribution.

MozReview-Commit-ID: 7gWj8KWUun3

--HG--
extra : rebase_source : 65bac47c2cd1a20b3c675a01b44a25a1d2d3ab7a
2018-03-05 14:27:29 -08:00
Andrew McCreight 38814e41a3 Bug 1438688, part 2b - Eliminate XPTHeader data structure. r=njn
Now that there is only one XPTHeader, we can devolve the fields in it
to avoid some indirection. The biggest part here is getting rid of the
mHeader field on xptiTypelibGuts.

The array is [] instead of * to avoid a relocation, by ensuring that
XPTHeader::kInterfaceDirectory as well as the data it points to cannot
be changed.

MozReview-Commit-ID: AzvNTNZKkfi

--HG--
extra : rebase_source : d911a54b3db1f9f57b538d13ae86f28965ab33b3
2018-03-27 14:04:01 -07:00
Andrew McCreight 1d1f9dcdb0 Bug 1438688, part 2 - Load XPT information from a static variable instead of a file. r=njn
This patch removes C++ code related to reading in XPT information from
files. (Code related to packaging XPT files will be removed in the
next patch.) This includes code in the manifest parser, in addition to
the actual code for parsing files.

XPT information is now loaded directly from a single static data
structure, XPTHeader::kHeader, which will be automatically generated
at compile time from .idl files (via .xpt files). Note that the script
to do that is not added until part 6 of this patch series, so linking
will fail on parts 2 through 5.

I inlined XPTInterfaceInfoManager::RegisterXPTHeader into the ctor,
because that is the only caller. It feels like the lock there should
not be needed any more, but I left it alone for now.

The forward declaration of XPTArena in xptiprivate.h is needed because
it was being bootlegged via xpt_xdr.h. Some of the data structures in
reflect/xptinfo/ (which wrap the xpt_struct.h data structures) are
still allocated using XPTArena. Hopefully we can get rid of that in
followup work.

I also deleted a lot of comments in xpt_struct.h that talk about the
on-disk format. I also deleted checking of the major version number,
because that should not matter when the XPT information is baked into
the executable.

MozReview-Commit-ID: 6NJdaCWRBhU

--HG--
extra : rebase_source : 6512a05f2a8bee1e6e6b0423d2cb376d8c34728b
2018-02-28 12:51:39 -08:00
Andrew McCreight a0cc3cb2b0 Bug 1438688, part 1 - Add methods for accessing arrays in xpt_struct.h. r=njn
This lets us hide later changes to how these arrays are stored. There
should be no behavioral change. Some methods in xpt_struct.h are
declared inline at the end of the header due to the order that classes
are declared in the header.

MozReview-Commit-ID: KAxUKn3sDOD

--HG--
extra : rebase_source : 867ce100e5178c85485e6c3bac5d6bfca098f78b
2018-02-28 10:07:45 -08:00
Dorel Luca baf0da3fea Merge mozilla-central to autoland 2018-04-03 07:22:33 +03:00
Dorel Luca d8a4cfd361 Merge mozilla-inbound to mozilla-central. a=merge 2018-04-03 07:04:18 +03:00
Daisuke Akatsuka 361d95ecbf Bug 1447259: Change the tested animation in browser_animation_summary-graph_computed-timing-path_different-timescale.js test since the animation can intermittently already be finished during selectNodeAndWaitForAnimations. r=gl 2018-04-03 10:29:12 +09:00
Lee Salzman 0626b8ac56 Bug 1442669 - guard against excessively large glyphs in SkFontHost_cairo. r=jfkthame
MozReview-Commit-ID: 1X2524Q5K8E
2018-04-02 20:21:21 -04:00
Matt Woodrow 82c740d1b1 Bug 1450360 - Respect the z-index property set on scrollbars. r=mstange
--HG--
extra : rebase_source : 0288513aaa2216c14de501417ff3b9f405ee97a5
2018-04-03 12:13:48 +12:00
Daisuke Akatsuka fb33aab183 Bug 1449497: Use Component instead of PureComponent. r=gl 2018-04-03 09:12:53 +09:00
Gregory Szorc 70d55f427e Bug 1449629 - Install Python 3.5 in debian-base; r=glandium
We want Python 3.5+ to be available everywhere so various processes
can start using it.

The debian-base Dockerfile is shared by Debian 7 and 9 images.
Debian 9 ships with Python 3.5 and after the previous commit, we
have a Python 3.5 package for Debian 7. So we simply install the
"python3.5" package to get Python on all the Debian images.

MozReview-Commit-ID: 9ZmoSxtHWTZ

--HG--
extra : rebase_source : be4e62e7d731a3c39ee9ce205d75f1e525192acc
2018-04-02 16:58:21 -07:00
Gregory Szorc cbab55349e Bug 1449629 - Install Python 3.5 in Debian 7 base image; r=glandium
Debian 7 ships Python 3.2 by default. That's too old for our
upcoming build requirement of Python 3.5.

This commit adds a Python 3.5 package for wheezy that backports
the Python 3.5 from a much later Debian version.

The patch was inspired by the existing patch for Python 2.7.
However, it needed additional work. The changes and reasons
should all be documented in the changelog file as part of the
package diff we apply.

I'm a bit disappointed we had to disable PGO. But it was
reliably segfaulting during the build. I didn't feel like going
down that rabbit hole.

MozReview-Commit-ID: ABpHW1KYFQP

--HG--
extra : rebase_source : 02dbd13236fe741cb33f07c803218fda339c214e
2018-04-02 19:27:12 -07:00
Gregory Szorc 18e72cea88 Bug 1449629 - Use -L when downloading OpenSSL; r=glandium
The URL is now being redirected to
https://www.openssl.org/source/old/1.1.0/openssl-1.1.0g.tar.gz. Let's
add a -L so we follow redirects automatically.

MozReview-Commit-ID: AuZ98jGidzl

--HG--
extra : rebase_source : 07e61558024e789df45d8e2ab67ab5ad9d3d355b
2018-04-02 19:22:07 -07:00
Jim Chen 5eb3667b33 Bug 1446202 - 2. Don't pass pointer events to datetime inputs; r=jchen
Like the way we treat select fields, don't pass pointer events to
date/time input fields either.

MozReview-Commit-ID: Eucfbu6MizX

--HG--
extra : rebase_source : 1887ca9911ee192c6c016ff2cfb7d621d8122be9
2018-04-02 23:26:11 -04:00
Jim Chen b8e6f0675d Bug 1446202 - 1. Return correct locale string to Gecko; r=droeh
Locale.toString() doesn't return the correct locale format that Gecko
expects, so reformat the locale string before returning. (for example,
Locale.toString() returns "en_US_POSIX#Latn" whereas Gecko expects
"en-Latn-US-POSIX"). The incorrect locale format was preventing intl
code (and the datetime box) from initializing.

MozReview-Commit-ID: JmDYkDj31pL

--HG--
extra : rebase_source : 545e8f4e57e1e0086d3afb862c9dfa82ff89345f
2018-04-02 23:25:27 -04:00
Brody Eastwood 8f9f4aa5c1 servo: Merge #20447 - NCSU Canvas Rendering Project Initial Steps (from Brody-Eastwood:master); r=jdm
<!-- Please describe your changes on the following line: -->
Implements the initial steps from:

https://github.com/servo/servo/wiki/Canvas-rendering-project

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 9cd60c8e78af7b80e7578612ae442de26d1a325b

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 95af4b1402fda361ab8c1aacc954d6a60d4382b0
2018-04-02 22:24:34 -04:00
Daisuke Akatsuka b4fc01f3cb Bug 1449625 - Part 2: Turn on new animation inspector for beta tests. r=gl 2018-04-03 08:36:00 +09:00
Daisuke Akatsuka d7f7c75314 Bug 1449625 - Part 1: Select the computed view instead of animation inspector in browser_markup_events_click_to_close.js test. r=gl 2018-04-03 08:35:46 +09:00
Jeff Gilbert afd77f7fd5 Bug 1444274 - Require GCC 6.1+. - r=glandium
MozReview-Commit-ID: 7alNSIhhbLI
2018-04-02 17:05:43 -07:00
Dorel Luca db90a7366c Merge mozilla-central to mozilla-inbound 2018-04-03 01:16:01 +03:00
Dorel Luca a7d5a65268 Merge mozilla-inbound to mozilla-central. a=merge 2018-04-03 01:00:11 +03:00
Ryan VanderMeulen d9d59209a6 Backed out changeset d85b5825a721 (bug 1440753) for frequent OSX iframe-scrolling-attr-2.html failures on a CLOSED TREE. 2018-04-02 17:59:30 -04:00
Dorel Luca 60df9e1cf7 Merge autoland to mozilla-central. a=merge 2018-04-03 00:58:00 +03:00
Ryan VanderMeulen e5ec40f40c Backed out 11 changesets (bug 1404222) for static analysis failures on a CLOSED TREE.
Backed out changeset a6a99136300c (bug 1404222)
Backed out changeset 7183b8104399 (bug 1404222)
Backed out changeset a1e4294c1c59 (bug 1404222)
Backed out changeset b79d6e8318db (bug 1404222)
Backed out changeset 0450620fdabd (bug 1404222)
Backed out changeset 026c74a92d04 (bug 1404222)
Backed out changeset 50ac4167f702 (bug 1404222)
Backed out changeset 59038f2db68a (bug 1404222)
Backed out changeset f6b9096da915 (bug 1404222)
Backed out changeset 4e0baffdd79b (bug 1404222)
Backed out changeset 57eeb849ab88 (bug 1404222)
2018-04-02 17:57:27 -04:00
Kit Cambridge f04df4150e Bug 1450789 - Use more accurate names for structure conflict event telemetry keys. r=tcsc
MozReview-Commit-ID: FCLy34YU3qK

--HG--
extra : rebase_source : 0beb314eca39181e3b344ba5d46aff0b954ee8c9
2018-04-02 14:41:16 -07:00
Dorel Luca f24505d99e Backed out 7 changesets (bug 1438688) for android xpcshell failures on builds/worker/workspace/build/tests/bin/components/test_necko.xpt
Backed out changeset 8786eabb61a4 (bug 1438688)
Backed out changeset e05ec1e08b46 (bug 1438688)
Backed out changeset 4c437ba9d984 (bug 1438688)
Backed out changeset 2f243bca1af3 (bug 1438688)
Backed out changeset 4da0e1839353 (bug 1438688)
Backed out changeset 186f916dcc7a (bug 1438688)
Backed out changeset 08b1a5f904e4 (bug 1438688)
2018-04-03 02:30:53 +03:00
David Major 9a28e89f4e Backed out changeset 737b602f4c6f864b34080d0fe57c2ff75de3b909 because I shouldn't back out the original fix until the better one lands. 2018-04-02 17:22:06 -04:00
David Major 152a7fc82e Backed out bug 1422368 fixes because they weren't sufficient. 2018-04-02 17:20:35 -04:00
Jim Chen de337ec2e1 Bug 1441279 - 6. Register accessible caret observers across docshell tree; r=bz
AccessibleCaretManager uses scroll and reflow observers to detect when
to update the position of carets. However, it currently only registers
the observers on the leaf docshell, so only changes in the innermost
iframe are detected; that is, it fails to update caret position when an
ancestor iframe is scrolled. This patch makes it register observers on
all ancestor docshells so that changes in ancestor iframes are detected
as well.

MozReview-Commit-ID: bwiSjj8936

--HG--
extra : rebase_source : d567f1d8df67f79769c6532b061e2df1e5ab878f
2018-04-02 17:13:46 -04:00
Jim Chen 5c7894b988 Bug 1441279 - 5. Use BasicSelectionActionDelegate in GeckoView by default; r=snorp
Use BasicSelectionActionDelegate for GeckoView sessions by default, if
there is no existing delegate.

MozReview-Commit-ID: 1lrEav4esKh

--HG--
extra : rebase_source : b6ac3e689e2401eba419e12c7bc76354188b4d0a
2018-04-02 17:13:46 -04:00
Jim Chen 45f75bd1b5 Bug 1441279 - 4. Add BasicSelectionActionDelegate; r=snorp
Add a standard implementation of SelectionActionDelegate that uses
Android action mode for displaying selection actions.

MozReview-Commit-ID: Iv497bXDzMh

--HG--
extra : rebase_source : 1c889e5538e49620cf8ae12b6d34f09def236d59
2018-04-02 17:13:46 -04:00
Jim Chen c99d04e491 Bug 1441279 - 3. Add selection action handler in GeckoSession; r=esawin
Add a handler for selection action delegate in GeckoSession that calls
the callback methods.

MozReview-Commit-ID: C2mMHHheTJT

--HG--
extra : rebase_source : c9804fdfc80377b477e084d69a8b6034f75c95b3
2018-04-02 17:13:45 -04:00
Jim Chen 474f97832a Bug 1441279 - 2. Add selection action JS modules; r=esawin,snorp
Add JS modules for listening to accessible caret events, and relaying
those events to Java.

MozReview-Commit-ID: JPLTMzK7Nzn

--HG--
extra : rebase_source : 394cc9b74f53dc2c1ca2fb6062747c37d1d5b582
2018-04-02 17:13:45 -04:00
Jim Chen 2b57a55d1b Bug 1441279 - 1. Add SelectionActionDelegate interface; r=esawin,snorp
Add a SelectionActionDelegate interface for handling text selection.

MozReview-Commit-ID: I37Hm6nphJx

--HG--
extra : rebase_source : 2bca7ef076aaac72d3e21993b0fa3008d02c49a5
2018-04-02 17:13:45 -04:00
Dan Glastonbury b32f1681cb Bug 1449342 - Update cubeb-pulse-rs to commit 55ce985. r=kinetik
Pull in fix for cubeb channel layout to PulseAudio channel layout.

MozReview-Commit-ID: L9v3cYM5PAY

--HG--
extra : rebase_source : bc4358efcd6ca6276c242ad3beec7f71288f36d7
2018-04-03 11:09:17 +10:00
Daniel Holbert 2f5d7919b0 Bug 1404222 followup: add 'explicit' keyword to fix static analysis build error. (no review, trivial bustagefix) 2018-04-02 14:08:33 -07:00
ffxbld 5158a406f7 No bug, Automated HPKP preload list update from host bld-linux64-spot-324 - a=hpkp-update 2018-04-02 14:03:17 -07:00
ffxbld 68c7ae8378 No bug, Automated HSTS preload list update from host bld-linux64-spot-324 - a=hsts-update 2018-04-02 14:03:13 -07:00
Michael Kaply 3713f953ac Bug 1446477 - Add policy for security.enterprise_roots.enabled. r=Felipe
MozReview-Commit-ID: 9c3lcCRVKDx

--HG--
extra : rebase_source : 43658e21955868994a2cabc6eecea1a40a22ec5e
2018-04-02 14:28:23 -05:00
Felipe Gomes c0503e6cae Bug 1445660 - Follow-up, make SearchBar policy enterprise-only. r=me 2018-04-02 14:14:38 -03:00
Cosmin Sabou f5fb323246 Merge inbound to mozilla-central. a=merge 2018-04-02 13:17:42 +03:00
Cosmin Sabou 121725038a Merge autoland to mozilla-central. a=merge 2018-04-02 13:15:52 +03:00
James Graham 8e287141ef Bug 1450635 - Disable CSP navigate-to tests for frequent instability on Windows, a=testonly
MozReview-Commit-ID: CntgTmxre0t
2018-04-02 09:22:33 +01:00
Hiroyuki Ikezoe 2b9a5049f3 Bug 1443358 - Consider that the target frame is scrolled out if scrollable parent frame size is empty. r=birtles
This patch adds three test cases;

1) Animation on position:absolute element in a zero-height iframe
  This animation should be throttled.
2) Animation on a non-zero width and hight position:absolute element but whose
   parent has a zero height
  This animation should NOT be throttled since the animation is visible
3) Animation on a zero-height position:absolute element whose parent also has
   zero height.
  This animation should be throttled since the animation is invisible

The first test fails without this fix and passes with the fix.
The second one passes regardless of the fix
The third one is marked as 'todo' since it doesn't pass with this fix.

MozReview-Commit-ID: 8pNUFQ71ivj

--HG--
extra : rebase_source : d1d37e5324247efc20a39d86a0f8849450cc7533
2018-04-02 13:34:14 +09:00