Commit Graph

10810 Commits

Author SHA1 Message Date
Michael Froman
85fab1fecd Bug 1712012 - disable browser_devices_get_user_media_unprompted_access.js for legacyGlobalIndicator case. r=bwc
Temporarily disable this test on linux for the legacyGlobalIndicator case
since it seems to consistently timeout.

Differential Revision: https://phabricator.services.mozilla.com/D139180
2022-02-19 01:35:46 +00:00
Sam Foster
774e230229 Bug 1721229 - Remove the WebPayments UI code from the tree. r=MattN,desktop-theme-reviewers,edenchuang,dao
* Remove the contents of the browser/components/payments directory
* Excepting the nsIPaymentUIService implementation and its component registration - to allow the /feature-policy/payment-allowed-by-feature-policy* tests to continue to run and pass
* Update docs index to remove the web payments UI source docs
* Remove residual rules from browser CSS
* Remove references from the static analysis tests

Differential Revision: https://phabricator.services.mozilla.com/D127329
2022-02-17 20:32:13 +00:00
Emilio Cobos Álvarez
f5419f9114 Bug 1755737 - Make layout.css.dpi a static pref. r=jfkthame,layout-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D138921
2022-02-16 21:13:58 +00:00
Butkovits Atila
b4feb6fffb Backed out 2 changesets (bug 1755737) for causing failures at browser_test_feature_preferencereads.js. CLOSED TREE
Backed out changeset c2609661965d (bug 1755737)
Backed out changeset 34596510350a (bug 1755737)
2022-02-16 21:53:03 +02:00
Emilio Cobos Álvarez
77bdacc25a Bug 1755737 - Make layout.css.dpi a static pref. r=jfkthame,layout-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D138921
2022-02-16 17:39:57 +00:00
Emilio Cobos Álvarez
f3a234ff38 Bug 1753836 - Apparently we access layout.css.dpi a bit less.
Note that it's not 100% clear whether this bug is responsible for the
improvement or not, but given it's an improvement...

MANUAL PUSH: Unexpected pass CLOSED TREE
2022-02-16 17:18:55 +01:00
Masayuki Nakano
33d2450f2a Bug 1191862 - part 3: Make GlobalKeyListener not reserve key combination which is mapped to an edit command or a navigation command by native key bindings r=NeilDeakin,smaug
Users may map reserved shortcut keys of Firefox/Thunderbird as an editing
command or a navigation command.  Therefore if and only if an editable element
has focus and a reserved key combination is mapped to an editing command or
a navigation command by the system settings, we should allow to dispatch it
into the content and work it as what user expects.

With this change, keyboard only users may loose some shortcut keys to leave
from a web content which blocks keyboard focus in it.  However, there may
be another reserved shortcut keys to escape from such web apps only with
keyboard because it's hard to think that all reserved shortcut keys conflict
with users' settings.

Differential Revision: https://phabricator.services.mozilla.com/D138009
2022-02-15 08:00:06 +00:00
Neil Deakin
83d3315263 Bug 1681712, wait for the MozAfterPaint event before swapping remote browsers, so that tab switching doesn't get confused when the browser gets swapped out, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D138386
2022-02-11 16:24:47 +00:00
Hannah Peuckmann
567cd16d6e Bug 1681701 - Enable exceptions in sanitization. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D136463
2022-02-10 16:29:47 +00:00
Butkovits Atila
e32639e59b 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
Masatoshi Kimura
ac445526fc 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
ea40dd3de8 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
Tim Huang
b8eb4ea961 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
Cosmin Sabou
71c36bb525 Backed out changeset e00a268f35f3 (bug 1564738) for causing Bug 1753106 as requested by emk. 2022-02-03 08:42:46 +02:00
Butkovits Atila
0055fd0e43 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
6d769aee7c 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
c46f450d48 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
64b27b323d Backed out changeset 78000a724660 (bug 1564738) for tab related bc failures. CLOSED TREE 2022-02-01 02:39:12 +02:00
Kashav Madan
c87f35ed2c 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
f145fd1ae9 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
42501510de 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
490b06ccf2 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
229c7ffbc4 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
Emilio Cobos Álvarez
c88733e5c0 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
4dc06d1612 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
031e3b3665 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
fde68ebcab 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
2dea2aabe0 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
81a07b0709 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
91b29e2b81 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
Emilio Cobos Álvarez
8e2abac8a7 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
aminomancer
7aebd7f3db 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
b03859cb29 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
498885f979 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
Barret Rennie
82a70e2641 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
Norisz Fay
d35104b746 Backed out changeset e23259733a51 (bug 1591040) for causing bc failures on browser_fullscreen_context_menu.js CLOSED TREE 2022-01-19 13:32:54 +02:00
aminomancer
3394fc2082 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-19 10:14:34 +00:00
Iulian Moraru
05a366224b Backed out 2 changesets (bug 1721229) for causing multiple crashes on payment-allowed-by-feature-policy-attribute-redirect-on-load.https.sub.html.
Backed out changeset 964d52daa110 (bug 1721229)
Backed out changeset 42b194ca04c4 (bug 1721229)
2022-01-19 04:10:45 +02:00
Sam Foster
72f2f5b11d Bug 1721229 - Remove the WebPayments UI code from the tree. r=MattN
* Remove the whole browser/components/payments directory
* ..including the nsIPaymentUIService implementation and its component registration
* Update docs index to remove the web payments UI source docs
* Remove residual rules from browser CSS
* Remove references from the static analysis tests

Differential Revision: https://phabricator.services.mozilla.com/D127329
2022-01-18 21:25:44 +00:00
Emilio Cobos Álvarez
017c3bb308 Bug 1743047 - Split reveal-password and button and context-menu prefs. r=Gijs
The reveal password button might or might not be web-compatible, but it
might be worth having a separate pref for the context-menu entry.

Depends on D136086

Differential Revision: https://phabricator.services.mozilla.com/D136087
2022-01-17 14:18:52 +00:00
Emilio Cobos Álvarez
c6ab316b20 Bug 1743047 - Use "reveal" rather than show terminology consistently for the reveal password button. r=Gijs,fluent-reviewers
The pseudo-class and nsContextMenu context attribute were using reveal,
the pseudo-element and webidl attribute were using "show".

Use reveal consistently and update the accesskey so that there aren't
conflicts with existing commands. Also enable the feature in
browser_contextmenu_input.js so that this change is tested.

Differential Revision: https://phabricator.services.mozilla.com/D136086
2022-01-17 14:18:51 +00:00
Lyubomir Parvanov
1f0c014568 Bug 1731050 - Stop displaying hidden tabs in Recent Tabs popup. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D134939
2022-01-17 12:13:08 +00:00
Paul Zuehlcke
65a4313d49 Bug 1742433 - Test, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D131426
2022-01-17 11:49:19 +00:00
Emilio Cobos Álvarez
64175b6c73 Bug 1744009 - Simplify combobox <select> code. r=mconley,dholbert
With this patch on its own we get some a11y tests failures, but those
are fixed on a later patch.

Combobox select no longer creates frames for its <options>, nor an
nsListControlFrame. Instead, it computes its right intrinsic size using
the largest size of the options. This is better, because we render the
option text using the select style so if the select and option styles
are mismatched it'd cause changes in the size of the select when text
changes. See the following in a build without the patch, for example:

  <select>
    <option>ABC</option>
    <option style="font-size: 1px">Something long</option>
  </select>

This seems like a rather obscure case, but it's important to get it
right, see bug 1741888.

With this patch we use the same setup in content and parent processes
(this needs bug 1596852 and bug 1744152). This means we can remove a
bunch of the native view and popup code in nsListControlFrame. A couple
browser_* tests are affected by this change and have been tweaked
appropriately (the changes there are trivial).

Not creating an nsListControlFrame for dropdown select means that we
need to move a bunch of the event handling code from nsListControlFrame
to a common place that nsComboboxControlFrame can also use. That place
is HTMLSelectEventListener, and I think the setup is much nicer than
having the code intertwined with nsListControlFrame. It should be
relatively straight-forward to review, mostly moving code from one part
to another.

Another thing that we need to do in HTMLSelectEventListener that we
didn't use to do is listening for DOM mutations on the dropdown. Before,
we were relying on changes like text mutations triggering a reflow of
the listcontrolframe, which also triggered a reflow of the
comboboxcontrolframe, which in turn updated the text of the anonymous
content. Now we need to trigger that reflow manually.

There are some further simplifications that can be done after this
lands (cleanup naming of openInParentProcess and so on, among others),
but I'd rather land this first (after the merge of course) and work on
them separately.

Differential Revision: https://phabricator.services.mozilla.com/D132719
2022-01-17 11:10:05 +00:00
Kershaw Chang
a0b456c247 Bug 1634121 - Add tests for invalid Content-Disposition header, r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D135688
2022-01-17 09:21:54 +00:00
Marian-Vasile Laza
84e23c5194 Backed out 2 changesets (bug 1744009) for causing reftest failures on select-3.html.
Backed out changeset 3e44e31d3d12 (bug 1744009)
Backed out changeset 619389788775 (bug 1744009)
2022-01-17 11:14:27 +02:00
Emilio Cobos Álvarez
d4e563138d Bug 1744009 - Simplify combobox <select> code. r=mconley,dholbert
With this patch on its own we get some a11y tests failures, but those
are fixed on a later patch.

Combobox select no longer creates frames for its <options>, nor an
nsListControlFrame. Instead, it computes its right intrinsic size using
the largest size of the options. This is better, because we render the
option text using the select style so if the select and option styles
are mismatched it'd cause changes in the size of the select when text
changes. See the following in a build without the patch, for example:

  <select>
    <option>ABC</option>
    <option style="font-size: 1px">Something long</option>
  </select>

This seems like a rather obscure case, but it's important to get it
right, see bug 1741888.

With this patch we use the same setup in content and parent processes
(this needs bug 1596852 and bug 1744152). This means we can remove a
bunch of the native view and popup code in nsListControlFrame. A couple
browser_* tests are affected by this change and have been tweaked
appropriately (the changes there are trivial).

Not creating an nsListControlFrame for dropdown select means that we
need to move a bunch of the event handling code from nsListControlFrame
to a common place that nsComboboxControlFrame can also use. That place
is HTMLSelectEventListener, and I think the setup is much nicer than
having the code intertwined with nsListControlFrame. It should be
relatively straight-forward to review, mostly moving code from one part
to another.

Another thing that we need to do in HTMLSelectEventListener that we
didn't use to do is listening for DOM mutations on the dropdown. Before,
we were relying on changes like text mutations triggering a reflow of
the listcontrolframe, which also triggered a reflow of the
comboboxcontrolframe, which in turn updated the text of the anonymous
content. Now we need to trigger that reflow manually.

There are some further simplifications that can be done after this
lands (cleanup naming of openInParentProcess and so on, among others),
but I'd rather land this first (after the merge of course) and work on
them separately.

Differential Revision: https://phabricator.services.mozilla.com/D132719
2022-01-16 23:31:22 +00:00
Punam Dahiya
aa5bdcaeb1 Bug 1741795 - Make More from Mozilla content customizable by partner repacks r=preferences-reviewers,mviar,hectorz
Differential Revision: https://phabricator.services.mozilla.com/D134574
2022-01-14 22:57:34 +00:00
Niklas Baumgardner
10436f78e1 Bug 1741736 - Add overlay to Screenshots component implementation. r=sfoster,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D132832
2022-01-14 18:06:11 +00:00
Sandor Molnar
a1932946a8 Backed out changeset fb53fb5009a4 (bug 1741736) for causing browser-chrome failures in browser_parsable_css. CLOSED TREE 2022-01-14 17:32:52 +02:00