Commit Graph

33 Commits

Author SHA1 Message Date
Andrea Marchesini
43a5f36077 Bug 1522210 - Fingerprinting and cryptomining classifiers must have separate nsIWebProgressListener blocking state codes - part 1 - UrlClassifierFeatureFactory::IsClassifierBlockingErrorCode, r=ehsan
Differential Revision: https://phabricator.services.mozilla.com/D17637
2019-01-30 13:43:34 +01:00
Ehsan Akhgari
0b5c4e6d1a Bug 1523106 - DeCOMtaminate nsISecurityEventSink; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D17742
2019-01-28 14:45:49 -05:00
Randell Jesup
e213c06fe8 Bug 1270059: Defer setTimeout/Intervals()s in content during pageload r=smaug
They will run off the new DeferredTimers idle queue if idle time is available
2019-01-26 12:18:06 -05:00
Randell Jesup
76bd9e73cc Bug 1522150: Add a DeferredTimers queue ahead of the normal Idle EventQueue r=froyd
* * *
Bug 1522150: Rename NS_IdleDispatch* functions since they take queue identifiers r=froyd
2019-01-26 12:18:05 -05:00
Zibi Braniecki
51cb6c2749 Bug 1518252 - Block layout on Fluent. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D17334

--HG--
extra : moz-landing-system : lando
2019-01-25 23:14:03 +00:00
Cosmin Sabou
d4afc5310c Backed out 2 changesets (bug 1518252) for frequent clipboard failures on browser_jsterm_middle_click_paste.
Backed out changeset b6f80451898e (bug 1518252)
Backed out changeset 06114c66901f (bug 1518252)

--HG--
extra : rebase_source : 795b3a29b1344ce224207c4034f13d3d7f1a5c53
2019-01-24 02:50:54 +02:00
Zibi Braniecki
5e38c8a5a5 Bug 1518252 - Block layout on Fluent. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D17334

--HG--
extra : moz-landing-system : lando
2019-01-23 21:29:15 +00:00
Emilio Cobos Álvarez
8addc7a883 Bug 1521137 - The pres context's base min font size is dead code. r=heycam
Nobody uses it from js, and we only thread the value around in layout. Let's
kill all this code.

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

--HG--
extra : moz-landing-system : lando
2019-01-21 07:15:02 +00:00
Cosmin Sabou
7ccc9d8b0b Merge mozilla-inbound to mozilla-central. a=merge 2019-01-19 11:57:49 +02: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
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
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
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
Margareta Eliza Balazs
9dda825205 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-01-18 12:31:59 +02:00
Ehsan Akhgari
e5e885ae31 Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
# ignore-this-changeset

--HG--
extra : amend_source : 7221c8d15a765df71171099468e7c7faa648f37c
extra : histedit_source : a0cce6015636202bff09e35a13f72e03257a7695
2019-01-18 10:16:18 +01:00
Oana Pop Rus
c42c2ac75f Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-15 11:39:31 +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
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
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
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
Boris Zbarsky
92a1690e78 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-11 04:34:13 +00:00
Alastor Wu
0f15935379 Bug 1513733 - part3 : add test. r=baku,karlt
Add test and mochitest-only function in document.

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

--HG--
extra : moz-landing-system : lando
2019-01-11 18:45:31 +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
Eric Rahm
8ba7f30537 Bug 1516007 - Avoid extra work in nsIDocument::ScrollToRef. r=ehsan
We can avoid making an extra copy when unescaping `mScrollToRef` by using
`NS_UnescapeURL` instead of `nsUnescape`. Additionally we can avoid calling
`GoToAnchor` a second time if nothing was unescaped.

--HG--
extra : rebase_source : 9a792e5bbd54b58a8bc0db4b9aa47b4048f985a0
2018-12-19 17:02:43 -08:00
Masayuki Nakano
2c46fac276 Bug 1518384 - Fix some lines which depend on |using namespace mozilla| and |using namespace mozilla::dom| in Document.cpp and Element.cpp r=smaug
After landing bug 1517241, some lines in Document.cpp and Element.cpp depend on
`using namespace mozilla` and `using namespace mozilla::dom` of *different*
cpp files.  Therefore, when you rename some cpp files in dom/base, you'll
hit compile error.

This patch fixes the dependency with moving some classes into mozilla namespace
and adding |mozilla::| or |dom::| to a couple of lines.

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

--HG--
rename : dom/base/nsIdentifierMapEntry.h => dom/base/IdentifierMapEntry.h
extra : moz-landing-system : lando
2019-01-08 10:15:55 +00:00
Neil Deakin
cb10352f4b Bug 1482389, replace TreeBoxObject with XULTreeElement inherited from XULElement, r=peterv,paolo
--HG--
rename : dom/webidl/TreeBoxObject.webidl => dom/chrome-webidl/XULTreeElement.webidl
rename : layout/xul/tree/TreeBoxObject.cpp => dom/xul/XULTreeElement.cpp
rename : layout/xul/tree/TreeBoxObject.h => dom/xul/XULTreeElement.h
2018-12-04 11:25:30 -05:00
Brian Hackett
c73140a5cf Bug 1177346 Part 1 - Add setSuppressedEventListener interface, r=smaug.
--HG--
extra : rebase_source : a01b747e49f06fe6ef7724e38648ea28601b2793
2019-01-03 06:39:12 -10:00
shindli
f63d10362d Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-05 06:13:47 +02:00
Alastor Wu
c64bb9ac90 Bug 1513681 - part5 : remove event 'AudibleAutoplayMediaOccurred'. r=jaws
This event is used for shield-study which has finished, so we could remove it.

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

--HG--
extra : moz-landing-system : lando
2019-01-04 19:04:39 +00:00
Alastor Wu
4d16da70e0 Bug 1513681 - part1 : dispatch 'GloballyAutoplayBlocked' event when site is blocked r=cpearce,smaug
This event is used to notify tab that this site is blocked and we should show the blocking icon for it. Patch2 will handle following details.

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

--HG--
extra : moz-landing-system : lando
2019-01-04 19:05:52 +00:00
Andrea Marchesini
467a80d06b Bug 1514202 - Port flash url-classifier to nsIUrlClassifierFeature - part 2 - Cleanup Flash classification, r=dimi, r=edgar 2019-01-04 14:45:53 +01:00
Emilio Cobos Álvarez
d2ed260822 Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug
Summary: Really sorry for the size of the patch. It's mostly automatic
s/nsIDocument/Document/ but I had to fix up in a bunch of places manually to
add the right namespacing and such.

Overall it's not a very interesting patch I think.

nsDocument.cpp turns into Document.cpp, nsIDocument.h into Document.h and
nsIDocumentInlines.h into DocumentInlines.h.

I also changed a bunch of nsCOMPtr usage to RefPtr, but not all of it.

While fixing up some of the bits I also removed some unneeded OwnerDoc() null
checks and such, but I didn't do anything riskier than that.
2019-01-03 17:48:33 +01:00