Commit Graph

703066 Commits

Author SHA1 Message Date
James Teh
4f5d44905a Bug 1629078 part 2: Make date/time inputs labellable by an ancestor HTML label and expose text-input-type attribute. r=MarcoZ
In order for a form control to be labelled by an ancestor HTML label, its Accessible must return true for isWidget().
Also, HTML AAM says the text-input-type attribute should be exposed.

Differential Revision: https://phabricator.services.mozilla.com/D72080
2020-04-23 04:48:53 +00:00
James Teh
bb39797e35 Bug 1629078 part 1: For eNameFromSubtreeIfReqRule, don't walk into the descendants of the Accessible for which the text equiv is being calculated. r=MarcoZ
We already skipped descendants for eNameFromSubtreeIfReqRule when the element wasn't labelled by something else; i.e. when calling GetNameFromSubtree.
However, when such an element is labelled/described by an ancestor, we compute the text equiv for the label using AppendTextEquivFromContent.
Previously, when descending from the ancestor down into the element itself, we would descend into its subtree despite eNameFromSubtreeIfReqRule.
This meant that groupings labelled/described by ancestor would include the content of the grouping itself in its label/description.
This was causing problems for time inputs (once those can accept an ancestor label in the next patch).

Differential Revision: https://phabricator.services.mozilla.com/D72079
2020-04-23 04:38:19 +00:00
Marian Raiciof
9b74a0d7e6 Bug 1623027 - Improve error line for page load failures r=perftest-reviewers,AlexandruIonescu,whimboo,sparky
Differential Revision: https://phabricator.services.mozilla.com/D70550
2020-04-23 04:53:49 +00:00
Chris Peterson
843c954b43 Bug 1631684 - Replace MOZ_MUST_USE with [[nodiscard]] in dom/indexedDB. r=dom-workers-and-storage-reviewers,sg
Also move MOZ_MUST_USE before function declarations' specifiers and return type. While clang and gcc's __attribute__((warn_unused_result)) can appear before, between, or after function specifiers and return types, the [[nodiscard]] attribute must precede the function specifiers.

Differential Revision: https://phabricator.services.mozilla.com/D71713
2020-04-23 01:49:16 +00:00
Stefan Hindli
da540f28d4 Backed out changeset c39d389d140c (bug 1630742) for devtools failures in devtools/client/debugger/test/mochitest/browser_dbg-continue-to-here-click.js 2020-04-23 06:54:52 +03:00
Emilio Cobos Álvarez
603de7bc14 Bug 1625786 - Un-skip some tests now that the underlying issue is fixed.
Differential Revision: https://phabricator.services.mozilla.com/D72094
2020-04-23 03:34:54 +00:00
Emilio Cobos Álvarez
6341ebf29a Bug 1632363 - Fix some warnings introduced by the previous patches.
MANUAL PUSH: Avoid reviewer information from previous patches from
getting lost.
2020-04-23 05:11:04 +02:00
Martin Robinson
2561f2d680 Bug 1632363 - Add support for canceling CSS transitions. r=emilio
This change adds support for canceling CSS transitions when a property
is no longer transitionable or when an element becomes styled with
display:none. Support for canceling and replacing CSS transitions when
the end value changes is still pending. This change also takes advantage
of updating the constellation message to fix a bug where transition
events could be sent for closed pipelines.

Cherry-picked from https://github.com/servo/servo/pull/26244
(though this is not part of the Gecko build).
2020-04-23 05:10:23 +02:00
Martin Robinson
34bc586539 Bug 1632363 - Eliminate AnimationFrame. r=emilio
This intermediate data structure doesn't really buy us anything and is a
bit confusing.

Cherry-picked from https://github.com/servo/servo/pull/26214
(though this is not part of the Gecko build).
2020-04-23 05:10:21 +02:00
Anthony Ramine
9c1d8b545f Bug 1632363 - Make the rule tree actually threadsafe. r=emilio
RuleTree::gc is now a safe method that any thread can call
at any time, and StrongRuleNode values can all be dropped
whenever their owner want to, on any thread.

Cherry-picked from https://github.com/servo/servo/pull/26227
2020-04-23 05:10:20 +02:00
Anthony Ramine
7b4fc703a7 Bug 1632363 - Change Map::get_or_insert_with to Map::entry. r=emilio
Cherry-picked from https://github.com/servo/servo/pull/26227
2020-04-23 05:10:18 +02:00
Andreea Pavel
b9c773a74f Backed out changeset 2f06fd7ef8b6 (bug 1583696) for failing test_bug619644.html on a CLOSED TREE 2020-04-23 05:16:18 +03:00
Sven Marnach
b851681888 Bug 1630222 - Decrease webextension sync frequency. r=tcsc
Differential Revision: https://phabricator.services.mozilla.com/D72055
2020-04-22 21:58:18 +00:00
Hiroyuki Ikezoe
4dc36ef4af Bug 1621478 - Drop mPropagateComponentAlphaFlattening. r=mstange
It hasn't been used since bug 1435643.

Differential Revision: https://phabricator.services.mozilla.com/D66334
2020-04-23 00:47:26 +00:00
Hiroyuki Ikezoe
2dfc5e12ad Bug 1621478 - Drop the comment for |aSolidColor| argument from PaintedLayerData::Accumulate. r=mstange
The argument was dropped in bug 945203.

Differential Revision: https://phabricator.services.mozilla.com/D66333
2020-04-23 00:47:07 +00:00
Andreea Pavel
cac786a35c Backed out 16 changesets (bug 1607984) for multiple test failures e.g test timeouts on a CLOSED TREE
Backed out changeset 4509808243f5 (bug 1607984)
Backed out changeset 0cb21bedf65f (bug 1607984)
Backed out changeset 4e5d89f68293 (bug 1607984)
Backed out changeset 0c0169ed4f04 (bug 1607984)
Backed out changeset ce527a6ffba4 (bug 1607984)
Backed out changeset 63175f596762 (bug 1607984)
Backed out changeset 107be8f3737d (bug 1607984)
Backed out changeset d7600d4d3528 (bug 1607984)
Backed out changeset e11b1b0ecfbf (bug 1607984)
Backed out changeset bed3f6bee79e (bug 1607984)
Backed out changeset abe692da4556 (bug 1607984)
Backed out changeset e02b12515d60 (bug 1607984)
Backed out changeset 7a2ef225a41e (bug 1607984)
Backed out changeset c173bde5106b (bug 1607984)
Backed out changeset dc8b37e10dc7 (bug 1607984)
Backed out changeset 09a651daf344 (bug 1607984)
2020-04-23 03:47:24 +03:00
Adam Gashlin
4d15b0fd2e Bug 1632203 - Show legible progress bar in high contrast mode. r=mhowell
These styles will produce no change in the layout, and only apply in
high contrast mode.
Also removed an extra comma that broke parsing in aurora.

Differential Revision: https://phabricator.services.mozilla.com/D72070
2020-04-22 22:45:07 +00:00
Jan-Ivar Bruaroey
dfc7de216e Bug 1631963: Warn in web console about {sdpSemantics: plan-b} usage. r=bwc,emilio
Differential Revision: https://phabricator.services.mozilla.com/D71835
2020-04-22 23:15:25 +00:00
Jason Laster
62457464b0 Bug 1630742 - cmd+click should continue to here. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D71217
2020-04-23 00:07:13 +00:00
Tim Nguyen
09f305d392 Bug 1583696 - Remove XUL grid from toolkit/components/prompts/content/tabprompts.jsm. r=MattN,marionette-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D61442
2020-04-22 23:46:35 +00:00
Jean-Yves Avenard
8a22917562 Bug 1607984 - P17. Put ParentProcessDocumentChannel behind a pref. r=necko-reviewers,mattwoodrow
We disable it on Android for now due to unexplained reftest start failures.

Differential Revision: https://phabricator.services.mozilla.com/D71875
2020-04-22 23:49:38 +00:00
Jean-Yves Avenard
fd97243036 Bug 1607984 - P16. Always whitelist file. r=markh
This file will be removed in bug 1628752 anyway.

Differential Revision: https://phabricator.services.mozilla.com/D70801
2020-04-22 13:44:23 +00:00
Jean-Yves Avenard
8ed0970932 Bug 1607984 - P15. Wait for the load to start before setting the event handler. r=Jamie
addA11yLoadEvent gets the contentWindow and wait for the document from that window to fire the load event.

Enabling the DocumentChannel for parent process load (or here in non-e10s mode) we have one extra event loop before the load starts.
So the window passed to addAllyLoadEvent would have been of the about:blank page.

The current code was based on an observable behaviour which was that the load was occuring synchronously.

DocumentChannel broke that assumption.

Differential Revision: https://phabricator.services.mozilla.com/D70799
2020-04-22 10:27:31 +00:00
Jean-Yves Avenard
b0aa2f69f3 Bug 1607984 - P14. Fix test_bug1339722.html when using PPDC. r=valentin
When starting a load via the ParentProcessDocumentChannel, the event http-on-modify-request will be fired before the DocumentLoadListener has a chance to set the notificationCallback attribute.
When using a DocumentChannel, this test will not trigger the expected codepath as the DOMWindowCreated event will be fired once the channel is fully up and running; which in effect is also a fix of the original bug 1339722

Instead we use the document-on-modify-request event when the DocumentChannel is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D70011
2020-04-22 10:27:26 +00:00
Jean-Yves Avenard
a88b9bc558 Bug 1607984 - P13. Proxy the first http-on-opening-request event to the DocumentChannel. r=mayhemer,necko-reviewers
Some tests rely on this event to start action. The DocumentChannel had no equivalent. We make the ParentProcessDocumentChannel listen to this event and if it matches the nsIChannel currently in use in the DocumentLoadListener than we emit a similar document-on-modify-request event on the DocumentChannel.

Differential Revision: https://phabricator.services.mozilla.com/D70010
2020-04-22 15:16:10 +00:00
Jean-Yves Avenard
fce4dd9e1f Bug 1607984 - P12. Start parent load via DocumentChannel. r=mayhemer,nika,mattwoodrow,necko-reviewers
Add ParentProcessDocumentChannel object. This object is a DocumentChannel that will start a channel load from the parent process via a DocumentChannel.

The aim of this task is two-fold.
1- Be consistent on how we handle redirects before continuing the load on the final channel.
2- Prepare to initiate a process switch when needed without having to go via an intermediary content process, saving a process switch. This task will be done in a follow-up task.

The behaviour of the ParentProcessDocumentChannel is similar in logic to the DocumentChannelChild/DocumentChannelParent pair.
The ParentProcessDocumentChannel sets up a DocumentLoadListener, have it handle the redirects and upon completion continue the load on the final channel.

Differential Revision: https://phabricator.services.mozilla.com/D70009
2020-04-22 10:27:11 +00:00
Jean-Yves Avenard
46e166596d Bug 1607984 - P11. Don't assume the page will be loaded synchronously. r=zombie
We must wait for the iframe created by extension1 to be fully loaded before we can attempt to send a message to it.
So we send a message when it is ready, and suspend the execution until this message is received.

Differential Revision: https://phabricator.services.mozilla.com/D70008
2020-04-15 15:37:11 +00:00
Jean-Yves Avenard
e417e5a34d Bug 1607984 - P10. Wait until OnStopRequest has been called to clear mRequest. ?valentin r=valentin
The code assumed that nsJARChannel::RetargetDeliveryTo would have been called synchronously from nsJARChannel::OnStartRequest, which would be true if we weren't using a DocumentChannel.

The DocumentLoadListener queue the calls to OnStartRequest until the final redirect.
nsJARChannel::RetargetDelivery mRequest member is be set to forward the call.
So we need to only reset it once OnStopRequest has been received.

Differential Revision: https://phabricator.services.mozilla.com/D70007
2020-04-15 15:37:13 +00:00
Jean-Yves Avenard
b7062ff5ae Bug 1607984 - P9. Implement nsIThreadRetargetableStreamListener in ParentChannelListerner. r=valentin
The DocumentLoadListener is setting up a ParentChannelListener to go in between the normal listener->channel chain.
ParentChannelListener not implementing nsIThreadRetargetableStreamListener would prevent a nsHtml5StreamParser settings things up so that OnDataAvailable could be sent to a html parser thread off the main thread; improving performance.

Differential Revision: https://phabricator.services.mozilla.com/D70006
2020-04-15 15:37:15 +00:00
Jean-Yves Avenard
df621d86af Bug 1607984 - P7. Fix compilation failure in non-unified mode. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D70004
2020-04-15 15:37:18 +00:00
Jean-Yves Avenard
ff922154e1 Bug 1607984 - P6. Fix test. r=MattN
Following the changes to DocumentChannel the test was failing.
With DC, a load may take a few event loops to start. This current test was only waiting for the load to start to the URL about:preferences#privacy-logins and would immediately tear down the window.
However, this URL redirects to about:preferences#privacy ; destroying the window midway could cause XML parsing error.

So now we wait for the page to fully load, and make sure we've been through both addresses.

Differential Revision: https://phabricator.services.mozilla.com/D70003
2020-04-15 15:37:21 +00:00
Jean-Yves Avenard
e3c77024a9 Bug 1607984 - P5. Add missing nsIIdentChannel interface. r=mattwoodrow
Regressiong from bug 1607987. This prevented from QueryInterface(Ci.nsIIdentChannel) in JS on the channel.

Differential Revision: https://phabricator.services.mozilla.com/D70002
2020-04-15 15:37:23 +00:00
Jean-Yves Avenard
7f64d00bf4 Bug 1607984 - P4. Expose SetClassificationFlagsHelper. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D70001
2020-04-15 15:37:25 +00:00
Jean-Yves Avenard
fd203222be Bug 1607984 - P3. Fix leak in nsDSURIContentListener. r=smaug
If we were to open the window to close it immediately; we would leak a nsHtml5Parser object.

Differential Revision: https://phabricator.services.mozilla.com/D70000
2020-04-15 15:37:28 +00:00
Jean-Yves Avenard
0b5f131087 Bug 1607984 - P2. Add Redirects/LastVisitInfo getters. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D69999
2020-04-15 15:37:30 +00:00
Jean-Yves Avenard
2d143b7560 Bug 1607984 - P1. Make SerializeRedirectData const. r=mattwoodrow
This also removes the need to call SerializeRedirectData to set mRedirectChannelId to the proper value and register the channel.

Differential Revision: https://phabricator.services.mozilla.com/D69998
2020-04-15 15:37:32 +00:00
L. David Baron
f3b1d5a5c9 Bug 1631941 - Add writing mode assertions for mozilla::LogicalSides. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D71886
2020-04-22 23:43:56 +00:00
L. David Baron
b4556207cc Bug 1631941 - Add DEBUG-only mWritingMode to mozilla::LogicalSides. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D71885
2020-04-22 23:52:08 +00:00
L. David Baron
b3bbfa3a41 Bug 1631941 - Make nsIFrame::ContentSize and nsIFrame::SynthesizeBaselineBOffsetFromContentBox apply skip sides correctly for orthogonal writing modes. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D71884
2020-04-22 23:43:53 +00:00
Nan Jiang
c94de28dad Bug 1631487 - Query Experiment Manager for CFR cohort info r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D71979
2020-04-22 23:50:37 +00:00
Brad Werth
31574e8914 Bug 1631865: Add a layout flush to getGridFragments and getAsFlexContainer. r=emilio
This will correctly handle the case of "display:grid" or "display:flex" being
added or removed from the Element frame right before the call to
getGridFragments or getAsFlexContainer on the Element.

Differential Revision: https://phabricator.services.mozilla.com/D71806
2020-04-22 23:45:22 +00:00
Tim Nguyen
89c92a15e9 Bug 1201243 - Reformat with prettier.
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D72039
2020-04-22 23:35:25 +00:00
Tim Nguyen
efcd5a4bff Bug 1201243 - Make browser/components/preferences/in-content top-level and move dialogs to a subdirectory. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D72038
2020-04-22 23:35:08 +00:00
Stefan Hindli
ed13e122ee Backed out 3 changesets (bug 1631941) for mass build bustages CLOSED TREE
Backed out changeset 8a7e21f2b5f9 (bug 1631941)
Backed out changeset 6a53d6f1ec95 (bug 1631941)
Backed out changeset 91ac0b7e571b (bug 1631941)
2020-04-23 02:14:30 +03:00
Emilio Cobos Álvarez
baf8258542 Bug 1631887 - And another one.
MANUAL PUSH: If you're reading this you're probably tired of me, sorry :/

CLOSED TREE
2020-04-23 01:31:20 +02:00
Emilio Cobos Álvarez
9e5043455d Bug 1631887 - And another one.
MANUAL PUSH: Random android orange green-up.
2020-04-23 01:09:42 +02:00
L. David Baron
fd0206f269 Bug 1631941 - Add writing mode assertions for mozilla::LogicalSides. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D71886
2020-04-22 18:00:07 +00:00
L. David Baron
129af7be9b Bug 1631941 - Add DEBUG-only mWritingMode to mozilla::LogicalSides. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D71885
2020-04-22 17:54:28 +00:00
L. David Baron
6dd37deb03 Bug 1631941 - Make nsIFrame::ContentSize and nsIFrame::SynthesizeBaselineBOffsetFromContentBox apply skip sides correctly for orthogonal writing modes. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D71884
2020-04-22 17:40:50 +00:00
Andrea Marchesini
37a13f7df5 Bug 1632188 - Cleanup Cookie CTOR, r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D71972
2020-04-22 21:01:37 +00:00