Граф коммитов

76687 Коммитов

Автор SHA1 Сообщение Дата
Drew Willcoxon f2cfda3e61 Bug 1731373 - Add a hook for Firefox Suggest to notify TelemetryEnvironment when it updates. r=chutten
As we discussed, this adds a new observer service notification that Firefox
Suggest can send when it's done updating prefs as a result of a scenario change
and needs TelemetryEnvironment to re-cache them. That's only necessary on
startup when the scenario is set initially (as described in the bug), but this
revision does it unconditionally. That shouldn't be a problem because the only
other time the scenario changes is when Nimbus enrolls/unenrolls users, which
only happens at most twice -- or a small number of times maybe, if the user is
enrolled multiple times for some reason. The point is that it's a rare event and
not, like, multiple times a session.

Differential Revision: https://phabricator.services.mozilla.com/D126017
2021-09-18 00:37:15 +00:00
Dan Mosedale 5325ae98f2 Bug 1730621 - avoid showing captive portal VPN promo in some cases, r=andreio
Differential Revision: https://phabricator.services.mozilla.com/D125832
2021-09-17 23:31:40 +00:00
Thomas Wisniewski 36b3cf3bf5 Bug 1728594 - fix a SmartBlock regression which causes some site links to not be clickable; r=johannh,ksenia,webcompat-reviewers
- gpt.js expends dataLayer.push to return true, or it will cancel clicks on the relevant tracked links.

Differential Revision: https://phabricator.services.mozilla.com/D126009
2021-09-17 21:21:40 +00:00
Erik Nordin 87bb12143c Bug 1731179 - Remove browser-doctype.inc from browser.xhtml r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D125913
2021-09-17 18:24:53 +00:00
Andrei Oprea 9c49c31f22 Bug 1730497 - Add targeting attribute to detect browser pinned status r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D125858
2021-09-17 11:54:54 +00:00
Neil Deakin 9fc3821798 Bug 1690390, add a flag to limit telemetry collection for notification bars to just selected changes as we only want to measure shown state for the subframe crash one, r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D125735
2021-09-17 09:05:00 +00:00
Neil Deakin d3c5d06270 Bug 1690390, add ability to perform telemetry when a notification bar is shown, a button is pressed, or is dismissed. Use this for the subframe crash notification bar which currently does this a different way, r=mstriemer,chutten
Differential Revision: https://phabricator.services.mozilla.com/D107756
2021-09-17 09:04:59 +00:00
Neil Deakin a62618baa7 Bug 1690390, change appendNotification to take a smaller number of arguments: the string type value, a dictionary containing the notification details, and the button list, r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D107755
2021-09-17 09:04:59 +00:00
Harry Twyford 67c5aa9ed1 Bug 1727319 - Part 3 - Remove unused hardcoded colors in _variables.scss. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D125609
2021-09-16 21:50:30 +00:00
Harry Twyford 7285c01fa8 Bug 1727319 - Part 2 - Remove intermediary variables in _theme.scss. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D125608
2021-09-16 21:50:29 +00:00
Harry Twyford 9c8d1629d2 Bug 1727319 - Assign set of colors from bug 1727317 to the existing new tab CSS variables. r=Mardak
While this is mainly a refactoring patch, a few visible effects are expected:
- Proton Primary teal is now used correctly in dark mode. I confirmed with UX that we want this.
- Various minor elements now may use slightly different colors than before. Things like hover states and borders are now functions of the main colors on the page rather than their own hardcoded colors. While one might be able to spot differences in a side-by-side comparison, the general idea is to capture the same "feeling".

Differential Revision: https://phabricator.services.mozilla.com/D125607
2021-09-16 21:50:29 +00:00
Harry Twyford a27b5d0476 Bug 1727317 - Define set of color variables to use in newtab. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D125606
2021-09-16 21:50:29 +00:00
Narcis Beleuzu 72152613c6 Backed out 3 changesets (bug 1690390) for mochitest failures on test_notificationbox.xhtml . CLOSED TREE
Backed out changeset e6404b7424cd (bug 1690390)
Backed out changeset a161177099af (bug 1690390)
Backed out changeset cc7e02d3d418 (bug 1690390)
2021-09-16 23:41:21 +03:00
Florian Quèze 3ba2c38074 Bug 1665318 - reduce the overhead of collecting memory information for about:processes, r=dthayer.
Differential Revision: https://phabricator.services.mozilla.com/D125729
2021-09-16 19:59:56 +00:00
Neil Deakin 329382d999 Bug 1690390, add a flag to limit telemetry collection for notification bars to just selected changes as we only want to measure shown state for the subframe crash one, r=mstriemer
Depends on D107756

Differential Revision: https://phabricator.services.mozilla.com/D125735
2021-09-16 19:11:18 +00:00
Neil Deakin f26a058361 Bug 1690390, add ability to perform telemetry when a notification bar is shown, a button is pressed, or is dismissed. Use this for the subframe crash notification bar which currently does this a different way, r=mstriemer,chutten
Differential Revision: https://phabricator.services.mozilla.com/D107756
2021-09-16 19:11:17 +00:00
Neil Deakin 82501df9f7 Bug 1690390, change appendNotification to take a smaller number of arguments: the string type value, a dictionary containing the notification details, and the button list, r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D107755
2021-09-16 19:11:17 +00:00
Drew Willcoxon f0b457683b Bug 1730618 - Allow Nimbus to enable Firefox Suggest online and override the offline default. r=mythmon,preferences-reviewers,mstriemer
This reworks the fix to bug 1729776.

Currently Nimbus doesn't have a way to force the two suggestions prefs [1] on or
off. That might seem surprising since we've run experiments already. Initially
we defaulted the two prefs to true but we defaulted the separate feature-gate
pref [2] to false, and it was the feature-gate pref we controlled via Nimbus. At
some point we changed the defaults to false and then in Firefox flipped them to
true after showing the onboarding dialog. As a result we've never needed to
override the two suggestion prefs via Nimbus.

The problem now is that we default-enable offline (for US en users), so we set
all three prefs to true. For the online rollout, we need to keep the
feature-gate pref enabled but disable the suggestion prefs, and there's no way
to do that.

My first idea was to add new Nimbus variables to override the two suggestion
prefs. The prefs would keep their default true values but be overridden by
Nimbus. But that doesn't work because there's no way for Firefox to tell whether
the prefs are true because the user has opted in (overriding Nimbus) or because
they still have their default values. Setting the prefs to true on the user
branch doesn't have any effect because they're also true on the default branch.
Or maybe there's a way I don't know about to force them to true on the user
branch, but even if there were, it seems brittle to rely on a value being set on
the user branch to distinguish between the two cases. (This is a potential
problem for any prefs that are controlled by both Nimbus and the user. So far
the prefs we've been using via Nimbus have all been hidden feature-gate-type
things and implementation details.)

We already have a `quickSuggestScenario` variable. We currently use it only to
tell what we should send in the telemetry ping (bug 1729576) and whether some
parts of the prefs UI should be shown. This revision makes it much more
important by treating it as the source of truth for the user's scenario. It now
determines the default values of related prefs, including the two suggestions
prefs.

The logic is:

```
If quickSuggestScenario is non-null:
  scenario = quickSuggestScenario
Else (e.g., there's no rollout):
  If the user is US en:
    scenario = offline
  Else:
    scenario = history
```

After determining the scenario, it's set it as
`browser.urlbar.quicksuggest.scenario` on the default branch. There's an
existing pref observer in UrlbarPrefs, and I added a case for this pref so that
when it's updated we also update all the other prefs that depend on the
scenario. This way when the pref is set -- either due to Nimbus update or by
changing it on about:config -- all the other prefs stay in sync.

I kept the default value of `browser.urlbar.quicksuggest.scenario` but removed
it as the fallback for `quickSuggestScenario`. If it still both had a default
and remained the fallback, then it would be impossible to tell when Nimbus is
trying to override it, because any fetch of the value from Nimbus would just
return the fallback pref's value if there is no override.

I considered instead removing the default value and keeping it as the fallback.
The drawback of that is that unenrollments would not take effect until restart.
I actually tried this approach first, and in tests, after mock experiments were
unenrolled, the pref values remained what they were when the experiment was
active.

It might also be possible to not have the `browser.urlbar.quicksuggest.scenario`
pref at all. We could call NimbusFeatures directly to get the scenario. However,
currently we cache and access Nimbus variables through UrlbarPrefs, as we do
with prefs, and I don't want to add an inconsistency.

This revision also fixes bug 1730596 since it was easy to do given that I needed
a way to prevent indirect recursive updates to the scenario, and I can use that
for bug 1730596 too (the `_updatingFirefoxSuggestScenario` bool).

[1] `browser.urlbar.suggest.quicksuggest` and `browser.urlbar.suggest.quicksuggest.sponsored`
[2] `browser.urlbar.quicksuggest.enabled`

Differential Revision: https://phabricator.services.mozilla.com/D125511
2021-09-16 18:28:02 +00:00
Itiel 42fc576ab9 Bug 1730767 - Set text descriptions in the message bar to RTL when the selected locale is RTL r=mstriemer,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D125597
2021-09-16 18:24:35 +00:00
Drew Willcoxon 3445f00ee1 Bug 1731104 - Null check browser.contentDocument when highlighting a section in a lazy about:preferences tab. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D125856
2021-09-16 18:12:57 +00:00
Drew Willcoxon d3c29bff95 Bug 1730876 - Never discard quick suggest results and dedupe other URL results with a lower or same prefix rank. r=mak
This makes a couple of changes:

* Never discard quick suggest results. At some point we may want to revisit, but
  right now we should always show them.
* Discard other URL results whose URLs dupe the URLs of quick suggest results or
  whose URLs have a lower prefix rank.

The first change by itself fixes the bug, but without the second change, we'll
still show the eBay history result above the eBay quick suggest, which I
confirmed with Natalie is not what we want. We only want to show the quick
suggest.

Keep in mind that the results in this case have the same URLs, same prefixes.
When a non-quick-suggest result has a *higher* prefix rank, I think we should
*not* discard it. In that case we should show both the quick suggest with its
lower prefix rank and the other result with its higher rank.

Differential Revision: https://phabricator.services.mozilla.com/D125768
2021-09-16 16:12:01 +00:00
Dão Gottwald 91e4a9d4fc Bug 1731061 - Remove obsolete sync-pane-loaded observer from openPreferences. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D125827
2021-09-16 16:06:00 +00:00
Punam Dahiya 92710b365d Bug 1729766 - Update about:privatebrowsing with VPN promo r=Mardak,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D125206
2021-09-16 15:25:47 +00:00
Tim Huang 5687255479 Bug 1664995 - Part 5: Add tests for OCSP partitioning flag of strict mode. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D124472
2021-09-16 09:20:41 +00:00
Tim Huang 5dc500faf3 Bug 1664995 - Part 4: Enable OCSP partiitoning in strict mode. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D124471
2021-09-16 09:20:41 +00:00
Daisuke Akatsuka 90da637ce6 Bug 1477895: Get rid of WHERE condition of bookmark and history when openpage is enabled. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D124314
2021-09-16 01:52:24 +00:00
Scott 609ea03bfa Bug 1717682 - Pref and implementation for compact 4 card row layout for Pocket newtab. r=fluent-reviewers,gvn,flod
Differential Revision: https://phabricator.services.mozilla.com/D125307
2021-09-15 23:47:41 +00:00
Daisuke Akatsuka cf4607c809 Bug 1730070: Update DDG logo. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D125145
2021-09-15 22:54:55 +00:00
Niklas Baumgardner 6b2ff3d34a Bug 1635553 - Migrate navigator-toolbox to Fluent. r=emalysz,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D125222
2021-09-15 19:31:56 +00:00
Harry Twyford 4a642a10dc Bug 1727333 - Add ntp_card_background theme API property. r=desktop-theme-reviewers,dao,mixedpuppy
We want to introduce this new variable to be able to theme more surfaces on the NTP. ntp_card_background is the color of cards (top site tiles, Pocket cards, etc).

This patch changes browser_ext_themes_ntp_colors_perwindow.js and browser_ext_theme_ntp_colors.js. These aren't the most reliable tests; they fail on central and have [a lot of issues](https://bugzilla.mozilla.org/buglist.cgi?f5=component&f3=OP&f2=OP&f8=status_whiteboard&f9=cf_crash_signature&list_id=15832113&v8=toolkit%2Fcomponents%2Fextensions%2Ftest%2Fbrowser%2Fbrowser_ext_themes_ntp_colors_perwindow.js&o8=substring&query_format=advanced&v9=toolkit%2Fcomponents%2Fextensions%2Ftest%2Fbrowser%2Fbrowser_ext_themes_ntp_colors_perwindow.js&o9=substring&o5=substring&f10=CP&v5=toolkit%2Fcomponents%2Fextensions%2Ftest%2Fbrowser%2Fbrowser_ext_themes_ntp_colors_perwindow.js&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&f6=alias&classification=Client%20Software&classification=Developer%20Infrastructure&classification=Components&classification=Server%20Software&classification=Other&o4=substring&v4=toolkit%2Fcomponents%2Fextensions%2Ftest%2Fbrowser%2Fbrowser_ext_themes_ntp_colors_perwindow.js&o7=substring&v1=Graveyard&f11=CP&o1=notequals&v7=toolkit%2Fcomponents%2Fextensions%2Ftest%2Fbrowser%2Fbrowser_ext_themes_ntp_colors_perwindow.js&j3=OR&f4=product&f1=classification&f7=short_desc&v6=toolkit%2Fcomponents%2Fextensions%2Ftest%2Fbrowser%2Fbrowser_ext_themes_ntp_colors_perwindow.js&o6=substring). I will follow-up and attempt to fix them to be more reliable.

Differential Revision: https://phabricator.services.mozilla.com/D125115
2021-09-15 18:54:02 +00:00
Butkovits Atila b7b9016986 Backed out changeset b9b49ff4fca0 (bug 1635553) for causing failures complaining about menupopup. CLOSED TREE 2021-09-15 21:43:25 +03:00
Micah Tigley da8cd7b4d9 Bug 1724319 - Fix remaining failing tests in browser/components/downloads/test/browser. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D125294
2021-09-15 17:36:14 +00:00
Niklas Baumgardner 80e804150b Bug 1635553 - Migrate navigator-toolbox to Fluent. r=emalysz,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D125222
2021-09-15 16:21:09 +00:00
Michael Kohler 6329400db3 Bug 1706143 - Do not show bookmark toolbar when creating/editing bookmark if set to never be shown r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D125096
2021-09-15 15:42:47 +00:00
Drew Willcoxon d07b087748 Bug 1730691 - Properly support tabbing through the elements in the Firefox Suggest onboarding dialog. r=dao
Give `tabindex` attributes to each focusable element and handle enter keypresses
(via the `dialogaccept` event) on them. The tab index ordering is:

1. Accept button (initial focus)
2. Settings button
3. Learn more
4. Not now

Also give `#infoBody` a tab index of -1 so it doesn't receive focus. It does
normally for some reason.

The accept button still does not have a focus ring initially. When you hit tab
the first time, the focus ring appear on the settings button. IMO it's better
not to show the ring initially since most people won't be interacting with the
dialog with the keyboard, and even those that do don't necessarily need to see
it initially. If we do want it initially, calling `focus` on the button in a
load event listener works.

On Windows (and maybe Linux?), the arrow keys still move around the elements
until the focus gets stuck on the Not now link. After that the arrow keys don't
work anymore but the tab key still does. Not sure how to fix that part.

Differential Revision: https://phabricator.services.mozilla.com/D125616
2021-09-15 15:39:48 +00:00
Drew Willcoxon 74f1ec649c Bug 1730702 - When switching to an already open but lazy/unloaded about:preferences tab and highlighting a section in it, wait for it to load first. r=dao
When switching to an already open but lazy/unloaded about:preferences tab and
highlighting a section in it, wait for it to load first.

Differential Revision: https://phabricator.services.mozilla.com/D125628
2021-09-15 15:01:37 +00:00
Marian-Vasile Laza 1cf4af94e5 Backed out 7 changesets (bug 1546154) for causing build bustages on ContentProcess.cpp. CLOSED TREE
Backed out changeset 0bd777eee249 (bug 1546154)
Backed out changeset 611812ee62a2 (bug 1546154)
Backed out changeset cef0aa18a3ab (bug 1546154)
Backed out changeset cfda47fb0a46 (bug 1546154)
Backed out changeset f3e005f5fedc (bug 1546154)
Backed out changeset 7f50fca0c2cd (bug 1546154)
Backed out changeset bbb0b25450f5 (bug 1546154)
2021-09-15 14:12:55 +03:00
Bob Owen 8b6ae95727 Bug 1546154 p3: Explicitly load COM functions from combase.dll to prevent ole32 loading. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D124931
2021-09-15 10:21:04 +00:00
Mike Hommey f7c5a8e8cd Bug 1730825 - Ship the linux64-mingw32-nsis toolchain in a nsis/ directory. r=firefox-build-system-reviewers,andi
While the comment at the top of build-mingw32-nsis.sh is true, it only
applies to nsis being in the same path in the build tasks as it was
built from in the toolchain task. So we don't actually need to build
it in a mingw32/bin directory, and can ship it in a nsis/bin directory,
as long as that's where we build it.

That makes the toolchain match the expectations from bootstrap, which
also makes PATH adjustments for nsis unnecessary, no other toolchain
used in those builds providing a binary in mingw32/bin.

Differential Revision: https://phabricator.services.mozilla.com/D125637
2021-09-15 08:33:05 +00:00
Mike Hommey a9d9d23310 Bug 1730825 - Cleanup mingwclang mozconfigs. r=firefox-build-system-reviewers,andi
BINDGEN_CFLAGS have not been necessary since bug 1526857.
The wine directory has not been necessary in $PATH since bug 1686646.
LD_LIBRARY_PATH adjustments for mingw32 were cargo culted and never
necessary AFAICT, and the ones for clang/lib have not been necessary
since bug 1690937.

Differential Revision: https://phabricator.services.mozilla.com/D125636
2021-09-15 08:33:05 +00:00
Mike Hommey 7e693067b8 Bug 1730825 - Bootstrap nsis for Windows builds. r=firefox-build-system-reviewers,andi
And at the same time, make the toolchain artifact directly usable on
cross-compiles.

Differential Revision: https://phabricator.services.mozilla.com/D125635
2021-09-15 08:33:04 +00:00
Nicolas Chevobbe ac25598d5b Bug 1685500 - [devtools] Create target actors for all iframes. r=ochameau.
This patch introduces a new pref, devtools.every-frame-target.enabled,
that when set to true will cause target actors to be created on every
iframe, no matter if they are remote or not, no matter if Fission is
enabled or not.

This adds a ignoreSubFrames property on the BrowsingContextActor so
it can focus solely on the docShell it was passed.

Differential Revision: https://phabricator.services.mozilla.com/D125517
2021-09-15 05:35:37 +00:00
Marian-Vasile Laza 75adb3944e Backed out changeset f58ebd088778 (bug 1730273) for causing bc failures on browser_pocket_panel_closemenu.js. CLOSED TREE 2021-09-15 08:43:10 +03:00
Andreea Pavel 43c2586c58 Bug 1684513 - disable browser_alertDismissedAfterChangingPassword.js on mac10.15 not debug r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D125340
2021-09-14 23:56:40 +00:00
Mike Hommey dd72dc7fb3 Bug 1728507 - Upgrade NSIS to 3.07. r=firefox-build-system-reviewers,agashlin,mhentges
Differential Revision: https://phabricator.services.mozilla.com/D124163
2021-09-14 23:18:22 +00:00
Scott f702f05fde Bug 1730273 - Test for Pocket panel closing unexpectedly. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D125486
2021-09-14 22:37:19 +00:00
Adam Gashlin 0b45d0cf52 Bug 1730290 - Replace $LocalAppData in NSIS. r=bytesized,mhowell
1. $LocalAppData behavior changes in NSIS 3.02, previously it always
used CSIDL_LOCAL_APPDATA but it now depends on context, work around
that by directly calling SHGetSpecialFolderPathW.

2. Refactor several other calls to SHGetSpecialFolderPathW for
CSIDL_COMMON_APPDATA and CSIDL_PROGRAMS.

3. Remove broken default path fallback to $APPDATA. I was in this
code for 1. and realized it hadn't worked properly in the full
installer since bug 367539, and it must have never worked in the stub.

4. Remove unused CleanUpdateDirectories and DeleteRelativeProfiles
macros rather than trying to fix them.

Differential Revision: https://phabricator.services.mozilla.com/D125490
2021-09-14 21:10:26 +00:00
Cristian Tuns 2e4cf4667d Bug 1723989 - fix lint whitespace on a CLOSED TREE 2021-09-14 17:00:26 -04:00
Hanna Jones 08367fc9e2 Bug 1723989 - Turn off print preview animations when show animations switched off r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D125598
2021-09-14 20:04:59 +00:00
Katherine Patenio 886ed09b00 Bug 1724319 - Fix tests in toolkit/mozapps/downloads/test + browser_first_download_panel.js when download pref enabled. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D125214
2021-09-14 19:45:17 +00:00