Commit Graph

700812 Commits

Author SHA1 Message Date
jayati
4da359df42 Bug 1628729 - Remove nsIFxAccountsUIGlue. r=eoger
Differential Revision: https://phabricator.services.mozilla.com/D70427

--HG--
extra : moz-landing-system : lando
2020-04-09 19:50:54 +00:00
Tim Huang
fea8fbffcd Bug 1626260 - Stop doing content blocking checks when getting the default referrer policy in content processes. r=dimi,baku,ckerschb
Right now, we do a content blocking check when we get the default
referrer policy. And this could happen even before the channel is
opened. This is undesirable for the ETP fission work since we need
information that is calculated when the channel is opened in the parent
to do a content blocking check.

And we find out that doing a content blocking check here is unnecessary
since the tracking state here is not decided yet since the channel
hasn't been opened. And we will update the referrer policy in the parent
once the tracking state is ready.

So, in this patch, we stop doing the content blocking checks when
getting the default referrer policy in content processes.

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

--HG--
extra : moz-landing-system : lando
2020-04-09 06:52:20 +00:00
Iain Ireland
666cd90093 Bug 1627838: Simple string matches r=mgaudet
The old version only supported matching the exact pattern atom. This version supports patterns with escape characters (like `/\u212a/`).

The Boyer-Moore heuristic code is taken from here:
8e4a5e973e/src/regexp/regexp.cc (L116-L136)

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

--HG--
extra : moz-landing-system : lando
2020-04-07 22:18:53 +00:00
Iain Ireland
f13813200e Bug 1627838: Factor out RegExpShared::executeAtom r=mgaudet
This code is the same for both the new and the old version.

We use `patternAtom` because the new version will add the ability to search for an atom that is not identical to the pattern source (for example, a pattern containing a unicode escape).

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

--HG--
extra : moz-landing-system : lando
2020-04-07 15:52:08 +00:00
devRD
e26212db83 Bug 1621417 - Replace BrowserTestUtils.waitForCondition with TestUtils.waitForCondition in browser_windowclose.js r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D70230

--HG--
extra : moz-landing-system : lando
2020-04-09 19:39:31 +00:00
Ted Campbell
1175d08f87 Bug 1627371 - Remove BytecodeEmitter::lazyScript field. r=mgaudet
This was an artifact of the previous world where the lazy and non-lazy
scripts were different instances. We also prefer the BCE does not directly
access the VM.

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

--HG--
extra : moz-landing-system : lando
2020-04-09 00:51:25 +00:00
Ted Campbell
4226cdf5a7 Bug 1627371 - Use FunctionBox to compute isRunOnceLambda. r=mgaudet
The function box is correctly initialized from the lazy BaseScript so we can
use the funbox instead of direct script access.

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

--HG--
extra : moz-landing-system : lando
2020-04-09 19:19:50 +00:00
Ted Campbell
897d7e4f2c Bug 1627371 - Move lazy TreatAsRunOnce update to FunctionBox::finish. r=mgaudet
The previous code would mutate the inner lazy functions while generating
bytecode of their parents. This was difficult to keep track of, so instead
follow the approach used to update the enclosingScope. We save the info on
the funbox and then in FunctionBox::finish, we apply the update.

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

--HG--
extra : moz-landing-system : lando
2020-04-09 16:03:02 +00:00
Ted Campbell
d1b6b2d0aa Bug 1627371 - Document the TreatAsRunOnce flag. r=mgaudet
Depends on D70288

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

--HG--
extra : moz-landing-system : lando
2020-04-09 19:19:46 +00:00
Ted Campbell
19bfff84b6 Bug 1627371 - Include shouldSuppressRunOnce in lazy TreatAsRunOnce computation. r=mgaudet
This brings the lazy TreatAsRunOnce flag in sync with the non-lazy one. Note
that although the flag is in-sync when we delazify, a lazy script with a lazy
parent will still be wrong.

Depends on D70287

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

--HG--
extra : moz-landing-system : lando
2020-04-09 19:17:37 +00:00
Ted Campbell
aebce279bb Bug 1627371 - Use explicitName when reconstructing delazifying funbox. r=mgaudet
This fixes a regression where immediately-invoked-function-expressions that
had a guessed-atom were no longer marked as run-once-lambdas.

Note: This can come up in some namespacing styles based on IIFEs such as:

    var Mod = (function() {
        function m1() {}
        function m2() {}

        return { m1, m2 };
        })();

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

--HG--
extra : moz-landing-system : lando
2020-04-09 15:52:37 +00:00
Andi-Bogdan Postelnicu
56a9802f89 Bug 1625884 - move clang-tidy and clang-format to clang-10. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D70065

--HG--
extra : moz-landing-system : lando
2020-04-09 14:16:44 +00:00
Andi-Bogdan Postelnicu
0e1adc54be Bug 1625884 - add target linux64-cctools-clang-10-port. r=nalexander
For building `macosx64-clang-tidy` with `linux64-clang-10` we need to build `cctools`
with `clang-10`.

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

--HG--
extra : moz-landing-system : lando
2020-04-09 14:16:46 +00:00
Andi-Bogdan Postelnicu
741565d15e Bug 1625884 - add clang-10 to linux64 clang-tools. r=nalexander,dmajor
Patches that are applied on top on `clang-10` repo are based on the original
patches from our trunk and have been rebased on top of `clang-10`.
Please see as an example: `find_symbolizer_linux.patch` copied to `find_symbolizer_linux_clang_10.patch`.

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

--HG--
rename : build/build-clang/clang-linux64.json => build/build-clang/clang-10-linux64.json
rename : build/build-clang/find_symbolizer_linux.patch => build/build-clang/find_symbolizer_linux_clang_10.patch
rename : build/build-clang/llvmorg-11-init-4265-g2dcbdba8540.patch => build/build-clang/llvmorg-11-init-4265-g2dcbdba8540_clang_10.patch
rename : build/build-clang/rG7e18aeba5062.patch => build/build-clang/rG7e18aeba5062_clang_10.patch
rename : build/build-clang/rename_gcov_flush.patch => build/build-clang/rename_gcov_flush_clang_10.patch
rename : build/build-clang/tsan-hang-be41a98ac222.patch => build/build-clang/tsan-hang-be41a98ac222_clang_10.patch
rename : build/build-clang/unpoison-thread-stacks.patch => build/build-clang/unpoison-thread-stacks_clang_10.patch
extra : moz-landing-system : lando
2020-04-09 14:16:48 +00:00
Henrik Skupin
def4b7f1d6 Bug 1628344 - [remote] Return DOM.Node “attributes” for DOM.describeNode. r=remote-protocol-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D70426

--HG--
extra : moz-landing-system : lando
2020-04-09 19:11:09 +00:00
Timothy Nikkel
a769d2a630 Bug 1628532. Don't use WillDrawOpaqueNow in OrientedImage::GetFrame. r=aosmond
WillDrawOpaqueNow tries to answer the question "if Draw is called on this image 'pretty soon' from now will it draw something opaque (so I know if I can cull stuff behind it for painting)".

But OrientedImage wants "is the frame I have right now opaque (so I can choose the right format for a surface I'm trying to draw the flipped image into)".

Bug 1260324 replaces imgIContainer::IsOpaque with WillDrawOpaquaNow, but it should have considered this case a bit more.

RasterImage::GetFrame already checks if the surface is finished before returning, and we have the format on the returned frame, so we don't need anything complicated here.

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

--HG--
extra : moz-landing-system : lando
2020-04-09 13:17:33 +00:00
Coroiu Cristina
f591deb0c1 Backed out changeset 0cfe4728b251 (bug 1594621) for breaking Gecko Decision Task on a CLOSED TREE 2020-04-10 01:37:39 +03:00
Andrew Osmond
23745bab40 Bug 1628817 - Revert blocking of all features with NVIDIA driver version 26.21.14.4575. r=jrmuizel
This reverts the patch landed in bug 1625857. As it turns out, the
driver version is less significant than the fact that it is a laptop
with dual GPUs. We should continue to give users with this driver
hardware acceleration for optimal performance.

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

--HG--
extra : moz-landing-system : lando
2020-04-09 18:49:43 +00:00
Andrew Halberstadt
7349bc85c9 Bug 1628810 - [tryselect] Use bugbug.debug optimization strategy by default in ./mach try auto, DONTBUILD, r=marco
Differential Revision: https://phabricator.services.mozilla.com/D70419

--HG--
extra : moz-landing-system : lando
2020-04-09 18:31:24 +00:00
Aki Sasaki
0748fa0f8c Bug 1594621 - allow for attributes in fetch tasks. r=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D70141

--HG--
extra : moz-landing-system : lando
2020-04-09 18:13:16 +00:00
alwu
79e2423bd9 Bug 1628521 - prevent MDSM from creating media sink during suspending period. r=bryce
In bug1571513, we added a mechanism of suspending/resuming media sink, and we should not recreate the media sink during the time of suspending media sink.

However, I found a case where we would create media sink during suspending period. That is via `UpdateOutputCaptured()`, and we should prevent it from creating media sink before we call `ResumeMediaSink()`.

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

--HG--
extra : moz-landing-system : lando
2020-04-09 17:17:02 +00:00
Rob Lemley
f49e91e5fb Bug 1624763 - Enable custom actions to be defined in a repo. r=tomprince
This is a port of https://hg.mozilla.org/ci/taskgraph/rev/a61ab06c25222 to allow
for custom actions in a project repo. Previously, registration of actions worked
but did not run when triggered.

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

--HG--
extra : moz-landing-system : lando
2020-04-09 07:37:21 +00:00
Masayuki Nakano
9f10b2a2a0 Bug 1627573 - part 4: Mark CSSEditUtils methods which refer computed style as MOZ_CAN_RUN_SCRIPT r=m_kato
When it refers computed value of style, it may flush pending notifications.
Therefore, they should be marked as `MOZ_CAN_RUN_SCRIPT`.

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

--HG--
extra : moz-landing-system : lando
2020-04-09 10:10:34 +00:00
Masayuki Nakano
32e8f30b27 Bug 1627573 - part 3: Get rid of CSSEditUtils::GetSpecifiedCSSEquivalentToHTMLInlineStyleSet() because of unused r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D70150

--HG--
extra : moz-landing-system : lando
2020-04-09 10:08:52 +00:00
Masayuki Nakano
ea92dfc783 Bug 1627573 - part 2: Split public methods of CSSEditUtils which work with both specified values and computed values r=m_kato
Some methods take `StyleType` to work them with specified values or computed
values.  This method hides `StyleType` into `CSSEditUtils` and splits the
public methods which took `StyleType` to 2 methods, one is for working with
specified values, the other is for working with computed values.

Additionally, this patch fixes some argument name and type.

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

--HG--
extra : moz-landing-system : lando
2020-04-09 10:08:37 +00:00
Masayuki Nakano
ac60892e7d Bug 1627573 - part 1: Remove unused CSSEditUtils::IsCSSEquivalentToHTMLInlineStyleSet() overload r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D70148

--HG--
extra : moz-landing-system : lando
2020-04-09 10:08:09 +00:00
Nicholas Nethercote
39d70e63f8 Bug 1622701 - install fix-stacks on linux{,64}-gcp/debug jobs. r=erahm
Differential Revision: https://phabricator.services.mozilla.com/D70296

--HG--
extra : moz-landing-system : lando
2020-04-09 20:54:07 +00:00
Coroiu Cristina
d37de5ed78 Backed out 6 changesets (bug 1363541) for browser-chrome failures at browser/base/content/test/performance/browser_startup_mainthreadio.js on a CLOSED TREE
Backed out changeset 947073be919f (bug 1363541)
Backed out changeset 1f397b686c11 (bug 1363541)
Backed out changeset d2ba944a47a3 (bug 1363541)
Backed out changeset 80d4d1f0c921 (bug 1363541)
Backed out changeset 9d6b9052f413 (bug 1363541)
Backed out changeset aeaa10789071 (bug 1363541)

--HG--
rename : extensions/permissions/Permission.cpp => extensions/permissions/nsPermission.cpp
rename : extensions/permissions/Permission.h => extensions/permissions/nsPermission.h
rename : extensions/permissions/PermissionManager.cpp => extensions/permissions/nsPermissionManager.cpp
rename : extensions/permissions/PermissionManager.h => extensions/permissions/nsPermissionManager.h
2020-04-10 01:00:15 +03:00
Coroiu Cristina
8c618625fe Backed out 2 changesets (bug 1625151) for build bustage at netwerk/dns/ChildDNSService.cpp on a CLOSED TREE
Backed out changeset bb8ac156944b (bug 1625151)
Backed out changeset ca74746771d7 (bug 1625151)
2020-04-10 00:58:16 +03:00
Henrik Skupin
8f25961e38 Bug 1628578 - [remote] Update puppeteer test expectation status for console messages in detached iframes. r=remote-protocol-reviewers,maja_zf
DONTBUILD

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

--HG--
extra : moz-landing-system : lando
2020-04-09 13:45:52 +00:00
Jon Coppeard
a28a285688 Bug 1628440 - Use WeakHeapPtr for weakly-held vector elements in finalization registry registrations weakmap r=sfink
The problem is that HeapPtr<> has a prebarrier in its destructor.  This isn't necessary for weakly held values, and cause problems if the values have already been finalized.  The patch also renames FinalizationRecordVectorObject to FinalizationRegistrationsObject to better describe its purpose.

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

--HG--
extra : moz-landing-system : lando
2020-04-09 16:23:12 +00:00
James Graham
b16004a0d9 Bug 1620278 - Put source-test dependent-build-types in task configuration, r=ahal
Previously source-tests requiring a build had a "global" mapping of
platform to build type in kind.yml. But this made it confusing to
figure out how to add task-specific configuration. To simplify things,
make the configuration for the dependent platforms also go in the task
definition.

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

--HG--
extra : moz-landing-system : lando
2020-04-09 15:34:49 +00:00
Dan Minor
b4a9997899 Bug 1624253 - Catch panic in mdns_service_generate_uuid; r=mjf
In rare cases, the random number generator can fail to initialize when
generating a v4 UUID, causing a panic and crash. This adds code to catch that
panic and return a nil (all zeros) UUID instead. Using a nil UUID seems better
from a user privacy perspective than failing to obfuscate the host address and
leaking it when it is expected to be hidden.

Longer term, we might want to switch over to using nsIUUIDGenerator, but that
would require changes to how the socket process is initialized.

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

--HG--
extra : moz-landing-system : lando
2020-04-08 14:20:38 +00:00
Ankita
04fa714df4 Bug 1612527 - Refactor browser calls in deletion-request ping test; r=raphael
Differential Revision: https://phabricator.services.mozilla.com/D69572

--HG--
extra : moz-landing-system : lando
2020-04-09 16:24:41 +00:00
Andi-Bogdan Postelnicu
8d21444c67 Bug 1628748 - Switch to python3 seems to have broken the Compiler database backend. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D70394

--HG--
extra : moz-landing-system : lando
2020-04-09 15:54:33 +00:00
Micah Tigley
ab8dcd14e0 Bug 1625934 - Use windowUtils' sendTouchEvent to dispatch touch events. r=bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D69891

--HG--
extra : moz-landing-system : lando
2020-04-09 16:12:30 +00:00
Kershaw Chang
71ef6a9905 Bug 1625151 - P2: Lazy initialize nsHTMLDNSPrefetch::sDNSService r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D68389

--HG--
extra : moz-landing-system : lando
2020-04-09 16:00:28 +00:00
Kershaw Chang
708d96d114 Bug 1625151 - P1: Move DNS resolution to socket process r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D68388

--HG--
extra : moz-landing-system : lando
2020-04-09 16:00:26 +00:00
Shane Caraveo
b038fec64c Bug 1623921 test StreamFilter works with 301 redirect r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D68112

--HG--
extra : moz-landing-system : lando
2020-04-09 16:11:03 +00:00
Jim Blandy
c5713e75b5 Bug 1628508: Add 'IMPLICIT' comment for webrender_api::display_item::ScrollFrameDisplayItem. DONTBUILD r=gw
Differential Revision: https://phabricator.services.mozilla.com/D70269

--HG--
extra : moz-landing-system : lando
2020-04-08 23:31:36 +00:00
Daniel Varga
7a8d18514b Backed out changeset 77a5673f90f4 (bug 1625501) for causing devtools failures at devtools/client/responsive/test/browser/browser_container_tab.js
CLOSED TREE
2020-04-10 00:29:07 +03:00
Emilio Cobos Álvarez
79f62fbd71 Bug 1626291 - Repaint selection when safe. r=masayuki
Note that we intentionally don't move the SetDisplaySelection stuff to the
runnables. It would probably be safe enough, but it's not required and it makes
reasoning about this code harder.

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

--HG--
extra : moz-landing-system : lando
2020-04-09 09:50:58 +00:00
Dão Gottwald
9b034b0eaf Bug 1628360 - Set aria-label on tabs-newtab-button. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D70380

--HG--
extra : moz-landing-system : lando
2020-04-09 15:52:44 +00:00
Sander Van de Moortel
e948520730 Bug 266985 - Obey middlemouse.openNewWindow preference r=dao
Differential Revision: https://phabricator.services.mozilla.com/D70267

--HG--
extra : moz-landing-system : lando
2020-04-09 15:52:29 +00:00
Lina Cambridge
f9abd62b34 Bug 1596322 - Add XPCOM bindings for Rust Sync engines. r=markh,tcsc,LougeniaBailey
This commit adds a new crate for bridging Rust Sync engines to Desktop,
and a `mozIBridgedSyncEngine` for accessing the bridge via JS.
Naturally, the bridge is called Golden Gate. 😊 For more information
on how to use it, please see `golden_gate/src/lib.rs`.

Other changes include:

* Ensuring the test Sync server uses UTF-8 for requests and responses.
* Renaming `mozISyncedBookmarksMirrorLogger` to `mozIServicesLogger`,
  and moving it into the shared Sync interfaces.

The `BridgedEngine` trait lives in its own crate, called
`golden_gate_traits`, to make it easier to eventually move into a-s.
`Interruptee` and `Interrupted` already exist in a-s, and are
duplicated in this crate for now.

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

--HG--
extra : moz-landing-system : lando
2020-04-09 15:45:37 +00:00
Andrea Marchesini
25ea79a516 Bug 1363541 - Modernize the PermissionManager - part 6 - moving code around, r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D70164

--HG--
extra : moz-landing-system : lando
2020-04-09 13:28:23 +00:00
Andrea Marchesini
3e892fdba4 Bug 1363541 - Modernize the PermissionManager - part 5 - headers, r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D70041

--HG--
extra : moz-landing-system : lando
2020-04-09 13:27:53 +00:00
Andrea Marchesini
8764c55c53 Bug 1363541 - Modernize the PermissionManager - part 4 - mozilla namespace, r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D70040

--HG--
rename : extensions/permissions/nsPermissionManager.cpp => extensions/permissions/PermissionManager.cpp
rename : extensions/permissions/nsPermissionManager.h => extensions/permissions/PermissionManager.h
extra : moz-landing-system : lando
2020-04-09 13:27:35 +00:00
Andrea Marchesini
f71aefda4e Bug 1363541 - Modernize the PermissionManager - part 3 - DB handling in a separate thread, r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D69965

--HG--
extra : moz-landing-system : lando
2020-04-09 13:26:29 +00:00
Andrea Marchesini
cefe8accad Bug 1363541 - Modernize the PermissionManager - part 2 - PermissionDelegateHandler to mozilla::PermissionDelegateHandler, r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D69964

--HG--
extra : moz-landing-system : lando
2020-04-09 13:25:56 +00:00