Commit Graph

798523 Commits

Author SHA1 Message Date
Eitan Isaacson
afad4c3c85 Bug 1755377 - Send list of accessibles that are un/selected to parent cache. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D149313
2022-06-15 17:08:38 +00:00
Ray Kraesig
227ef619af Bug 1774290 - Add Visual Studio visualizers for Maybe and Result r=mvollmer DONTBUILD
These types aren't handled very helpfully by Visual Studio's default
visualizer. Fortunately it's not difficult to write custom visualizers
for them.

This does not handle most flavors of `ResultImplementation` -- only the
one that the present author found most immediately useful. Handling them
is not difficult, but merely tedious; they are left to future authors to
deal with as needed.

Differential Revision: https://phabricator.services.mozilla.com/D149320
2022-06-15 16:46:11 +00:00
Dan Mosedale
6799a67305 Bug 1748214 - Remove private browsing Nimbus feature, r=pdahiya,barret
Differential Revision: https://phabricator.services.mozilla.com/D146474
2022-06-15 16:03:17 +00:00
mcheang
c26b27fcfb Bug 1774079 - refactor SearchService to use ES6 class syntax. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D149344
2022-06-15 15:57:33 +00:00
Julien Cristau
a5fe1d9c13 Bug 1738321 - remove iris test suite. r=tracy
Differential Revision: https://phabricator.services.mozilla.com/D148374
2022-06-15 15:43:40 +00:00
Jan-Erik Rediger
51f960bd09 Bug 1773255 - Update to Glean v50.1.0 r=chutten,supply-chain-reviewers
Including glean_parser 6.1.1

Two important things in there:
* glean_parser: [data-review] Include extra keys' names and descriptions in data review template
* Glean: Derive `serde::{Deserialize, Serialize}` on `Lifetime` and `CommonMetricData`

Differential Revision: https://phabricator.services.mozilla.com/D149381
2022-06-15 15:39:33 +00:00
Csoregi Natalia
8662f38c59 Backed out 4 changesets (bug 1756057) for failures on browser_fog_init.js. CLOSED TREE
Backed out changeset afeabbc80268 (bug 1756057)
Backed out changeset 1db54f4136a2 (bug 1756057)
Backed out changeset 9364dd7f20bb (bug 1756057)
Backed out changeset f7f1f73d38cd (bug 1756057)
2022-06-15 18:53:17 +03:00
Thomas Wisniewski
255f433523 Bug 1759471 - have SmartBlock also shim the Google Analytics linker plugin; r=ksenia,webcompat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D149399
2022-06-15 15:22:46 +00:00
Florian Quèze
1290aef373 Bug 1770087 - Show the task priority in task controller Runnable markers, r=bas,gerald.
Differential Revision: https://phabricator.services.mozilla.com/D146761
2022-06-15 15:00:40 +00:00
Chris H-C
46b27ef663 Bug 1756057 - Write a rust-in-gtest instrumentation test for FOG r=janerik
Now that we're no longer testing FOG init instrumentation via rust-in-gtest, we
need a new thing to test in this manner or we'll delete this code and (in my
case) completely forget how we used to do this.

So let's replace the real instrumentation test with a boring one that doesn't
actually require all the boilerplate, but isn't harmed by it either.

Differential Revision: https://phabricator.services.mozilla.com/D147451
2022-06-15 14:59:15 +00:00
Chris H-C
543cd1408e Bug 1756057 - For GTest create FOGFixture for ensuring FOG is properly set up for your test case r=janerik
Differential Revision: https://phabricator.services.mozilla.com/D147450
2022-06-15 14:59:13 +00:00
Chris H-C
bc56340a4f Bug 1756057 - In GTest have FOG init when the runner runs, instead of in some random test r=janerik
Depends on D147448

Differential Revision: https://phabricator.services.mozilla.com/D147449
2022-06-15 14:59:12 +00:00
Chris H-C
cbc469a5c2 Bug 1756057 - Move FOG init instrumentation test to mochi. r=janerik
This instrumentation test has been disabled since bug 1763474 because delaying
init to this test meant that the preinit queue would overflow.

Because GoogleTest runs all at once and in its own decided order, we shouldn't
write any test that depends on FOG init happening at a specific time unless we
make it happen before the test suite even runs.

...and if we do that, the test resets that we perform in between will
obliterate the value in the init instrumentation, meaning we can't test it
anyway.

So let's test this instrumentation in mochi where there's a little more...
control? Certainty, anyway, about how often test resets happen (never) and
whether FOG init happens (it does).

The only thing we then have to worry about that could delete this information
before we can test it is an ill-timed "metrics" ping being sent. Which is why
we skip the test between the hours of 3AM and 5AM (local).

Differential Revision: https://phabricator.services.mozilla.com/D147448
2022-06-15 14:59:11 +00:00
Tom Schuster
934b379383 Bug 1763073 - Add telemetry (and messaging) for SameSite cookies blocked due to redirects. r=freddyb,dveditz
Differential Revision: https://phabricator.services.mozilla.com/D143034
2022-06-15 14:51:16 +00:00
Neil Deakin
87b5fee4a6 Bug 1772906, switch to use validateFileNameForSaving to verify the filename when opening view source in an external editor, r=mak
Differential Revision: https://phabricator.services.mozilla.com/D148535
2022-06-15 14:33:28 +00:00
Andrew McCreight
a9465f49df Bug 1771383 - Null check mPrintObject in nsPrintJob::SetupToPrintContent(). r=emilio
We're seeing a lot of null crashes here. Maybe we're running script since
we last checked mPrintObject and the printer was disconnected or
something along those lines, so just add a null check.

Differential Revision: https://phabricator.services.mozilla.com/D149387
2022-06-15 13:34:11 +00:00
Dão Gottwald
c7942217a4 Bug 1774388 - Don't show the Firefox View button separator in private windows. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D149373
2022-06-15 13:04:57 +00:00
Nicolas Chevobbe
5309cb5c0d Bug 1773994 - [devtools] Remove unnecessary code for network messages in MESSAGE_OPEN. r=ochameau.
With the changes from Bug 1686440, there's no benefit keeping this code around.

Differential Revision: https://phabricator.services.mozilla.com/D149139
2022-06-15 12:57:08 +00:00
Nicolas Chevobbe
63765889d4 Bug 1773993 - [devtools] Remove unused removeIds variable in addMessage. r=ochameau.
Nothing was added to the array, so we can remove it.

Differential Revision: https://phabricator.services.mozilla.com/D149138
2022-06-15 12:57:08 +00:00
Nicolas Chevobbe
0e20c6b7c9 Bug 1764501 - [devtools] Speedup adding messages out of order. r=ochameau.
In the console we might receive messages that need to be inserted at a specific
position in the output to respect the chronological order.
This is very visible when evaluating an expression in the console while we are
fetching cached messages, or when the expression is logging lots of messages, since
the evaluation result doesn't go through the ResourceCommand itself.
Since we were relying on the order of insertion in `mutableMessagesById` for the
order of messages in the output, we had no choice but clone the Map to insert
the new message at the specific position.
With lots of messages, this can be utterly slow, and is something people are experiencing.

To fix this, we're adding a new state property, `mutableMessagesOrder`, which holds
message ids in the chronological order. It's then used to compute `visibleMessages`.
As we don't have to clone the Map anymore, it makes reordering as fast as looking
for an index in the array and splicing it (which is fast).

We also take this opportunity to switch away from our `findIndex` usage; most often
than not, the messages will be reinserted at the end of the array, so we can loop
through it backward to find the index faster.

We still keep `mutableMessagesById` as a Map so lookup are fast, and we don't have
to deal with impacts we'd have if we'd switch to an object.

The existing node test helper to get a message at a specific index are migrated
to make use of `mutableMessagesOrder`, and a few test cases and assertions are
added to check that the new property is handled correctly.

Differential Revision: https://phabricator.services.mozilla.com/D148658
2022-06-15 12:57:07 +00:00
Nicolas Chevobbe
866c7ae260 Bug 1773986 - [devtools] Add DAMP test case to cover adding out-of-order messages. r=ochameau,perftest-reviewers,sparky.
This test demonstrates that the patch in Bug 1764501 does fix the performance issue
we were seeing. Having it in tree will ensure we don't regress this.

Differential Revision: https://phabricator.services.mozilla.com/D149110
2022-06-15 12:57:07 +00:00
Dimi
9e6c641b2c Bug 1773043 - Remove flashblock from necko r=kershaw,necko-reviewers
Depends on D149130

Differential Revision: https://phabricator.services.mozilla.com/D149131
2022-06-15 12:55:26 +00:00
Dimi
3e279947eb Bug 1773043 - Remove flashblock from SafeBrowsing r=perftest-reviewers,gcp,sparky
Depends on D149129

Differential Revision: https://phabricator.services.mozilla.com/D149130
2022-06-15 12:55:26 +00:00
Dimi
fad84601a8 Bug 1773043 - Remove flashblock from url-classifier r=timhuang
Depends on D149128

Differential Revision: https://phabricator.services.mozilla.com/D149129
2022-06-15 12:55:25 +00:00
Dimi
b86284ee81 Bug 1773043 - Remove flashblock from dom r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D149128
2022-06-15 12:55:25 +00:00
Olli Pettay
a8c8f73787 Bug 1735875, ServiceWorkers + bfcache: evict bfcache in certain cases, to pass the existing WPTs, and add a new test for Client.postMessage, r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D148481
2022-06-15 12:45:08 +00:00
criss
85072ad6a8 Backed out 2 changesets (bug 1761975, bug 1767708) for causing Xpcshell failures on test_blackboxing-02.js. CLOSED TREE
Backed out changeset d2fc50df9355 (bug 1767708)
Backed out changeset bdb40c0a7307 (bug 1761975)
2022-06-15 15:50:17 +03:00
Iulian Moraru
9aa4db0c6d Backed out 2 changesets (bug 1730763) for causing multiple reftest failures. CLOSED TREE
Backed out changeset 350982d1a44d (bug 1730763)
Backed out changeset 392445118046 (bug 1730763)
2022-06-15 15:31:43 +03:00
Marco Bonardo
6ea6faa8a4 Bug 1774391 - MR2-2547 - Add more logging to better understand Snapshots scores. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D148908
2022-06-15 11:43:43 +00:00
Peter Van der Beken
c55748ac0b Bug 1773192 - Referrer header missing after calling history.replaceState and clicking back button. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D149176
2022-06-15 11:32:16 +00:00
Andreas Farre
a8165074bc Bug 1774242 - Make sure invariants for the test is correct. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D149280
2022-06-15 11:15:36 +00:00
Andreas Farre
2cfe69037a Bug 1772344 - Wait for session store update after closing tab. r=Gijs
Depends on D146207

Differential Revision: https://phabricator.services.mozilla.com/D148126
2022-06-15 11:15:36 +00:00
Andreas Farre
05083dfb80 Bug 1756995 - Optimize docshell load end session store collection. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D146207
2022-06-15 11:15:35 +00:00
Dão Gottwald
6a1e5604c2 Bug 1767802 - Add another tab stop to the tabs toolbar. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D149277
2022-06-15 11:13:36 +00:00
Emilio Cobos Álvarez
f66447dead Bug 1730763 - Fix typo that causes some reftests to fail.
Adjust some tests that are not expected to pass until we implement style
containment.

MANUAL PUSH: Trivial typo fix CLOSED TREE
2022-06-15 13:29:43 +02:00
Alexandre Poirot
638166ba96 Bug 1767708 - [devtools] Fix intermittent with browser_dbg-content-script-sources.js. r=bomsy
The source tree seems to be updated asynchronously after the source selection.

Also, the SourcesTree component wasn't correctly selecting and expanding the tree
when the selected source was immediately selected as it gets created in the source tree.

Differential Revision: https://phabricator.services.mozilla.com/D148838
2022-06-15 10:10:14 +00:00
Alexandre Poirot
54c38d1475 Bug 1761975 - [devtools] Hide ExtensionContent.jsm when debugging page with WebExt content scripts. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D148837
2022-06-15 10:10:13 +00:00
Manuel Bucher
9576ffa343 Bug 1744822 - Make early hint preloads also preload cross origin requests r=necko-reviewers,ckerschb,dragana
Differential Revision: https://phabricator.services.mozilla.com/D143739
2022-06-15 09:59:46 +00:00
Manuel Bucher
64e0803487 Bug 1761252 - Parse anchor attribute in Link-header r=necko-reviewers,dragana,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D142442
2022-06-15 09:59:46 +00:00
Manuel Bucher
223d2198f9 Bug 1761242 - Test early hint preloads for all implemented asset types r=necko-reviewers,dragana,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D142202
2022-06-15 09:59:45 +00:00
Manuel Bucher
b0235f2c18 Bug 1761242 - Generalize the EarlyHintPreloader to cover all assets intended to preload r=necko-reviewers,ckerschb,dragana,kershaw
Previously covered: images
Added: script, script modules, font, style, fetch

Differential Revision: https://phabricator.services.mozilla.com/D142201
2022-06-15 09:59:45 +00:00
Manuel Bucher
14dd2f26fc Bug 1761242 - Expose computing security flags for early hint preloader r=ckerschb,smaug
Differential Revision: https://phabricator.services.mozilla.com/D144798
2022-06-15 09:59:44 +00:00
Emilio Cobos Álvarez
37f45fa980 Bug 1773924 - Simplify nsDeviceContext code dealing with DPI changes. r=jfkthame
This in-out parameter business used to be necessary (bug 1249279), but
we don't propagate the new widget scale to remote documents (which are
the common case now) and we seem to be doing just fine without that, so
I'm not sure why this would be needed anymore.

Also simplify some unit conversions while at it.

Differential Revision: https://phabricator.services.mozilla.com/D149032
2022-06-15 09:57:38 +00:00
Emilio Cobos Álvarez
662e5dc678 Bug 1730763 - Fix containment and body-to-root propagation. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D149226
2022-06-15 09:56:34 +00:00
Emilio Cobos Álvarez
bf4306b284 Bug 1774224 - Fix dynamic viewport size. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D149275
2022-06-15 09:55:57 +00:00
Emilio Cobos Álvarez
f5da42c507 Bug 1773795 - Spoof window/windowtext colors in content. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D149143
2022-06-15 09:53:13 +00:00
Jan de Mooij
3864512a42 Bug 1774149 - Add test fixed by bug 1774166. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D149227
2022-06-15 09:33:27 +00:00
Jan de Mooij
9e67d46795 Bug 1774166 part 3 - Assert frame pointers match frame descriptors in JSJitProfilingFrameIterator. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D149219
2022-06-15 09:33:26 +00:00
Jan de Mooij
b1f23dc2d6 Bug 1774166 part 2 - Change Wasm profiling iterator to treat JitEntry stubs without a pushed FP as incomplete. r=iain
We already had code to ignore samples where the return address isn't on the stack.
Extend this to the frame pointer, because the JIT frame unwinder will soon need that
too.

Differential Revision: https://phabricator.services.mozilla.com/D149218
2022-06-15 09:33:26 +00:00
Jan de Mooij
76c34fd92e Bug 1774166 part 1 - Change lastProfilingFrame to point to the saved frame pointer. r=iain
The profiler enter-frame instrumentation now happens after pushing the frame pointer,
and the exit-frame trampoline is used before restoring the frame and stack pointers.

This is a little awkward because the frame pointer isn't in the frame layout yet, but
it does move us one step closer to changing that. This will also make it possible to
remove the frame size from the frame descriptor.

Differential Revision: https://phabricator.services.mozilla.com/D149217
2022-06-15 09:33:25 +00:00