Commit Graph

24166 Commits

Author SHA1 Message Date
Kris Maglione
739cafdadd Bug 1472491: Part 4a - Add helper classes for lazily loading JS IPC actors. r=felipe
This adds the basic framework for defining IPC actors which are lazily
instantiated for the appropriate frame loaders based on DOM events, message
manager messages, and observers. Actual actors are defined in follow-up
commits.

MozReview-Commit-ID: Jb6CWWW7v3v

--HG--
extra : rebase_source : 6c465c492ef423616346d70047c4fd4b074af303
2018-08-11 15:27:12 -07:00
Kris Maglione
672f5e6524 Bug 1472491: Part 2b - Add MozDocumentObserver class to notify on new pattern-matched documents. r=zombie
MozReview-Commit-ID: 29CsJ2mya36

--HG--
extra : rebase_source : 08d419d7ba9516c0c1831c53ec1fa23b738eb777
extra : source : 52562e8d57a8d2973cfaca9c350b6727996df39f
2018-07-31 21:50:34 -07:00
Kris Maglione
cdd41d5705 Bug 1472491: Part 2a - Split matching logic for content scripts into MozDocumentMatcher base class. r=zombie
MozReview-Commit-ID: JAOWZcB4hZW

--HG--
extra : rebase_source : 35847d616bd2f04f1d82788f76649b8acb5c1090
extra : source : 466c39fc8af5170ea39d19d6d7aa13b8fe5cd838
2018-04-18 14:02:15 -07:00
Henri Sivonen
3edc601325 Bug 1402247 - Use encoding_rs for XPCOM string encoding conversions. r=Nika,erahm,froydnj.
Correctness improvements:

 * UTF errors are handled safely per spec instead of dangerously truncating
   strings.

 * There are fewer converter implementations.

Performance improvements:

 * The old code did exact buffer length math, which meant doing UTF math twice
   on each input string (once for length calculation and another time for
   conversion). Exact length math is more complicated when handling errors
   properly, which the old code didn't do. The new code does UTF math on the
   string content only once (when converting) but risks allocating more than
   once. There are heuristics in place to lower the probability of
   reallocation in cases where the double math avoidance isn't enough of a
   saving to absorb an allocation and memcpy.

 * Previously, in UTF-16 <-> UTF-8 conversions, an ASCII prefix was optimized
   but a single non-ASCII code point pessimized the rest of the string. The
   new code tries to get back on the fast ASCII path.

 * UTF-16 to Latin1 conversion guarantees less about handling of out-of-range
   input to eliminate an operation from the inner loop on x86/x86_64.

 * When assigning to a pre-existing string, the new code tries to reuse the
   old buffer instead of first releasing the old buffer and then allocating a
   new one.

 * When reallocating from the new code, the memcpy covers only the data that
   is part of the logical length of the old string instead of memcpying the
   whole capacity. (For old callers old excess memcpy behavior is preserved
   due to bogus callers. See bug 1472113.)

 * UTF-8 strings in XPConnect that are in the Latin1 range are passed to
   SpiderMonkey as Latin1.

New features:

 * Conversion between UTF-8 and Latin1 is added in order to enable faster
   future interop between Rust code (or otherwise UTF-8-using code) and text
   node and SpiderMonkey code that uses Latin1.

MozReview-Commit-ID: JaJuExfILM9
2018-08-14 14:43:42 +03:00
Margareta Eliza Balazs
e53d398574 Merge inbound to mozilla-central. a=merge 2018-08-14 12:30:50 +03:00
Andreea Pavel
6e3f56dbd9 Backed out changeset b7531c106b59 (bug 1480934) for failing android at mobile/android/tests/browser/chrome/test_session_scroll_position.html on a CLOSED TREE 2018-08-14 08:22:04 +03:00
vinoth
f6acbdd29a Bug 1480934 - Saving Reader View page yields blank page fixed by removing inline style r=jaws,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D2947

--HG--
extra : moz-landing-system : lando
2018-08-14 03:26:24 +00:00
Francois Marier
71239f0c25 Bug 1480450 - Honor browser.contentblocking.enabled in tracking protection. r=dimi!
Depends on D3131

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

--HG--
extra : moz-landing-system : lando
2018-08-13 23:20:40 +00:00
irrationalagent
e31593630b Bug 1476393 - Record pwmgr histograms in sync ping r=markh,tcsc
MozReview-Commit-ID: CkZAwlCORtX

--HG--
extra : rebase_source : 3be3237c6a2d5919d839bc77cb1794fec0dcdec6
2018-08-03 09:30:06 -06:00
irrationalagent
c9df37f8cd Bug 1476393 - Allow sync ping to contain histograms r=markh,tcsc
MozReview-Commit-ID: KztXiSPUCE5

--HG--
extra : rebase_source : 0bd0236f907721fdc847e56950b84cb0c3407624
2018-08-03 09:16:08 -06:00
Michael Kaply
affe168a97 Bug 1481420 - DuckDuckGo doesn't use subdomains. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D2847

--HG--
extra : moz-landing-system : lando
2018-08-13 19:19:44 +00:00
Ciure Andrei
057ea5d560 Backed out 1 changesets (bug 1480450) for mochitest/test_trackingprotection_bug1157081.html failures CLOSED TREE
Backed out changeset 34d3b10c54eb (bug 1480450)
2018-08-13 22:45:37 +03:00
Nan Jiang
c9f1c48f1e Bug 1482958 - Add missing events for activity stream UT event telemetry. r=ursula
Differential Revision: https://phabricator.services.mozilla.com/D3237

--HG--
extra : moz-landing-system : lando
2018-08-13 19:09:12 +00:00
Francois Marier
47ba3463cd Bug 1480450 - Honor browser.contentblocking.enabled in tracking protection. r=dimi!
Depends on D3131

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

--HG--
extra : moz-landing-system : lando
2018-08-13 14:54:10 +00:00
Francois Marier
8ffdb93d06 Bug 1480450 - Move TP tests to using async/await and promises. r=dimi!
There are no actual changes/additions to these tests.

Depends on D3130

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

--HG--
extra : moz-landing-system : lando
2018-08-13 14:41:18 +00:00
Francois Marier
b5aa77a96c Bug 1480450 - Use correct resource url for chrome test. r=dimi!
Differential Revision: https://phabricator.services.mozilla.com/D3130

--HG--
extra : moz-landing-system : lando
2018-08-13 14:34:35 +00:00
Ehsan Akhgari
6f0db984fe Bug 1478539 - Part 4: Update the test to use the new pref after the landing of bug 1480780 2018-08-13 18:25:58 -04:00
Daniel Varga
9355025fd5 Merge mozilla-central to mozilla-inbound 2018-08-14 01:09:48 +03:00
Ehsan Akhgari
87edbe15d3 Bug 1480899 follow-up - address the review comments properly, DONTBUILD 2018-08-13 17:34:58 -04:00
Ehsan Akhgari
4f8fa911eb Bug 1480899 - Do not activate the window.open() heuristic for allowing storage access if opener access hasn't been granted; r=englehardt 2018-08-13 17:14:54 -04:00
Ehsan Akhgari
5d2113d30d Bug 1478539 - Part 2: Add a test case to ensure that we don't send existing cookies in restricted third-party storage contexts; r=baku 2018-08-13 17:05:23 -04:00
Andrea Marchesini
d1e5833a37 Bug 1480780 - Merge the privacy.3rdpartystorage.enabled pref with the network.cookie.cookieBehavior pref; r=ehsan
This patch introduces a new cookie behavior policy called
BEHAVIOR_REJECT_TRACKER.  It also makes it possible to override that
behavior with cookie permissions similar to other cookie behaviors.
2018-08-13 16:01:16 -04:00
Oriol Brufau
dea5810226 Bug 1474440 - Implement support for the 'onHighlighted' API for multiselect tabs r=mixedpuppy
MozReview-Commit-ID: 8aOmdj0AB3e

--HG--
extra : rebase_source : 5eec0163341b6621103ac4a5e43f8439a19a9c5a
2018-07-28 13:15:55 +02:00
Csoregi Natalia
32cdffd7a4 Backed out changeset 6b4359d502be (bug 1482466) for test_TelemetrySession_activeTicks.js failures. CLOSED TREE 2018-08-13 18:15:40 +03:00
Chris H-C
81200add33 bug 1482466 - Ensure subsession activeTicks are correct in simpleMeasurements r=Dexter
Differential Revision: https://phabricator.services.mozilla.com/D3128

--HG--
extra : moz-landing-system : lando
2018-08-13 13:58:40 +00:00
Adrian Wielgosik
be0c1a4f55 Bug 1481645 - Remove some redundant uses of do_QueryInterface. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D2893

--HG--
extra : moz-landing-system : lando
2018-08-13 09:05:19 +00:00
Ciure Andrei
f900c72a93 Merge inbound to mozilla-central. a=merge 2018-08-12 00:53:49 +03:00
Ed Lee
a23ae6debf Bug 1482565 - Support and show @Яндекс and @百度 searches for yandex and baidu r=mkaply
Depends on D3133
Depends on D3033

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

--HG--
extra : moz-landing-system : lando
2018-08-11 13:26:39 +00:00
Andreea Pavel
b51569ce3d merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-08-11 13:28:47 +03:00
Matt Woodrow
268f257529 Bug 1481704 - Add FX_TAB_SWITCH_COMPOSITE_E10S_MS to measure total time it takes to present a tab during tab-switch. r=mconley, data-review=francois 2018-08-11 22:07:14 +12:00
Bogdan Tara
2f2b719960 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-08-11 01:01:18 +03:00
Andrea Marchesini
04fcbb6556 Bug 1480131 - AntiTrackingCommon::IsFirstPartyStorageAccessGrantFor() should not grant permission to sub-sub-iframe channels; r=ehsan 2018-08-10 14:59:33 -04:00
Mark Banner
21236ee00f Bug 1481932 - Fully enable ESLint rule mozilla/reject-requires-await. r=mossop
MozReview-Commit-ID: 7pYfD6Ax5VX

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

--HG--
extra : moz-landing-system : lando
2018-08-11 07:27:35 +00:00
Bogdan Tara
dfe849c923 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-11 06:46:31 +03:00
Csoregi Natalia
8464228873 Backed out changeset 3dc7979622c3 (bug 1280234) for xpcshell failures e.g. test_ext_contentscript_restrictSchemes.js. CLOSED TREE 2018-08-11 05:17:02 +03:00
Jared Hirsch
d8081025b3 Bug 1280234 - Expose Telemetry APIs to trusted WebExtensions; r=aswan,gfritzsche
MozReview-Commit-ID: 4uQBq3Qvj0M

--HG--
extra : rebase_source : a875fd98c0e22250de47baa0c5947485d72b9c9c
2018-07-13 12:35:34 -07:00
Ursula Sarracini
130d05505f Bug 1480888 - Implement blocking system for special search shortcut top sites r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D3035

--HG--
extra : moz-landing-system : lando
2018-08-10 19:54:24 +00:00
Rob Wu
23cf8852bb Bug 1325814 - Add extension API to find menu target r=mixedpuppy
- Add info.targetElementId to menus.onShown event.

- Add info.targetElementId to menus.onClicked event.

- Add menus.getTargetElement API that is available to all contexts,
  including content scripts, which allows extensions to get the DOM
  element for a given targetElementId.

- Add new schema instead of re-using schemas/menus.json to avoid sending
  too much schema data (of the existing menus API) to content processes.

MozReview-Commit-ID: 6Onf7jZlIho

--HG--
extra : rebase_source : eb095d04ce381606be90d325712bfc57233d8291
2018-08-04 18:09:49 +02:00
Rob Wu
4f7e9cca86 Bug 1325814 - Remove unnecessary schemas/menus_internal.json r=mixedpuppy
This schema was inherited from Chromium (where it was an internal
implementation detail. This schema only defined the OnClickData
type, but was never actively used by our WebExtensions framework,
because menus.json already defines the OnClickData type.

Note: menus_internal.json specified the "menusInternal" namespace
which we do indeed implement in parent/ext-menus.js (and use in
child/ext-menus.js). However, none of the methods that we add to
menusInternal are actually defined in the schema.
This use of menusInternal was introduced in part 2 of bug 1333403 and
works without problems because the API schemas are not being used to
validate APIs as of part 2 of bug 1315575.

The only significance of "menusInternal" is that the namespace is
defined in browser/components/extensions/ext-browser.json,
implemented in browser/components/extensions/parent/ext-menus.js
and used by browser/components/extensions/child/ext-menus.js

MozReview-Commit-ID: 2ACpn595QZQ

--HG--
extra : rebase_source : f3e16486168dfb0baa56dda7ccf591855bbe90bb
2018-08-03 11:09:38 +02:00
Rob Wu
d6bd30dd62 Bug 1325814 - Clarify file overview comment in ExtensionChild.jsm r=mixedpuppy
At its inception, ExtensionChild.jsm was meant to be used for the
extension child process. Over time, this intent was not consistently
followed, and in bug 1317697 this was fixed by splitting some logic
in ExtensionChild.jsm off to ExtensionPageChild.jsm.

Henceforth ExtensionChild.jsm handles logic that is common to all
content processes, including web content and extension logic.

Updated the comment at the top of the file to match this reality.

MozReview-Commit-ID: 3cAd0FPj6Vz

--HG--
extra : rebase_source : 21bfd642460dd72159af120a9f81cbc7ae0b0572
2018-08-02 23:16:46 +02:00
Anny Gakhokidze
11cce48de4 Bug 1479956 - Fixed async clipboard API tests, r=nika
MozReview-Commit-ID: Bjz9OI2lAyw

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

--HG--
extra : moz-landing-system : lando
2018-08-08 15:35:47 +00:00
Michael Kaply
b8fa893134 Bug 1482125 - Add internal aliases for common search plugins. r=Mardak,adw
Differential Revision: https://phabricator.services.mozilla.com/D3033

--HG--
extra : moz-landing-system : lando
2018-08-10 19:18:30 +00:00
Nico Grunbaum
11b40b9572 Bug 1455724 - add telemetry for legacy PeerConnection getStats API usage r=mjf
MozReview-Commit-ID: L17M2whvxpV

--HG--
extra : rebase_source : 2938839a5465348eb8e34855287093d6f184844d
2018-04-23 09:49:32 -07:00
Bogdan Tara
b6d9d2ffcd Backed out changeset 1f187635f2e4 (bug 1482125) for test_nsDefaultURIFixup_search.js failures CLOSED TREE 2018-08-10 20:18:43 +03:00
Brindusan Cristian
3fba2fdf68 Backed out changeset 44e1ccd1d22b (bug 1480888) for xpcshell failure on toolkit/modules/tests/xpcshell/test_CanonicalJSON.js. CLOSED TREE 2018-08-10 19:22:22 +03:00
Michael Kaply
89e4010d14 Bug 1482125 - Add internal aliases for common search plugins. r=Mardak,adw
Differential Revision: https://phabricator.services.mozilla.com/D3033

--HG--
extra : moz-landing-system : lando
2018-08-10 16:17:11 +00:00
Narcis Beleuzu
d9ee6ddde6 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-10 19:06:15 +03:00
Margareta Eliza Balazs
2ea9c9c5dc Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-08-10 12:24:08 +03:00
Margareta Eliza Balazs
f617807241 Merge inbound to mozilla-central. a=merge 2018-08-10 12:17:09 +03:00
Ursula Sarracini
24b94b7aae Bug 1480888 - Implement blocking system for special search shortcut top sites r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D3035

--HG--
extra : moz-landing-system : lando
2018-08-10 15:12:58 +00:00