Commit Graph

11486 Commits

Author SHA1 Message Date
Karl Tomlinson
36c3664dac Bug 1809745 focus speaker selection richlistbox in prompt r=ayeddi
This cannot be done during "showing" because the richlistbox does not have a
frame at that point.

As well as enabling arrow keys, focus also clearly identifies the speaker
being considered for a permission grant.  Without focus, the selected item is
identified by subtle background color changes, and so the selected item would
not be clear in a list of two items.

Depends on D182318

Differential Revision: https://phabricator.services.mozilla.com/D182319
2023-08-10 18:29:27 +00:00
Edgar Chen
51ac31ae8a Bug 1833363 - Add test for fullscreen notification to reappear when mouse is moved to the top of the screen; r=Gijs
Depends on D178166

Differential Revision: https://phabricator.services.mozilla.com/D178174
2023-08-10 03:17:17 +00:00
Edgar Chen
7efb26f8ae Bug 1833363 - Add test for reshowing the fullscreen initial notification; r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D178166
2023-08-10 03:17:17 +00:00
Hanna Jones
20cbf2f575 Bug 1801936 - use moz-toggle in the ETP panel r=mstriemer,tgiles,desktop-theme-reviewers,flod,dao
This patch replaces both toggles in the different sub views of the ETP panel with `moz-toggle`. Previously there was a small discrepancy where we were setting an `aria-label` on one toggle but not the other. I added a method to handle updating both toggles at once to ensure they stay in sync/always receive the same updates.

Differential Revision: https://phabricator.services.mozilla.com/D176700
2023-08-09 18:18:44 +00:00
Mark Banner
85c9f645f5 Bug 1844784 - Ensure Synced Tabs in the history menu is properly removed when FxAccounts are disabled. r=sync-reviewers,places-reviewers,lina,markh
Differential Revision: https://phabricator.services.mozilla.com/D185719
2023-08-09 15:00:20 +00:00
Alexandre Poirot
3a8761d9e1 Bug 1792803 - [devtools] Stop exposing devtools resource to content to implement JSON Viewer. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D185551
2023-08-09 13:36:05 +00:00
Natalia Csoregi
f2ac649fc6 Backed out 3 changesets (bug 1847584) for causing vsync failures. CLOSED TREE
Backed out changeset bdfc3c7388cf (bug 1847584)
Backed out changeset 54b34c76db47 (bug 1847584)
Backed out changeset 03bf43b4ae07 (bug 1847584)
2023-08-09 15:47:03 +03:00
Emilio Cobos Álvarez
c6e1796127 Bug 1847584 - Account for IsUnderHiddenEmbedderElement() for BrowserChild visibility. r=smaug
Test by Gijs. Note that I removed the .isActive assertion, because this doesn't
affect activeness.

We could make that change too, but that's a bigger change, and I think we want
to do this regardless.

The CAN_RUN_SCRIPT annotations are obsolete (they come from bug 1582042
which directly fired docshell activity events, but that's not true
anymore, bug 1635914 changed the setup a bit later).

Differential Revision: https://phabricator.services.mozilla.com/D185643
2023-08-09 10:57:42 +00:00
Cristian Tuns
58a7ca7e9b Backed out changeset a8267c9267da (bug 1840902) for causing mochitest failures in automation.py CLOSED TREE 2023-08-08 19:40:55 -04:00
Harshit Sohaney
e3847ba415 Bug 1840902 - Adjusted browser chrome tests under the Anti-tracking test suite to support only secure context storage access. r=bvandersloot
Depends on D182366

Differential Revision: https://phabricator.services.mozilla.com/D184979
2023-08-08 20:21:44 +00:00
ganna
61375327dd Bug 1840396 - Remove exception for moz-message-bar in browser_all_files_referenced. r=tgiles,hjones CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D185460
2023-08-04 17:24:34 +00:00
Eemeli Aro
bf0a6574ee Bug 1760047 - Migrate browser-siteProtections.js to Fluent. r=anti-tracking-reviewers,fluent-reviewers,flod,bvandersloot
The `PanelMultiView.showSubView()` method needed to be made a bit more robust
for titles set by DOM localization rather than directly.

The following messages are dropped during the migration, as they are unused:
- contentBlocking.trackersView.blocked.label
- contentBlocking.cookiesView.firstParty.empty.label
- contentBlocking.cookiesView.trackers.empty.label
- contentBlocking.cookiesView.thirdParty.empty.label
- contentBlocking.fingerprintersView.blocked.label
- contentBlocking.cryptominersView.blocked.label

Differential Revision: https://phabricator.services.mozilla.com/D178829
2023-08-04 15:50:49 +00:00
Gregory Pappas
a57c4f9405 Bug 1845311 - [Part 2] Use ChromeUtils.defineLazyGetter in more places r=arai,webcompat-reviewers,necko-reviewers,extension-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,sync-reviewers,anti-tracking-reviewers,tabbrowser-reviewers,bytesized,twisniewski,sgalich,mak,kershaw,sclements,pbz,robwu,geckoview-reviewers,amejiamarmol
Differential Revision: https://phabricator.services.mozilla.com/D184623
2023-08-01 23:01:02 +00:00
Frederic Wang
ef451ba1b0 Bug 1845461 - Add deprecation warning and use counter for deprecated mathvariant usages. r=emilio,flod
Differential Revision: https://phabricator.services.mozilla.com/D184561
2023-08-01 07:47:15 +00:00
Danny Colin
a83220710b Bug 1633946 - Add tooltip to List All Tabs r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D183102
2023-07-31 13:54:31 +00:00
Mark Banner
5797c921a8 Bug 1845252 - Update consumers of FxAccountsCommon to import the ES module directly. r=markh,settings-reviewers,credential-management-reviewers,sync-reviewers,sgalich,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D184780
2023-07-31 13:05:44 +00:00
Iulian Moraru
d008a49ace Backed out changeset 9c19f2cfc93a (bug 1845461) for causing Bug 1845910. 2023-07-30 16:50:35 +03:00
Stanca Serban
f597936605 Backed out 2 changesets (bug 1845252) for causing mochitests failures in browser_fxa_web_channel.js. CLOSED TREE
Backed out changeset d58bbd55cb35 (bug 1845252)
Backed out changeset 683a87892126 (bug 1845252)
2023-07-28 21:29:30 +03:00
Mark Banner
cb680469ad Bug 1845252 - Update consumers of FxAccountsCommon to import the ES module directly. r=markh,settings-reviewers,credential-management-reviewers,sync-reviewers,sgalich,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D184780
2023-07-28 17:30:39 +00:00
William Durand
7adc06f9b7 Bug 1844004 - Only set ERROR_USER_CANCELED when the cancellation originated from the user. r=geckoview-reviewers,robwu,owlish
Differential Revision: https://phabricator.services.mozilla.com/D184478
2023-07-28 08:09:01 +00:00
Frederic Wang
bad47dcc35 Bug 1845461 - Add deprecation warning and use counter for deprecated mathvariant usages. r=emilio,flod
Differential Revision: https://phabricator.services.mozilla.com/D184561
2023-07-28 03:22:47 +00:00
Tooru Fujisawa
2deda85aa8 Bug 1844956 - Part 1: Use fluent-rs to collect TextElement in browser_misused_characters_in_strings.js. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D184329
2023-07-25 15:35:12 +00:00
Tooru Fujisawa
010227ca40 Bug 1835279 - Add support for ES modules in PromiseWorker. r=Gijs
In order to use the same implementation between regular script and module script,
convert PromiseWorker.js into a template, which is processed by GeneratePromiseWorkerScript.py.

Differential Revision: https://phabricator.services.mozilla.com/D184282
2023-07-25 15:33:46 +00:00
Karl Tomlinson
2768b9df61 Bug 1842962 allow audio output with double click on speaker name r=pbz
deviceIndex is removed from devices in simulateAudioOutputRequest() because
this is not used and not on nsIMediaDevice.

Differential Revision: https://phabricator.services.mozilla.com/D184056
2023-07-25 04:44:33 +00:00
Mark Banner
c85b64a49b Bug 1845064 - Update files in browser/base/content/test/static/ to pass the rejected-words linter. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D184365
2023-07-24 15:23:06 +00:00
Mark Banner
dce63849ec Bug 1801416 - Remove remaining references to jsm files in browser_all_files_referenced.js. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D184364
2023-07-24 15:23:05 +00:00
Stanca Serban
8499e338c9 Backed out 2 changesets (bug 1845064, bug 1801416) for causing mochitests failures in browser_parsable_css.js. CLOSED TREE
Backed out changeset 0072ca947732 (bug 1845064)
Backed out changeset 97d46689ef0a (bug 1801416)
2023-07-24 23:23:24 +03:00
Mark Banner
2505bf9b5c Bug 1845064 - Update files in browser/base/content/test/static/ to pass the rejected-words linter. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D184365
2023-07-24 15:23:06 +00:00
Mark Banner
75c69ae18d Bug 1801416 - Remove remaining references to jsm files in browser_all_files_referenced.js. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D184364
2023-07-24 15:23:05 +00:00
Noemi Erli
d4d2775671 Backed out 2 changesets (bug 1801416, bug 1845064) for causing failures in browser_all_files_referenced.js CLOSED TREE
Backed out changeset 6588b692c52d (bug 1845064)
Backed out changeset 29325effffdb (bug 1801416)
2023-07-24 22:07:49 +03:00
Mark Banner
97f64cdbe2 Bug 1845064 - Update files in browser/base/content/test/static/ to pass the rejected-words linter. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D184365
2023-07-24 15:23:06 +00:00
Mark Banner
281827afca Bug 1801416 - Remove remaining references to jsm files in browser_all_files_referenced.js. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D184364
2023-07-24 15:23:05 +00:00
Malte Juergens
72bf8c2b4e Bug 1757297: Only work with http scheme for HTTPS-Only exceptions r=freddyb,settings-reviewers,Gijs
- Update the HTTPS-Only dropdown in the site identity pane to always set exceptions for the http version of the current origin.
- Add new parameter `forcedHTTP` to `gPermissionManager`, in order to only allow origins with a http scheme to be added in the HTTPS-Only section of the settings. This means when a https URL is added as an exeption, it will automatically be converted into a http one.
- Add a migration to convert all existing HTTPS-Only exceptions with a https scheme to a http scheme.
- Update `browser_https_only_exceptions.js` and `browser_identityPopup_HttpsOnlyMode.js` to account for this new behaviour.

Differential Revision: https://phabricator.services.mozilla.com/D182761
2023-07-24 13:31:19 +00:00
Butkovits Atila
27c443fa0a Backed out changeset c0352b508434 (bug 1843922) for causing failures at browser_new_tab_bookmarks_toolbar_height.js. CLOSED TREE 2023-07-19 16:56:24 +03:00
Dão Gottwald
c63629bdf4 Bug 1843922 - Fix and refactor browser_new_tab_bookmarks_toolbar_height.js to be less flaky. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D183872
2023-07-19 13:02:18 +00:00
Tooru Fujisawa
c734647bbc Bug 1766765 - Update the comment that mentions ContentLinkHandler.jsm to point FaviconLoader.sys.mjs instead. r=Gijs DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D183641
2023-07-18 19:59:26 +00:00
Marc Seibert
40a2c72bd0 Bug 1843875 - Add "Search History" option in the history menu within the menubar.r=dao,fluent-reviewers,flod
Depends on D182664

Differential Revision: https://phabricator.services.mozilla.com/D183764
2023-07-18 16:35:27 +00:00
Emilio Cobos Álvarez
ab25174385 Bug 1843663 - Remove pre windows-10-specific media queries and styles. r=dao,Gijs,handyman,settings-reviewers
Some basic clean-up. I want to do this before doing bigger changes in
bug 1843044.

There's tons more code that can get cleaned-up on the widget side, but
let's start with this.

Differential Revision: https://phabricator.services.mozilla.com/D183622
2023-07-18 14:11:33 +00:00
Dão Gottwald
bbec0cb63b Bug 1705215 - Stop resizing all background browsers when showing the bookmarks toolbar only on the new tab page. r=Gijs,tabbrowser-reviewers,mak
Differential Revision: https://phabricator.services.mozilla.com/D183493
2023-07-17 15:59:59 +00:00
Iulian Moraru
d9b9508194 Backed out changeset 99bcff922822 (bug 1707735) for causing bc failures on browser_devices_get_user_media_in_xorigin_frame.js. CLOSED TREE 2023-07-14 08:29:50 +03:00
Abhishek Madan
531a95e649 Bug 1748138 - Modified cache checks to account for partition key taken from content process. r=anti-tracking-reviewers,timhuang,mconley a=reland
Differential Revision: https://phabricator.services.mozilla.com/D183190
2023-07-13 19:20:38 +00:00
Cristina Horotan
b867f0d1e4 Backed out changeset 93efae7712c8 (bug 1748138) for causing bc failures at browser_devices_get_user_media_in_xorigin_frame.js 2023-07-14 06:36:57 +03:00
Abhishek Madan
a45ed1ada1 Bug 1748138 - Modified cache checks to account for partition key taken from content process. r=anti-tracking-reviewers,timhuang,mconley
Differential Revision: https://phabricator.services.mozilla.com/D183190
2023-07-13 19:20:38 +00:00
Jan-Ivar Bruaroey
ecceec2660 Bug 1707735 - Turn browser/base/content/test/webrtc tests back on on apple silicon. r=mjf
Differential Revision: https://phabricator.services.mozilla.com/D183443
2023-07-13 17:19:49 +00:00
Mark Banner
544ecba3af Bug 1837176 - Convert imports of httpd.js to consume the ES module directly. r=necko-reviewers,webcompat-reviewers,extension-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,cookie-reviewers,twisniewski,robwu,issammani,bytesized,pbz,valentin
Differential Revision: https://phabricator.services.mozilla.com/D181159
2023-07-12 13:38:34 +00:00
Karl Tomlinson
40295c2572 Bug 1800286 use a richlistbox for speaker selection r=pbz,desktop-theme-reviewers,dao
Setting the selectedItem of a richlistbox to null is a no-op and leaves
previous state remaining, so the selectedIndex is explicitly set instead of
depending on connectedCallback() to do so.

Differential Revision: https://phabricator.services.mozilla.com/D182318
2023-07-12 01:35:45 +00:00
Gijs Kruitbosch
a9a933fb6c Bug 1842141 - fix page style no style menu checked state after reloads or same-origin navigations, r=mconley
The issue here is that authorStyleDisabledDefault persists on the BrowsingContext.
This means it stays set/unset if the BC navigates same-origin (including
reloads). But the actor was keeping its own copy, on the actor, and the actor
gets destroyed in those circumstances, leading to the frontend and the internal
state no longer being in sync.

This patch addresses this by no longer keeping our own state and just reading
the browsingcontext's field directly.

This is a tiny bit hackish because technically, whether this is the 'default'
is not the same as whether the author style is actually disabled, but in
practice the child actor always sets the two at the same time, and it is
the simpler fix (vs. trying to mirror state to the parent some more).

Differential Revision: https://phabricator.services.mozilla.com/D183188
2023-07-11 22:36:31 +00:00
Malte Juergens
9efcf29fd2 Bug 1838183: Include HTTPS-First in current HTTPS-Only exemption options on site identity pane r=freddyb,fluent-reviewers
Depends on D182322

Differential Revision: https://phabricator.services.mozilla.com/D181356
2023-07-11 11:07:24 +00:00
Emilio Cobos Álvarez
c8d2c23403 Bug 1824886 - Rewrite AnonymousContent to use a shadow tree. r=smaug,TYLin,sfoster,devtools-reviewers,nchevobbe
Subtle things:

 * We now have shadow trees in NAC, inception! Only a couple lines of
   code in the style system had to be changed to match :host rules and
   so properly.

 * Had to make highlighters.css contentaccessible, because otherwise we
   can't load it from the shadow tree. I don't think it's a big deal.

 * I removed some of the code from highlighters.css that claimed that
   stuff inherited from the html element. That's just no longer true.

 * Had to switch from `setAttribute("style", ...)` to `.style = ...;`.
   This is needed because CSSOM from chrome code bypasses CSP (as
   AnonymousContent did), but setAttribute() doesn't, see bug 1424474.

Differential Revision: https://phabricator.services.mozilla.com/D173998
2023-07-09 11:34:05 +00:00
Sam Foster
1bd6b02cd7 Bug 1819675 - Introduce a feature pref to toggle the recently-closed tabs from all windows behavior.r=sclements,dao,extension-reviewers,fxview-reviewers,robwu,sessionstore-reviewers
* Add a default-true pref to provide an escape hatch allowing us to revert to previous behavior
* in which recently-closed tabs are per-window,
* and undoing closed tabs restores them to the window they were closed from.
* Ensure we set the pref for tests which depend on its value
* Add some spot-checks in tests with the pref off

Differential Revision: https://phabricator.services.mozilla.com/D179574
2023-07-06 22:49:52 +00:00