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

755956 Коммитов

Автор SHA1 Сообщение Дата
James Teh 4c07d821c8 Bug 1694865 part 23: Support inheritance/overriding of reference counting in IUnknownImpl. r=morgan
Until now, our a11y COM implementation has relied on AddRef and Release from nsISupports, but this soon won't be possible.
Instead, MsaaAccessible will implement its own reference counting using DECL_IUNKNOWN.

DECL_IUNKNOWN previously declared AddRef and Release as final.
This doesn't work for MsaaAccessible because there is an aggregatable subclass (MsaaRootAccessible) and because some subclasses will inherit additional interfaces (ia2AccessibleApplication, etc.).

When subclasses inherit additional interfaces, they inherit an additional IUnknown, so the compiler doesn't know which AddRef/Release to call.
To support this, IMPL_IUNKNOWN_REFCOUNTING_INHERITED HAS BEEN ADDED to specify which base class implements reference counting.

Differential Revision: https://phabricator.services.mozilla.com/D112954
2021-05-01 22:29:27 +00:00
James Teh 812dc1cf7c Bug 1694865 part 22: Change LazyInstantiator to aggregate MsaaRootAccessible instead of RootAccessibleWrap. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D112953
2021-05-01 22:29:26 +00:00
James Teh 0613e5347a Bug 1694865 part 21: Move QueryInterface implementation from AccessibleWrap to MsaaAccessible. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D112951
2021-05-01 22:29:26 +00:00
James Teh b7d47b6dde Bug 1694865 part 20: Change ServiceProvider to not rely on AccessibleWrap inheritance. r=morgan
It now aggregates MsaaAccessible and uses GetNativeInterface when returning accessibles to clients.

Differential Revision: https://phabricator.services.mozilla.com/D112950
2021-05-01 22:29:25 +00:00
James Teh 463cee1200 Bug 1694865 part 19: Make EnumVariant, GeckoCustom and sdn*Accessible classes aggregate MsaaAccessible/MsaaDocAccessible instead of AccessibleWrap/DocAccessibleWrap. r=morgan
These objects need to aggregate the primary COM object (MsaaAccessible).
Once the IUnknown implementation moves out of AccessibleWrap, it won't be possible to aggregate *AccessibleWrap any more.

Differential Revision: https://phabricator.services.mozilla.com/D112949
2021-05-01 22:29:25 +00:00
Scott c38fab2acd Bug 1701338 - Remove old pocket button panel templates. r=gvn
Differential Revision: https://phabricator.services.mozilla.com/D113430
2021-05-01 21:09:04 +00:00
Emilio Cobos Álvarez edcab9e98f Bug 1708063 - Don't allow whitespace between media query operator delim tokens. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D113648
2021-05-01 21:04:47 +00:00
Eden Chuang 77197dcbb9 Bug 1701868 - Opaque response blocking after UnknownDecoder recognizes the allowed or blocked type. r=necko-reviewers,dragana
The original implementation concept of Opaque Response Blocking is trying to recognize the blocked or allowed content type in nsHttpChannel::CallOnStartRequest. However, the data could be not available at the moment for type sniffing. And nsUnknownDecoder could be used for type sniffing when OnDataAvailable is called.

So this patch targets this case and applying Opaque Response Blocking after the type is recognized by nsUnknownDecoder.

Differential Revision: https://phabricator.services.mozilla.com/D110901
2021-05-01 20:58:16 +00:00
Eden Chuang 6918ac34a0 Bug 1701868 - Testcase for OpaqueResponseBlocking with type sniffing fail. r=necko-reviewers,dragana
The ORB spec mentions in step 5 that

Wait for 1024 bytes of response or end-of-file, whichever comes first and let bytes be those bytes.

However, this is not guaranteed.

Type sniffing could get fail if the data is not available at the moment, and the response would be reported as Allowed_FailtoGetMIMEType. But in some cases, it should be reported as Allowed_SniffAsImageOrAudioOrVideo.

This patch tries to reproduce the situation above with a browser mochitest by using a compressed(gzip) image file to trigger nsUnknownDecoder.

Differential Revision: https://phabricator.services.mozilla.com/D112698
2021-05-01 20:58:15 +00:00
Emilio Cobos Álvarez e2df872ab8 Bug 1708285 - Pass default font settings from parent to child processes. r=jfkthame
Instead of relying on GTK to be initialized in the child process.

Differential Revision: https://phabricator.services.mozilla.com/D113784
2021-05-01 20:00:31 +00:00
Harry Twyford ee592d0f15 Bug 1708788 - Update remaining extension icons. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D114008
2021-05-01 13:03:47 +00:00
Luca Greco a35411fbed Bug 1701152 - Use a browser element for the pocket customizable widget panel. r=Gijs,thecount
Differential Revision: https://phabricator.services.mozilla.com/D113960
2021-05-01 12:32:42 +00:00
Jon Coppeard 60db3d641e Bug 1708740 - Move exception APIs from jsapi.h to public Exception.h header r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D113996
2021-05-01 12:10:15 +00:00
Jon Coppeard 4be051558e Bug 1708739 - Move Map and Set APIs to new public header r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D113995
2021-05-01 12:10:15 +00:00
Jon Coppeard 402ae42f29 Bug 1708739 - Move WeakMap APIs to new public header r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D113994
2021-05-01 12:10:14 +00:00
Jon Coppeard 2d4dbf6494 Bug 1708719 - Move string functions from jsapi.h to public/String.h r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D113992
2021-05-01 12:10:14 +00:00
Alexandru Michis 5744de4a3b Backed out changeset cd81489560e4 (bug 1708547) for causing python failures. 2021-05-01 14:50:20 +03:00
Sebastian Hengst edb286d4dc Bug 1707840 - disable browser_multipleCrashedTabs.js on macOS 11. r=intermittent-reviewers,jmaher DONTBUILD
Similar to bug 1707182 (browser_autoSubmitRequest.js) tests using the
crashreporter on Apple Silicon fail to execute properly.

Differential Revision: https://phabricator.services.mozilla.com/D113928
2021-05-01 11:17:07 +00:00
Jared Wein c543af42d0 Bug 1708154 - Set the fill color at the same time as setting the stroke to make sure there will always be proper foreground/background contrast. r=desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D113684
2021-05-01 10:46:37 +00:00
James Teh 7afd94a329 Bug 1694865 part 18: Prepare ia2AccessibleEditableText/Hypertext/Image/Text to not rely on AccessibleWrap inheritance. r=morgan
Rather than static_casting `this`, there is now an ImageAcc/TextAcc() method which in turn calls MsaaAccessible::LocalAcc().
Since MsaaAccessible::LocalAcc() returns null if defunct, defunct checks have been adjusted accordingly.
For LocalAccessibles other than `this`, rather than direct static_casting, MsaaAccessible::GetFrom is used.
ia2AccessibleText was calling AccessibleWrap::ConvertToIA2Attributes, but this is actually declared in ia2Accessible, so we just add the necessary include and change the call.
Finally, calls to HyperTextProxyFor() in ia2AccessibleEditableText/Hypertext/Text assertions were replaced with calls to LocalAccessible::IsProxy(), since HyperTextProxyFor statically asserts the inheritance we're removing and isn't otherwise useful.

Differential Revision: https://phabricator.services.mozilla.com/D112942
2021-05-01 02:51:24 +00:00
James Teh 98c0f0589f Bug 1694865 part 17: Add various functions to get an MsaaAccessible/MsaaDocAccessible and use them where appropriate. r=morgan
In this patch, these new functions just static_cast, but they'll soon be returning a different object.

Differential Revision: https://phabricator.services.mozilla.com/D112952
2021-05-01 02:51:23 +00:00
James Teh 19e006d017 Bug 1694865 part 16: Transitional implementation of IUnknown in MsaaAccessible/MsaaDocAccessible which delegates to AccessibleWrap. r=morgan
This is necessary to enable COM objects which aggregate AccessibleWrap/DocAccessibleWrap to aggregate MsaaAccessible/MsaaDocAccessible instead.
Ultimately, the IUnknown implementation will be moved out of AccessibleWrap altogether and into MsaaAccessible, but we can't do that yet.
Even though MsaaDocAccessible indirectly inherits from MsaaAccessible, we have to override QueryInterface due to the naming conflict with nsISupports.

Differential Revision: https://phabricator.services.mozilla.com/D112948
2021-05-01 02:51:23 +00:00
James Teh efaf13c0ed Bug 1694865 part 15: Move XULMenuitemAccessibleWrap's MSAA overrides to a new MsaaXULMenuitemAccessible class. r=morgan
For now, XULMenuitemAccessibleWrap inherits from MsaaXULMenuitemAccessible and MsaaXULMenuitemAccessible inherits from XULMenuitemAccessible.
Accessible calls are made via MsaaAccessible::LocalAcc().
Since MsaaAccessible::LocalAcc() returns null if defunct, defunct checks have been adjusted accordingly.

Differential Revision: https://phabricator.services.mozilla.com/D112947
2021-05-01 02:51:23 +00:00
James Teh eebe3a1f74 Bug 1694865 part 14: Move RootAccessibleWrap's MSAA overrides and other COM stuff to a new MsaaRootAccessible class. r=morgan
For now, RootAccessibleWrap inherits from MsaaRootAccessible and MsaaRootAccessible inherits from RootAccessible.
RootAccessible calls are made via a RootAcc() method which in turn calls MsaaAccessible::LocalAcc().
Since MsaaAccessible::LocalAcc() returns null if defunct, defunct checks have been adjusted accordingly.

Differential Revision: https://phabricator.services.mozilla.com/D112946
2021-05-01 02:51:22 +00:00
James Teh 29737325ac Bug 1694865 part 13: Move DocAccessibleWrap's MSAA overrides to a new MsaaDocAccessible class. r=morgan
For now, DocAccessibleWrap inherits from MsaaDocAccessible and MsaaDocAccessible inherits from DocAccessible.
DocAccessible calls are made via a DocAcc() method which in turn calls MsaaAccessible::LocalAcc().
Since MsaaAccessible::LocalAcc() returns null if defunct, defunct checks have been adjusted accordingly.

Differential Revision: https://phabricator.services.mozilla.com/D112945
2021-05-01 02:51:22 +00:00
Jeff Muizelaar 7c5d88731c Bug 1708805 - Reject output luts with channels != 3. r=aosmond
This problem was introduced by the CMYK support
patch not rejecting 4 channel LUTs at parse time.

The problem was caught by oss-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=33647

Differential Revision: https://phabricator.services.mozilla.com/D114014
2021-05-01 02:39:06 +00:00
David Parks e3ee50c76a Bug 1676542 : Remove NPAPI plugin-related code from reftest harness r=jmaher,tnikkel
NPAPI plugins are no longer supported.  MozPaintWait and MozPaintWaitFinished events are no longer sent -- they came exclusively from nsPluginInstanceOwner, which was removed in bug 1682030.

Differential Revision: https://phabricator.services.mozilla.com/D114021
2021-05-01 01:47:48 +00:00
Sam Foster b1328e4ea3 Bug 1700238 - Update download icon and animations. r=Gijs
* Replace the many-shapes icon with a new simple download icon svg and update its consumers
* New start and finish animations using svg filmstrip images
* Toolbarbutton progress "bar" is a pie-chart, using a conic-gradient and a variable updated from js
* Show toolbarbutton animations even when download panel is open

Differential Revision: https://phabricator.services.mozilla.com/D113204
2021-05-01 01:41:31 +00:00
David Parks e37ad4b27a Bug 1698959: Remove HangData union and SLOW_SCRIPT enum value r=dthayer,geckoview-reviewers,agi
HangData is the only member left in the union and SLOW_SCRIPT is the only member left in the enum.
This patch also migrates the one remaining (invalid) use of PLUGIN_HANG in testing to work as a SLOW_SCRIPT instead.

Differential Revision: https://phabricator.services.mozilla.com/D113885
2021-05-01 01:12:46 +00:00
David Parks 27e7bb9383 Bug 1698959: Clean up dead terminatePlugin references r=dthayer
PLUGIN_HANG events are no longer sent so terminatePlugin is unused.

Differential Revision: https://phabricator.services.mozilla.com/D113884
2021-05-01 01:12:45 +00:00
David Parks 2284427083 Bug 1698959: Remove NPAPI plugin telemetry references r=dthayer
PLUGIN_HANG events are no longer possible so all of these markers are already inactive.

Differential Revision: https://phabricator.services.mozilla.com/D113882
2021-05-01 01:12:45 +00:00
Alexandre Poirot 2f7f4dc841 Bug 1568880 - [devtools] Use Inspector command to implement cross target node search r=nchevobbe,jdescottes
Depends on D103204

Differential Revision: https://phabricator.services.mozilla.com/D103205
2021-05-01 00:29:42 +00:00
Mike Hommey 322d04fd7f Bug 1708547 - Port the mach bootstrap import hook to python 3. r=mhentges,firefox-build-system-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D113857
2021-04-30 23:07:33 +00:00
Harry Twyford d2fa31b615 Bug 1708799 - Set action text to title color on mouse hover. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D114026
2021-04-30 23:00:38 +00:00
emcminn 6c545cc8fb Bug 1705825 - Update proton onboarding background image and caption r=fluent-reviewers,Mardak,flod
Differential Revision: https://phabricator.services.mozilla.com/D113886
2021-04-30 22:37:29 +00:00
emcminn c247c53437 Bug 1708335 - Remove outline-L and yellow circle from welcome page of onboarding" r=pdahiya
Removes the outline-L and the yellow dot from the first page of onboarding.

Differential Revision: https://phabricator.services.mozilla.com/D113824
2021-04-30 22:11:40 +00:00
Mike Hommey 6aa8681545 Bug 1705324 - Enable CARGO_INCREMENTAL on local builds. r=firefox-build-system-reviewers,mhentges
irrespective of the optimization level. The code was previously using
the optimization level as a proxy for whether --enable-release is
enabled or not, which was invalidated by bug 1689284.

Differential Revision: https://phabricator.services.mozilla.com/D113730
2021-04-30 21:33:27 +00:00
Toshihito Kikuchi 643e02bdb1 Bug 1708822 - Handle a case where processMap did not have a corresponding entry. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D114020
2021-04-30 21:23:38 +00:00
Emma Malysz e0e495464b Bug 1707177, introduce notification icon for app menu button badge and apply it when update available r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D114022
2021-04-30 21:20:29 +00:00
Jared Wein d3e13d3fee Bug 1708781 - Update 'Error' and 'Delete' icons. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D114003
2021-04-30 21:16:36 +00:00
Mike Hommey fb2daa993e Bug 1708592 - Install clang-format via a toolchain artifact. r=sylvestre
(Drive-by) Similar to what we just did for rustfmt and clippy.

Differential Revision: https://phabricator.services.mozilla.com/D113906
2021-04-30 21:09:12 +00:00
Mike Hommey dc5646ba96 Bug 1708592 - Install rustfmt and clippy via a toolchain artifact. r=sylvestre
This will tie the version used for CI lints to the version of rust used
for builds on CI.

Bonus point: we can now have rustfmt and clippy on Windows and mac,
which allows to run the corresponding mozlint unit tests on those
platforms.

Differential Revision: https://phabricator.services.mozilla.com/D113905
2021-04-30 21:09:12 +00:00
Mike Hommey c2a87c9b07 Bug 1708592 - Normalize paths when filtering in clippy and rustfmt lints. r=sylvestre
Without normalization, the paths don't match the filters on Windows.

Differential Revision: https://phabricator.services.mozilla.com/D113904
2021-04-30 21:09:12 +00:00
Mike Hommey 2badf48dc0 Bug 1708592 - Package clippy in the rust toolchain artifact. r=firefox-build-system-reviewers,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D113903
2021-04-30 21:09:11 +00:00
Mike Hommey f2dcdd5390 Bug 1708592 - Get tools from MOZ_FETCHES_DIR on automation. r=firefox-build-system-reviewers,mhentges
While here, remove the unused clippyProcess.config. And because we need
to manipulate `$PATH` before running `cargo`, use the same wrapping
function in `get_clippy_version`.

Differential Revision: https://phabricator.services.mozilla.com/D113902
2021-04-30 21:09:11 +00:00
Ting-Yu Lin 1f9c1bdc99 Bug 1703304 - Compute transferred size suggestion only if a flex item is a replaced element. r=dholbert
If the flex item is a non-replaced element and its min-width/min-height
is 'auto', the spec has changed so that it has no transferred size
suggestion now. https://drafts.csswg.org/css-flexbox-1/#min-size-auto

This patch also updates WPT tests to fix
https://github.com/web-platform-tests/wpt/issues/27878

Differential Revision: https://phabricator.services.mozilla.com/D112830
2021-04-30 20:49:19 +00:00
Agi Sferro fec841bfe8 Bug 1698968 - Always send marionette-startup-requested r=whimboo,aklotz,webdriver-reviewers
Marionette enables itself only when --marionette is passed in. Given that
command line arguments can only be passed in using the debug configuration, it
is safe to send this event all the time.

Differential Revision: https://phabricator.services.mozilla.com/D113829
2021-04-30 20:48:37 +00:00
Matthew Gaudet 1051bc4658 Bug 1708236 - Remove --enable-private-methods and replace with --disable-private-methods r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D113708
2021-04-30 20:42:11 +00:00
Matthew Gaudet 69dbc2001b Bug 1708236 - Enable Private Methods Preference by default r=yulia
Differential Revision: https://phabricator.services.mozilla.com/D113706
2021-04-30 20:42:11 +00:00
Matthew Gaudet 2bd9ba6041 Bug 1708235 - Remove shell flag requirement for private field tests r=yulia
As well, convert --enable-private-fields to --disable-private-fields

Differential Revision: https://phabricator.services.mozilla.com/D113705
2021-04-30 20:42:10 +00:00