Commit Graph

25665 Commits

Author SHA1 Message Date
Paul Zuehlcke
cda360d7b5 Bug 1719221 - Fix intermittent test timeout by ensuring button is present before clicking it. r=prathiksha
Differential Revision: https://phabricator.services.mozilla.com/D148133
2022-06-03 16:35:33 +00:00
Greg Tatum
722d640bc5 Bug 1759504 - Put the text recognition UI behind an experimental feature r=emilio,nordzilla,fluent-reviewers,preferences-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D146829
2022-06-03 16:01:34 +00:00
Greg Tatum
030742706f Bug 1759504 - Prototype a menu button click demo for text recognition r=fluent-reviewers,emilio,nordzilla,flod
Co-Authored-By: Emilio Cobos Álvarez <emilio@crisal.io>
Co-Authored-By: Greg Tatum <tatum.creative@gmail.com>

Depends on D140874

Differential Revision: https://phabricator.services.mozilla.com/D140875
2022-06-03 16:01:32 +00:00
criss
154874275b Backed out 7 changesets (bug 1759504) for causing Android build bustages on NodeListBinding.cpp
Backed out changeset d1f1173aecfc (bug 1759504)
Backed out changeset a14a874c57b0 (bug 1759504)
Backed out changeset b9beaecf9708 (bug 1759504)
Backed out changeset dc1be2f0e0b6 (bug 1759504)
Backed out changeset a0b089fb747b (bug 1759504)
Backed out changeset b5f762f1f22e (bug 1759504)
Backed out changeset a21b8153ca2a (bug 1759504)
2022-06-02 19:52:05 +03:00
Greg Tatum
dd8f77d8d9 Bug 1759504 - Put the text recognition UI behind an experimental feature r=emilio,nordzilla,fluent-reviewers,preferences-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D146829
2022-06-02 14:31:43 +00:00
Greg Tatum
6f9040ae80 Bug 1759504 - Prototype a menu button click demo for text recognition r=fluent-reviewers,emilio,nordzilla,flod
Co-Authored-By: Emilio Cobos Álvarez <emilio@crisal.io>
Co-Authored-By: Greg Tatum <tatum.creative@gmail.com>

Depends on D140874

Differential Revision: https://phabricator.services.mozilla.com/D140875
2022-06-02 14:31:41 +00:00
Niklas Baumgardner
66c8860916 Bug 1770390 - Check if take screenshot should show on frame. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D147545
2022-06-02 14:30:31 +00:00
Dana Keeler
c404295c97 Bug 1770869 - remove nsILocalCertService and implementation r=necko-reviewers,jschanck,pbz,kershaw
nsILocalCertService was used in FlyWeb, which was removed in Firefox 59 in bug
1374574.

Depends on D147121

Differential Revision: https://phabricator.services.mozilla.com/D147122
2022-06-01 23:20:58 +00:00
Butkovits Atila
22b3e62b6b Backed out 3 changesets (bug 1770869) for causing xpcshell failures at test_tls_server.js. CLOSED TREE
Backed out changeset 5c95392b800d (bug 1770869)
Backed out changeset 149d04a209b6 (bug 1770869)
Backed out changeset 5a138d047be1 (bug 1770869)
2022-06-02 00:18:26 +03:00
Dana Keeler
de60f1d759 Bug 1770869 - remove nsILocalCertService and implementation r=necko-reviewers,jschanck,pbz,kershaw
nsILocalCertService was used in FlyWeb, which was removed in Firefox 59 in bug
1374574.

Depends on D147121

Differential Revision: https://phabricator.services.mozilla.com/D147122
2022-06-01 20:00:57 +00:00
Gabriele Svelto
72c2890018 Bug 1771875 - Add BrowserTestUtils.reloadTab() and use it everywhere r=mconley,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D147732
2022-06-01 09:34:05 +00:00
Hannah Peuckmann
939f733638 Bug 1771024 - Cleaning per principal when sanitizer is run on startup. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D147622
2022-06-01 07:54:54 +00:00
Dão Gottwald
8ca1db7a6f Bug 1771775 - Add "Independent Voices" Colorway collection. r=fluent-reviewers,amy
Differential Revision: https://phabricator.services.mozilla.com/D147677
2022-05-31 19:18:54 +00:00
Calixte
9eafb7c7a0 Bug 1766030 - Add an optional source URL when saving an URL. r=Gijs
In pdf.js, files are saved thanks to a blob but the original URL is lost.
Consequently, the download panel doesn't contain any information about the
origins of a saved pdf.
The saveURL, internalSave and nsITransfer.init functions has now a parameter for this originalURL.

Differential Revision: https://phabricator.services.mozilla.com/D147651
2022-05-31 17:25:29 +00:00
Tooru Fujisawa
d1bd5e4401 Bug 1771463 - Do not export lazy getter "fxAccounts" from services/fxaccounts/FxAccounts.jsm. r=markh,preferences-reviewers,Mardak
Instead of exporting lazy getter, export a function that returns the FxAccount
singleton, lazily creating on the first call, and define the lazy getter on the
consumer side that calls the function.

Differential Revision: https://phabricator.services.mozilla.com/D147634
2022-05-31 14:09:10 +00:00
Emilio Cobos Álvarez
eb8c174c70 Bug 1763035 - Don't inherit direction in cached scrollbar parts. r=jfkthame
This is the most minimal fix for the bug. The issue is basically that
XUL <tree>s have a non-anonymous scrollbar that doesn't match the rule
above the one I'm modifying (which resets scrollbar directionality to
ltr).

Its _anonymous_ kids would inherit this rtl directionality and cache it,
and the wrong directionality would be used for actual anonymous
scrollbars, causing havoc later on due to the nsGfxScrollFrame reflow
callbacks.

This is wrong, anyways, there's no reason for inheriting the
directionality of the scrollbar to begin with.

Differential Revision: https://phabricator.services.mozilla.com/D147687
2022-05-31 12:45:37 +00:00
Cosmin Sabou
dd73bafd11 Backed out changeset 697ab99d1c61 (bug 1771463) for causing node newtab failures. CLOSED TREE 2022-05-31 07:16:41 +03:00
Tooru Fujisawa
7f15e8996c Bug 1771463 - Do not export lazy getter "fxAccounts" from services/fxaccounts/FxAccounts.jsm. r=markh,preferences-reviewers
Instead of exporting lazy getter, export a function that returns the FxAccount
singleton, lazily creating on the first call, and define the lazy getter on the
consumer side that calls the function.

Differential Revision: https://phabricator.services.mozilla.com/D147634
2022-05-31 03:12:22 +00:00
Gabriel Luong
71f1656cb5 Bug 1738012 - Fetch content meta data only after the page is loaded. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D129733
2022-05-30 17:46:02 +00:00
Timothy Nikkel
993bf4f146 Bug 1762872. Increase length of time swipe to nav ui element is visible. r=hiro
I noticed that the current implementation is very short and easy to miss. Chrome is much longer. I tweaked it to what felt pretty good.

Although this seems like only an increase from 0.25s to 0.35s it's actually much longer than that because the cubic-bezier curve (viewable at https://cubic-bezier.com/#.07,.95,0,1 ) goes to zero almost immediately. The new curve (viewable at https://cubic-bezier.com/#.25,.1,.25,1 ) is closer to linear with an ease-in and an ease-out.

Differential Revision: https://phabricator.services.mozilla.com/D142818
2022-05-26 05:10:35 +00:00
Timothy Nikkel
c1892db1c7 Bug 1762885. Make sure the transition we use to fade out swipe to nav ui element will actually run. r=hiro
We can get into a state where box.style.opacity = 1 but that hasn't been flushed to the style system yet, the style system thinks the value is 0, so when we set box.style.opacity = 0 later it won't cause any transition to start and transitionend will never happen and the ui element will never been shown with non-zero opacity.

We use getComputedStyle to flush the value to the style system, this has two positive effects. It means we will show the ui element with non-zero opacity as well as making sure the transition will happen and transitionend will be called.

I think getComputedStyle should only flush in the relevant subtree (two elements total) so this should be fine.

Differential Revision: https://phabricator.services.mozilla.com/D142822
2022-05-25 05:00:33 +00:00
Sam Foster
3d38874a02 Bug 1768376 - Restore previous order of aero-related rules by loading browser-aero.css for XP_WIN only from browser.xhtml. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D147112
2022-05-25 00:19:00 +00:00
Dão Gottwald
f15ef2f501 Bug 1770808 - Preserve space around the Fx View button / tabstrip separator when there are pinned tabs and tabs overflow. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D147101
2022-05-24 17:05:28 +00:00
Cosmin Sabou
a2b700f449 Merge mozilla-central to autoland. a=merge 2022-05-24 19:26:28 +03:00
Cosmin Sabou
2f10d45a0f Backed out changeset 9e4593ef59f1 (bug 1770808) for causing Bug 1770968. a=backout 2022-05-24 19:17:00 +03:00
Shane Hughes
d0205caf06 Bug 1724622 - Fix missing ETP toast popup animation. r=pbz,Gijs
When the tracking protection toast popup closes on a timer, it doesn't
smoothly fade out, because it uses PanelMultiView.hidePopup instead of
panelNode.hidePopup. The static method on PanelMultiView ultimately
calls panelNode.hidePopup, but it doesn't have a parameter for enabling
the animation so it passes nothing to that method. This patch extends
PanelMultiView's hidePopup class methods to add an optional `animate`
parameter, and adds that parameter to the toast popup's hidePopup call.
This should slightly reduce the speed of part of
browser_protectionsUI.js but I don't think it affects any other tests.

Differential Revision: https://phabricator.services.mozilla.com/D146394
2022-05-24 16:04:23 +00:00
Molnar Sandor
84cba2a6db Backed out 4 changesets (bug 1770727) for causing mochitest failures in test_bug1180105/test_access_control. CLOSED TREE
Backed out changeset 6323b526b0ac (bug 1770727)
Backed out changeset fc7ea80aa2ff (bug 1770727)
Backed out changeset 2a358ba86652 (bug 1770727)
Backed out changeset 464d1af6523b (bug 1770727)
2022-05-24 17:24:40 +03:00
Mark Banner
2b13cf4485 Bug 1770727 - Fix some more ESLint rules on sjs files. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D147080
2022-05-24 12:59:08 +00:00
Dão Gottwald
29ec43c605 Bug 1770808 - Preserve space around the Fx View button / tabstrip separator when there are pinned tabs and tabs overflow. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D147101
2022-05-23 23:55:21 +00:00
Florian Quèze
7c84d50b61 Bug 1745024 - avoid keeping an 'Accessibility notifications' refresh observer for initial about:blank documents, r=Jamie.
Differential Revision: https://phabricator.services.mozilla.com/D143747
2022-05-21 00:23:09 +00:00
Barret Rennie
3dfd359771 Bug 1766916 - Add error handling to RemoteImages.patchMessage r=dmose
Differential Revision: https://phabricator.services.mozilla.com/D145038
2022-05-20 15:49:34 +00:00
Mark Banner
864499be63 Bug 1607498 - If an update via the about dialog is cancelled due to staying on a page, ensure the dialog is reset to the apply state. r=application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D146805
2022-05-19 21:44:10 +00:00
Mark Banner
cc09541457 Bug 1769569 - Automatically replace Components.* with C* in sjs files. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D146451
2022-05-18 08:13:19 +00:00
Andrew McCreight
5cedd55c3f Bug 1514936, part 1 - Remove the outer argument to nsIFactory::createInstance. r=xpcom-reviewers,preferences-reviewers,nika,Gijs
This patch won't actually build, because a few bits of code are used
for both nsIFactory::createInstance and static components, and static
components are not fixed until the next patch.

The first place is nsLoadGroupConstructor, which uses an nsIFactory
macro to create a static component constructor. (This could be worked
around by expanding the macro to the state before this patch.)

The other issue is that nsAppShellConstructor is used in an nsIFactory
on OSX, but as a static component on all other platforms. This could
be worked around by wrapping nsAppShellConstructor in an adaptor that
passes in the extra null argument to nsAppShellConstructor.

Differential Revision: https://phabricator.services.mozilla.com/D146456
2022-05-17 20:24:19 +00:00
Sebastian Hengst
e8e4f38731 Backed out 5 changesets (bug 1769569) for causing devtools' browser/browser_page_redirection.js to fail. CLOSED TREE
Backed out changeset 66a42eb3a366 (bug 1769569)
Backed out changeset d3cc9629cd9a (bug 1769569)
Backed out changeset edcd3dade079 (bug 1769569)
Backed out changeset 29d8dd058b7a (bug 1769569)
Backed out changeset 1aed34fdf2d3 (bug 1769569)
2022-05-17 19:49:17 +02:00
Mark Banner
82aef582ff Bug 1769569 - Automatically replace Components.* with C* in sjs files. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D146451
2022-05-17 16:50:33 +00:00
Emilio Cobos Álvarez
afb69e165e Bug 1768278 - Prevent negative margins from causing us to flip / resize / slide popups. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D145879
2022-05-17 14:37:23 +00:00
James Teow
d99404900f Bug 1760637 - Upgrade initPanel in instantEditBookmark.js to async r=mak
In addition to adding async/await, I also added early return statements
when we know initialization is occuring again, or if there is evidence
that it has been uninitialized.

A concrete example of this would be from the Library, where clicking on
on a folder/category on the left will run initPanel at the same time as
the highlighted folder/bookmark on the right changes (also runs initPanel).

Differential Revision: https://phabricator.services.mozilla.com/D141800
2022-05-17 00:32:48 +00:00
Andrew McCreight
6a442ce2c4 Bug 1769442 - Remove nsIFactory::lockFactory, breaking compatibility with IClassFactory. r=xpcom-reviewers,Jamie,necko-reviewers,kershaw,nika
nsIFactory is binary compatible with Windows COM's IClassFactory,
but nothing seems to depend on it. This patch removes the test
for compatibility, TestCOM, and removes the lockFactory
method that isn't otherwise needed.

Differential Revision: https://phabricator.services.mozilla.com/D146386
2022-05-16 22:38:51 +00:00
Mark Banner
48a6237060 Bug 1745459 - Move the osfile.jsm block in browser_startup.js to deny loading anytime before becoming idle. r=barret
Depends on D146190

Differential Revision: https://phabricator.services.mozilla.com/D146191
2022-05-13 09:38:49 +00:00
Timothy Nikkel
5f54b26a21 Bug 1769020. Send a couple of test events a little further into the window. r=hiro
This was failing on Linux only. I thought maybe we were hitting the title bar and so weren't seeing the events so tried moving the events further into the window and it started working.

Depends on D146160

Differential Revision: https://phabricator.services.mozilla.com/D146161
2022-05-12 23:40:14 +00:00
Timothy Nikkel
5cf1edbf77 Bug 1769020. Fix up and re-enable browser/base/content/test/general/browser_gestureSupport.js. r=hiro
The bulk of the changes are to make the sending of events much more similar to how widget/tests/browser/browser_test_swipe_gesture.js works (because that is a test that is currently working well).

browser_test_swipe_gesture.js opens a tab and uses tab.linkedBrowser to target the events. This makes sense because when we add the event listeners here https://searchfox.org/mozilla-central/rev/b72e9d7d63bf499d1d8168291b93d4ec7fde236e/browser/base/content/browser-gestureSupport.js#49 we add them to the tabbox.

We create synthesizeSimpleGestureEvent in apz_test_native_event_utils.js so we can target other elements (rather than widget relative coords) more easily. This makes several functions async so we propagate that through.

We also change the coords from 0,0 to 10,10 to make sure it's within the bounds of the tabbox event listener (not sure if this is necessary or not, I didn't test without this).

And then I ran eslint on the file. That's should cover everything, hopefully that explanation makes review relatively easy.

Differential Revision: https://phabricator.services.mozilla.com/D146160
2022-05-12 23:40:13 +00:00
Henrik Skupin
4f9d321576 Bug 1768742 - browser_preferences_usage.js - reduce min values for gfx.*.azure.backends to account for pre-allocated content processes. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D146120
2022-05-12 08:04:36 +00:00
Dão Gottwald
365511d874 Bug 1766896 - Redirect attempts to load something else in the Firefox View tab to new tabs. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D145613
2022-05-10 22:16:45 +00:00
Henrik Skupin
9be96ca9b7 Bug 1768689 - browser_preferences_usage.js - bump the maximum times the Nightly only browser.startup.record preference can be accessed during startup. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D145997
2022-05-10 19:01:26 +00:00
Henrik Skupin
55c503496c Bug 1726465 - Don't update remote control cue for startup performance tests. r=florian
Startup performance tests are browser-chrome tests which use Marionette
to install required extensions. Because Marionette will be initialized
earlier during the startup of Firefox this can cause a partially updated
remote control cue for the first opened browser window.

As such stop updating the remote control cue by guarding this behavior
behind two flags - when the browser is in automation and a special
preference set.

Depends on D145933

Differential Revision: https://phabricator.services.mozilla.com/D145934
2022-05-10 15:08:18 +00:00
criss
ba242a0c40 Backed out 8 changesets (bug 1726465) for causing failures on browser_preferences_usage.js. CLOSED TREE
Backed out changeset 4b57310622a0 (bug 1726465)
Backed out changeset 0c6c4a15621a (bug 1726465)
Backed out changeset 081a0f91e0a7 (bug 1726465)
Backed out changeset 60bceb18ff57 (bug 1726465)
Backed out changeset f241655ea876 (bug 1726465)
Backed out changeset 7bc0a3aeb254 (bug 1726465)
Backed out changeset b2f7c710daef (bug 1726465)
Backed out changeset e9b90fd1b4ec (bug 1726465)
2022-05-10 13:59:54 +03:00
Henrik Skupin
e0b4a7ad89 Bug 1726465 - Don't update remote control cue for startup performance tests. r=florian
Startup performance tests are browser-chrome tests which use Marionette
to install required extensions. Because Marionette will be initialized
earlier during the startup of Firefox this can cause a partially updated
remote control cue for the first opened browser window.

As such stop updating the remote control cue by guarding this behavior
behind two flags - when the browser is in automation and a special
preference set.

Differential Revision: https://phabricator.services.mozilla.com/D145934
2022-05-10 09:04:03 +00:00
Mike Kaply
f26b216117 Bug 1754773 - Use new domain policy message for policy blocking. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D144834
2022-05-09 16:04:54 +00:00
Sebastian Hengst
7b2d12b04d Bug 1768079 - only load myFirefox.ftl in Nightly. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D145676
2022-05-07 14:57:37 +00:00