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

569871 Коммитов

Автор SHA1 Сообщение Дата
Andrew Osmond 5f57793c54 Bug 1368776 - Part 8. Fix ImageResource::GetImageContainerImpl assert to allow high quality scaling. r=tnikkel 2017-11-17 06:45:26 -05:00
Andrew Osmond a01ef792f6 Bug 1368776 - Part 7. Remove size parameter from ImageResource::UpdateImageContainer. r=tnikkel 2017-11-17 06:45:25 -05:00
Andrew Osmond 634060f444 Bug 1368776 - Part 6. Add support for multiple differently-sized image containers for downscale-on-decode. r=tnikkel
Exposure of this functionality comes in a later patch in the set.
Experimental testing with WebRender and image layers enabled suggests
most of the time we are not using more than one image container per
image, hence why mImageContainers has room for one container without a
malloc.
2017-11-17 06:45:25 -05:00
Andrew Osmond 53cb3aad32 Bug 1368776 - Part 5. Refactor ImageResource::GetCurrentImage to reduce code duplication. r=tnikkel 2017-11-17 06:45:25 -05:00
Andrew Osmond 8dcbfe2c0b Bug 1368776 - Part 4. Handle all potential DrawResult values to make Image::GetImageContainerImpl more generic. r=tnikkel
RasterImage::GetCurrentImage can only return a subset of the DrawResult
values, and the original RasterImage::GetImageContainer implementation
relied upon this behavior. Now we handle them all to ensure that when
other image implementations reuse it, they may return any valid
DrawResult and get the expected results.
2017-11-17 06:45:25 -05:00
Andrew Osmond 0b4ae23fa1 Bug 1368776 - Part 3. Move RasterImage::GetCurrentImage to ImageResource. r=tnikkel
As part of the move, we add a IntSize parameter to
ImageResource::GetCurrentImage. This is because we don't have access to
the image's size (yet) from ImageResource, but additionally because we
will need this anyways when we support multiple image containers at
different sizes.
2017-11-17 06:45:24 -05:00
Andrew Osmond 6367b2724a Bug 1368776 - Part 2. Move RasterImage::GetImageContainer and UpdateImageContainer implementations to ImageResource. r=tnikkel
The only change to the moved implementation is that we no longer have
access to RasterImage::mHasSize and RasterImage::mSize. Thus we rely
upon imgIContainer::IsImageContainerAvailable to perform these checks.
2017-11-17 06:45:24 -05:00
Andrew Osmond b43a2010d4 Bug 1368776 - Part 1. Move RasterImage's ImageContainer state to ImageResource. r=tnikkel
This state will eventually be used by VectorImage when it supports image
containers. For now, it is harmless beyond using slightly more memory
for SVGs.
2017-11-17 06:45:23 -05:00
Andrew Osmond 37395798ee Bug 1368776 - Part 0. Move RasterImage's NotifyDrawingObservers to ImageResource. r=tnikkel 2017-11-17 06:45:23 -05:00
Tim Taubert e3b5379696 Bug 1418242 - [u2f-hid-rs] Let stubs fail, instead of running until cancellation r=jcj
1b1d79e653
2017-11-16 21:22:04 +01:00
Jan de Mooij 3a57a1a466 Bug 1417844 part 5 - Stop passing -v 170 to xpcshell. r=jmaher 2017-11-17 12:14:04 +01:00
Jan de Mooij 793d5faa99 Bug 1417844 part 4 - Remove more JSVersion code. r=evilpie 2017-11-17 12:13:42 +01:00
Jan de Mooij 2e7986aee1 Bug 1417844 part 3 - Remove JSVersion from subscript cache path. r=kmag 2017-11-17 12:13:15 +01:00
Jan de Mooij 7f30bf48a7 Bug 1417844 part 2 - Remove JSVersion from CompileOptions, CompartmentBehaviors, scripts. r=evilpie 2017-11-17 12:12:39 +01:00
Jan de Mooij 98d0642163 Bug 1417844 part 1 - Remove JSVersion related code from jit-tests and jsreftests. r=anba 2017-11-17 12:12:05 +01:00
Florian Quèze db57a79267 Bug 1405670 - remove tests for search-metadata.json migration, r=adw. 2017-11-17 12:06:06 +01:00
Florian Quèze d622df7dce Bug 1405670 - fix search service tests relying on dropping .xml files in the profile folder, r=adw. 2017-11-17 12:05:47 +01:00
Florian Quèze b44b6a963a Bug 1405670 - remove support for NS_APP_SEARCH_DIR_LIST and NS_APP_SEARCH_DIR from the directory service, r=adw. 2017-11-17 12:05:20 +01:00
Florian Quèze 97356e430c Bug 1405670 - stop importing old search metadata from search-metadata.json, r=adw. 2017-11-17 12:04:44 +01:00
Florian Quèze 229e50d560 Bug 1405670 - stop saving the last modification date of directories we loaded engines from, r=adw. 2017-11-17 12:04:27 +01:00
Florian Quèze 47b9babf07 Bug 1405670 - stop importing old search plugins from <profile>/searchplugins/*.xml when the cache file is missing, r=adw. 2017-11-17 12:03:52 +01:00
Benjamin Bouvier 2c71210b54 Bug 1417555: Fix a rebasing error; r=me
MozReview-Commit-ID: BmFj7rU7Sxd

--HG--
extra : rebase_source : 9de285f15551261ccd990ec4352e20836a5b910f
2017-11-17 11:57:16 +01:00
Jonathan Kew e264fbefb1 Bug 1416795 - Implement synthetic-oblique font rendering by applying a transform at gfxFont::Draw time, rather than setting it on the cairo font matrix. r=jrmuizel 2017-11-17 10:54:21 +00:00
Jonathan Kew 35d7befd30 Bug 1416762 - Avoid using the LastResort font on macOS for glyph fallback -- prefer to draw hexboxes for unsupported characters. r=jrmuizel 2017-11-17 10:54:19 +00:00
Benjamin Bouvier f1a832bd0b Bug 1417555: Fuse the script load and jit code load into one masm instruction; r=jandem
MozReview-Commit-ID: 4hyHyjHpu2B

--HG--
extra : rebase_source : 3dbf3a6a44c63d092f8c679fb0fef3c7e498c9d6
extra : histedit_source : 620fdc32897f676650e37218ff43e132ec54baf8
2017-11-15 17:11:54 +01:00
Benjamin Bouvier 09eaa31001 Bug 1417555: Rejigger how native/script are stored in JSFunction and update callers; r=jandem
MozReview-Commit-ID: JdNwPLTvsTt

--HG--
extra : rebase_source : 36a66b08f78d8a3fa60ee264abd8fc0033b6da81
extra : histedit_source : 15da64862811a0dd252743c693c8cee9453b3174
2017-11-15 16:28:56 +01:00
Benjamin Bouvier 3f95c09fd2 Bug 1417555: Use more descriptive names in the JSFunction union; r=jandem
MozReview-Commit-ID: FWW43cMAbnv

--HG--
extra : rebase_source : a4ec32b69bbb0c627459253a6b1a370a5c6640d4
extra : histedit_source : 5435152c5900a8f6c059387e30fab3625b40ba21
2017-11-15 15:51:59 +01:00
Benjamin Bouvier 1b49087f99 Bug 1417555: Random cleanups; r=jandem
MozReview-Commit-ID: IUib7BfNWEN

--HG--
extra : rebase_source : 6ac03ec53156fd3446ee032ca8533e7621bbd3d8
extra : histedit_source : 85c359dca98f83a872ea26ae5b8eeba7a5edbfb4
2017-11-15 15:27:23 +01:00
Ciure Andrei 0792c2eee8 Merge mozilla-central to mozilla-inbound. r=merge a=merge CLOSED TREE 2017-11-17 12:11:30 +02:00
Ciure Andrei 92d28bd8f2 Merge inbound to mozilla-central r=merge a=merge 2017-11-17 11:59:03 +02:00
Marco Castelluccio 14e0c2e19f Bug 1417289 - Disable failing part of TestDllInterceptor on code coverage builds. r=dmajor
--HG--
extra : rebase_source : 1a87e7832da133ae74bd201bdfe9327923941dcf
2017-11-17 10:32:50 +01:00
Tim Taubert b7e7434f37 Bug 1418018 - [u2f-hid-rs] Use CFRetain() to ensure the CFRunLoop! is kept alive as long as we need it r=jcj
c02ac553ca
ceede2fd8e
2017-11-16 21:26:18 +01:00
Makoto Kato 8fbfdec507 Bug 1417356 - xpcshell doesn't have Java thread. r=jchen
This is a regression by bug 1403690.  After landing this, some xpcshell tests
cause crash with stylo.

mozilla::java::GeckoAppShell::GetShowPasswordSetting doesn't work on xpcshell
test.  If JNI isn't available such as xpcshell, we shouldn't use this method.

MozReview-Commit-ID: AUrT93SkQ2H

--HG--
extra : rebase_source : 2147a42633ea98e3a4d891af832f28c105d5dcf8
2017-11-16 12:25:26 +09:00
Tim Taubert 12a6719462 Bug 1418234 - [u2f-hid-rs] Small cleanup in macos::Transaction::new() r=me
ef4332519a
2017-11-15 04:55:41 +01:00
Ethan Lin 7096d91795 Bug 1416620 - Fix webrender commands in nsDisplayButtonBorder. r=kats
MozReview-Commit-ID: 418FZgwFR2i
2017-11-17 17:09:33 +08:00
Tim Taubert 73cfd2472a Bug 1415675 - Web Authentication - Support AbortSignal types r=jcj,smaug
Summary:
This patch adds support for aborting WebAuthn requests via AbortSignals.

https://w3c.github.io/webauthn/#abortoperation
https://w3c.github.io/webauthn/#sample-aborting
https://dom.spec.whatwg.org/#abortcontroller-api-integration

It also adds a variety of request abortion/cancellation tests.

To test request cancellation we can use USB tokens as those requests will
never complete without a token and/or user interaction. A bonus here is that
we'll have a little coverage for u2f-hid-rs.

Reviewers: jcj, smaug

Reviewed By: jcj, smaug

Bug #: 1415675

Differential Revision: https://phabricator.services.mozilla.com/D245

--HG--
extra : amend_source : bd779d5c4c6a11dd8ce34c0cc86675825b799031
2017-11-17 09:44:50 +01:00
Andreea Pavel bfd41fe2bc Backed out 5 changesets (bug 1366083, bug 1410528, bug 1417267) for failing Spidermonkey jstests and jit-tests r=backout on a CLOSED TREE
Backed out changeset a83b373d2d2e (bug 1417267)
Backed out changeset 3059e975eef8 (bug 1366083)
Backed out changeset 94d20ed3c062 (bug 1410528)
Backed out changeset 5e1dc7fec0ff (bug 1410528)
Backed out changeset ec0702d55b01 (bug 1410528)
2017-11-17 10:13:38 +02:00
John Dai a710f595fa Bug 1406325 - Part 5: Implement try to upgrade. f=echen, r=smaug 2017-11-14 19:25:00 +08:00
John Dai d1400ac8b1 Bug 1406325 - Part 4: Use mType for LookupCustomElementDefinition and also removing parts of v0. f=echen, r=smaug 2017-11-14 19:23:00 +08:00
John Dai 2319f825df Bug 1406325 - Part 3: Refactor custom elements clone a node. f=echen, r=smaug 2017-11-14 20:01:00 +08:00
Gregory Szorc 214be74c6c Bug 1417264 - Write .mozconfig.json from Python; r=nalexander
In order to determine if we need to re-run configure, we write
a JSON file representing the evaluated mozconfig. If this JSON
file changes, configure (and config.status for that matter) is
out of data and it is re-executed.

This commit moves the generation of that JSON file to Python.

MozReview-Commit-ID: 636rpSY7gOm

--HG--
extra : rebase_source : ee1defd74decfd64ffb66a45b053dada58de04fb
2017-11-13 17:45:03 -08:00
Gregory Szorc f269a93370 Bug 1417264 - Write objdir .mozconfig from Python; r=nalexander
This is a pretty straightforward port of the logic. But we
even go a step further: we delete the file in the objdir if there is
no source mozconfig!

MozReview-Commit-ID: AHFFzy6mXRY

--HG--
extra : rebase_source : 1b9387bd72f5a8e9bf8274f5764b0db0176fdba2
extra : source : 0cab9a382d817e6fbab9daa37db0f23e7f73e71f
2017-11-13 17:31:14 -08:00
Gregory Szorc c4869e52d7 Bug 1417264 - Remove target for autoconf.mk; r=nalexander
This target isn't referenced elsewhere in client.mk. It appears to be
dead.

When this target became orphaned, I don't know. I suspect at some point
some included .mk file attempted to "include autoconf.mk." But I'm not
sure what file that would have been or when it would have changed.

FWIW, autoconf.mk is generated by config.status, courtesy of it being
listed in CONFIGURE_SUBST_FILES.

MozReview-Commit-ID: AcPrihAou11

--HG--
extra : rebase_source : 68b1b19428d0754884515c42250353bd75407784
2017-11-13 17:22:38 -08:00
Gregory Szorc e842a1e0ab Bug 1417264 - Write .mozconfig.mk file from Python; r=nalexander
The file is a filtered version of the make file that we previously
started generating for client.mk. Why there is special casing for
UPLOAD_EXTRA_FILES, I'm not sure. This smells fishy and is something
I'd like to take a look at once all code is ported out of client.mk.

The removal of the logic from client.mk meant that we could remove
a bunch of code from client.mk related to loading mozconfig files.
We can now simply include the auto-generated make file directly and
be done with it.

MozReview-Commit-ID: 4M5NElQA7iR

--HG--
extra : rebase_source : 87ed98fa62513007c6fdd2df00eb871a5a29a146
extra : source : 247617a64b7c438528f97d10c86e2f7b8cb72237
2017-11-13 16:22:42 -08:00
Gregory Szorc 8b6802b16f Bug 1417264 - Move printing of mozconfig lines to Python; r=nalexander
We write the file that client.mk is printing from Python. We can
also log it from there pretty easily. So do that.

MozReview-Commit-ID: 7eeugdOJR5b

--HG--
extra : rebase_source : 308826e948fa20684bbc40c806322f802689627e
2017-11-13 15:35:16 -08:00
Gregory Szorc db1d4ad2e7 Bug 1417264 - Refactor code for writing mozconfig make file; r=nalexander
Upcoming commits need to move more logic from client.mk. It will
be easier if we have a list of lines in the mozconfig as a local
variable.

MozReview-Commit-ID: 1wFZTfWLGP9

--HG--
extra : rebase_source : 5e3c408fdf7f953e9cbac1c4a57fd5fa87f8fbbc
2017-11-13 16:14:47 -08:00
Tim Nguyen 3adfb3eca6 Bug 1415878 - Accept both Chrome arrays and CSS colors for all properties. r=jaws
MozReview-Commit-ID: 6NkIUZKWkBI

--HG--
extra : rebase_source : 9f333c76bd3d9b321851129b0cb815686753fe82
2017-11-16 12:40:53 +00:00
Kartikaya Gupta 5142eee14b Bug 1389149 - Conditionally create the compositor hit-test info items. r=mstange
Create hit-test info items (if enabled) for each frame that is not
invisible to hit-testing. This is not optimized at all yet, so it
creates a lot of display items if enabled.

MozReview-Commit-ID: LFqoaZ9e99F

--HG--
extra : rebase_source : 8a4a6bf912f88b35f2ed86f9a84ddb74e69bde38
2017-11-15 11:39:45 -05:00
Kartikaya Gupta f00ba5afd5 Bug 1389149 - Add a new display item to carry the compositor hit-test info to WR. r=mstange
This also adds a flag to the nsDisplayListBuilder to better control
the creation of these items.

MozReview-Commit-ID: BbeRGDjd2ie

--HG--
extra : rebase_source : ec36114d3c7eefffcf9612fc2da1aaf1353c35d8
2017-11-15 11:39:45 -05:00
Kartikaya Gupta a02e29e13b Bug 1389149 - Add WR bindings for setting hit-test info and doing hit-tests. r=mstange
This exposes some functions on wr::DisplayListBuilder to set hit-test
info and to do hit-tests.

The mechanism to set hit-test info is made a little more generic than is
actually used in this patchset, because doing it this way allows for
more optimization possibilities.
Specifically, the API allows setting some hit-testing state which is then
applied to all display items that are created until that state is
updated or cleared. An alternative would be to specify the hit-testing
state explicitly when creating particular display items; however doing
that would force the call sites that create the display items to compute
or obtain the hit-testing state, which would make the code less
encapsulated and harder to refactor/optimize.

MozReview-Commit-ID: EJoCFv83iu8

--HG--
extra : rebase_source : d2a117a52144f76dcc312de2a4047298e78135cb
2017-11-15 11:39:44 -05:00