Simon Giesecke
7e8ae185d6
Bug 1600283 - Reduce uses of plain pointers. r=dom-workers-and-storage-reviewers,janv
...
Differential Revision: https://phabricator.services.mozilla.com/D55477
--HG--
extra : moz-landing-system : lando
2019-12-13 12:18:21 +00:00
Csoregi Natalia
2bfeaf7cb5
Backed out 11 changesets (bug 1587433) for bustages on RangeBoundary.h. CLOSED TREE
...
Backed out changeset 18f8d61039b0 (bug 1587433)
Backed out changeset 69ad70a4f85e (bug 1587433)
Backed out changeset 79ec11ba7fde (bug 1587433)
Backed out changeset f8a7e23843b8 (bug 1587433)
Backed out changeset f9255884980f (bug 1587433)
Backed out changeset 50a798e664a1 (bug 1587433)
Backed out changeset b225586edea6 (bug 1587433)
Backed out changeset b1d9e55ece86 (bug 1587433)
Backed out changeset 7ebbcb2da488 (bug 1587433)
Backed out changeset 4032df295a67 (bug 1587433)
Backed out changeset 0e1577031add (bug 1587433)
2019-12-16 13:25:51 +02:00
Mirko Brodesser
1db1c362b8
Bug 1587433: part 8) Remove superfluous `RangeBoundaryBase::Offset()` overload. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D54504
--HG--
extra : moz-landing-system : lando
2019-12-11 12:26:19 +00:00
Mirko Brodesser
52bbf6b8da
Bug 1587433: part 7.6) Adapt callers of `RangeBoundaryBase::Offset()`. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D54503
--HG--
extra : moz-landing-system : lando
2019-12-11 12:26:15 +00:00
Mirko Brodesser
2f58cffcb0
Bug 1587433: part 7.5) Adapt callers of `RangeBoundaryBase::Offset()`. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D54495
--HG--
extra : moz-landing-system : lando
2019-12-11 12:26:10 +00:00
Mirko Brodesser
8e27b5e829
Bug 1587433: part 7.4) Adapt callers of `RangeBoundaryBase::Offset()`. r=smaug
...
Calls around nsContentUtils::ComparePoint might be strengthened to
retrieve only valid offsets in a separate commit.
The change in `nsRange::CloneContents` is according to
https://dom.spec.whatwg.org/#concept-range-clone .
Differential Revision: https://phabricator.services.mozilla.com/D54494
--HG--
extra : moz-landing-system : lando
2019-12-11 12:26:08 +00:00
Mirko Brodesser
2ce540d13e
Bug 1587433: part 7.2) Adapt callers of `RangeBoundaryBase::Offset()`. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D54459
--HG--
extra : moz-landing-system : lando
2019-12-16 11:04:01 +00:00
Mirko Brodesser
f1c8587c4b
Bug 1587433: part 7.1) Adapt callers of `RangeBoundaryBase::Offset()`. r=smaug
...
Calls around `nsContentUtils::ComparePoints` will be cleaned-up in a
separate commit.
Differential Revision: https://phabricator.services.mozilla.com/D54458
--HG--
extra : moz-landing-system : lando
2019-12-11 12:25:03 +00:00
Mirko Brodesser
58e0fcd8c5
Bug 1587433: part 6) Create `RawRangeBoundary` in `nsRange::ComparePoints` only after checking the offset is valid. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D54457
--HG--
extra : moz-landing-system : lando
2019-12-11 12:24:55 +00:00
Mirko Brodesser
640091d4f0
Bug 1587433: part 5) Add `RangeBoundaryBase::Offset(OffsetFilter)`. r=smaug
...
Once `RawRangeBoundary::Offset()` is removed, callers are forced to pass
a filter to `Offset()`. Making it less likely for new callers to
undeliberately retrieve invalid values.
`RawRangeBoundary::Offset()` is removed in separate commit, once all
callers adapted.
Differential Revision: https://phabricator.services.mozilla.com/D54456
--HG--
extra : moz-landing-system : lando
2019-12-11 12:24:48 +00:00
Mirko Brodesser
ed7f8d448f
Bug 1587433: part 4) In `Selection::SetBaseAndExtent` check offsets are valid before constructing range boundaries. r=smaug
...
Avoid warnings.
Differential Revision: https://phabricator.services.mozilla.com/D54277
--HG--
extra : moz-landing-system : lando
2019-12-11 12:24:40 +00:00
Mirko Brodesser
ba20ab29fa
Bug 1587433: part 3) Strengthen conditions for `AbstractRange::mIsPositioned`. r=smaug
...
Makes it less mysterious.
Differential Revision: https://phabricator.services.mozilla.com/D54276
--HG--
extra : moz-landing-system : lando
2019-12-11 12:24:28 +00:00
Matt Woodrow
e88be9e3a2
Bug 1601743 - Don't apply the referrer header to the referrer that we send back to the content process when converting a DocumentChannel into a real channel. r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D56841
--HG--
extra : moz-landing-system : lando
2019-12-16 00:19:03 +00:00
Emilio Cobos Álvarez
ac506d6f4b
Bug 1603889 - Simplify the scrollbar preference setup. r=smaug
...
So much plumbing to pass an enum down.
Differential Revision: https://phabricator.services.mozilla.com/D57182
--HG--
extra : moz-landing-system : lando
2019-12-15 22:56:23 +00:00
Tom Schuster
bb24dcba44
Bug 1597419 - Remove nsIDocShellTreeItem from nsCopySupport::FireClipboardEvent. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D57207
--HG--
extra : moz-landing-system : lando
2019-12-15 00:03:41 +00:00
Edgar Chen
12f24b3f73
Bug 1603615 - [Clamp] and [EnforceRange] should only appear on integer types; r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D57018
--HG--
extra : moz-landing-system : lando
2019-12-14 04:40:14 +00:00
Emilio Cobos Álvarez
3ccc6c30ab
Bug 1603313 - Subdocument enum callbacks should take a reference. r=bzbarsky
...
As they can never take null.
Differential Revision: https://phabricator.services.mozilla.com/D56843
--HG--
extra : moz-landing-system : lando
2019-12-14 05:08:39 +00:00
Emilio Cobos Álvarez
b2fe832c7b
Bug 1603313 - Remove some silly patterns. r=bzbarsky
...
foo ? true : false
or:
foo ? false : true
Have always a nicer way to be written.
Differential Revision: https://phabricator.services.mozilla.com/D56842
--HG--
extra : moz-landing-system : lando
2019-12-14 05:05:01 +00:00
Emilio Cobos Álvarez
4fad1d2092
Bug 1603843 - Remove work-around for 7+-year-old Mesa bug. r=jgilbert
...
Differential Revision: https://phabricator.services.mozilla.com/D57166
--HG--
extra : moz-landing-system : lando
2019-12-13 22:12:25 +00:00
Ricky Stewart
479b38bcac
Bug 1603262 - mozbuild/makeutil.py and mozbuild/test_makeutil.py support python3 r=firefox-build-system-reviewers,mshal
...
Differential Revision: https://phabricator.services.mozilla.com/D56968
--HG--
extra : moz-landing-system : lando
2019-12-13 20:49:13 +00:00
Kris Maglione
39d7eb39ed
Bug 1596918: Part 4g - Misc cleanup/fixes. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D53748
--HG--
extra : moz-landing-system : lando
2019-12-13 20:36:48 +00:00
Kris Maglione
9150b2f6c2
Bug 1596918: Part 4f - Fix callers which have timing issues. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D53747
--HG--
extra : moz-landing-system : lando
2019-12-13 20:36:44 +00:00
Kris Maglione
3cb2072737
Bug 1596918: Part 4e - Fix callers which rely on frame message manager globals. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D53746
--HG--
extra : moz-landing-system : lando
2019-12-13 20:36:40 +00:00
Kris Maglione
295e55e227
Bug 1596918: Part 4d - Fix callers which try to return non-clonable values. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D53745
--HG--
extra : moz-landing-system : lando
2019-12-13 20:36:37 +00:00
Kris Maglione
0b1a146519
Bug 1596918: Part 4c - Fix callers which depend on document lifecycle changes. r=mccr8
...
ContentTask tasks have a different lifetime than SpecialPowers tasks, with the
former being tied to the lifetime of a message manager and the latter tied to
the lifetime of a window global. That means that existing ContentTask callers
which expect to be able to register load listeners before the creation of a
window global, or which expect to persist after a page has navigated, won't
work as SpecialPowers tasks.
Since those sorts of tasks are not really resilient in the face of Fission,
they should really be written to work differently, but this patch mostly just
reverts them to using ContentTask for the time being.
Differential Revision: https://phabricator.services.mozilla.com/D53744
--HG--
extra : moz-landing-system : lando
2019-12-13 20:36:36 +00:00
Kris Maglione
9853440599
Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
...
Differential Revision: https://phabricator.services.mozilla.com/D53741
--HG--
extra : moz-landing-system : lando
2019-12-13 20:36:24 +00:00
Kris Maglione
94e3b0bd8d
Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
...
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.
Differential Revision: https://phabricator.services.mozilla.com/D53740
--HG--
extra : moz-landing-system : lando
2019-12-13 20:36:16 +00:00
Boris Zbarsky
ee1cc488f2
Bug 1602483 part 2. Add a window id argument to CheckLoadURIWithPrincipal. r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D56428
--HG--
rename : devtools/client/webconsole/test/browser/browser_webconsole_same_origin_errors.js => devtools/client/webconsole/test/browser/browser_webconsole_checkloaduri_errors.js
rename : devtools/client/webconsole/test/browser/test-same-origin-required-load.html => devtools/client/webconsole/test/browser/test-checkloaduri-failure.html
extra : moz-landing-system : lando
2019-12-12 16:41:19 +00:00
Boris Zbarsky
c0594d0833
Bug 1602483 part 1. Add a window id argument to SetupRefreshURIFromHeader. r=ckerschb
...
We can use this for error reporting.
Differential Revision: https://phabricator.services.mozilla.com/D56427
--HG--
extra : moz-landing-system : lando
2019-12-12 16:41:21 +00:00
Ashutosh Tiwari
b1fed54115
Bug 1603690 - Remove a redundant return statement and removed empty lines. r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D57086
--HG--
extra : moz-landing-system : lando
2019-12-13 17:49:07 +00:00
Boris Zbarsky
cbc90e1aca
Bug 1602090 part 2. Create separate CheckMayLoad and CheckMayLoadWithReporting APIs. r=ckerschb
...
CheckMayLoadAndReport takes a window ID. This allows us to report
errors from it to the web console as needed. Most consumers know statically
whether they want reporting or not, so there's no reason to force the ones that
don't to provide window ids.
Differential Revision: https://phabricator.services.mozilla.com/D56388
--HG--
extra : moz-landing-system : lando
2019-12-13 06:24:12 +00:00
Randell Jesup
b674328047
Bug 1596784: Support SetTimeout deferral during load under Fission r=smaug
...
Fission puts subdocuments (potentially) in separate processes, so we can't
just EnumerateSubDocuments and poke the TimeoutManagers for each one.
Differential Revision: https://phabricator.services.mozilla.com/D56547
--HG--
extra : moz-landing-system : lando
2019-12-13 17:09:33 +00:00
Olli Pettay
3338ab0bb2
Bug 1556976, remove an old, mostly non-working hack to prevent zoom on form controls, r=masayuki
...
Differential Revision: https://phabricator.services.mozilla.com/D56966
--HG--
extra : moz-landing-system : lando
2019-12-13 13:07:23 +00:00
Simon Giesecke
e0d7403f69
Bug 1577202 - Defer closing of a database while CreateFileOp's are pending. r=dom-workers-and-storage-reviewers,janv
...
Differential Revision: https://phabricator.services.mozilla.com/D44683
--HG--
extra : moz-landing-system : lando
2019-12-13 13:32:02 +00:00
Simon Giesecke
399a9c9856
Bug 1577202 - Added test case from fuzzying. r=dom-workers-and-storage-reviewers,asuth
...
Differential Revision: https://phabricator.services.mozilla.com/D44682
--HG--
extra : moz-landing-system : lando
2019-12-04 12:45:35 +00:00
Emilio Cobos Álvarez
b498defa90
Bug 1603455 - Remove full-screen-api.unprefix.enabled. r=xidorn,smaug
...
It's been enabled since Firefox 64.
Differential Revision: https://phabricator.services.mozilla.com/D56951
--HG--
extra : moz-landing-system : lando
2019-12-13 13:27:27 +00:00
Simon Giesecke
bd5b9b72d1
Bug 1600906 - Disable remote settings blocklist when running indexedDB tests, as this heavily uses IndexedDB. r=dom-workers-and-storage-reviewers,ytausky
...
Differential Revision: https://phabricator.services.mozilla.com/D56016
--HG--
extra : moz-landing-system : lando
2019-12-13 11:32:13 +00:00
Simon Giesecke
cd83137067
Bug 1600906 - Reduce statefulness of TransactionDatabaseOperationBase using InitializedOnce. r=dom-workers-and-storage-reviewers,ytausky
...
Differential Revision: https://phabricator.services.mozilla.com/D56015
--HG--
extra : moz-landing-system : lando
2019-12-13 11:31:56 +00:00
Simon Giesecke
c87fdd4c9a
Bug 1600906 - Encapsulate DatabaseOperationBase::mResultCode. r=dom-workers-and-storage-reviewers,ytausky
...
Differential Revision: https://phabricator.services.mozilla.com/D56014
--HG--
extra : moz-landing-system : lando
2019-12-13 11:28:24 +00:00
Simon Giesecke
ff97600e5a
Bug 1600906 - Use move semantics with IdleDatabaseInfo. r=dom-workers-and-storage-reviewers,ytausky
...
Differential Revision: https://phabricator.services.mozilla.com/D56012
--HG--
extra : moz-landing-system : lando
2019-12-13 12:21:18 +00:00
Simon Giesecke
8ad6cab25f
Bug 1600906 - Use move semantics with ThreadInfo. r=dom-workers-and-storage-reviewers,ytausky
...
Differential Revision: https://phabricator.services.mozilla.com/D56011
--HG--
extra : moz-landing-system : lando
2019-12-13 12:20:23 +00:00
Simon Giesecke
36ae4a9dbf
Bug 1600906 - Reduce statefulness of DatabaseConnection using InitializedOnce. r=dom-workers-and-storage-reviewers,ytausky
...
Differential Revision: https://phabricator.services.mozilla.com/D56008
--HG--
extra : moz-landing-system : lando
2019-12-13 10:55:10 +00:00
Simon Giesecke
30812bc3a6
Bug 1600906 - Made FlippedOnce member functions constexpr. r=dom-workers-and-storage-reviewers,ytausky
...
Differential Revision: https://phabricator.services.mozilla.com/D56007
--HG--
extra : moz-landing-system : lando
2019-12-13 10:54:48 +00:00
Simon Giesecke
10507063a9
Bug 1600906 - Reduce statefulness of TransactionBase using const and InitializedOnce. r=dom-workers-and-storage-reviewers,ytausky
...
Differential Revision: https://phabricator.services.mozilla.com/D56006
--HG--
extra : moz-landing-system : lando
2019-12-13 10:54:22 +00:00
Simon Giesecke
6aa7182d46
Bug 1600906 - Extended InitializedOnce to allow restricting the valid values. r=dom-workers-and-storage-reviewers,ytausky
...
Differential Revision: https://phabricator.services.mozilla.com/D56005
--HG--
extra : moz-landing-system : lando
2019-12-13 10:55:33 +00:00
Yaron Tausky
2381d5552e
Bug 1593246 - Part 5: Replicate session storage data r=janv,asuth
...
This commit implements a simple data replication scheme, where
each content process receives a copy of the relevant session
storage data when navigating, and sending all its session storage
data to the parent process before shutting down.
Differential Revision: https://phabricator.services.mozilla.com/D55662
--HG--
extra : moz-landing-system : lando
2019-12-13 09:45:55 +00:00
Christoph Kerschbaumer
142f16f7de
Bug 1599256: Fix web compatibility issues by reverting changes and going back to loading about:blank and firing the onload event in case XFO blocks an iframe. r=jkt,smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D56166
--HG--
extra : moz-landing-system : lando
2019-12-13 07:07:49 +00:00
Cameron McCormack
7d20996c2c
Bug 1598480 - Test. r=emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D57019
--HG--
extra : moz-landing-system : lando
2019-12-13 02:04:07 +00:00
Cameron McCormack
9115e99eb4
Bug 1598480 - Make SVG images respond to theme changes. r=tnikkel,emilio
...
Differential Revision: https://phabricator.services.mozilla.com/D56156
--HG--
extra : moz-landing-system : lando
2019-12-13 02:04:07 +00:00
Emilio Cobos Álvarez
fe173632c7
Bug 1602843 - Preserve CSS input exactly during sanitization. r=hsivonen
...
This avoids the mutation due to the different serialization in some cases.
Differential Revision: https://phabricator.services.mozilla.com/D56732
--HG--
extra : moz-landing-system : lando
2019-12-12 13:57:54 +00:00