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

529223 Коммитов

Автор SHA1 Сообщение Дата
Phil Ringnalda 3654f8f62b Backed out changeset 0a3044dc01d2 (bug 1354342) for eslint bustage 2017-04-06 20:26:36 -07:00
Phil Ringnalda 032b07550c Backed out changeset 4f7947062b4f (bug 1337062) for assertion failures in gfxVars.cpp
--HG--
extra : rebase_source : 307963eba4328b23edaf64e7255f5f501ace0efe
2017-04-06 20:11:19 -07:00
Connor Brewster 7d9ab3927e servo: Merge #16037 - Reduce cloning of FrameState (from cbrewster:reduce_framestate_clones); r=asajeffrey
<!-- Please describe your changes on the following line: -->
This uses `kmerge` from itertools to construct the jsh future and past iterators without having to do a collect/sort. This allows us to reduce cloning of `FrameState`.

---
<!-- 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: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because refactoring

<!-- 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: c87d0c671c2ae20a97099f3f369e81eb0ce5e403

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 43070ae1b6bc62aa2af1f0e07c74688a841b11e2
2017-04-06 21:22:14 -05:00
Julian_Chu de37c829c1 Bug 1351605 - update action bar when restoring r=sebastian
If the activity is restoring, onTabChanged might not be called.
To update title from existing Tab data in onResume.

MozReview-Commit-ID: 3LqQ6HDh7Dc

--HG--
extra : rebase_source : 1dd49658642be420d54d6a8e2d8c33e7658b0f2e
2017-04-06 17:02:17 +08:00
Julian_Chu e270fdb527 Bug 1351605 - Get rid of color variable in activity r=sebastian
Now we can get toolbar color from intent directly, and the intent will
be stored in `onSavedInstanceState`. Let's get rid of the local
variable.

MozReview-Commit-ID: OsqwgFJctH

--HG--
extra : rebase_source : a5cd688de88de564739481f77fe514bdeffd6c0e
2017-04-06 12:54:33 +08:00
Julian_Chu e87fa62937 Bug 1351605 - store start-intent in activity r=sebastian
`getIntent()` not always returns the intent whith start this Activity
due to GeckoApp.onCreate reset it. We make a copy here in case of this
activity is destroyed and re-created.

MozReview-Commit-ID: 7TF3b1WdbM2

--HG--
extra : rebase_source : 60bab715166fd01b1fc89ca149e7f5a0f94e6bd1
2017-04-06 11:40:04 +08:00
Andy McKay da7650dff2 bug 1354342 allow a relativeUrl for homepage r=mixedpuppy
MozReview-Commit-ID: 86V6vFjO66C

--HG--
extra : rebase_source : b6017ed9a4f50008d20fc6c5684a70a4a740aef7
2017-04-06 17:12:57 -07:00
Dustin J. Mitchell c9c7364396 Bug 1353456: summarize index routes to avoid scope bloat; r=jonasfj
MozReview-Commit-ID: 6ACnfKy2g0z

--HG--
extra : rebase_source : dcfb5dbe3b2d3396df7281f3300065db63a7d443
2017-04-04 19:26:15 +00:00
Gerald Squelart 9c16b0ccdc Bug 1337062 - Transfer initial gfxVars over command line - r=blassey
When a subprocess is launched, gfxVars updates (for non-default values) are
serialized and passed on the command line, up to a limit of 1023 characters,
and ensuring it should not overflow the command line size.

When the child starts, the command line parameter is given to gfxVars, so the
updates can be used during gfxVars::Initialize(), instead of doing a sync
request to the parent.

In case the updates are not sent, or in the unlikely case the child cannot
parse them, we fallback to the sync request -- The former case should be rare
enough that a slow sync request is acceptable: It should only happen if D3D
block-list is *modified* (most people would either use the default, or just
overwrite these prefs with short strings.)

MozReview-Commit-ID: 6MoJC0fe59Q

--HG--
extra : rebase_source : cdc2e451783160c579b8fc84050e8457c600523e
2017-03-28 12:16:41 +11:00
Bobby Holley 04137c02ea Bug 1354358 - Assert main thread in NS_IMPL_FFI_REFCOUNTING. r=xidorn
MozReview-Commit-ID: 4J7yuJ8Thn0
2017-04-06 19:22:01 -07:00
Hiroyuki Ikezoe f37158d811 servo: Merge #16292 - Discrete type animations (from hiikezoe:discrete-type-animations); r=emilio,birtles
<!-- Please describe your changes on the following line: -->
This is a PR of https://bugzilla.mozilla.org/show_bug.cgi?id=1336668

---
<!-- 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

<!-- Either: -->
- [X] These changes do not require tests because there is a test case in web-platform-tests.

<!-- 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: 8c2548a0c479d42dbc68ec1b64d028dcf5643dd5

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : b26ac73a5425326c63491afe2e83f8471a44211a
2017-04-06 20:44:23 -05:00
Mike Hommey d6aaa996f4 Bug 1353990 - Stop exporting brotli headers. r=gps
They have generic names, and are potentially conflicting with
in-tree headers with the same name (which is true for at least port.h).

There aren't enough users of brotli to want to avoid LOCAL_INCLUDES
in the directories that use it.

--HG--
extra : rebase_source : 82531ac5961ad80e1b3d0c1484a2f146be194411
2017-04-06 13:44:47 +09:00
Mike Hommey a1829611bc Bug 1353990 - Stop exporting woff2 headers. r=gps
woff_out.h includes port.h (actually, worse, "./port.h"), and in
dist/include, port.h is actually *not* the one from woff2...

We've just been lucky it's worked so far.

--HG--
extra : rebase_source : 65537c1f6c0ba540e0c93ef2c8ba587e5903d273
2017-04-06 13:42:27 +09:00
Bobby Holley 8f3f795143 servo: Merge #16291 - Hoist possibly_expired_animations into CurrentElementInfo (from bholley:possibly_expired); r=emilio
The current mechanism requires threading a lot of this state through a bunch of
callsites that are several layers of abstraction above the code that actually
uses this vector (which is only compiled for servo). Putting it in
CurrentElementInfo gets it nicely out of the way.

Source-Repo: https://github.com/servo/servo
Source-Revision: 48a412abc7d56529770bdbe2cf0f5e6af852538e

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 0835e398d3db3ff28992d71ee648485033c3c94d
2017-04-06 20:07:48 -05:00
Xidorn Quan e27d2e7dbe Bug 1343964 part 8 - Update mochitest expectation. r=xidorn
MozReview-Commit-ID: 36zfle7hfOG

--HG--
extra : rebase_source : cdbdf68bcf7c0b232a7b86862ff97d9aab4ca94b
2017-04-04 17:16:45 +10:00
Xidorn Quan 987754e4dc Bug 1343964 part 7 - Use URLExtraData for declaration modification directly for Servo backend. r=heycam
MozReview-Commit-ID: 78JRYKk9hgV

--HG--
extra : rebase_source : 1a86db507451637379e35ea17d9dbd88e8dc6902
2017-04-04 16:09:20 +10:00
Xidorn Quan 3d5b648721 Bug 1343964 part 6 - Add a const Rule() method for ServoStyleRule. r=heycam
MozReview-Commit-ID: 1rvWrN3Biut

--HG--
extra : rebase_source : 174ccdeb847c8f3f0807690a0ab0fa2bc949a2f2
2017-04-04 16:07:44 +10:00
Xidorn Quan 04c1637bb1 Bug 1343964 part 5 - Factor out common part of nsDOMCSSDeclaration::Parse{,Custom}PropertyValue. r=heycam
MozReview-Commit-ID: 6IX8sWF4Vhn

--HG--
extra : rebase_source : 197c9ccf51e8bb86f7335a5a72b370c89a23d7ea
2017-04-04 15:28:07 +10:00
Xidorn Quan ea9834babb Bug 1343964 part 4 - Have document and svg:use element own URLExtraData. r=bholley,bz
MozReview-Commit-ID: 8451L5qJvEx

--HG--
extra : rebase_source : caa9b3ccd786563a59dc39fe7c23842928c173cc
2017-04-06 16:51:29 +10:00
Xidorn Quan 4400d347a2 Bug 1343964 part 3 - Have ServoStyleSheet own a URLExtraData. r=heycam
MozReview-Commit-ID: CQyvrVtl0hr

--HG--
extra : rebase_source : 547fce2e9118bf9d6714775df847e8236aec74b6
2017-04-04 13:41:44 +10:00
Xidorn Quan 514feab11a Bug 1343964 part 2 - Move dummy url data to be a static member of URLExtraData. r=heycam
MozReview-Commit-ID: I6pc9WmrLW0

--HG--
extra : rebase_source : 9af2e97d22c58f480603eef97a833539bf69ced9
2017-04-04 13:21:16 +10:00
Xidorn Quan 2df49dbac2 Bug 1343964 part 1 - Move URLExtraData into its own header. r=heycam
This patch does the following in addition to a simple move:
* change the type of the pointers from RefPtr to nsCOMPtr
* move it from mozilla::css namespace to mozilla

MozReview-Commit-ID: 72MYq6kWm4s

--HG--
extra : rebase_source : 400fe0d7cc422f22592c302cfd4e457830b77e3e
2017-04-04 10:04:13 +10:00
Xidorn Quan d7042054d2 servo: Merge #16282 - Move dummy url data to be a static member of URLExtraData (from upsuper:bug1343964); r=heycam
This is the Servo side change of [bug 1343964](https://bugzilla.mozilla.org/show_bug.cgi?id=1343964) which has been reviewed on Bugzilla.

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

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 2d135f6e480fc2e1ff0b820ec4c4211465de5415
2017-04-06 19:33:35 -05:00
Michael Kaply 2f9dabec2b Bug 1348412 - Add dist specific menu for set as homepage. r=snorp
MozReview-Commit-ID: 1ipDDs4ZVAm

--HG--
extra : rebase_source : 11bbb2c591ac518a3bd7492d1988fba3639dea13
2017-03-27 17:05:22 -05:00
Michael Layzell fb7949544e Bug 1347290 - Set sgr0 to '' if blessings.tigetstr('sgr0') returns None, r=gps
MozReview-Commit-ID: vP4izM2RwP
2017-04-06 17:44:30 -07:00
Nils Ohlmeier [:drno] 45a1983cc1 Bug 1354222: fix log level casting warnings. r=erahm
MozReview-Commit-ID: A6hnPD3NkYr

--HG--
extra : rebase_source : a59a3d5acfdc219dd3f21b6acf1179125c766f5b
2017-04-06 11:00:35 -07:00
Markus Stange 6bc4c8de32 Bug 1354255 - Remove ElementRestyler::ComputeStyleChangeFor profiler instrumentation due to overhead. r=Ehsan
This only has overhead if the profiler is running, but it means that it has
the potential to skew restyle times in profiles.
We haven't measured the overhead of this, but it's probably non-zero, and at
the moment our profiling efforts are more focused on getting accurate times
than on getting useful information about restyling cost sources.

MozReview-Commit-ID: 3KmiiyGrxZH

--HG--
extra : rebase_source : df7047f1af5f36f7a1b3a18498d8eb5508ee0b93
2017-04-06 17:20:40 -04:00
Andreas Tolfsen 782bf7c317 Bug 1353074 - Components ctor test should not throw; r=maja_zf
Testing the return value is misleading in this case.  What we want to
test is that it does not throw due to a permissions issue.

MozReview-Commit-ID: 2Wbwou9opyF

--HG--
extra : rebase_source : cd056ed38b9cf7b9eb095635209fbe6b090721fd
2017-04-03 19:20:19 +01:00
Andreas Tolfsen 74899f126c Bug 1353074 - Run wrappedJSObject execute script tests in all sandboxes; r=maja_zf
MozReview-Commit-ID: 5u2u5alGb7Z

--HG--
extra : rebase_source : 4a5f4e3654c38d8f177410d23cd93db2ab20e7e3
2017-04-03 19:19:05 +01:00
Andreas Tolfsen 31840306ac Bug 1353074 - Run Components permission test in all sandboxes; r=maja_zf
The Components.classes constructor should throw an error in both the
mutable and the "default" sandbox.

MozReview-Commit-ID: C40nZNaVWwz

--HG--
extra : rebase_source : f02506f16ff409761ba09ae0f32ff2902cdf07a3
2017-04-03 19:18:25 +01:00
Andreas Tolfsen efe0198497 Bug 1353074 - Run globals execute script tests in all sandboxes; r=maja_zf
We accidentally only ran them in "default" and "system" before, and also
one of the arguments in the system globals test was wrong.

MozReview-Commit-ID: DmBYGsZaIVP

--HG--
extra : rebase_source : c9f1493ce3faed0ec2e5ad6125a4f7811a1fef03
2017-04-03 19:17:24 +01:00
Andreas Tolfsen 8cf451fca6 Bug 1353074 - Test arguments in all sandboxes; r=maja_zf
We were previously missing a test for the arguments variable that is
implicitly exposed to functions.

MozReview-Commit-ID: IC6aJcUsyhd

--HG--
extra : rebase_source : 9039dcb7fcea681d8c9cd729cca8c55701631a5c
2017-04-03 19:15:13 +01:00
Andreas Tolfsen 3516605970 Bug 1353074 - Use tuples for script arguments; r=maja_zf
The Python standard library uses tuples to define arguments for functions,
whenever they are invoked through meta programming.

The Marionette client only allows the list type for backwards
compatibility, so we prefer tuples in this case.

Another good argument for tuples is that tuples are immutable.

MozReview-Commit-ID: 72zPzYvBz7Q

--HG--
extra : rebase_source : 2406e92b8bec8a965df6457bb166fd9761513b1e
2017-04-03 19:14:16 +01:00
Andreas Tolfsen 23a0800f6f Bug 1353074 - Make unload event safe for introspection from content; r=maja_zf
Marionette does not protect the unloadHandler in
testing/marionette/evaluate.js from content introspection or
modification, which can happen when web frameworks override
window.addEventListener/window.removeEventListener.

The script evaluation module used in Marionette relies on
sandbox.window.addEventListener/removeEventListener to throw an error when
script execution is aborted due to the document unloading itself.  If the
window.addEventListener/removeEventListener functions have been overridden
to introspect the objects that are passed, they may inadvertently touch
objects originating from chrome space, such as the unloadHandler.

Because the Gecko sandboxing system put in place strict security measures
to prevent accidental chrome-space modification from content, inspecting
the unloadHandler will throw a permission denied error once the script
has finished executing.

We have found examples in the wild of this in particular with the Angular
web framework.  This patch makes the unloadHandler safe for introspection
from web content.

Fixes: https://github.com/mozilla/geckodriver/issues/515
MozReview-Commit-ID: E2LgPhLLuDT

--HG--
extra : rebase_source : 6fe4f61fd18f42fb5332a664189f3ea919db28c5
2017-04-03 18:36:43 +01:00
Wes Kocher 02ea689f15 Backed out changeset f898176c408d (bug 1281278) for xpcshell failures a=backout 2017-04-06 15:48:18 -07:00
Mike Hommey e91179eda5 Bug 1344038 - Remove --enable-gnomeui. r=karlt
--HG--
extra : rebase_source : 562519f2f6727750afe7d4a8503b41e722222d7d
2017-03-08 15:35:53 +09:00
Mike Hommey 94c16743bb Bug 1344038 - Remove --disable-gio. r=karlt
--HG--
extra : rebase_source : 3b5b820536b0e9b1fb1da3a16c444ed7839770b9
2017-04-05 14:06:25 +09:00
Mike Hommey 3deb62f2b2 Bug 1344038 - Move the gio protocol handler under netwerk/protocol. r=chmanchester,karlt
Historically, we had support for some GNOME VFS protocols through the
gnomevfs library, and this was under extension. This may not have been
built by default when it was introduced, but GNOME upstream moved those
things into Gtk itself, and we then got support for the new Gio-based
protocol, similar to what we had through the gnomevfs library.

Time passes, and we switched off the gnomevfs library entirely, and
enabled the Gio-based protocol handlers by default. We then removed
everything related to the gnomevfs library.

Fast forward to now, and disabling Gio support in Firefox just doesn't
make sense, and leaving the gio protocol handler as an extension doesn't
make sense either.

As it is a protocol handler, its natural place is under
netwerk/protocol, which is where we're moving it here.

The netwerk/protocol subdirectories being handled automatically, we
don't need to add the moved directory in any DIRS variable.

--HG--
rename : extensions/gio/moz.build => netwerk/protocol/gio/moz.build
rename : extensions/gio/nsGIOProtocolHandler.cpp => netwerk/protocol/gio/nsGIOProtocolHandler.cpp
extra : rebase_source : 071a9cb1769f013717357458df24e2fd9570ccf4
2017-04-05 13:48:52 +09:00
Mike Conley 2228d5aa1b Bug 1354080 - Stop doing needless work in the parent process every time the refresh driver ticks. r=kats
When we're animating, we tick the refresh driver. If that occurs in the parent process
when e10s is enabled, then we currently run TabParent::DidRefresh which does some
dimensions calculations and might send a message to the content process if the
dimensions have changed.

This was originally added to fix a B2G bug in bug 1153023. We don't need to do it
anymore, since we don't set CSS transforms on content browser windows.

MozReview-Commit-ID: JJ7AJHlSyWn

--HG--
extra : rebase_source : b45c9f02c3db8b7ecf0beb40fa7540db39473e8d
2017-04-06 18:11:34 -04:00
Tomislav Jovanovic 357f3dea5b Bug 1328758 - Better error messages for tabs.executeScript r=kmag
MozReview-Commit-ID: PQhltZVepj

--HG--
extra : rebase_source : 1e18dc65864bcc715436a3ff003d2279a6e7b087
2017-04-02 01:05:37 +02:00
Alex Gaynor 44ae0c536b Bug 1295700 - Don't allow content processes to access the weave director on macOS r=haik
These directories contain sensitive content, and access is not necessary now that we have file content processes.

r=haik

MozReview-Commit-ID: FiRJkMnlYUx

--HG--
extra : rebase_source : 0bcdefcb1ea410fb26c3f8373673488e2a5fdd75
2017-04-06 15:20:23 -04:00
Wes Kocher 4778bff897 Merge m-c to autoland, a=merge 2017-04-06 15:10:53 -07:00
Wes Kocher 0c3144c6f6 Merge inbound to central, a=merge 2017-04-06 15:01:34 -07:00
Wes Kocher 09d9c7a692 Merge autoland to central, a=merge 2017-04-06 14:52:43 -07:00
L10n Bumper Bot 45121b0d1b no bug - Bumping Fennec l10n changesets r=aki a=l10n-bump
an -> default
ar -> ['android', 'android-api-15', 'android-multilocale']
as -> default
ast -> default
az -> default
bg -> default
bn-BD -> default
bn-IN -> default
br -> default
ca -> ['android', 'android-api-15', 'android-multilocale']
cak -> default
cy -> default
dsb -> default
el -> default
en-GB -> default
en-ZA -> default
eo -> default
es-AR -> ['android', 'android-api-15', 'android-multilocale']
es-CL -> default
es-MX -> default
et -> ['android', 'android-api-15', 'android-multilocale']
eu -> ['android', 'android-api-15', 'android-multilocale']
fa -> ['android', 'android-api-15', 'android-multilocale']
ff -> default
fy-NL -> ['android', 'android-api-15', 'android-multilocale']
ga-IE -> ['android', 'android-api-15', 'android-multilocale']
gd -> ['android', 'android-api-15', 'android-multilocale']
gl -> ['android', 'android-api-15', 'android-multilocale']
gn -> default
gu-IN -> default
he -> ['android', 'android-api-15', 'android-multilocale']
hi-IN -> default
hr -> default
hsb -> default
hu -> ['android', 'android-api-15', 'android-multilocale']
hy-AM -> default
id -> ['android', 'android-api-15', 'android-multilocale']
is -> default
ka -> default
kab -> default
kk -> default
kn -> default
lo -> default
lt -> ['android', 'android-api-15', 'android-multilocale']
lv -> default
mai -> default
ml -> default
mr -> default
ms -> default
my -> default
ne-NP -> default
nn-NO -> ['android', 'android-api-15', 'android-multilocale']
or -> default
pa-IN -> ['android', 'android-api-15', 'android-multilocale']
rm -> default
ro -> ['android', 'android-api-15', 'android-multilocale']
sl -> ['android', 'android-api-15', 'android-multilocale']
son -> default
sq -> ['android', 'android-api-15', 'android-multilocale']
sr -> ['android', 'android-api-15', 'android-multilocale']
ta -> default
te -> default
th -> ['android', 'android-api-15', 'android-multilocale']
tr -> ['android', 'android-api-15', 'android-multilocale']
trs -> default
tsz -> default
uk -> ['android', 'android-api-15', 'android-multilocale']
ur -> default
uz -> default
wo -> default
xh -> default
zam -> default

--HG--
extra : histedit_source : e1dfddc9ded3634707fb0ae8fb4e67db4acba3ea
2017-04-06 12:42:58 -07:00
Gregory Szorc ec221f71d5 Bug 1354224 - Upgrade to Mercurial 4.1.2; r=dustin
This is a pretty straightforward change. Just bumping package versions
and hashes. Behavior should be almost identical to the previous 4.1.1+
packages.

MozReview-Commit-ID: CaVjM0JHYKi

--HG--
extra : rebase_source : dcd0ee2661fd088daf3b5c6709c4c6f2f95bd410
2017-04-06 11:28:02 -07:00
James Graham 7daf9955f1 Bug 1353858 - Fix ASAN leak detection in mochitest, r=ato
The gecko messages are now in the "process_output" action, rather than
in the "log" action (except for a few legacy cases), so examine both
when looking for LSAN messages.

MozReview-Commit-ID: 82r1p8WLwFa

--HG--
extra : rebase_source : 5af1c529e58f5ba90a3fd222e3cbbc67a850a08c
2017-04-06 17:15:01 +01:00
Ralph Giles 1d688bb86c Bug 1354221 - Remove dead code in _process_rust_library. r=froydnj
These variables are ignored in favour or reading the same values
from the passed in libdef object.

MozReview-Commit-ID: 8Xkkd68clNN

--HG--
extra : rebase_source : 767c15f1b59a6f48d09411c4f2e64eff9f8b4cc6
2017-04-06 10:59:46 -07:00
Sebastian Hengst 222d5ebd0d Backed out changeset ed9cefa8d2db (bug 1352699) for failing talos damp test. r=backout 2017-04-06 20:16:01 +02:00
Sebastian Hengst 7370b3abcb Backed out changeset 259e15518d23 (bug 1352699) 2017-04-06 20:15:19 +02:00