Commit graph

26324 commits

Author SHA1 Message Date
Jonathan Kingston
cf14643de4 Bug 1521549 - Move (de)serializePrincipal from sessionstore Utils to E10SUtils. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D17261

--HG--
extra : moz-landing-system : lando
2019-02-19 02:34:09 +00:00
Andrea Marchesini
c607e645dc Bug 1528596 - Devirtualize accesses to nsUrlClassifierUtils, r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D20086

--HG--
extra : moz-landing-system : lando
2019-02-19 14:35:57 +00:00
Matthew Noorenberghe
651a6b1282 Bug 1333264 - Only skip test_master_password.html on platforms with failures.
Differential Revision: https://phabricator.services.mozilla.com/D20324

--HG--
extra : moz-landing-system : lando
2019-02-19 13:29:36 +00:00
Masayuki Nakano
474225038e Bug 998941 - part 2-2: Make HTMLEditor set InputEvent.dataTransfer when InputEvent.inputType is "insertFromPaste", "insertFromDrop" or "insertReplacementText" r=smaug,m_kato
InputEvent.dataTransfer should be set to non-null when InputEvent.inputType
is "insertFromPaste", "insertFromDrop" or "insertReplacementText" and
editor is an HTMLEditor instance:
https://rawgit.com/w3c/input-events/v1/index.html#dfn-data
https://w3c.github.io/input-events/#dfn-data

("insertTranspose" and "insertFromYank" are not currently supported on Gecko.)

This patch makes nsContentUtils::DispatchInputEvent() take dataTransfer value
and EditorBase set it via AutoEditActionDataSetter like data value.

However, we need to create other constructors of DataTransfer to create its
read-only instances initialized with nsITransferable or nsAString.  This will
be implemented by the following patch.

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

--HG--
extra : moz-landing-system : lando
2019-02-19 06:33:42 +00:00
Masayuki Nakano
2eaf64e594 Bug 998941 - part 1-3: Make TextEditor (only when not HTMLEditor instance) set InputEvent.data to inserting string when InputEvent.inputType is "insertFromPaste", "insertFromDrop" or "insertReplacementText" r=smaug,m_kato
https://rawgit.com/w3c/input-events/v1/index.html#dfn-data
https://w3c.github.io/input-events/#dfn-data

Both Input Events Level 1 and Level 2 declare that InputEvent.data should be
set to inserting string only on TextEditor when InputEvent.inputType is
"insertFromPaste", "insertFromPasteAsQuotation", "insertFromDrop",
"insertTranspose", "insertReplacementText" or "insertFromYank".

Currently, we support only "insertFromPaste", "insertFromDrop",
"insertReplacementText".  Therefore, this patch makes TextEditor set
EditorBase::mEditActionData::mData only for them (and the instance is not
HTMLEditor's).

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

--HG--
extra : moz-landing-system : lando
2019-02-19 06:28:57 +00:00
Cosmin Sabou
c5b5dcfb26 Bug 1523193 - Disable test_ext_contentscript_devtools_metadata.html on android 4.3 !debug. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D20123

--HG--
extra : moz-landing-system : lando
2019-02-18 23:55:33 +00:00
Cosmin Sabou
de8acbe684 Bug 1333264 - Disable test_master_password.html on all platforms due to frequent failures. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D20121

--HG--
extra : moz-landing-system : lando
2019-02-18 23:55:36 +00:00
Valentin Gosu
d217297e66 Bug 1528188 - Add test with blocking webRequest which overwrites notificationCallbacks r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D20183

--HG--
extra : moz-landing-system : lando
2019-02-18 21:37:30 +00:00
Luca Greco
d42b2b99b3 Bug 1515817 - Check if contentWindow is a dead wrapper in the InnerWindowReference invalidate method. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D20185

--HG--
extra : moz-landing-system : lando
2019-02-18 16:23:27 +00:00
Mathieu Leplatre
c8bbaf4887 Bug 1517469 - Enable Events Telemetry for Uptake monitory r=janerik
Enable Events Telemetry for Uptake monitoring

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

--HG--
extra : moz-landing-system : lando
2019-02-15 09:38:18 +00:00
Rob Wu
e01caf24eb Bug 1528717 - Check whether extension is set before using it r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D20143

--HG--
extra : moz-landing-system : lando
2019-02-18 13:00:17 +00:00
Dimi Lee
12ebaa396b Bug 1527658 - Use asyncClassifyLocalWithFeatures API in aboutPerformance. r=baku
The error happened because aboutPerformance provided an unused
parameter to Classify API which is removed in Bug 1501458.

Check tracking protection tables via Classify API is not supported now.
We should use asyncClassifyLocalWithFeatures API instead.

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

--HG--
extra : moz-landing-system : lando
2019-02-18 08:50:09 +00:00
Chris H-C
fcae8c7f2b Bug 1501659 - Ensure child processes know which dynamic scalars were built-in. r=janerik
Depends on D19836

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

--HG--
extra : moz-landing-system : lando
2019-02-15 19:47:44 +00:00
Chris H-C
11a63a30a3 Bug 1501659 - Expire expired dynamic builtin scalars and events r=janerik
When registering dynamic builtin scalars and events (Build Faster support) we
didn't check whether they were expired. Let's do that.

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

--HG--
extra : moz-landing-system : lando
2019-02-15 19:47:44 +00:00
Csoregi Natalia
952908fda0 Merge mozilla-central to mozilla-inbound. CLOSED TREE 2019-02-17 00:14:07 +02:00
Sylvestre Ledru
e0c61dafa5 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
Summary: # ignore-this-changeset

Reviewers: Ehsan

Reviewed By: Ehsan

Subscribers: emilio, jandem, bbouvier, jya

Bug #: 1519636

Differential Revision: https://phabricator.services.mozilla.com/D20062
2019-02-16 20:20:37 +01:00
Cosmin Sabou
342a22295e Bug 1526614 - Disable toolkit/components/passwordmgr/test/browser/browser_private_window.js on linux. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D20054

--HG--
extra : moz-landing-system : lando
2019-02-16 15:13:35 +00:00
Markus Stange
0b151b8c2b Bug 1500692 - Centralize profiling category definition and add infrastructure for subcategories. r=njn
The actual subcategories will be added in later patches, so that there are no
unused categories.

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

--HG--
extra : moz-landing-system : lando
2019-02-16 17:37:43 +00:00
Boris Zbarsky
84b4628394 Bug 1528146. Fix how web extensions are injected into about:blank. r=kmag
The basic idea is to make non-initial about:blank fire
document-element-inserted notifications just like every other document.  We
then ensure that there's a notification (initial-document-element-inserted)
that only gets fired once per window for documents that are in a window.  This
notification is what webextensions use to inject into the document.

The old setup which injected into about:blank when its global is created gets
removed in favor of injecting the same way as into every other document.

The changes to Document.cpp are fixing a bug in the "block the parser" stuff
webextensions do.  For about:blank, the blocking happens at a point when the
parser really has nothing else to parse (since it's parsing the empty string).
So the blocking is a no-op.  But we do want to prevent DOMContentLoaded firing,
because otherwise the "end of document" scripts could run before we finish
doing the "beginning of document" work in webextensions.  So we want to make
sure we block DOMContentLoaded, not just the load event.

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

--HG--
extra : moz-landing-system : lando
2019-02-15 23:29:34 +00:00
Kyle Machulis
9fb68b2ccf Bug 1524683 - Remove nsIFrameLoaderOwner from tests; r=nika
Any time we QI to nsIFrameLoaderOwner in tests, we're really accessing
a MozFrameLoader. We don't need to be doing that anymore.

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

--HG--
extra : moz-landing-system : lando
2019-02-15 22:20:49 +00:00
Valentin Gosu
a5cc5b2a87 Bug 1521808 - Implement process switching based on Cross-Opener-Origin-Policy header r=nika,qdot
* New topLevel loads get the nsILoadInfo.openerPolicy of the current top level document
* Parsing the Cross-Opener-Origin-Policy of a channel will update mLoadInfo.openerPolicy and this value will get propagated to the child process.
* SessionStore now checks nsIHttpChannel.hasCrossOriginOpenerPolicyMismatch (preffed off) and performs a process switch if needed

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

--HG--
rename : toolkit/components/remotebrowserutils/tests/browser/browser_httpResponseProcessSelection.js => toolkit/components/remotebrowserutils/tests/browser/browser_httpCrossOriginOpenerPolicy.js
extra : moz-landing-system : lando
2019-02-15 22:02:47 +00:00
Shane Caraveo
84ec4ca5cf Bug 1525447 support incognito setting in proxy api r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D18754

--HG--
extra : moz-landing-system : lando
2019-02-15 21:20:51 +00:00
Ethan Glasser-Camp
41a995b3bf Bug 1443560: Convert checks to examine snapshotted events r=Gijs
Because the mock no longer checks whether the format of events is
correct, check the events that Telemetry actually records, in order to
make sure we conform to the event schema.

Some uses check that *no* calls were made to the stub. Although this
is technically still valid (because we don't care about the format of
events in this case), convert even these to check events for
consistency.

TelemetryTestUtils.assertEvents doesn't allow us to pass a message,
but most of these messages don't add anything useful and at least one
is just wrong so it's not a big loss.

Depends on D19540

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

--HG--
extra : moz-landing-system : lando
2019-02-15 15:48:58 +00:00
Ethan Glasser-Camp
8686e22b58 Bug 1443560: register telemetry events statically r=Gijs
This also means we no longer have direct access to the event schema,
so rely on Telemetry to throw when we send an invalid event.

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

--HG--
extra : moz-landing-system : lando
2019-02-15 15:48:51 +00:00
Nika Layzell
f59c32f2c6 Bug 1522637 - Part 5: Add tests for history navigations between http and file URIs with new pref, r=qdot
Depends on D18605

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

--HG--
extra : moz-landing-system : lando
2019-02-15 19:49:15 +00:00
Nika Layzell
947aaf1432 Bug 1522637 - Part 3: Send history index when resuming redirected loads, r=qdot
Depends on D18603

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

--HG--
extra : moz-landing-system : lando
2019-02-15 19:49:11 +00:00
arthur.iakab
52dc4687b4 Backed out changeset 60cb2cb96e5e (bug 1525447) for failing android xpcshell on test_proxy_incognito.js CLOSED TREE 2019-02-15 21:44:42 +02:00
Myk Melez
2c76682892 Bug 1527104 - use rkv::OwnedValue instead of internal OwnedValue in kvstore r=nika
The kvstore crate that landed in bug 1490496 uses an internal implementation of OwnedValue because the rkv crate's equivalent was insufficient at the time that kvstore was being developed.

rkv's OwnedValue has since evolved to support kvstore's use cases, and bug 1525392 is updating mozilla-central to the latest version of rkv; so we should replace kvstore's internal OwnedValue with rkv::OwnedValue.

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

--HG--
extra : moz-landing-system : lando
2019-02-15 18:33:30 +00:00
Cosmin Sabou
8cb8ef3973 Merge mozilla-central to autoland. 2019-02-15 20:50:34 +02:00
Cosmin Sabou
a4b19fcd61 Merge mozilla-inbound to mozilla-central. a=merge
--HG--
rename : browser/components/nsBrowserContentHandler.js => browser/components/BrowserContentHandler.jsm
2019-02-15 20:39:45 +02:00
Cosmin Sabou
fab429586f Merge autoland to mozilla-central. a=merge 2019-02-15 20:36:32 +02:00
Cosmin Sabou
ba308a2f90 Backed out 4 changesets (bug 1521808) for causing merge conflicts.
Backed out changeset 42641f88d7da (bug 1521808)
Backed out changeset 32ce09b2c33a (bug 1521808)
Backed out changeset 94e513102b53 (bug 1521808)
Backed out changeset a08553c07886 (bug 1521808)
2019-02-15 20:34:07 +02:00
Razvan Maries
d93d94cbc9 Backed out 9 changesets (bug 1522637) for causing bug 1528188. a=backout
Backed out changeset e4ca191d62a5 (bug 1522637)
Backed out changeset 540e5f318768 (bug 1522637)
Backed out changeset 0886a317a108 (bug 1522637)
Backed out changeset 4c7c512a262d (bug 1522637)
Backed out changeset d7eb272688be (bug 1522637)
Backed out changeset 67e838f49f4b (bug 1522637)
Backed out changeset 7e38890c72fa (bug 1522637)
Backed out changeset e6ca9ad18d15 (bug 1522637)
Backed out changeset 0f759e91eca8 (bug 1522637)
2019-02-15 18:21:36 +02:00
Shane Caraveo
753f89ef34 Bug 1525447 support incognito setting in proxy api r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D18754

--HG--
extra : moz-landing-system : lando
2019-02-15 18:08:44 +00:00
Edwin Gao
e7669e0875 Bug 1525785 - include aarch64 in list of validArchs for xpcshell test that checks architecture r=jmaher,gbrown
This should address the bug noted above, as well as several other bugs where `validArchs` is responsible for TEST-UNEXPECTED-FAIL.

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

--HG--
extra : moz-landing-system : lando
2019-02-14 22:47:49 +00:00
Michael Kaply
3bca501987 Bug 1527766 - Add enterprise policy for support menu. r=Felipe,flod
Differential Revision: https://phabricator.services.mozilla.com/D19722

--HG--
extra : moz-landing-system : lando
2019-02-14 23:25:08 +00:00
Mark Hammond
c28c64ec98 Bug 1523644 - extend expiry (again) of sync 'yellow state' users. r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D19088

--HG--
extra : moz-landing-system : lando
2019-02-13 09:00:32 +00:00
Liang-Heng Chen
1fa67728c0 Bug 1486258 - Tests for privacy.spoof_english; r=zbraniecki
Test Intl APIs to make sure privacy.spoof_english really works

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

--HG--
extra : moz-landing-system : lando
2019-02-15 12:15:41 +00:00
Valentin Gosu
3d45f28bb0 Bug 1521808 - Implement process switching based on Cross-Opener-Origin-Policy header r=nika,qdot
* New topLevel loads get the nsILoadInfo.openerPolicy of the current top level document
* Parsing the Cross-Opener-Origin-Policy of a channel will update mLoadInfo.openerPolicy and this value will get propagated to the child process.
* SessionStore now checks nsIHttpChannel.hasCrossOriginOpenerPolicyMismatch (preffed off) and performs a process switch if needed

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

--HG--
rename : toolkit/components/remotebrowserutils/tests/browser/browser_httpResponseProcessSelection.js => toolkit/components/remotebrowserutils/tests/browser/browser_httpCrossOriginOpenerPolicy.js
extra : moz-landing-system : lando
2019-02-15 12:14:49 +00:00
Razvan Maries
2fb9019d41 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2019-02-15 11:59:08 +02:00
Daniel Varga
1e9aa9e1fc Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE
--HG--
rename : browser/components/nsBrowserContentHandler.js => browser/components/BrowserContentHandler.jsm
2019-02-15 03:51:05 +02:00
Mike Hommey
ef3ad686ee Bug 1512504 - Remove support for MSVC. r=froydnj
Consequently, this removes:
- MOZ_LIBPRIO, which is now always enabled.
- non_msvc_compiler, which is now always true.
- The cl.py wrapper, since it's not used anymore.
- CL_INCLUDES_PREFIX, which was only used for the cl.py wrapper.
- NONASCII, which was only there to ensure CL_INCLUDES_PREFIX still
  worked in non-ASCII cases.

This however keeps a large part of detecting and configuring for MSVC,
because we still do need it for at least headers, libraries, and midl.

Depends on D19614

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

--HG--
extra : moz-landing-system : lando
2019-02-14 21:45:27 +00:00
J.C. Jones
33f494d45b Bug 1519273 - Log telemetry for Intermediate CA Preloading r=keeler,janerik
Adds telemetry for the state of intermediate preloading, as well as what errors
occur during the process.

Dana- will solicit data review today, too.

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

--HG--
extra : moz-landing-system : lando
2019-02-14 18:18:58 +00:00
Brendan Dahl
74c580a4c5 Bug 1527733 - Remove special XUL DOM tree traversal. r=smaug
Move functionality out of XULDocument::AddElementToDocumentPost:
1) Convert all XUL link elements into HTML link elements which have
code to handle when they are added to the DOM.
2) Move handling of the end of a linkset element into nsXULElement's DoneAddingChildren callback.
3) Move document direction reset to where the root element is created.

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

--HG--
extra : moz-landing-system : lando
2019-02-14 10:43:35 +00:00
Nika Layzell
daeb7ef4b8 Bug 1522637 - Part 5: Add tests for history navigations between http and file URIs with new pref, r=qdot
Depends on D18605

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

--HG--
extra : source : 6e0d4b6b1c93b5211ebbf264190cae7d271b7ae2
2019-02-14 15:14:03 +00:00
Nika Layzell
6ded246a08 Bug 1522637 - Part 3: Send history index when resuming redirected loads, r=qdot
Depends on D18603

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

--HG--
extra : source : 6b4d010964ec9e2175e7ba02991d083fab128c49
2019-02-14 15:36:02 +00:00
Bogdan Tara
c732fccb1e Backed out 8 changesets (bug 1522637) for browser_all_files_referenced.js failures CLOSED TREE
Backed out changeset f7ab0e6e739b (bug 1522637)
Backed out changeset 3d24e8e81c02 (bug 1522637)
Backed out changeset 41ca0b87537e (bug 1522637)
Backed out changeset 6e0d4b6b1c93 (bug 1522637)
Backed out changeset 8f494271ec06 (bug 1522637)
Backed out changeset 6b4d010964ec (bug 1522637)
Backed out changeset 5eeda2ba8e79 (bug 1522637)
Backed out changeset 5988b8e7d17c (bug 1522637)
2019-02-14 19:20:58 +02:00
Gurzau Raul
18a6010b33 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-02-14 19:04:56 +02:00
Jan-Erik Rediger
c9edc914a9 Bug 1514392 - Use fallback process start time, even if inconsistent r=wlach,chutten
Differential Revision: https://phabricator.services.mozilla.com/D19645

--HG--
extra : moz-landing-system : lando
2019-02-14 16:02:12 +00:00
Nika Layzell
6599de0141 Bug 1522637 - Part 5: Add tests for history navigations between http and file URIs with new pref, r=qdot
Depends on D18605

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

--HG--
extra : moz-landing-system : lando
2019-02-14 15:14:03 +00:00