Nicholas Nethercote
f548590e7c
Bug 1570212 - Convert dom.allow_XUL_XBL_for_file to a static pref. r=mccr8
...
Differential Revision: https://phabricator.services.mozilla.com/D40153
2019-08-02 11:59:04 +00:00
Timothy Nikkel
6ee6fc4271
Bug 1570164. Silence warning spam in nsContentUtils::IsThirdPartyWindowOrChannel. r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D39978
2019-07-31 18:14:33 +00:00
Tom Schuster
2c388af9b0
Bug 1558915 - Use infallible nsIURI::SchemeIs in dom/base. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D39780
2019-07-30 17:51:37 +00:00
Alex Catarineu
f7985f498c
Bug 1561322 - Allow spoofing strings in HTML forms r=baku,Pike
...
When privacy.spoof_english = 2, we should hide the user's
locale in content. So we use en-US default strings for HTML
form elements, such as a Submit button.
We also force GetLocalizedEllipsis() to always return the
ellipsis used by en-US.
Differential Revision: https://phabricator.services.mozilla.com/D35815
2019-07-24 13:22:22 +00:00
Thomas Nguyen
746a37ab9e
Bug 1566833 - Update to use ReferrerInfo in nsIWebBrowserChrome3 r=Gijs,snorp
...
Differential Revision: https://phabricator.services.mozilla.com/D38381
2019-07-29 10:13:45 +00:00
Kannan Vijayan
c690c1925f
Bug 1559414 - Rename unaudited pre-fission methods with SameProcess for future audit burndown. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D39378
2019-07-26 16:48:31 +00:00
Nicholas Nethercote
c4aacd8403
Bug 1563139 - Remove StaticPrefs.h. r=glandium
...
This requires replacing inclusions of it with inclusions of more specific prefs
files.
The exception is that StaticPrefsAll.h, which is equivalent to StaticPrefs.h,
and is used in `Codegen.py` because doing something smarter is tricky and
suitable for a follow-up. As a result, any change to StaticPrefList.yaml will
still trigger recompilation of all the generated DOM bindings files, but that's
still a big improvement over trigger recompilation of every file that uses
static prefs.
Most of the changes in this commit are very boring. The only changes that are
not boring are modules/libpref/*, Codegen.py, and ServoBindings.toml.
Differential Revision: https://phabricator.services.mozilla.com/D39138
2019-07-26 01:10:23 +00:00
Hiroyuki Ikezoe
e6e5cd903f
Bug 1498729 - Move out nsContentUtils::ProcessViewportInfo. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D38920
2019-07-25 04:24:08 +00:00
Thomas Nguyen
a5728563c2
Bug 1566411 Use ReferrerInfo class in imgLoader.idl r=tnikkel
...
Differential Revision: https://phabricator.services.mozilla.com/D38177
2019-07-25 08:23:32 +00:00
Ciure Andrei
555c0eb5a5
Backed out 10 changesets (bug 1523638) for causing high frequency Android 7.0 mochitests failures CLOSED TREE
...
Backed out changeset 644ceb2fe568 (bug 1523638 )
Backed out changeset 27647ee7a927 (bug 1523638 )
Backed out changeset 96f1ccb95570 (bug 1523638 )
Backed out changeset b60a17ea716a (bug 1523638 )
Backed out changeset 507e63186c5f (bug 1523638 )
Backed out changeset 33255408ca61 (bug 1523638 )
Backed out changeset d97b2d223616 (bug 1523638 )
Backed out changeset eba2a0514cde (bug 1523638 )
Backed out changeset d7065174c5c4 (bug 1523638 )
Backed out changeset c21b361e175d (bug 1523638 )
2019-07-23 05:13:32 +03:00
Nika Layzell
b389df592e
Bug 1523638 - Part 4: Move NextWindowId logic into nsContentUtils, r=kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D37651
2019-07-18 19:38:12 +00:00
Masayuki Nakano
b66113b7ef
Bug 1548389 - part 4: Implement nsContentUtils::GetTextEditorFromAnonymousNodeWithoutCreation() to retrieve TextEditor instance from an anonymous node in HTMLInputElement or HTMLTextAreaElement r=smaug
...
This method makes the following patches simpler and avoid duplicating same
code.
The utility method retrieves `TextEditor` from `HTMLInputElement` and
`HTMLTextAreaElement`. However, this won't cause creating corresponding
editor because when it calls from `TextEditor`, editor shouldn't be created
at that time due to requiring another reflow. Additionally, it's not
necessary for `nsTextFrame` because without `TextEditor`, all characters
in password field should be masked.
Differential Revision: https://phabricator.services.mozilla.com/D38008
2019-07-22 03:54:33 +00:00
Kershaw Chang
35ba268f9d
Bug 1564175 - Revert the quick fix from bug 1559795 r=ckerschb
...
Add the length check back.
Differential Revision: https://phabricator.services.mozilla.com/D38186
2019-07-16 14:33:20 +00:00
Gurzau Raul
ff7685aa79
Merge mozilla-central to autoland. a=merge CLOSED TREE
2019-07-17 06:53:00 +03:00
Bogdan Tara
8aef5e7fca
Backed out 9 changesets (bug 1523638) for browser_contextmenu.js failures CLOSED TREE
...
Backed out changeset 0a584a07b696 (bug 1523638 )
Backed out changeset 8c5af2289900 (bug 1523638 )
Backed out changeset 40ed1bd64b09 (bug 1523638 )
Backed out changeset 9a99a0391979 (bug 1523638 )
Backed out changeset 07fb4748b91a (bug 1523638 )
Backed out changeset 49047c3ebae9 (bug 1523638 )
Backed out changeset d606d072126c (bug 1523638 )
Backed out changeset 76dc1937fc77 (bug 1523638 )
Backed out changeset c784c14b5d5d (bug 1523638 )
2019-07-16 23:40:47 +03:00
Nika Layzell
7f4c71a43d
Bug 1523638 - Part 4: Move NextWindowId logic into nsContentUtils, r=kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D37651
2019-07-16 18:47:41 +00:00
Mirko Brodesser
a70fbb65b5
Bug 1566046: move nsContentUtils::ContentIsShadowIncludingDescendantOf to nsINode::IsShadowIncludingInclusiveDescendantOf. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D38079
2019-07-16 09:25:02 +02:00
Noemi Erli
e4eb527714
Merge inbound to mozilla-central. a=merge
2019-07-16 00:42:51 +03:00
Mirko Brodesser
090d7efc5e
Bug 1565584: move nsIContentUtils::ContentIsDescendantOf to nsINode::IsInclusiveDescendantOf. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D37880
2019-07-15 10:02:21 +02:00
Boris Zbarsky
942187fe9e
Bug 1565688. Remove unused IOService arg from NS_NewURI. r=mayhemer
...
Differential Revision: https://phabricator.services.mozilla.com/D37968
2019-07-15 13:39:51 +00:00
Thomas Nguyen
8e17cce240
Bug 1546334 - Use referrerInfo in style system. r=heycam
...
Differential Revision: https://phabricator.services.mozilla.com/D36478
2019-07-16 11:43:56 +00:00
Ciure Andrei
ee770b5e1e
Merge inbound to mozilla-central. a=merge
2019-07-10 12:41:47 +03:00
Mirko Brodesser
efc98fdafb
Bug 1564140: add const correctness for some methods in nsContentUtils. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D37278
2019-07-09 09:06:56 +02:00
Jonathan Kingston
32524b62e2
Bug 1560455 - rename CodebasePrincipal to ContentPrincipal. r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D35504
2019-07-08 16:37:45 +00:00
Alex Catarineu
f1e25269a5
Bug 467035 - Avoid leaking browser language via DTD r=Gijs,bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D34187
2019-07-08 10:47:05 +00:00
Emilio Cobos Álvarez
2113328e15
Bug 1218456 - Allow navigating when there's no pres context. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D37404
2019-07-09 23:07:29 +02:00
Dorel Luca
7a5944a08d
Backed out 5 changesets (bug 1218456) for Crashtest failures on dom/l10n/tests/mochitest/dom_localization/test_overlay.html. CLOSED TREE
...
Backed out changeset 31afe89c2d42 (bug 1218456)
Backed out changeset 8bd57ebc4528 (bug 1218456)
Backed out changeset e5d37afff36a (bug 1218456)
Backed out changeset e3da86278ecf (bug 1218456)
Backed out changeset 343046089f8e (bug 1218456)
2019-07-09 22:04:13 +03:00
Emilio Cobos Álvarez
851bb098fd
Bug 1218456 - Allow navigating when there's no pres context. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D37404
2019-07-09 16:17:27 +00:00
Rob Wu
830e7372ea
Bug 1396224 - Avoid cache for private clipboard data r=mstange
...
To avoid populating the clipboard cache,
`nsContentUtils::IPCTransferableToTransferable` should set the
IsPrivateData flag on the output transferable BEFORE assigning data to
it, not therafter.
This patch includes a new regression test for this specific scenario.
The patch also includes fixes for incorrect IsPrivateData flags in some
other locations with `transferable->Init(nullptr)`, but without unit
tests.
Differential Revision: https://phabricator.services.mozilla.com/D36440
2019-07-02 21:45:10 +00:00
Thomas Wisniewski
a67072d15d
Bug 1559795 - drop check for header length under 128 chars in nsContentUtils::IsCORSSafelistedRequestHeader for webcompat; r=ckerschb,hsivonen
...
drop check for header length under 128 chars in nsContentUtils::IsCORSSafelistedRequestHeader for webcompat
Differential Revision: https://phabricator.services.mozilla.com/D36804
2019-07-03 17:24:52 +00:00
Cameron McCormack
f03f1b844c
Bug 1553705 - Use a cheaper to compute state key for parser inserted form controls. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D32259
2019-07-01 10:06:16 +00:00
Cameron McCormack
c2b8ac8e2e
Bug 1553705 - Make GenerateStateKey() infallible. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D32258
2019-07-01 07:20:04 +00:00
Csoregi Natalia
b129fa1ca1
Merge inbound to mozilla-central. a=merge
2019-06-29 12:59:53 +03:00
Narcis Beleuzu
edbd8aaa24
Backed out 2 changesets (bug 1553705) for causing Bug1562142 . CLOSED TREE
...
Backed out changeset fbb26a04ec1f (bug 1553705)
Backed out changeset dd6e7c0970d5 (bug 1553705)
2019-06-29 02:39:01 +03:00
Boris Zbarsky
3adf4b0785
Bug 1560055 part 7. Remove now-unused percentage handling in ParseHTMLInteger. r=mccr8
...
All callers treat '%' being found the same as not having consumed all the input,
so we can just stop consuming it.
Differential Revision: https://phabricator.services.mozilla.com/D36214
2019-06-28 17:39:52 +00:00
Cosmin Sabou
ae7abc18f4
Merge mozilla-central to mozilla-inbound.
2019-06-28 19:16:36 +03:00
Masayuki Nakano
e1ccf4df16
Bug 1444847 - part 2: Sort out basic API of nsRange for consistency with coming StaticRange r=smaug
...
For avoiding confusion between API of `nsRange` and `StaticRange`, I'd like to
rename `nsRange::CreateRange()` to `nsRange::Create()` because
`StaticRange::CreateStaticRange()` is too long name and
`StaticRange::CreateRange()` sounds odd. This patch renames it and changes
related methods to template methods to avoid runtime cost of temporary
`RawRangeBoundary` instance creation.
Differential Revision: https://phabricator.services.mozilla.com/D35141
2019-06-28 07:47:29 +00:00
Cameron McCormack
e0c2d268cb
Bug 1553705 - Use a cheaper to compute state key for parser inserted form controls. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D32259
2019-06-26 21:44:11 +00:00
Cameron McCormack
a7dd303c43
Bug 1553705 - Make GenerateStateKey() infallible. r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D32258
2019-06-26 21:44:03 +00:00
Nicholas Nethercote
a244981f2f
Bug 1561825 - Make sundry static prefs follow the naming convention. r=KrisWright
...
That includes changing privacy.resistFingerprinting to a non-VarCache pref,
because it doesn't need to be a VarCache.
Differential Revision: https://phabricator.services.mozilla.com/D36162
2019-06-27 17:38:17 +10:00
Jonathan Watt
24f51376b0
Bug 1559840. Add a pref to expose the transform getters on the Element interface. r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D35208
2019-06-17 15:51:33 -07:00
Thomas Nguyen
e12491abb6
Bug 1557636 Use Referrer info in worker and fix sharedworker's wrong referrer r=baku
...
SharedWorker should use worker's referrer info instead of default value
Differential Revision: https://phabricator.services.mozilla.com/D34861
2019-06-13 20:37:34 +00:00
Andrea Marchesini
8f6df314bb
Bug 1558923 - Remove nsContentUtils::GetThreadSafe{ASCII,UTF8}Origin, r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D34767
2019-06-13 19:45:52 +00:00
Narcis Beleuzu
bb2bbcdb7f
Backed out 2 changesets (bug 1558923) for mochitest crashes on AssertIsOnMainThread(). CLOSED TREE
...
Backed out changeset 643de99320a8 (bug 1558923)
Backed out changeset f758b5ccd0c0 (bug 1558923)
2019-06-13 20:59:33 +03:00
Andrea Marchesini
47e43be027
Bug 1558923 - Remove nsContentUtils::GetThreadSafe{ASCII,UTF8}Origin, r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D34767
2019-06-13 16:42:53 +00:00
Noemi Erli
b49d0ece9d
Backed out 2 changesets (bug 1558923) for failures in nsContentUtils.cpp
...
Backed out changeset 12c977801cb2 (bug 1558923)
Backed out changeset d8a688f1b7ce (bug 1558923)
2019-06-13 19:19:05 +03:00
Andrea Marchesini
013698673c
Bug 1558923 - Remove nsContentUtils::GetThreadSafe{ASCII,UTF8}Origin, r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D34767
2019-06-13 15:10:58 +00:00
Cosmin Sabou
34370ad98a
Backed out 2 changesets (bug 1558923) for build bustages on dom/URL.h. CLOSED TREE
...
Backed out changeset 0bb5857422f2 (bug 1558923)
Backed out changeset d0411a373ace (bug 1558923)
2019-06-13 13:35:54 +03:00
Andrea Marchesini
21487b9c99
Bug 1558923 - Remove nsContentUtils::GetThreadSafe{ASCII,UTF8}Origin, r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D34767
2019-06-13 10:19:03 +00:00
Peter Van der Beken
6c1f25a923
Bug 1490044 - Move all prefs used in WebIDL to StaticPrefs. r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D33507
2019-06-13 09:00:59 +00:00