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

544359 Коммитов

Автор SHA1 Сообщение Дата
Carsten "Tomcat" Book f6130d3fe8 Backed out changeset feedcde68c2a (bug 1338651) for bustage 2017-06-30 09:41:23 +02:00
Andrew Swan 503a78588d Bug 1369577 Part 2 Propagate isHandlingUserInput for browserAction, pageAction, and menus r=kmag
The implementations of browserAction, pageAction, and menu onClick
handlers now stash the current <browser> until we get a reply from
the extension process indicating that the handler has finished running.
We also have to take care to keep that <browser> around even if the
permissions api has to be loaded asynchronously.

MozReview-Commit-ID: BYJaiwdj40u

--HG--
extra : rebase_source : 3d9cba03d2853ef8d71b6c3e3a1fd0aba400b39c
2017-06-15 12:48:40 -07:00
Andrew Swan c29de224fb Bug 1369577 Part 1 Rename SingletonEventManager to EventManager r=kmag
MozReview-Commit-ID: 7nsYWdSTJCG

--HG--
extra : rebase_source : 7afd89a9a1853d51bd31196bb2faa7e0d786043c
2017-06-09 13:49:07 -07:00
Wander Lairson Costa ad280021a7 Bug 1338651: Change docker image home dir to /build. r=dustin,mshal
Using /home/worker is the build directory has a 30% talos performance
loss, because test machines has a /home mount directory.

MozReview-Commit-ID: zehcGJrUQX

--HG--
extra : rebase_source : e9ce75ecf18e7d4c829e369f5fbd1df8d6449edf
2017-06-29 15:45:01 -07:00
Gerald Squelart a1719079b5 Bug 1377338 - Stop showing 'Report Site Issue' notification on media errors - r=jya
A lot of reports have already been filed; and more are coming every day, which
probably won't bring much value, compared to the time needed to look at them.
So we are disable this functionality for now, to give us time to review current
reports.

MozReview-Commit-ID: FbMSHvZXrtc

--HG--
extra : rebase_source : 579302fa5ac7739ac44b8cbfb0d62827f393d154
2017-06-29 16:58:14 -07:00
Cameron McCormack 09fa89b60e Bug 1372061 - Shuffle some fields around to avoid bindgen issues. r=emilio
MozReview-Commit-ID: IMzcnJRtGJi
2017-06-29 22:39:31 -07:00
Ting-Yu Chou 8f144f6221 Bug 1348099 part 3 - Fix the codegen so the methods for clearing cached attribute values are not unforgeable. r=bz
Current codegen list the methods for clearing cached attribute values in both
chrome only unforgeable methods and chrome only normal methods, but they should
exist only in the normal ones.

MozReview-Commit-ID: Il2JvCLZ2v3

--HG--
extra : rebase_source : 21b9c715c921c4ac7f6ed4c235ee79a3628162bd
2017-06-29 17:54:20 +08:00
Ting-Yu Chou a1814c7263 Bug 1348099 part 2 - Add tests for DOM Xrays that properties are exposed to only proper object types. r=bz
MozReview-Commit-ID: Iu86lAviFJK

--HG--
extra : rebase_source : ac0df64b504212a090934427e2c091eb40641877
2017-06-22 14:43:11 +08:00
Ting-Yu Chou 2a8c9b7ffd Bug 1348099 part 1 - Binary search property id when resolve DOM Xrays own property. r=bz
Currently we resolve a property by iterating every prefable and check whether it
is enabled.  If it is, we linear search the ids that it manages.  This patch
changes that to binary searching to find whether the id being resolved is
present first, and checking whether its prefable is enabled only when we find
it.  This improves the performance of property resolution, especially when the
property is not present.

The patch stores all the property ids a NativePropertiesN owns in a single array
of PropertyInfo structs.  Each struct contains an id and the information needed
to find the corresponding Prefable for the enabled check, as well as the
information needed to find the correct property descriptor in the Prefable.  We
also store an array of indices into the PropertyInfo array, sorted by bits of
the corresponding jsid.  Given a jsid, this allows us to binary search for the
index of the corresponding PropertyInfo, if any.  The index array requires 2
bytes for each property, which is ~20k across all our bindings.  The extra
information stored in each PropertyInfo requires 4 bytes for each property,
which is about 40k across all our bindings in 32-bit builds, or 80k in 64-bit
builds due to alignment requirements on PropertyInfo.  However we save a bit of
memory from changing NativePropertiesN's trios to duos.

The array of unsorted ids is kept because XrayOwnPropertyKeys() includes only
properties that are enabled.  Without it, we will need to check every single
property to know whether its prefable is enabled or not, which is inefficient.

With this patch, initializing property ids takes longer because of the sorting.
I measured also insertion sort because I thought the ids should be nearly sorted
as they are generated sequentially at run time, but that's not the case and
NS_QuickSort() runs faster.

MozReview-Commit-ID: Lc4Z1ui3t0o

--HG--
extra : rebase_source : 314efe467a14428c57f90af2ecc0ec5c47a31993
2017-06-12 12:13:38 +08:00
Christian Holler b8ee76ebd8 Bug 1373256 - Changes to support -fsanitize=integer in the codebase. r=froydnj
The -fsanitize=integer analysis from UBSan can be helpful to detect signed and unsigned integer overflows in the codebase. Unfortunately, those occur very frequently, making it impossible to test anything with it without the use of a huge blacklist. This patch includes a blacklist that is broad enough to silence everything that would drain performance too much. But even with this blacklist, neither tests nor fuzzing is "clean". We can however in the future combine this with static analysis to limit ourselves to interesting places to look at, or improve the dynamic analysis to omit typical benign overflows.

It also adds another attribute that can be used on functions. It is not used right now because it was initially easier to add things to the compile-time blacklist to get started.

Finally, it includes a runtime suppression list and patches various parts in the test harnesses to support that. It is currently empty and it should not be used on frequent overflows because it is expensive. However, it has the advantage that it can be used to differentiate between signed and unsigned overflows while the compile-time blacklist cannot do that. So it can be used to e.g. silence unsigned integer overflows on a file or function while still reporting signed issues. We can also use this suppression list for any other UBSan related suppressions, should we ever want to use other features from that sanitizer.

MozReview-Commit-ID: C5ofhfJdpCS

--HG--
extra : rebase_source : 952043a441b41b2f58ec4abc51ac15fa71fc142f
2017-04-09 12:59:26 +02:00
Johann Hofmann 4c2650ccdf Bug 1363059 - Add a test for images loaded at startup vs. images shown at startup. r=florian,jwatt
This patch enables startupRecorder.js to collect data on
loaded and shown raster and SVG images on startup via events
from native code. It also adds a test that uses this data
to find images that are unnecessarily loaded.

I've not fixed any of the affected images yet, there's a
fairly comprehensive whitelist that I want to gradually
decrease by opening bugs in the respective components.

MozReview-Commit-ID: 9KqQvKLtZhu

--HG--
extra : rebase_source : 5f75fcd1152f569a5b48e21d4e4821a24f768ecd
2017-06-15 00:11:48 +02:00
Matthew Wein 24c37da7db Bug 1354336 - Require all browser_style elements to have the browser-style class r=mikedeboer
MozReview-Commit-ID: 6bQZDa3zZA3

--HG--
extra : rebase_source : 026f74066f9b7f0c446871e7b01ce482e6511af5
2017-06-23 13:54:19 -04:00
Alex Chronopoulos 41737dc1af Bug 1213414 - Implement channelCount audio constraint. r=jib,padenot
MozReview-Commit-ID: K95iBYOE1nR

--HG--
extra : rebase_source : 5c73eea4902933faec75e37d90e42a2f38c51b81
2017-06-29 21:01:17 -07:00
Alex Chronopoulos d39881db34 Bug 1213414 - Add channelCount constraint in webidl file. r=jib,padenot,smaug
MozReview-Commit-ID: G8r11l1lEYr

--HG--
extra : rebase_source : 7e7586f7234181cde402de8b688a7d1739c87744
2017-06-29 20:59:30 -07:00
Phil Ringnalda cdccb1a778 Backed out changeset 07b3b72fe522 (bug 1373159) for failures in context-fill-opacity and context-stroke-opacity reftests on Windows 8
MozReview-Commit-ID: FC6LKD9ZegJ
2017-06-29 19:56:20 -07:00
Jonathan Watt 0f6107d4a9 Bug 1344910, part 2 - Add a '-moz-win-accentcolortext' color keyword to color text that will be drawn over an accent color background. r=jimm
on a CLOSED TREE, because it failed to autoland before bug 1344917 landed.

MozReview-Commit-ID: 9l2NsQlewIJ
2017-06-29 18:57:46 -07:00
Jonathan Watt 33a8a677ca Bug 1344910, part 1 - Add a '-moz-win-accentcolor' color keyword to expose the Win10 accent color. r=jimm
on a CLOSED TREE, because it failed to autoland before bug 1344917 landed.

MozReview-Commit-ID: 9jMMVnnSF5h
2017-06-29 18:57:01 -07:00
JW Wang 21dc253e76 Bug 1377025. P2 - dispatch intrinsic size changes to the main thread. r=cpearce
So we can remove the use of mMutex from InvalidateWithFlags().

MozReview-Commit-ID: 75pHDM5xYYb

--HG--
extra : rebase_source : e39e1a3e4c796b8163b0c9b1bfeec048e6fb06f0
2017-06-29 10:27:38 +08:00
JW Wang 2545c614c0 Bug 1377025. P1 - dispatch image size changes to the main thread so mImageSizeChanged is for main thread only. r=cpearce
MozReview-Commit-ID: 6rpxjSVAY2h

--HG--
extra : rebase_source : e441d96e6e18c7891a6236d7909357248dad3bd6
2017-06-28 23:04:49 +08:00
Jonathan Watt 66f3169b87 Bug 1344917, part 2 - Add tests for the '-moz-windows-accent-color-applies' media query. r=heycam
MozReview-Commit-ID: 5lzVIVucvj2

--HG--
extra : rebase_source : ab2d2197ddf3528b6af212c00c8d3edb6ed1fc06
2017-06-08 15:05:37 +01:00
Jonathan Watt c9118ba223 Bug 1344917, part 1 - Add a '-moz-windows-accent-color-applies' media query. r=heycam
The '-moz-windows-accent-color-applies' media query matches when the Windows 10
accent color should be used as the background of the title bar.

MozReview-Commit-ID: GM7nZij6MhQ

--HG--
extra : rebase_source : ee8089ef876d0887e2c0d063015145d17eefa612
2017-06-08 14:49:21 +01:00
Emilio Cobos Álvarez 48c6f0bf38 servo: Merge #17571 - style: Update Stylo bindings for new LookAndFeel_ColorID variants (from emilio:jwatt); r=emilio
Rebase of https://github.com/servo/servo/pull/17449

Source-Repo: https://github.com/servo/servo
Source-Revision: 8029f1a1bbe9721f5bd1a3772c9573e2b700dcc6

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 0c0c15a7fb7b2da87e8e21b489017d3d5c505f7b
2017-06-29 17:39:23 -07:00
Mike de Boer d41016be92 Bug 1354159 - Part 4 - Implement the style changes necessary to properly view the new Bookmarks view inside the Library Panel. r=Gijs,mak
MozReview-Commit-ID: 2tPH89DXbcp

--HG--
extra : rebase_source : 8356f296a77e908884a20d58b40571b78ce35966
2017-06-29 17:57:28 -07:00
Mike de Boer 702aa1332c Bug 1354159 - Part 3 - Add a Bookmarks button to the Library panel that shows a subview with a list of most recent bookmarks. r=Gijs,mak
This patch changes the Recent Bookmarks flow in browser-places.js to use the new
PlacesPanelview to provide a rich view that support drag and drop and context
actions.
A new button 'Search Bookmarks' was added, which prefills the urlbar with '* ',
which is a shortcut for searching bookmarks using the Awesomebar.

MozReview-Commit-ID: 1XlO8HMKEJs

--HG--
extra : rebase_source : 59cdf8a24341eb5df55511c5be83ebee8787aad5
2017-06-29 17:57:25 -07:00
Mike de Boer b4756f63f5 Bug 1354159 - Part 2 - Introduce a new Places view type, PlacesPanelview, which can visualize query results inside panelview nodes. r=Gijs,mak
MozReview-Commit-ID: Ft1RC7dsqKD

--HG--
extra : rebase_source : e9448ee073b5341efc63496ae6504a764ee43f30
2017-06-29 17:57:24 -07:00
Mike de Boer 0da1ebf2ab Bug 1354159 - Part 1 - Remove the unneeded third 'view' argument from PlacesUIUtils.openNodeWithEvent(). r=mak
MozReview-Commit-ID: Jema2qMYEdX

--HG--
extra : rebase_source : 9cd5850e7c306ff62f9751ce419a278e8978b04e
2017-06-29 17:57:22 -07:00
Sebastian Hengst fb0361e188 Backed out changeset d5fa98ffa258 (bug 1354336) as requested by mattw. r=backout 2017-06-30 03:00:55 +02:00
William Lachance 11ee942eb6 Bug 1377221 - Use ignore_nan when dumping talos json blobs r=jmaher
NaN, inf, -inf values are not valid json-- let's just output null
instead when we get these values.

MozReview-Commit-ID: CxddnTXVs4A

--HG--
extra : rebase_source : 60886caff8c57c67579bf9fcabcdaa3ce2e7c4c9
2017-06-29 13:14:02 -07:00
William Lachance da19a6ef10 Bug 1377221 - Add simplejson dependency to talos r=jmaher
MozReview-Commit-ID: 9GKs8IFjXKD

--HG--
extra : rebase_source : 9e19202d04a8cd67641e029576185ec64119208e
2017-06-29 14:01:02 -07:00
Sebastian Hengst ab9ae9facf Backed out changeset 39f4723df4a3 (bug 1372061) for build bustage: ChildIterator.h:43:7: field 'mIndexInInserted' will be initialized after field 'mIsFirst'. r=backout 2017-06-30 02:52:55 +02:00
Greg Mierzwinski ad503dd5d3 Bug 1372324 - Enable talos tests on linux64-ccov. r=jmaher
This patch enables talos test suites to run on VM (taskcluster) and also enables these test suites to run with GCOV code coverage instrumentation on the linux64-ccov build.

MozReview-Commit-ID: 7p59zvra1ge

--HG--
extra : rebase_source : 990ebecb9daaee7c5030e08b0d763493103f0fe8
2017-06-09 14:51:20 -04:00
Jared Wein fdc5236783 Bug 1376893 - Don't display the disabled reload button with less opacity since it is only disabled temporarily and causes flickering in the UI. r=johannh
MozReview-Commit-ID: FHbzB54SSqC

--HG--
extra : rebase_source : 1a1dc796cb5208c583bac6bfeb846e8d4ead756f
2017-06-28 13:16:21 -07:00
Sam Foster 9afb8e9798 Bug 1375309 - Implement Photon download progressbar r=Paolo
* Split out the arrow and progressbar in the indicatorOverlay for individual animation.
* Group icon and progressbar parts into addressable elements in a single download-icons.svg

MozReview-Commit-ID: KAn0gFqjKjc

--HG--
extra : rebase_source : 4df5377be7d6d0b42eaebd1e28286b81fd555ec2
2017-06-28 15:03:52 -07:00
Cameron McCormack 2338c02a85 Bug 1372061 - Shuffle some fields around to avoid bindgen issues. r=emilio
MozReview-Commit-ID: 8PKFowep2b2
2017-06-29 17:32:52 -07:00
Doug Thayer 906343ceef Bug 1377098 - Don't dismiss restart notifications r=rstrong
Since the restart itself will clear the restart notification if
it's successful, there's no need to actually dismiss it even on
the main action being executed. Accordingly, this patch changes
it to pass the "dismiss" field to the main action, which will
cause the main action to simply degrade the doorhanger to a
badge.

MozReview-Commit-ID: 5FKTTihIoe4

--HG--
extra : rebase_source : ec9bc2b961bd1c2ec08580d95f0fec06a7f2b437
2017-06-29 11:39:02 -07:00
Matthew Wein a0a02343a4 Bug 1354336 - Require all browser_style elements to have the browser-style class r=mikedeboer
MozReview-Commit-ID: 6bQZDa3zZA3

--HG--
extra : rebase_source : 7b10bc5f3675fd03e318075023e8825d76b1f147
2017-06-23 13:54:19 -04:00
Sebastian Hengst 66ef48d17a Backed out changeset 38cdadf97cbc (bug 1365133) for still failing intermittently browser_change_app_handler.js and browser_notification_open_settings.js. r=backout 2017-06-30 02:07:34 +02:00
Sebastian Hengst a33ebcad7e Backed out changeset 4938ab2adfe9 (bug 1365133)
--HG--
rename : browser/components/preferences/in-content-new/tests/browser_security-2.js => browser/components/preferences/in-content-new/tests/browser_security.js
2017-06-30 02:02:55 +02:00
Andreas Tolfsen 4c3ba87cfe Bug 1372595 - Return single cookie for GetNamedCookie; r=jgraham
The GetNamedCookie command currently returns a JSON Array of one,
retained cookie, after it has removed the cookies that don't match by
name.

This is in violation of the WebDriver specification, which says it must
return the cookie serialisation directly.

MozReview-Commit-ID: 9yEiarEGBez

--HG--
extra : rebase_source : ec393eec712a6f957cee22d261bcd9ed13c6ec5b
2017-06-16 16:46:34 +01:00
Andreas Tolfsen ab3d0953f3 Bug 1372595 - Return cookie expiry timestamp; r=whimboo
The expires property on nsICookie2 does not exist and we are
consequently returning it as undefined, which gets omitted in the JSON
serialisation to the client.

This patch changes it to return the correct property so that the expiry
property is returned as part of the serialised cookie.

MozReview-Commit-ID: IIjf4NWnUoQ

--HG--
extra : rebase_source : 9e4695b7de1e7b866c10a4b181d75fdbf37db2f6
2017-06-28 14:16:50 -07:00
Andreas Tolfsen d8b064b62f Bug 1372595 - Let resource URL protocol be configurable; r=jgraham
The url fixture is used to access hosted files on the wptserve instance.
This patch makes it possible to choose between different wptserve HTTPDs
based on the protocol.

The default remains the HTTP protocol.

MozReview-Commit-ID: FvtMMUSlB4M

--HG--
extra : rebase_source : 3045dffd2c5c1ec5837b75252a4b148a5cc6e2b0
2017-06-13 16:37:38 +01:00
Andreas Tolfsen de001d80b7 Bug 1376128 - Lint testing/marionette; r=automatedtester
MozReview-Commit-ID: DY4yCSBEZrN

--HG--
extra : rebase_source : d4e25369418cc72a6ee9f78d44b050a87403391d
2017-06-29 16:40:24 -07:00
Andreas Tolfsen 32d341c354 Bug 1376128 - Remove unused getNavigator_ function from event module; r=automatedtester
MozReview-Commit-ID: 3RPaSq41Y9f

--HG--
extra : rebase_source : 29ed6d1d7101b620c944d923c7dfbe829b8029cc
2017-06-28 11:27:35 -07:00
Andreas Tolfsen ee51d983c0 Bug 1376128 - Use named options for JavaScriptError; r=automatedtester
Using the {foo = null} = {} shorthand to generate default values exposed
as function scope variables is more readable, and arguably somewhat safer,
than the current approach.

MozReview-Commit-ID: Lxn0fpBSR3a

--HG--
extra : rebase_source : 63fa829657d726e8987a77b5add817a3b7d0b7d3
2017-06-28 11:24:58 -07:00
Andreas Tolfsen ed364ef1d6 Bug 1376128 - Avoid use of proprietary catch-if statement; r=automatedtester
Whilst try...catch (e if foo) { ... } is a very nice construct, it has
not been standardised and we should avoid using non-web platform features.

MozReview-Commit-ID: 9qzHtBdlPfw

--HG--
extra : rebase_source : be27a3d647eba2d48721c77dabe12ca13278bda9
2017-06-28 11:22:29 -07:00
Andreas Tolfsen b8fed800ba Bug 1376128 - Ensure consistent return types from findElement; r=automatedtester
MozReview-Commit-ID: LnzsAHCMAxW

--HG--
extra : rebase_source : c9c44c07df3c29b3c5b80c507ab875278d597c90
2017-06-28 11:16:34 -07:00
Andreas Tolfsen 98e70a93d3 Bug 1376128 - Fix undefined id variable; r=automatedtester
We try to delete the element entry by "id", which is not defined.

MozReview-Commit-ID: DXAOJAV1z9Q

--HG--
extra : rebase_source : 103209d203f64bb354e46fb4fb98225b8e7165a0
2017-06-28 11:15:00 -07:00
Andreas Tolfsen 8f8617afe9 Bug 1376128 - Remove duplicated command entries; r=automatedtester
getContext and setContext are duplicated further up under the Marionette
serivce entries.

MozReview-Commit-ID: 2V5S2XG6wDw

--HG--
extra : rebase_source : 1f22adc294c063f014e3a0e884a01ed6a7fbe43e
2017-06-28 11:14:16 -07:00
Andreas Tolfsen 1b59155d85 Bug 1376128 - Throw RangeError if Window is not found; r=automatedtester
To ensure a consistent return type from browser.Context#get, this patch
introduces a RangeError to be thrown if the weak reference to the window
is empty.

MozReview-Commit-ID: 2aNOG9Uht3I

--HG--
extra : rebase_source : e57f288544b011444c26f0d0ecd68979aa0caced
2017-06-28 11:12:33 -07:00
Andreas Tolfsen 41af3d0aae Bug 1376128 - Use consistent return types for accessibility.service; r=automatedtester
accessibility.service is allowed to return undefined, but we should
be explicit that this condition is allowed instead of relying on the
default value of the service variable assigned on the first line.

MozReview-Commit-ID: LrlnIba56v5

--HG--
extra : rebase_source : 1b66b6aa4393cb14b41bc67036d5d7296195be32
2017-06-28 11:09:40 -07:00