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

17958 Коммитов

Автор SHA1 Сообщение Дата
Tim Nguyen 495df7ddea Bug 1241885 - Implement support for -moz-window-dragging in GTK and remove toolkit toolbar-drag binding. r=dao,bzbarsky,stransky
The restriction preventing fullscreen windows from being dragged is removed.

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

--HG--
extra : moz-landing-system : lando
2019-01-18 16:51:08 +00:00
Emilio Cobos Álvarez 62fdf6f313 Bug 1430623 - Move the lang font prefs to Document instead of nsPresContext. r=jfkthame
This will allow me to (in different patches):

 * Make the default style structs constructible without a pres context (default
   color and co. would need to be faked or moved to Document as well, but that's
   ok, since those cannot affect media queries, the default font-size does).

 * Remove the nsPresContext pointer from ComputedStyle (moving it to nsFrame,
   probably).

That would in turn allow me to have the default style computed without a pres
context, which allows us to fix both bug 1490401 and bug 1471231.

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

--HG--
extra : moz-landing-system : lando
2019-01-18 13:43:06 +00:00
Margareta Eliza Balazs ec14417cc3 Merge inbound to mozilla-central. a=merge 2019-01-18 11:40:07 +02:00
alwu 80d152a07a Bug 1520912 - remove 'mUserGestureActivated' from Document. r=nika
We've changed the way to set `userGestureActivation` flag which will be set in `BrowsingContext`, so we should remove `mUserGestureActivated` flag from Document.

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

--HG--
extra : moz-landing-system : lando
2019-01-18 02:41:15 +00:00
Ryan Hunt c71371cf2a Bug 1518624 - Add telemetry for amount and length in pixels of scroll anchor adjustments. r=dholbert
This commit adds two new telemetry probes to collect:
 1. The amount of scroll anchoring adjustments applied
 2. The total absolute length in CSS pixels of scroll anchoring adjustments

Both of these metrics are collected on a per top-level-document basis, and
reported with other use-counters.

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

--HG--
extra : source : 43081bb8f4eac598a3103753965d5b60dfd1c3fa
extra : amend_source : 3d53dc56616f9e48799b7d8b8c11e96007d3c6eb
extra : intermediate-source : 6da6a7ff2d794c25b61858d16fe97e5f309e0f1f
2019-01-08 15:18:12 -06:00
Brad Werth 55582e452d Bug 1504659 Part 2: Update innerWidth/Height getters and setters to better handle overridden visual viewports. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D15995

--HG--
extra : moz-landing-system : lando
2019-01-16 21:56:56 +00:00
Thomas Nguyen e0a203fb8e Bug 1520141 - Correct referrer uri and referrer policy when loading image in iframe r=baku
We should use parent document's referrer uri and referrer policy in this case

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

--HG--
extra : moz-landing-system : lando
2019-01-16 19:26:35 +00:00
Cosmin Sabou 60cdb39ab6 Backed out 2 changesets (bug 1516022) for mochitest failures on browser_editcontrols_update. CLOSED TREE
Backed out changeset 4fae3add610f (bug 1516022)
Backed out changeset c683fbe0b984 (bug 1516022)
2019-01-16 21:59:55 +02:00
Cosmin Sabou f621d8b160 Backed out 5 changesets (bug 1504659) for android reftest failures. CLOSED TREE
Backed out changeset 793e842be7f6 (bug 1504659)
Backed out changeset 229ed2090371 (bug 1504659)
Backed out changeset 0818e2b1f2c5 (bug 1504659)
Backed out changeset bd806b413342 (bug 1504659)
Backed out changeset 3e12097e2b60 (bug 1504659)
2019-01-16 21:23:39 +02:00
Mike Conley 9c0f60b79c Bug 1516022 - Regression test. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D16093

--HG--
extra : moz-landing-system : lando
2019-01-16 18:38:18 +00:00
Mike Conley 06eed2277d Bug 1516022 - promiseDocumentFlushed should ensure no subframes need flushing before running the callback. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D16092

--HG--
extra : moz-landing-system : lando
2019-01-16 18:37:44 +00:00
Brad Werth 11f3fad755 Bug 1504659 Part 2: Update innerWidth/Height getters and setters to better handle overridden visual viewports. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D15995

--HG--
extra : moz-landing-system : lando
2019-01-16 17:10:46 +00:00
Razvan Maries 4c67bec411 Merge mozilla-inbound to mozilla-central a=merge 2019-01-16 19:00:15 +02:00
Emilio Cobos Álvarez b44ff327e9 Bug 1520154 - Move cursor to cbindgen. r=boris
The only reason it was on style_traits is so that they could use it from some
other crates, but Servo eventually ends up getting the value from an integer, so
may as well pass it around and do that in the end of the process anyway.

Differential Revision: https://phabricator.services.mozilla.com/D16557
2019-01-16 14:13:07 +01:00
Sylvestre Ledru 47a5dd1fb8 Bug 1519636 - Reformat everything to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-01-16 08:50:07 +00:00
Paul Bone 793ed8be23 Bug 1520357 - Rename the JSON formatting entry points r=jonco
I'm always forgetting which code path is which.  So give both these
functions clearer names that say if they're used by profiling or telemetry.

--HG--
extra : rebase_source : 8edcabba510bcf7170b7e071f7cb3a21be23b0e4
2019-01-17 14:08:30 +11:00
Randell Jesup c2e52d7fdc Bug 1517272: Add top-level Document Load event markers for the profiler r=mstange 2019-01-15 12:49:03 -05:00
Randell Jesup 53d77ffeda Bug 1514514: Move pageload markers to TextMarker with DocShell IDs r=mstange 2019-01-15 12:49:03 -05:00
Randell Jesup 910fc59008 Bug 1514513: Fix TTFI calculations and match proposed spec r=mstange
Also adds a PageLoad category to Logs
2019-01-15 12:49:03 -05:00
Randell Jesup a3b990d95a Bug 1508837: Add TextMarker payloads for simple Profiler Markers r=mstange 2018-12-14 16:01:19 -05:00
Bogdan Tara e94442500f Merge inbound to mozilla-central. a=merge 2019-01-15 18:09:48 +02:00
Oana Pop Rus c42c2ac75f Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-15 11:39:31 +02:00
Narcis Beleuzu 9d87d4782c Backed out 5 changesets (bug 1504659) for reftest failures on frame-reconstruction-scroll-clamping.html.
Backed out changeset 749c9dcbbd7f (bug 1504659)
Backed out changeset 783f7ccbd797 (bug 1504659)
Backed out changeset 231b16b0091e (bug 1504659)
Backed out changeset a88ccc9308e0 (bug 1504659)
Backed out changeset 738e1ee854eb (bug 1504659)
2019-01-15 07:34:58 +02:00
alwu 8632d7588c Bug 1506290 - part1 : implement 'document.autoplayPolicy'. r=baku,cpearce
`document.autoplayPolicy` returns a enum string that can change overtime based on user session activity:

- “allowed” if autoplay is currently allowed.
- “allowed-muted” if muted video autoplay is currently allowed.
- “disallowed” is autoplay is not current allowed.

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

--HG--
extra : moz-landing-system : lando
2019-01-15 00:13:34 +00:00
Alastor Wu 9ac741bd4b Bug 1516482 - part3 : reset user gesture activation flag when top level document changes. r=nika
As the user gesture activation flag is a flag which is used to reflect whether the corresponding document of browsing context has been activated by user or not, we should reset the flag when the top level window changes its document.

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

--HG--
extra : moz-landing-system : lando
2019-01-14 23:21:05 +00:00
Alastor Wu 71c03664cd Bug 1516482 - part1 : save user gesture activation flag in top level browsing context r=nika
This patch moves the user gesture activation flag from saving in document to saving in browsing context. The flag would be saved in the top level browsing context and then every time we need to check for that flag, we will request it from top level browsing context.

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

--HG--
extra : moz-landing-system : lando
2019-01-14 23:09:42 +00:00
Botond Ballo e99815f1f0 Bug 1509575 - Extend the internal visual scroll API to allow specifying "restore" vs. regular priority. r=kats
The distinction is not exposed at the JS level which currently always uses
"restore", but it could be if necessary.

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

--HG--
extra : moz-landing-system : lando
2019-01-15 01:30:43 +00:00
Brad Werth 8c85994beb Bug 1504659 Part 2: Update innerWidth/Height getters and setters to better handle overridden visual viewports. r=botond
This change also stylistically restructures the getters to make the logic match up cleanly with the new logic in the setters.

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

--HG--
extra : moz-landing-system : lando
2019-01-14 21:00:33 +00:00
Ting-Yu Lin 3bd2052ec3 Bug 1486521 - Make Selection::Stringify() stop flushing frames if AccessibleCaretManager doesn't allow so. r=emilio
The added crashtest still crashes on Android verify runs (TV) for
unknown reasons, so skip it.

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

--HG--
extra : moz-landing-system : lando
2019-01-14 04:58:59 +00:00
Ehsan Akhgari d855987de1 Bug 1518491 - Reduce the amount of UTF encodings we do when reporting content blocking events; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D16217
2019-01-14 09:36:12 -05:00
James Teh 5dc4d81ca1 Bug 1514687 - Allow accessibility code to focus XUL radio buttons without selecting them. r=bgrins,smaug,MarcoZ,paolo
1. This requires exposing radiogroup's focusedItem property to C++.
Unfortunately, there's no existing equivalent in nsIDOMXULSelectControlItemElement.
radiogroup is the only element that needs this, so a new interface has been created for it.

2. Accessibility uses focusedItem instead of selectedItem when setting focus.

3. When an item is focused, accessibility needs to be notified.
This is done using a DOMMenuItemActive event.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 04:52:50 +00:00
Ryan VanderMeulen 1c3b8630e4 Bug 1462548 - Add crashtest. r=me
--HG--
extra : rebase_source : 8cafb85d648997504fa1a3e0397e5c3b64f31606
2019-01-12 11:56:23 -05:00
Ryan VanderMeulen 43004ee1dc No bug - Clean up dom/base/crashtests/crashtests.list a bit. r=me
Also re-enables some tests which no longer timeout intermittently.

--HG--
extra : rebase_source : c99178e1028e7d9ab2e7fd8da30220b37d311a95
2019-01-12 11:54:11 -05:00
Narcis Beleuzu c818a5e414 Merge autoland to mozilla-central. a=merge 2019-01-12 11:39:04 +02:00
Jorg K ff6c62888c Bug 1519563 - add missing include of WindowProxyHolder.h to WindowNamedPropertiesHandler.cpp. r+a=qdot 2019-01-12 00:32:24 +01:00
Boris Zbarsky 8e958c733f Bug 1511232. Add checks for RELEASE_OR_BETA for now. r=peterv
Once we decide that we're shipping this non-configurability behavior, we can
remove these bits.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 12:59:30 +00:00
Boris Zbarsky d2c80f84e7 Bug 1519193 part 5. Convert AssertNoStaleServoDataIn to using ShadowIncludingTreeIterator. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D16247

--HG--
extra : moz-landing-system : lando
2019-01-12 03:20:44 +00:00
Boris Zbarsky 98f992df34 Bug 1519193 part 3. Convert CustomElementRegistry::Upgrade to using ShadowIncludingTreeIterator. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D16244

--HG--
extra : moz-landing-system : lando
2019-01-12 03:19:27 +00:00
Boris Zbarsky 6b0beea5ef Bug 1519193 part 2. Convert CandidateFinder::Traverse to using ShadowIncludingTreeIterator. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D16243

--HG--
extra : moz-landing-system : lando
2019-01-12 03:18:38 +00:00
Boris Zbarsky 7a550c197c Bug 1519193 part 1. Add an iterator that implements "shadow-including tree order" traversal. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D16242

--HG--
extra : moz-landing-system : lando
2019-01-12 03:17:24 +00:00
Noemi Erli f53cd6172e Backed out 5 changesets (bug 1519193) for build bustages in Document.cpp CLOSED TREE
Backed out changeset e118466df64d (bug 1519193)
Backed out changeset 12d89a7fe296 (bug 1519193)
Backed out changeset 08b0f2b9a96a (bug 1519193)
Backed out changeset 1caa462e7f08 (bug 1519193)
Backed out changeset aae6e06aa88b (bug 1519193)
2019-01-12 00:29:37 +02:00
Jonathan Kingston ac833b312a Bug 1405176 - Change IsFrame() in nsDocShell to be an explicitly passed attribute. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D15967

--HG--
extra : moz-landing-system : lando
2019-01-10 16:42:07 +00:00
Masayuki Nakano 1a008703fb Bug 181137 - part 9: Move kNSURIs in Document.cpp and FragmentOrElement.cpp into their users r=smaug
Due to renaming nsContentIterator.cpp to ContentIterator.cpp, Document.cpp
and FragmentOrElement.cpp are compiled in a unified cpp file now.  However,
both of them have same name constant, kNSURIs and some build systems claim
that it in FragmentOrElement.cpp is never used.

Fortunately, each of them is used only by one method.  Therefore, this patch
moves the each declaration into each user method.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 01:53:10 +00:00
Masayuki Nakano f421d7b889 Bug 181137 - part 8: Make ContentIteratorBase and its subclasses non-refcountable r=smaug
This patch makes ContentIteratorBase, PostContentIterator, PreContentIterator
and ContentSubtreeIterator classes non-refcountable because most users can
create their instances in stack and such users may be in a hot path.  So,
we can save a lot of cost of instantiation.

Unfortunately, only ScriptableContentIterator creates one of the concrete
classes and needs to destroy it properly.  Therefore, its
EnsureContentIterator(), destructor, traverse and unlink code becomes messy.
However, ScriptableContentIterator was designed for automated tests and we
need to maintain it not so many times.  Therefore, improvement of other
users must be worthwhiler than this demerit.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 01:52:26 +00:00
Masayuki Nakano f8844f0d9b Bug 181137 - part 7: Get rid of nsIContentIterator interface r=smaug
Now, nobody requires nsIContentIterator interface.  So, we can get rid of it.

Unfortunately, there is no macro to keep the inherited class,
ContentSubtreeIterator, in the cycle collection to make it keep managing
ContentSubtreeIterator::mRange without nsISupports interface.  Therefore, this
patch moves it into ContentIteratorBase temporarily.  Anyway, the following
patch makes those classes not refcountable.  At that time, this issue will be
fixed.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 01:51:42 +00:00
Masayuki Nakano da38fe53bc Bug 181137 - part 5: Make all users of PostContentIterator treat it directly rather than via nsIContentIterator r=smaug
Now, all users of PostContentIterator can access it directly.  This patch
makes them use the concrete class directly.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 01:50:19 +00:00
Masayuki Nakano f5602b96ab Bug 181137 - part 4: Make all users of PreContentIterator treat it directly rather than via nsIContentIterator r=smaug
Now, all users of PreContentIterator can access it directly.  This patch makes
them use the concrete class directly.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 01:49:36 +00:00
Masayuki Nakano 3b6d4adf2d Bug 181137 - part 3: Make all users of ContentSutreeIterator treat it directly rather than via nsIContentIterator r=smaug
Now, all users of ContentSubtreeIterator can access it directly.  This patch
makes them use the concrete class directly.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 01:49:00 +00:00
Masayuki Nakano ad8ce91822 Bug 181137 - part 2: Make nsContentIterator class is a base class of other concrete classes r=smaug
Currently, ContentIterator is created with a bool flag to decide whether the
instance lists up post-order or pre-order.  However, this is not clear.  For
example:

nsCOMPtr<nsIContentIterator> preOrderIter = new ContentIterator(false);

This is not clear whether this does right thing or not.

This patch makes any users can create PostContentIterator for post-order
iterator, and creates PreContentIterator for pre-order iterator.  So, now,
each creator needs to writhe above as:

nsCOMPtr<nsIContentIterator> preOrderIter = new PreContentIterator();

or

nsCOMPtr<nsIContentIterator> postOrderIter = new PostContentIterator();

Additionally, with this change, if each user starts to use concrete classes
directly, compiler can stop using virtual calls because of all concrete
classes are now marked as "final".

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

--HG--
extra : moz-landing-system : lando
2019-01-11 01:48:11 +00:00
Masayuki Nakano 2d75b78552 Bug 181137 - part 1: Move nsContentIterator and nsContentSubtreeIterator into mozilla namespace r=smaug
First, we should move nsContentIterator and nsContentSubtreeIterator into
mozilla namespace and then, remove "ns" prefix.

Additionally, this patch separates the definition of the classes into
ContentIterator.h and exposes it as "mozilla/ContentIterator.h".  This allows
everybody access those concrete classes.

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

--HG--
rename : dom/base/nsContentIterator.cpp => dom/base/ContentIterator.cpp
rename : dom/base/nsContentIterator.cpp => dom/base/ContentIterator.h
extra : moz-landing-system : lando
2019-01-11 01:47:15 +00:00