Commit Graph

16374 Commits

Author SHA1 Message Date
Xidorn Quan
5915d041b6 Bug 1470229 part 2 - Allow aria attributes. r=hsivonen
MozReview-Commit-ID: 6tDCQLHYsH7

--HG--
extra : rebase_source : 763191826555a9cb61a4e27e271b574832df997f
2018-06-22 15:29:43 +10:00
Xidorn Quan
17affe0a42 Bug 1470229 part 1 - Make the starting-with check in nsTreeSanitizer::SanitizeAttributes nicer. r=hsivonen
MozReview-Commit-ID: 87mxrKKUfJD

--HG--
extra : rebase_source : b9c136f9708470a084d0d71e033033d79072eefb
2018-06-22 15:23:28 +10:00
Xidorn Quan
3bf49f0a25 Bug 1470367 - Refactor nsTreeSanitizer::SanitizeAttributes to accept a struct. r=hsivonen
MozReview-Commit-ID: FvWpzeSo38d

--HG--
extra : rebase_source : 522f090f39b58826845c4e912483acac427cdae4
2018-06-22 14:58:40 +10:00
Olli Pettay
12b00cb590 bug 1470306, DOMEventTargetHelper object should be kept alive while calling DisconnectFromOwner, r=bkelly 2018-06-24 18:16:32 +03:00
shindli
7fd12b01a4 Backed out 2 changesets (bug 1470163) for math failures in layout/mathml/tests/test_disabled.html on a CLOSED TREE
Backed out changeset e34a6bdac37a (bug 1470163)
Backed out changeset e2e97e7a605f (bug 1470163)
2018-06-24 06:56:44 +03:00
Emilio Cobos Álvarez
a1abd0a493 Bug 1470163: Load mathml.css upfront, and remove the concept of on-demand builtin UA sheets. r=heycam
On top of the two depending bugs.

Funny how there's a comment referencing bug 77999.

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

MozReview-Commit-ID: LCuJROu92bo
2018-06-24 03:55:58 +02:00
Ben Kelly
a11f4b5b1d Bug 1469941 Note DOMContentLoaded on the ClientSource and trigger service worker update in appropriate process. r=mrbkap 2018-06-23 10:11:47 -07:00
Emilio Cobos Álvarez
ee59da45b2 Bug 1470358: Deduplicate sheet insertion code between document and shadow root. r=heycam
Summary: Sort of straight-forward cleanup.

Test Plan: Covered by existing tests.

Reviewers: heycam

Reviewed By: heycam

Bug #: 1470358

Differential Revision: https://phabricator.services.mozilla.com/D1763
2018-06-22 12:57:37 +02:00
Coroiu Cristina
e72433191e Merge inbound to mozilla-central a=merge 2018-06-22 12:55:04 +03:00
Emilio Cobos Álvarez
c228998b4f Bug 1410578: Make <link rel="stylesheet"> work in shadow trees. r=heycam
Summary: Somewhat straight-forward, mostly removing special-casing.

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

MozReview-Commit-ID: 6f8duD4pGrl
2018-06-22 04:15:56 +02:00
Emilio Cobos Álvarez
bd7c1e4e8c Bug 1468133: Remove the optimization to lazily load non-SVG styles since it's not relevant anymore. r=heycam
This was a memory-saving optimization introduced as part of dependencies for bug
686875, but a more general system landed in bug 77999 for Gecko and
https://github.com/servo/servo/pull/18509 for Servo.

So now it's probably even a bit of a pessimization (though probably not huge),
and given this causes bugs like bug 1462742, bug 1157592, and bug 1468145, and
fishiness like the one pointed out in this bug, we may as well remove it.

The performance impact of having to lookup through more rules should be minimal
given the bloom filter and the rule hash optimizations.

This makes me wonder whether we could remove the whole concept of on-demand UA
sheets, since they've caused pain, for example, when the frontend people try
loading <svg>s from NAC (since that triggers sheet loading from frame
construction, which is not good). I'm not concerned about loading mathml.css and
svg.css everywhere, though xul.css may not be as doable since it adds a bunch of
attribute-dependent selectors. Though on the other hand I asserted in the
xul.css code and we don't load it in content with <video> / <input
type="date/time/etc"> and such, afaict, so maybe now that legacy addons are gone
we can remove that sheet from content processes altogether.

MozReview-Commit-ID: 9JCWNZj6BkT
2018-06-22 03:42:46 +02:00
Olli Pettay
db9641ef76 Bug 1470191 - use mainthread atomize for 'is' attribute, r=mrbkap 2018-06-21 21:04:57 +03:00
Andrea Marchesini
6518a03af1 Bug 1268889 - Implement Clear-Site-Data header - part 3 - reload contexts, r=smaug 2018-06-20 11:57:50 -04:00
Timothy Guan-tin Chien
b9a40e754b Bug 1437956 - Pretty print XML with Shadow DOM r=smaug
This patch puts the transformed pretty print DOM into a Shadow DOM.
The stylesheet is loaded with an @import in a <style> block, so the
monospace stylesheet had to be left out.

The XBL binding is kept, pending removal when Shadow DOM ships.
It's still needed to handle the case when Shadow DOM is pref'd off too.

MozReview-Commit-ID: DQRsXB8tumF

--HG--
extra : rebase_source : 6edc3d82392af4d98de454a5228328379a0fb7ee
2018-06-01 17:45:11 +08:00
Narcis Beleuzu
3f9f7d8191 Backed out 4 changesets (bug 1268889) for Windows GTest failures. CLOSED TREE
Backed out changeset da427a67372e (bug 1268889)
Backed out changeset 97528847b7b7 (bug 1268889)
Backed out changeset b2320061fbcb (bug 1268889)
Backed out changeset dd3b7047ea6f (bug 1268889)
2018-06-21 16:51:55 +03:00
Emilio Cobos Álvarez
f1c3803995 No bug - Remove unnecessary mozilla:: qualification. r=me
MozReview-Commit-ID: LRvVESWNvbb
2018-06-21 11:41:06 +02:00
Jan de Mooij
45a7ade57e Bug 1469217 part 2 - Add APIs taking getter/setter objects instead of JSNatives. r=anba 2018-06-21 11:05:42 +02:00
Cosmin Sabou
4c18cd4036 Merge inbound to central. a=merge
--HG--
rename : servo/components/style/properties/longhand/box.mako.rs => servo/components/style/properties/longhands/box.mako.rs
2018-06-21 04:16:40 +03:00
Andrea Marchesini
f235838704 Bug 1461921 - Block storage access for third-parties on the tracking protection list - part 7 - Network cache, r=mayhemer, r=ehsan 2018-06-20 13:38:22 -04:00
Andrea Marchesini
5b9437cad2 Bug 1461921 - Block storage access for third-parties on the tracking protection list - part 5 - Cookies, r=ehsan 2018-06-20 13:38:22 -04:00
Andrea Marchesini
e56b2e21a6 Bug 1461921 - Block storage access for third-parties on the tracking protection list - part 1 - Pref and Blocking check, r=ehsan 2018-06-20 13:38:21 -04:00
Andrea Marchesini
1f52a1bed1 Bug 1268889 - Implement Clear-Site-Data header - part 3 - reload contexts, r=smaug 2018-06-20 11:57:50 -04:00
Andreea Pavel
3c701634e0 Merge mozilla-inbound to mozilla-central. a=merge 2018-06-20 14:28:15 +03:00
Olli Pettay
5f299f6227 Bug 1443722 - Implement customElements.upgrade(), static void TryUpgrade , r=mrbkap 2018-06-20 02:14:05 +03:00
Olli Pettay
d10d7af09d Bug 1443722 - Implement customElements.upgrade() , r=mrbkap
--HG--
extra : rebase_source : b6153841b5cb38d697795564f1e864e46eb96d35
2018-06-20 02:06:33 +03:00
Olli Pettay
b51b00872d Bug 1441124, nsContentSubtreeIterator should not use GetChildAt_Deprecated, r=ehsan
--HG--
extra : rebase_source : ffde0dcc8135b045eb0c7aea0b2cde424aec9135
2018-06-19 21:46:43 +03:00
Olli Pettay
31baedeb6b bug 1466998, because of XUL panels, sequential focusing needs to handle also non-document-roots as roots, r=mrbkap
--HG--
extra : rebase_source : 39f7898fc2c43ec2c0497fd336bb1a501f39b269
2018-06-19 21:28:34 +03:00
Olli Pettay
bc11a71cf5 Bug 1469446 - Make element creation less Atom::AddRef/Release heavy, r=mrbkap
--HG--
extra : rebase_source : 66d7983be282176f70bbec1de78bb3496b9480c6
2018-06-19 21:23:05 +03:00
Dorel Luca
827ee0085c Merge mozilla-central to autoland
--HG--
rename : devtools/client/inspector/rules/models/element-style.js => devtools/client/inspector/rules/models/user-properties.js
extra : rebase_source : 1f5889febada06940357e847d2f0459b88a6ec14
2018-06-20 01:01:31 +03:00
Tarek Ziadé
a895a7efea Bug 1464571 - fixes DOM Worker performance counters - r=baku,froydnj
Now uses StaticPrefs instead of DOMPrefs, and how we count dispatches for Workers.

MozReview-Commit-ID: DTumwcI5bG

--HG--
extra : rebase_source : 0cf5312e714fb260c01df647b2cd1fcc28ffc415
2018-06-19 16:14:06 +02:00
Emilio Cobos Álvarez
b20d01787e Bug 1469108: Propagate directionality to the shadow tree. r=smaug
Make it so that directionality of the ShadowRoot descendants is computed based
on the host and it's ancestors, but don't touch the dir=auto code, since I don't
think anybody agrees with what needs to happen there, and I think in general
it shouldn't be accounted for.

MozReview-Commit-ID: AZMBZ5m1SQf
2018-06-18 18:26:23 +02:00
Emilio Cobos Álvarez
c43cef31fc Bug 1469108: Fix some pre-existing style issues / unnecessary default arguments. r=smaug
MozReview-Commit-ID: 3oogRy66cwx
2018-06-18 18:26:04 +02:00
Nathan Froyd
058d0bf372 Bug 1469305 - avoid useless copies for GC statistics notifications; r=mccr8
std::move'ing the string here enables us to avoid a useless copy of the
string.  Normally this would be just a refcounting increment/decrement,
but since we've Adopt'd the string a couple of lines earlier and the
incoming string is therefore just an owned character buffer, rather than
a refcounted character buffer, the copy here is a "real" copy.

What would be ideal here is to pass the (un-JSON'd) GCDescription out to
the notification, so we don't even have to render and parse JSON, but
that can be left for a later day.
2018-06-18 11:47:09 -04:00
Emilio Cobos Álvarez
3438cdd0ae Bug 1469276: Remove some unnecessary nsAttrAndChildArray usage. r=smaug
We relied already in DestroyContent not fiddling with child lists, so added
assertions to that effect.

The GetChildCount comment in UnbindSubtree looks outdated (there's no
GetChildCount impl which does anything like creating children).

MozReview-Commit-ID: 6UXVbT6Urgt
2018-06-18 16:07:07 +02:00
Olli Pettay
cbd7017dfb bug 1468099, Add a way to check if all the tabs in a process can be throttled, r=farre 2018-06-16 22:49:41 +03:00
Emilio Cobos Álvarez
59c5af3d20 Bug 1157592: Make InsertAnonymousContent load all the relevant stylesheets in SVG documents. r=bz
The underlying issue here is that the rule that makes the custom content
container abspos is in ua.css, and we don't load that for SVG documents.

Similarly, this fixes all the markers and such, that would be inline because of
the lack of html.css etc.

This fixes the root cause of bug 1462742, as well, so I added a few assertions
that should replace the wallpaper there. The reason we're guaranteed to be oof
is because top-layer implies that via StyleAdjuster::adjust_for_top_layer.

As an aside, the fact that AccessibleCaret calls into InsertAnonymousContent
from frame construction makes me extremely nervous, but it already does all sort
of other pretty nasty stuff... I'll file and fix.

MozReview-Commit-ID: 7ofKNGR8E20
2018-06-16 03:34:14 -07:00
Mark Banner
5aaf4808e7 Bug 1468938 - Add the 'expected' arguments to throws/rejects for dom/. r=lina
MozReview-Commit-ID: 2YwFxCFoi5d

Differential Revision: https://phabricator.services.mozilla.com/D1666
2018-06-15 16:36:54 +00:00
Ciure Andrei
6eea08365e Merge inbound to mozilla-central. a=merge 2018-06-15 12:49:01 +03:00
Coroiu Cristina
e2a3769fd4 Backed out 3 changesets (bug 1462879) for failing mochitests on Android at dom/tests/mochitest/general/test_resource_timing.html
Backed out changeset ae1bf2d218bb (bug 1462879)
Backed out changeset e5ae7c2df4a4 (bug 1462879)
Backed out changeset 4e171db33014 (bug 1462879)
2018-06-15 05:03:06 +03:00
Coroiu Cristina
7d78fd4903 Backed out changeset 7fc2698f9e19 (bug 1468099) for gtest failures on a CLOSED TREE 2018-06-15 04:07:04 +03:00
Boris Zbarsky
dfb24605c3 Bug 1466991 part 2. Reparent nodes when they start being in the XBL scope. r=smaug 2018-06-14 19:17:42 -04:00
Boris Zbarsky
54d21e5dd7 Bug 1466991 part 1. Factor out ShouldUseXBLScope. r=smaug
We're going to add another consumer in the next changeset.
2018-06-14 19:17:41 -04:00
Olli Pettay
51d20265b8 Bug 1468099 - Add a way to check if all the tabs in a process can be throttled, r=farre
--HG--
extra : rebase_source : d14e13f514166acab7131cdf87be0c2e5e32034c
2018-06-15 00:56:48 +03:00
Andrea Marchesini
1ae26502f6 Bug 1462879 - PerformanceNavigationTiming must be notified correctly, r=valentin, r=smaug 2018-05-24 14:58:43 +02:00
Noemi Erli
31fa4e1ccf Bug 1468200 - remove references to 'mulet' in manifest files. r=jmaher
--HG--
extra : rebase_source : d233138d248a4d3a826dc7666e13bd30ceafb496
2018-06-13 05:53:00 +03:00
Emilio Cobos Álvarez
b5a8cf3e7c Revert three changesets (Bug 1451576) for causing bug 1467964 and since it's not generally sound. r=me
MozReview-Commit-ID: CZaLUNlGkX8
2018-06-12 16:52:52 -07:00
Ben Kelly
f4e69fbdb7 Bug 1468209 Remove nsIHttpChannelInternal.responseSynthesized and use nsILoadInfo.serviceWorkerTaintingSynthesized instead. r=valentin 2018-06-12 07:02:01 -07:00
Olli Pettay
ff3ed25603 Bug 1467920, ensure only non-negative values are reported to telemetry, r=mccr8
--HG--
extra : rebase_source : 09a804d5a4ee753c32a09c79c7bebe1ed85a5713
2018-06-11 22:11:16 +03:00
Joel Maher
50b91c0a14 Bug 1405428 - skip-if = verify on mochitests which do not pass test-verify. r=gbrown 2018-06-10 05:01:47 -04:00
Bogdan Tara
fd27dd053f Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-06-09 15:08:05 +03:00