Граф коммитов

717587 Коммитов

Автор SHA1 Сообщение Дата
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
Jonathan Watt 6e34e4dbdf 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 09:06:25 +00:00
Butkovits Atila 222d260b21 Backed out changeset f91e5fbb9520 (bug 1557983) as requested by dev. 2020-07-11 12:11:20 +03:00
Jonathan Watt 91e46d309f 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 08:47:04 +00:00
Jon Coppeard 6362b67ae7 Bug 1651723 - Store atom pinned state in the atoms table only r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D82968
2020-07-10 18:23:27 +00:00
Dorel Luca ae81637193 Backed out changeset af63ff5d2d28 (bug 1647652) for browser-chrome in creditCard/browser_creditCard_doorhanger.js 2020-07-11 08:18:20 +03:00
Zibi Braniecki 25733da4bf Bug 1647652 - Treat a new record as a duplicate of an existing one if the cc-number matches. r=abr
Differential Revision: https://phabricator.services.mozilla.com/D82131
2020-07-11 00:25:44 +00:00
longsonr 875f5e88ac Bug 1259861 - Move everything else into the mozilla namespace in layout/svg r=dholbert
Also: adjust include paths to be consistent for usages of various SVG headers,
and remove unused SVG includes (mostly for "utils" classes),
and drop stray "ns" from already-renamed SVG classes in various code comments.

Differential Revision: https://phabricator.services.mozilla.com/D83140
2020-07-11 02:20:20 +00:00
Jeff Muizelaar 0729560a01 Bug 1652181 - Only call UpdateBias when the frame changes. r=sotaro
Previously we were calling it at 60fps for 30fps video. This meant that
any bias would be cancelled out on the vsyncs where we didn't present
anything. This also makes us match the non-WebRender path which only
calls UpdateBias after a frame has actually been drawn.

Differential Revision: https://phabricator.services.mozilla.com/D83211
2020-07-11 00:17:31 +00:00
Jeff Muizelaar d2f53ff680 Bug 1651889. Update to gleam 0.12.1. r=kvark
This should fix a crash caused by an unexpected pixel type.

Differential Revision: https://phabricator.services.mozilla.com/D83167
2020-07-11 02:21:13 +00:00
Jean-Yves Avenard 0a6e148b09 Bug 1650728 - Don't synchronously dispatch a task to create a TextureClientRecycleAllocator. r=sotaro
Additionally, we make access to mTextureClientRecycler, mHandle and mIsAsync thread-safe as they are accessed and set from different threads

Differential Revision: https://phabricator.services.mozilla.com/D82339
2020-07-11 01:57:06 +00:00
Adam Roach [:abr] f676613244 Bug 1648551: Treat form in <iframe> "pagehide" event as form submission r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D81931
2020-07-11 00:51:05 +00:00
Zibi Braniecki bfb49cc697 Bug 1649858 - Add SUMO link to re-authentication UI. r=abr
Differential Revision: https://phabricator.services.mozilla.com/D83025
2020-07-11 00:27:33 +00:00
Kartikaya Gupta 7cdb8134fb Bug 1650989 - Abort mask creation instead of crashing when the size is too large. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D82809
2020-07-11 00:04:43 +00:00
Marco Bonardo f50762bc54 Bug 1650099 - Unify UrlbarProviders logger boilerplate. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D82939
2020-07-10 09:49:42 +00:00
Harry Twyford 463773af5b Bug 1645324 - Move the omnibox heuristic result to the omnibox provider. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D80295
2020-07-09 05:02:44 +00:00
Harry Twyford 3ab8f9b1e3 Bug 1645521 - Part 3 - Port unifiedcomplete tests. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D80294
2020-07-09 05:02:47 +00:00
Harry Twyford 7e31642215 Bug 1645521 - Part 2 - Allow for multiple heuristic providers and enable ProviderHeuristicFallback. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D80293
2020-07-09 05:02:49 +00:00
Harry Twyford 382aaa0d5a Bug 1645521 - Part 1 - Add ProviderHeuristicFallback. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D80291
2020-07-09 05:02:42 +00:00
Kris Maglione a0401cd185 Bug 1649554: Part 2 - Use static component registration for about:compat. r=twisniewski,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D81750
2020-07-10 23:58:26 +00:00
Kris Maglione b6be72f351 Bug 1649554: Part 1 - Move deprecated component registration helpers out of XPCOMUtils. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,whimboo,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D81749
2020-07-10 23:58:30 +00:00
Kris Maglione 9d78661f88 Bug 1649221: Update ChromeUtils.generateQI callers to pass strings. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,agi,whimboo,Bebe,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D81594
2020-07-10 23:58:28 +00:00