Commit Graph

717730 Commits

Author SHA1 Message Date
Hubert Boma Manilla
119e4262a1 Bug 1625909 - Use the ResourceWatcher API to fetch Network Events r=ochameau,Honza,nchevobbe
This patch migrates to using the Resource Watcher API to handle Network events, it adds a legacy listeners for the network events

Differential Revision: https://phabricator.services.mozilla.com/D71543
2020-07-13 13:33:09 +00:00
Daisuke Akatsuka
6e9455cf79 Bug 1478688: Remove test codes that does not use anymore. r=Honza
Depends on D83288

Differential Revision: https://phabricator.services.mozilla.com/D83289
2020-07-13 10:38:55 +00:00
Daisuke Akatsuka
f77008aa71 Bug 1478688: Remove codes that does not use anymore. r=Honza
Depends on D83287

Differential Revision: https://phabricator.services.mozilla.com/D83288
2020-07-13 10:05:52 +00:00
Daisuke Akatsuka
90dd432408 Bug 1478688: Avoid getting cached content from console actor. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D83287
2020-07-13 10:05:40 +00:00
Mike Hommey
95d2810ac3 Bug 1651287 - Move .inc files to the pre-compile pseudo-tier. r=nalexander
All of them are only used in one source file, in the same directory
where they are generated.

Differential Revision: https://phabricator.services.mozilla.com/D83037
2020-07-10 16:14:34 +00:00
Mike Hommey
ee3002aa4e Bug 1651287 - Hook the pre-compile pseudo-tier in the compile graph. r=nalexander
This makes dir/target, dir/target-objects, etc. depend on
dir/pre-compile, which ensures all items in the pre-compile pseudo-tier
are built before entering in the directory they are defined in, during
the compile tier. This removes the need for EXTRA_DEPS hacks.

Differential Revision: https://phabricator.services.mozilla.com/D83036
2020-07-10 21:03:41 +00:00
Mike Hommey
c4e1894f04 Bug 1651287 - Add a pre-compile pseudo-tier. r=firefox-build-system-reviewers,rstewart
Generated files marked as "required during compile" are limited to a
number of extensions, most of which are source file types, so they get
generated when compiling the corresponding object file. Other types,
though, are currently handled via EXTRA_DEPS, which is clunky.

As of now, these other types are limited to link-related items, but more
would be useful (e.g. .inc files, which are only included in one
location).

This however works against the static analysis tasks (coverity and
clang-tidy), which currently rely on everything they need being created
via the export tier. That excludes using EXTRA_DEPS-based hacks.

We create a "pre-compile" tier, that is not used during a normal build,
but can be invoked manually, which the static analysis tasks will do.

Differential Revision: https://phabricator.services.mozilla.com/D83035
2020-07-11 22:18:25 +00:00
Botond Ballo
de42c3f586 Bug 1637776 - Fix trailing whitespace in test r=rmaries
Differential Revision: https://phabricator.services.mozilla.com/D83252
2020-07-11 22:15:27 +00:00
Botond Ballo
007176902e Bug 1637776 - Add a mochitest for bug 1637113. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D83019
2020-07-11 07:15:33 +00:00
Botond Ballo
38cbb07429 Bug 1637776 - Fix coordinatesRelativeToScreen() to work better for targets inside an iframe. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D83018
2020-07-11 06:32:45 +00:00
Harry Twyford
ed82a86096 Bug 1648468 - Part 6 - Resolve a11y focus issue causing a failure in browser_test_focus_urlbar.js. r=adw
The line that adds `suggestedIndex` in the test should also fix bug 1652138.

Differential Revision: https://phabricator.services.mozilla.com/D83244
2020-07-11 21:32:19 +00:00
Harry Twyford
2ec05b9282 Bug 1648468 - Part 5 - Move some deduping code from UnifiedComplete to the UrlbarMuxer. r=adw,mak
Differential Revision: https://phabricator.services.mozilla.com/D82800
2020-07-11 21:32:19 +00:00
Harry Twyford
8ece52ef72 Bug 1648468 - Part 4 - Port autofill unit tests to browser/components/urlbar. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D82237
2020-07-11 06:43:52 +00:00
Harry Twyford
4ad31115cc Bug 1648468 - Part 3 - Allow UrlbarProviderTokenAliasEngines to provide its own heuristic result. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D82236
2020-07-11 06:43:52 +00:00
Harry Twyford
06157b3c3a Bug 1648468 - Part 2 - Dedupe results matching autofill in the muxer. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D82235
2020-07-11 06:43:52 +00:00
Harry Twyford
6769566e41 Bug 1648468 - Part 1 - Create UrlbarProviderAutofill.jsm. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D82234
2020-07-11 06:43:52 +00:00
Jonathan Kew
949b68b6bd Bug 1646639 - Add collection of testcases here as a WPT reftest. r=dholbert
We get a small amount of antialiasing-related "fuzz" on some platforms,
so those are noted in the corresponding .ini files.

Differential Revision: https://phabricator.services.mozilla.com/D82893
2020-07-11 21:26:02 +00:00
Jonathan Kew
953fcef392 Bug 1646639 - Don't recursively apply the line's start-offset and text-indent to children of a first-line frame. r=dholbert
But do apply any adjustment needed for text-align to the first-line frame itself.

Differential Revision: https://phabricator.services.mozilla.com/D82725
2020-07-11 21:26:02 +00:00
Razvan Maries
10b6298357 Backed out 2 changesets (bug 1650886) for leakcheck failures.
Backed out changeset e2485d1bb142 (bug 1650886)
Backed out changeset ed8db2a54c61 (bug 1650886)
2020-07-12 00:01:04 +03:00
Valentin Gosu
0475d7a7ba Bug 1650356 - Call IsExcludedFromTRR in TRR::SendHTTPRequest r=dragana,necko-reviewers
Since IsTemporarilyBlocked no longer calls IsExcludedFromTRR we have to do
this explicitly at this call site.

Differential Revision: https://phabricator.services.mozilla.com/D82221
2020-07-11 19:32:57 +00:00
Valentin Gosu
05e121315d Bug 1650356 - Make the TRRBLStorage a hashtable r=dragana,necko-reviewers
We also wrap it in a DataMutex to allow use on any thread

Differential Revision: https://phabricator.services.mozilla.com/D82220
2020-07-11 19:32:45 +00:00
Valentin Gosu
0606ff0236 Bug 1650356 - Rename TRR Blacklist to TRR blocklist r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D82219
2020-07-11 19:32:27 +00:00
Valentin Gosu
b91c38a902 Bug 1650356 - Clear TRR blocklist when confirmation is done r=dragana,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D82218
2020-07-11 19:32:15 +00:00
Valentin Gosu
b04567bbc7 Bug 1649143 - Just call NativeLookup when retrying for TTL r=dragana,necko-reviewers
There is done in order to make sure we don't go though NameLookup again
and try to figure out why skipped TRR again.

Differential Revision: https://phabricator.services.mozilla.com/D82169
2020-07-11 19:32:07 +00:00
Valentin Gosu
4106c61ff1 Bug 1649143 - Record telemetry with reason we fell back to Do53 r=dragana,necko-reviewers
This patch attempts to record the reason why we fall back to DNS.
I considered using categorical probes for this, but they have a max limit of
20 categories, so we have to use a linear probe. I chose 50 buckets to allow
us to add more failure reasons in the future.

The recorded values are defined in nsHostRecord::TRRSkippedReason.
nsHostRecord::RecordReason is called whenever we encounter a condition that
will cause us to skip TRR in nsHostResolver.

For failures that occur inside TRR.cpp, each TRR object holds its own reason
that is recorded in a similar way. When all TRR requests are complete we
report the one that failed (or if both failed we report the one for the A
request).

Due to the fact that we might also follow CNAME requests, and the final
TRR request might not be the one that was issued at first, TRR requests
must pass back the reason as an argument to CompleteLookup.

Finally, this patch records the reason in two probes:
TRR_SKIP_REASON_TRR_FIRST - only reported in TRR-first mode
TRR_SKIP_REASON_DNS_WORKED - only reported in TRR-first mode when the
  fallback DNS request succeeded. This allows us to filter for complete
  network failures.

Differential Revision: https://phabricator.services.mozilla.com/D82168
2020-07-11 19:32:05 +00:00
Erik Nordin
6a3156ccfa Bug 1650886 - Part 2 Expose Paper Sizes for macOS r=jwatt
- Add macOS-specific function to retrieve the paper list for a given printer.
- Add JS test to ensure papers are initialized with valid values.

Differential Revision: https://phabricator.services.mozilla.com/D82598
2020-07-11 18:20:53 +00:00
Erik Nordin
f8a91329e7 Bug 1650886 - Part 1 nsIPaper Base Implementation r=jwatt
- Add `nsIPaper` interface.
- Add `nsIPaper` implementaiton.

Differential Revision: https://phabricator.services.mozilla.com/D82461
2020-07-11 18:18:18 +00:00
Micah Tigley
6d418c445d Bug 1585092 - Remove Browser component r=gl
Depends on D83153

Differential Revision: https://phabricator.services.mozilla.com/D83154
2020-07-10 18:32:15 +00:00
Micah Tigley
33d9cbf262 Bug 1585094 - Remove ResizableViewport component r=gl
Depends on D83152

Differential Revision: https://phabricator.services.mozilla.com/D83153
2020-07-11 01:35:25 +00:00
Micah Tigley
bb1a05a997 Bug 1585095 - Remove the Viewports component r=gl
Differential Revision: https://phabricator.services.mozilla.com/D83152
2020-07-10 19:15:38 +00:00
Christoph Kerschbaumer
44dfe3461e Bug 1651578: Eliminate duplicate entry of nsIMozIconURI within nsIconURI and add and 'else' to be concistent with other code in the tree. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D83067
2020-07-11 14:20:55 +00:00
Jonathan Watt
bdfbfac7d5 Bug 1557983. Remove nsPrintJob::HasPrintCallbackCanvas.
After refactoring the 'beforeprint'/'afterprint' code, this method is not used
any more.

Differential Revision: https://phabricator.services.mozilla.com/D34281
2020-07-11 14:14:15 +00:00
Jonathan Watt
eee2d4c223 Bug 1557983. Significantly simplify and fix the 'beforeprint'/'afterprint' dispatching code.
This fixes two issue.

First, the code shouldn't be dispatching these events every time it gets a new
Print or PrintPreview call.  It only needs to dispatch the events to the
original document that we're going to clone from.  When cloning from existing
static clones any changes made by 'beforeprint' will be present in the existing
static clone.

Second, the code tries to delay the 'afterprint' event until after
mozPrintCallback callbacks have been invoked, but those callbacks are invoked
in the cloned document, whereas the events are sent to the original document!
So there is no reason to do this.

Differential Revision: https://phabricator.services.mozilla.com/D34280
2020-07-11 14:14:03 +00:00
Christoph Kerschbaumer
c5e2dceec6 Bug 1651976: Update test browser_bug731866.js and browser_bug795764_cachedisabled.js to work correctly based on whether HTTPS-Only Mode preference if flipped to true of false. r=Gijs,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D83106
2020-07-10 23:08:54 +00:00
Gijs Kruitbosch
387e23f588 Bug 1634032 - use a template to wrap the protections popup while it's not needed, r=nhnt11
This also only updates per-category block information in the protections panel
while it's open or when it's about to be shown. To do this, the patch:

1. changes the `categoryItem` getter on all blockers to avoid memo'izing null when the popup is unavailable;
2. changes the `updateCategoryItem` method on all blockers to deal with `categoryItem` being null;
3. stops calling `updateCategoryItem` from the blockers' `init` method, instead delegating this responsibility
   to gProtectionsHandler doing so when the popup first becomes available. Note that we still need (2) because
   pref changes can trip us calling into `updateCategoryItem` anyway. We cannot avoid instantiating the pref
   getters because they are relied on by some of the `isDetected` and `isBlocking` implementations.
4. reorganizes `onContentBlockingEvent` so it updates the icon, reports telemetry, and updates internal state -
   but only updates the panel if it's visible, and otherwise simply memorizes the last event (which is just
   a number!);
5. ensures showing the panel updates the panel's category data based on the memorized state from (4).

Differential Revision: https://phabricator.services.mozilla.com/D81926
2020-07-10 21:32:09 +00:00
André Bargull
f10844979b Bug 1651732 - Part 9: Rename ValueToId to PrimitiveValueToId and assert its input is a primitive. r=jandem
`ValueToId` turned out to be a pitfall we want to avoid, it looks quite similar
to `ToPropertyKey`, but is subtly different to that function.

Let's rename it to `PrimitiveValueToId` and assert its input is a primitive,
that should prevent any accidental use of that function when `ToPropertyKey`
should have been used instead.

Differential Revision: https://phabricator.services.mozilla.com/D83060
2020-07-11 12:51:07 +00:00
André Bargull
616df230cc Bug 1651732 - Part 8: Split ValueToId callers in js::Stringify. r=jandem
Only call `ValueToId` for primitive values in preparation for the next patch
and instead call `ToAtom` for objects.

Differential Revision: https://phabricator.services.mozilla.com/D83059
2020-07-11 12:43:03 +00:00
André Bargull
60f966c979 Bug 1651732 - Part 7: Change additional callers to use ToPropertyKey instead of ValueToId. r=jandem
These changes should result in no observable behaviour for their current usage.

intrinsic_DefineDataProperty:
- Using `ToPropertyKey` also is a better match for the inlined, three argument
  form of `_DefineDataProperty`.

JS_ValueToId:
- It looks like this function is only called with String values, so changing it
  to use `ToPropertyKey` won't result in any observable difference.

js::ValueToIdentifier:
- This function will throw an error when symbols are encountered anyway, so we
  might as well change it to use `ToPropertyKey`.

Differential Revision: https://phabricator.services.mozilla.com/D83058
2020-07-11 12:42:38 +00:00
André Bargull
e52b61ac0a Bug 1651732 - Part 6: Change DebuggerObject to use ToPropertyKey. r=jandem
Similar to part 1, replace `ToValueId()` with `ToPropertyKey()`.

Differential Revision: https://phabricator.services.mozilla.com/D83057
2020-07-11 12:42:10 +00:00
André Bargull
105d7b8aac Bug 1651732 - Part 5: Change IonGetPropSuperIC::update to use ToPropertyKey. r=jandem
Similar to part 1, replace `ToValueId()` with `ToPropertyKey()`.

Differential Revision: https://phabricator.services.mozilla.com/D83056
2020-07-11 12:40:58 +00:00
André Bargull
94fd9e0aa5 Bug 1651732 - Part 4: Change ProxyHasOwn to use ToPropertyKey. r=jandem
Similar to part 1, replace `ToValueId()` with `ToPropertyKey()`.

Differential Revision: https://phabricator.services.mozilla.com/D83055
2020-07-11 12:40:20 +00:00
André Bargull
d4237511ee Bug 1651732 - Part 3: Change ProxyHas to use ToPropertyKey. r=jandem
Similar to part 1, replace `ToValueId()` with `ToPropertyKey()`.

Differential Revision: https://phabricator.services.mozilla.com/D83054
2020-07-11 12:39:47 +00:00
André Bargull
f02ad5e8f8 Bug 1651732 - Part 2: Change ProxySetPropertyByValue to use ToPropertyKey. r=jandem
Similar to part 1, replace `ToValueId()` with `ToPropertyKey()`.

Differential Revision: https://phabricator.services.mozilla.com/D83053
2020-07-11 13:11:52 +00:00
André Bargull
441ff7b9cf Bug 1651732 - Part 1: Change ProxyGetPropertyByValue to use ToPropertyKey. r=jandem
`ValueToId()` calls `ToAtom()` for objects, which isn't correct per spec,
instead `ToPropertyKey()` needs to be used here.

Differential Revision: https://phabricator.services.mozilla.com/D83052
2020-07-11 12:38:36 +00:00
David Major
6c935d09d1 Bug 1630092 - Don't pull in wasm sandboxing in plain or base-toolchain builds r=froydnj
The `plain` builds are intended to make sure that building with an empty mozconfig doesn't break. Since an empty mozconfig build wouldn't have wasm sandboxing, neither should the `plain` builds.

While here, also remove wasi/lucet dependencies from the base-toolchain tasks, since they don't enable sandboxing either.

Differential Revision: https://phabricator.services.mozilla.com/D83011
2020-07-11 12:48:06 +00:00
Butkovits Atila
7c20974c02 Backed out changeset 54aff812a50b (bug 1650462) as requested by jya. 2020-07-11 15:46:30 +03:00
Randell Jesup
f1e4e6aed0 Bug 1112392: Move webrtc Tab Sharing to work in e10s/fission r=dminor
Also we drop support for an independent-of-scroll/viewport capture, which
the old Tab Sharing supported, for security reasons (and we don't need it).

Differential Revision: https://phabricator.services.mozilla.com/D80974
2020-07-11 12:31:49 +00:00
Dorel Luca
19042532b3 Backed out changeset ef25e5648b14 (bug 1112392) for causing build bustage on media/systemservices/video_engine/tab_capturer 2020-07-11 13:30:06 +03:00
Butkovits Atila
ce77b8466f Backed out 2 changesets (bug 1557983) for failures at table-background-print.html. CLOSED TREE
Backed out changeset 249eede42e9f (bug 1557983)
Backed out changeset dfbaf61ce16a (bug 1557983)
2020-07-11 13:14:13 +03:00
Jonathan Watt
a096d01a0c Bug 1557983. Remove nsPrintJob::HasPrintCallbackCanvas.
After refactoring the 'beforeprint'/'afterprint' code, this method is not used
any more.

Differential Revision: https://phabricator.services.mozilla.com/D34281
2020-07-11 09:10:03 +00:00