25974 Commits

Author SHA1 Message Date
Ed Lee
d7bf05ab83 Bug 1754126 - Skip colorway theme test if it has already expired r=pdahiya
Silently ignore themes that are expired and can't be enabled.

Differential Revision: https://phabricator.services.mozilla.com/D138168
2022-02-08 22:58:52 +00:00
Emilio Cobos Álvarez
00cc720134 Bug 1753995 - Remove non-test usage of WindowUtils.screenPixelsPerCSSPixel. r=mconley
It does the same as window.devicePixelRatio. However a bunch of this
code is copy-pasted code trying to scale a canvas, but not messing with
full zoom is the right thing to do.

The full zoom value in the top level browser.xhtml page is always 1
anyways, and WindowsPreviewPerTab looking at the current browser tab's
full zoom is just bizarre...

Differential Revision: https://phabricator.services.mozilla.com/D138020
2022-02-07 18:23:35 +00:00
Evgenia Kotovich
0825ccdc96 Bug 1753816 - Change browser/base/content/browser.js to apply only InstantEditBookmark. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D137934
2022-02-07 08:02:19 +00:00
Butkovits Atila
c5fefb28e5 Bug 1739107 - disable browser_devices_get_user_media_screen.js on Win for frequent failures. r=intermittent-reviewers,MasterWayZ DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D137963
2022-02-07 02:59:54 +00:00
Emilio Cobos Álvarez
a6cf56481f Bug 1741830 - Fix front-end callers of screenForRect in HiDPI environments. r=Gijs
screenForRect takes screen coordinates (device pixels, for our purpose here).

However screenX / screenY are in CSS pixels, so we need to convert them to the
right coordinate space before looking up the screen.

Differential Revision: https://phabricator.services.mozilla.com/D137895
2022-02-05 15:44:43 +00:00
Masatoshi Kimura
f7542880f9 Bug 1753608 - Fix Session Restore fails to restore some features. r=Gijs
* I overlooked that some `window.open` feature names are different from
  barprop names.
* Adding "resizable" will regress the maximize button prblem. But it was
  broken even before bug 1564738 and fixing it requires changes to session
  data. The current session data do not contain enough information to restore
  the maximize button state correctly. I'll file a follow-up bug about this.
* I renamed the test file because it is no longer limited to tab visibility.

Differential Revision: https://phabricator.services.mozilla.com/D137838
2022-02-04 19:53:24 +00:00
Masatoshi Kimura
bce08ba83a Bug 1564738 - Set correct features from the start instead of changing visibity after window creation. r=Gijs
Changing visibiity causes some subtle problems.

Differential Revision: https://phabricator.services.mozilla.com/D137750
2022-02-03 23:10:16 +00:00
Emilio Cobos Álvarez
257a6beb7b Bug 1718220 - Try to sync-decode to hopefully fix some frequent flickering tests.
MANUAL PUSH: Hopefully trivially fixes some orange CLOSED TREE.
2022-02-03 22:29:02 +01:00
Emilio Cobos Álvarez
488c7066ed Bug 1718220 - Make favicons regular HTML images. r=dao
The code for rendering these is better than for <xul:image>. Remove
validate="never" because it'd do nothing with HTML images and we don't
need this (favicons are data: URIs so they are always cached / never
revalidated).

Differential Revision: https://phabricator.services.mozilla.com/D137746
2022-02-03 18:35:25 +00:00
Barret Rennie
13576ebfcd Bug 1752183 - Support remote images in Spotlight r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D137210
2022-02-03 18:16:05 +00:00
Tim Huang
90cbe9a70b Bug 1753231 - Disable dFPI heuristic in the test browser_bug906190.js. r=pbz
The test browser_bug906190.js will trigger the dFPI heuristic that will
create an unnecessary 3rd party cookie permission and it may affect
following tests. So, we disable the dFPI heuristic in the test,
then the heuristic won't be triggered.

Differential Revision: https://phabricator.services.mozilla.com/D137754
2022-02-03 15:03:25 +00:00
mcheang
d28e21ce8c Bug 1748923 - Show Search Engine Removal Infobar on restart or 5 seconds idle. r=Standard8,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D136818
2022-02-03 08:02:49 +00:00
Cosmin Sabou
33e28b3002 Backed out changeset e00a268f35f3 (bug 1564738) for causing Bug 1753106 as requested by emk. 2022-02-03 08:42:46 +02:00
Iulian Moraru
8754f82979 Backed out 2 changesets (bug 1752183) for causing multiple failures. CLOSED TREE
Backed out changeset b85880f20aa5 (bug 1752183)
Backed out changeset c4bd523a463a (bug 1752183)
2022-02-03 07:33:40 +02:00
Iulian Moraru
29074fb140 Backed out changeset 8e0d1f35d3cc (bug 1748923) for causing mochitest failures on browser_ProcessHangNotifications.js. CLOSED TREE 2022-02-03 07:33:00 +02:00
Barret Rennie
9efe262155 Bug 1752183 - Support remote images in Spotlight r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D137210
2022-02-03 04:39:42 +00:00
mcheang
c160b33ac4 Bug 1748923 - Show Search Engine Removal Infobar on restart or 5 seconds idle. r=Standard8,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D136818
2022-02-03 03:56:20 +00:00
Butkovits Atila
b2fb71d2b1 Bug 1705492 - disable browser_tabopen.js on Mac_opt and Linux_opt for frequent failures. r=intermittent-reviewers,MasterWayZ DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D137592
2022-02-02 01:59:40 +00:00
Joel Maher
a261492460 Bug 1750839 - Enable fission browser-chrome for variants. r=mccr8,releng-reviewers,gbrown
Differential Revision: https://phabricator.services.mozilla.com/D136512
2022-02-01 19:30:34 +00:00
Kashav Madan
24b78009fd Bug 1564738 - Unconditionally call TabBarVisbility.update() when adding "multiple" tabs. r=Gijs CLOSED TREE
The regressing bug (bug 1448286) removed a redundant call to
gBrowser.tabContainer.updateVisibility. It appears that removed call was
necessary for restoring the tabbar of windows that were originally opened as
dialogs.

In D53692, we tried to avoid the extra cost of removing and readding the tab if
we were restoring a single-tabbed window, but it turns out that it's required to
get around the above.

Differential Revision: https://phabricator.services.mozilla.com/D124358
2022-01-31 23:19:30 +00:00
Cosmin Sabou
1df7c6105f Backed out changeset 78000a724660 (bug 1564738) for tab related bc failures. CLOSED TREE 2022-02-01 02:39:12 +02:00
Kashav Madan
97503b0cc7 Bug 1564738 - Unconditionally call TabBarVisbility.update() when adding "multiple" tabs, r=Gijs
The regressing bug (bug 1448286) removed a redundant call to
gBrowser.tabContainer.updateVisibility. It appears that removed call was
necessary for restoring the tabbar of windows that were originally opened as
dialogs.

In D53692, we tried to avoid the extra cost of removing and readding the tab if
we were restoring a single-tabbed window, but it turns out that it's required to
get around the above.

Differential Revision: https://phabricator.services.mozilla.com/D124358
2022-01-31 23:19:30 +00:00
Masatoshi Kimura
66e773f594 Bug 1752683 - Stop passing 8.3 names to NSS for SQLite db paths. r=keeler,florian
We pass 8.3 names to NSS to avoid non-ASCII characters because NSS still
depends on the system code page (although this workaround is not effective on
East-Asian locales).

We don't have to use 8.3 names to NSS for SQLite db paths because SQLite
always use UTF-8 for file names.

Differential Revision: https://phabricator.services.mozilla.com/D137379
2022-01-31 19:43:36 +00:00
Hannah Peuckmann
9e561c3134 Bug 1750164 - Hand over the proper unit of time from ClearDataService to PermissionManager. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D136391
2022-01-31 16:33:33 +00:00
Benjamin VanderSloot
dc8b65ef45 Bug 1749995 - Make tests in browser/base/content/test/ dFPI compatible, r=mossop,anti-tracking-reviewers,timhuang
We are fixing mochitests that fail when network.cookie.cookieBehavior = 5, i.e. when we enable Total Cookie Protection.
This is most often due to the test assuming that an origin will always have access to its storage state when embedded as
a third party.

My approach: Add third-party storage permission to the favicon's origin (http://example.com) for each test.
The feature tested here assumes third-party storage, so we have to give it to expose the code paths being tested.
In this case, those paths are to send cookies with a favicon request when `crossorigin="use-credentials"` in the favicon's link tag.

Differential Revision: https://phabricator.services.mozilla.com/D136600
2022-01-31 14:20:59 +00:00
Mark Banner
9b90775450 Bug 1751275 - Add a snapshot monitor for triggering snapshot group builders. r=mossop
Depends on D135706

Differential Revision: https://phabricator.services.mozilla.com/D136526
2022-01-31 12:07:27 +00:00
Paul Zuehlcke
5763da8555 Bug 1749377 - Use prefersColorSchemeOverride to inherit dark PBM theme for prompts and pageInfo window. r=desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D136931
2022-01-29 14:24:58 +00:00
Dão Gottwald
068ad60ae4 Bug 1752344 - Stop re-throwing exceptions in addTab(). r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D137151
2022-01-28 17:40:12 +00:00
Emilio Cobos Álvarez
b564f8c7b1 Bug 1751484 - Remove expensive, barely perceptible transition that triggers at unwanted times. r=dao
See https://bugzilla.mozilla.org/show_bug.cgi?id=1751484#c3, this
transition triggers on all tabs whenever the visibility of an ancestor
changes (like it does for DOM full-screen).

I think this is barely perceptible (it only applies visibility: hidden
for one frame, tab open animation looks equally neat on my machine
without it), so removing this is easier, but let me know if you instead
want to add an attribute to the tab to stop applying the transition, or
something of that sort around here:

  https://searchfox.org/mozilla-central/rev/f7eeca4e34daea900fbedbc392c8c99f90923143/browser/base/content/tabbrowser-tabs.js#171

Differential Revision: https://phabricator.services.mozilla.com/D136667
2022-01-28 15:32:43 +00:00
Emilio Cobos Álvarez
3e3daec33d Bug 1751733 - Account for tab close icon size in browser_tabopen.js. r=florian
Whether the overflow happens intentionally or not, it wasn't caused by
the regressing patch so I think we should probably just do this for now.

Differential Revision: https://phabricator.services.mozilla.com/D137289
2022-01-28 15:32:27 +00:00
Sammy Khamis
3f6b2b72fc Bug 1643752 - Sort send tab targets by last used r=markh,vbudhram
Differential Revision: https://phabricator.services.mozilla.com/D134722
2022-01-27 19:14:35 +00:00
Emilio Cobos Álvarez
cca6dcd89b Bug 1751733 - Dump some debug info in test. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D136804
2022-01-27 12:35:54 +00:00
Mike Conley
1c40e4c136 Bug 1751560 - Use title-cased File menu strings for macOS dock menu items. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D137060
2022-01-26 19:44:39 +00:00
Julien Wajsberg
220542aa8c Bug 1639716 - [utilityOverlay] Provide a callback in openLinkIn to report when a content browser is created r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D133375
2022-01-26 17:26:22 +00:00
Julien Wajsberg
ff988ebecd Bug 1639716 - [profiler] Remove the profiler disabling by private browsing r=jdescottes,gerald,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D129417
2022-01-26 17:26:21 +00:00
Julien Wajsberg
3f29e1ff88 Bug 1745208 - [utilityOverlay] Add a new parameter "forceNonPrivate" to openLinkIn r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D133378
2022-01-26 17:26:20 +00:00
Julien Wajsberg
b461799fc5 Bug 1745208 - [utilityOverlay] Make getTopWin take an option parameter r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D133376
2022-01-26 17:26:19 +00:00
Julien Wajsberg
bdb6783a8a Bug 1745208 - [utilityOverlay] Add new tests for openWebLinkIn r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D134184
2022-01-26 17:26:19 +00:00
Gijs Kruitbosch
867dbaa85b Bug 1678965 - Part 2: set cross opener group for openLinkIn tabs opened as new tabs, r=dao
Depends on D100152

Differential Revision: https://phabricator.services.mozilla.com/D136176
2022-01-25 17:42:45 +00:00
Cristian Tuns
f87106958c Backed out changeset d67ad48adb3c (bug 1751484) for increasing the failure rate on mochitest failures on Bug 1751733 CLOSED TREE 2022-01-25 04:13:19 -05:00
Emilio Cobos Álvarez
574d41e30e Bug 1751733 - Refactor condition for readability in browser_tabopen.js. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D136783
2022-01-24 22:57:58 +00:00
Mike Kaply
0f2af8604b Bug 1632058 - Always get distribution values from default prefs. r=preferences-reviewers,jaws
Differential Revision: https://phabricator.services.mozilla.com/D93805
2022-01-24 20:46:38 +00:00
Emilio Cobos Álvarez
f6dbe8998c Bug 1751484 - Remove expensive, barely perceptible transition that triggers at unwanted times. r=dao
See https://bugzilla.mozilla.org/show_bug.cgi?id=1751484#c3, this
transition triggers on all tabs whenever the visibility of an ancestor
changes (like it does for DOM full-screen).

I think this is barely perceptible (it only applies visibility: hidden
for one frame, tab open animation looks equally neat on my machine
without it), so removing this is easier, but let me know if you instead
want to add an attribute to the tab to stop applying the transition, or
something of that sort around here:

  https://searchfox.org/mozilla-central/rev/f7eeca4e34daea900fbedbc392c8c99f90923143/browser/base/content/tabbrowser-tabs.js#171

Differential Revision: https://phabricator.services.mozilla.com/D136667
2022-01-24 14:02:18 +00:00
aminomancer
c95531067d Bug 1591040 - show both fullscreen and normal toolbar/tabstrip context menus in full screen, r=jaws,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D131493
2022-01-21 22:52:24 +00:00
Andrew Creskey
30948ff437 Bug 1750100 - Add SnapshotGroups and API r=Standard8,mossop
SnapshotGroups will allow users, as well as our heuristics, to group various Snapshots together in meaningful ways.

Differential Revision: https://phabricator.services.mozilla.com/D135706
2022-01-21 21:02:22 +00:00
Joel Maher
d55f10c407 Bug 1751264 - adjust tests that should be passing on win10. r=intermittent-reviewers,MasterWayZ
Differential Revision: https://phabricator.services.mozilla.com/D136525
2022-01-20 21:02:44 +00:00
Mark Banner
4f4dd2fbae Bug 1750974 - Extend our ESLint import-globals-from function to support absolute directories. r=Gijs,mossop
Differential Revision: https://phabricator.services.mozilla.com/D136368
2022-01-20 14:15:34 +00:00
Neil Deakin
3df939168c Bug 1748345, if deleting the default bookmark folder, reset the preference so that it is valid for later use, r=mak
Differential Revision: https://phabricator.services.mozilla.com/D136199
2022-01-20 12:21:51 +00:00
Barret Rennie
fc95d2558c Bug 1747461 - Remove FileUtils.getFile from browser/base r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D134896
2022-01-19 18:37:25 +00:00
Nick Alexander
98a644b4c8 Bug 1749435 - Use Fluent to localize bookmarks.html at run-time rather than build-time. r=flod,mak,fluent-reviewers
This modernizes an old part of the build system to not require
build-time localization at all.  That's generally preferable.

The most significant changes to the in-product functionality is to
make import localize HTML so that we can use Fluent's `data-l10n-id`.

The locale used is the user's current locale.  This is different than
the existing approach, which always uses the build-time (repack)
locale.  I believe this is a strictly superior user experience and it
may lead to future improvements where-in the default bookmarks become
truly dynamic and vary with the user's chosen locale rather than being
point-in-time decisions.

I tried to restrict these changes to only applen when we import the
default bookmarks, but I think the various layers of flags no longer
achieve this restriction in practice and the formatting and
localization will apply to all imported `bookmarks.html` files.  Since
we don't anticipate (nor ourselves write) these new things in
(respectively, to) `bookmarks.html`, and the file is already
user-controlled, I don't think this exposes any meaningful change in
functionality (or in security surface).

Some notes:

1) There's no migration of `.inc` -> `.ftl` because this is the lone
   `.inc` file.

2) I elected to prefix all strings with `default-bookmarks-`, since
   the existing names were very short and likely to collide (now or in
   the future).

3) I elected to change the HTML file name for easier searching.

4) Since the `default-bookmarks.html` file is product-specific and the
   existing tests are in `toolkit/`, I elected to not test the file
   directly in automation.

5) We removed the explicit locale (or equivalent `%LOCALE%`) since
   Mozilla properties will redirect to the appropriate language
   automatically.

Differential Revision: https://phabricator.services.mozilla.com/D135816
2022-01-19 17:02:26 +00:00