Commit Graph

69283 Commits

Author SHA1 Message Date
Razvan Maries
1b7a9f16ce Backed out changeset 8ee1fd064263 (bug 1640403) for perma failures on browser_parsable_css. CLOSED TREE 2020-05-27 22:11:28 +03:00
Artem
30dba11bdd Bug 1609556 - Migrate toolbar-context-menu to Fluent r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D76016
2020-05-27 18:09:40 +00:00
Anny Gakhokidze
28243d5736 Bug 1630323 - Do not override user preferences when clicking on a service worker notification to open a new document, r=Gijs,nika,geckoview-reviewers,snorp
In Bug 1622749 a user preference for where to open new documents (from a
service worker notification) was temporarily overriden in order to quickly fix
a crash that was happening in mozilla::dom::ClientOpenWindow. The crash was
ocurring when the pref "browser.link.open_newwindow" was set to 2, meaning new
documents are opened in a new window, instead of a new tab. The reason the
browser crashed is because the path for opening a new document is different
depending on the current user setting, and in NEWWINDOW case we did not get a
browsing context returned when calling mozilla::dom::OpenWindow which resulted
in a failed assertion.

The solution is to pass in a callback to mozilla::dom::OpenWindow as part of
nsOpenWindowInfo object, and invoke that callback with a corresponding
BrowsingContext in nsFrameLoader when that browsing context is ready.

After we call mozilla::dom::OpenWindow, we wait on a promise, that will be
resolved when the callback is invoked, before executing the rest of the code
that depends on the browsing context for a newly opened document being
available.

Differential Revision: https://phabricator.services.mozilla.com/D72745
2020-05-27 18:15:36 +00:00
Razvan Maries
06a194ef3b Backed out changeset 5b97f74fb6fd (bug 1629113) for perma failures on test_keycodes.xhtml. CLOSED TREE 2020-05-27 21:16:13 +03:00
Marco Bonardo
e8fd1b7c50 Bug 1398567 - Invert URIFixup default behavior to search unless the string looks like a URI. r=Gijs
With recent fixes that can properly identify whitelisted domains, whitelisted
domain suffixed, valid known public suffixes, and forcing to visit URI-like
strings that end with a slash, it's time to re-evaluate the URIFixup behavior.
Until now URIFixup considered everything a URI unless it had specific search
characteristics, this patch inverts that behavior.
The scope of this change is to improve the urlbar behavior as the main Search
Access Point, since that's the direction we're moving towards.

This lands with a temporary hidden feature pref browser.fixup.defaultToSearch,
that will be removed once the feature has been released.

Differential Revision: https://phabricator.services.mozilla.com/D76852
2020-05-27 16:55:14 +00:00
Harry Twyford
bec092afba Bug 1627989 - Remove the browser.urlbar.openViewOnFocus pref. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D76247
2020-05-27 16:46:43 +00:00
Harry Twyford
ce4271d662 Bug 1627858 - Add a user visible preference to disable Top Sites on focus. r=dao,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D76246
2020-05-27 16:45:47 +00:00
Harry Twyford
e671b8b516 Bug 1623666 - Always show Top Sites in the Urlbar on empty searches. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D76245
2020-05-27 15:08:07 +00:00
Harry Twyford
166994cf8b Bug 1634279 - Allow accessing the TopSites feed even if Top Sites are hidden on the new tab page. r=dao,thecount,mixedpuppy
Creates a new pref, "...activity-stream.feeds.system.topsites" to control whether TopSitesFeed is enabled. The existing "...activity-stream-feeds.topsites" pref is kept to allow users to downgrade and to ensure that people who disabled Top Sites in the past will continue to not see Top Sites on the New Tab Page -- the difference being that Top Sites will now be generated for those users.

Differential Revision: https://phabricator.services.mozilla.com/D75603
2020-05-27 16:38:03 +00:00
Drew Willcoxon
e9b32a80a2 Bug 1635622 - Don't notify urlbar consumers when there aren't any results in a search. r=mak
See https://bugzilla.mozilla.org/show_bug.cgi?id=1635622#c14

Differential Revision: https://phabricator.services.mozilla.com/D77012
2020-05-27 16:16:38 +00:00
Dão Gottwald
72693e39fa Bug 1640403 - Remove dark mode support for the library window on macOS for now. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D77082
2020-05-27 15:12:22 +00:00
prathiksha
add557cecc Bug 1640698 - Add telemetry for monitor card buttons in the protections dashboard. r=ewright
Differential Revision: https://phabricator.services.mozilla.com/D76744
2020-05-27 15:23:40 +00:00
Agi Sferro
1e7ad33a14 Bug 1629113 - Move caret browsing handler to tabbrowser.js. r=NeilDeakin
We don't use it on GeckoView.

Differential Revision: https://phabricator.services.mozilla.com/D72724
2020-05-27 01:33:50 +00:00
Neil Deakin
c4019e1ff8 Bug 1640955, remove message manager usage from browser_clipboard.js, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D76878
2020-05-26 19:54:00 +00:00
Yura Zenevich
e9472cf169 Bug 1641118 - Enable accessibility panel auto initialization on early beta and dev edition. r=Jamie
Differential Revision: https://phabricator.services.mozilla.com/D76978
2020-05-27 02:30:54 +00:00
Drew Willcoxon
cb57e50c12 Bug 1640289 - Fix failure on late beta and release by getting the correct index of the form history result. r=mak
The private search result is shown in Nightly but not otherwise. The test is
failing because it expects the private search result to be at index 1 and the
form history result to be at index 2, but the form history is actually at index 1.
The test just needs to get the right index. There's another part of the test
that clicks a remote suggestion, but it's not affected because the search
happens to match a couple of history results, so the private search result isn't
shown even on Nightly.

Differential Revision: https://phabricator.services.mozilla.com/D76585
2020-05-25 15:51:15 +00:00
Mike Hommey
a97c7ebfe7 Bug 1640578 - Remove --disable-install-strip from mac mozconfigs. r=froydnj
The need for --disable-install-strip in the mac mozconfigs comes from a
discrepancy in how stripping is handled between platforms. On Windows,
there is no stripping. On non-Mac unix, `strip` removes local symbols as
well as debug info and debug symbols. On Mac, it actually removes too
much, and one has to pass flags to remove both local symbols (`-x`) and
debug symbols (`-S`). Debug info is already in a separate file
(`.dSYM`).

For profiling reasons, we do ship e.g. nightlies with local symbols but
not debug info or symbols (or at least that's the intent). On Windows,
again, nothing to do. On non-Mac unix, we pass `--strip-debug` to
`strip` so that it keeps local symbols. That's where the discrepancy
comes in for Mac: the build system doesn't handle this at all, so the
mozconfigs contain --disable-install-strip to avoid stripping.

The build system should be doing what it's expected to be doing from the
start, without mozconfigs opting into anything.

AFAIK, we only really need the local symbols, so we can `strip -S` on
Mac when profiling is enabled, rather than `strip -x -S`. This also
significantly reduces the size of the installer for nightlies.

And while we're here, move the logic out of old-configure and into
python configure.

Differential Revision: https://phabricator.services.mozilla.com/D76789
2020-05-27 01:42:07 +00:00
Matt Woodrow
5cf1f845a8 Bug 1631405 - Update tests to account for security UI only living in the parent process. r=kmag,ckerschb,webcompat-reviewers,twisniewski
This is mostly changes to handle retrieving the security state asynchronously via the parent process, needing lots of async/await additions.

It also removes the docshell mixed content flag checks (which don't seem to be used in code, only tests), which are mostly still covered by checks of the security UI.

Differential Revision: https://phabricator.services.mozilla.com/D75448
2020-05-27 00:31:25 +00:00
Matt Woodrow
e060a86c42 Bug 1631405 - Move nsISecureBrowserUI to be owned by the canonical browsing context instead of docshell. r=nika,ckerschb,Gijs,webcompat-reviewers,twisniewski
This removes all docshell nsISecureBrowserUI and mixed content properties, and moves them into CanonicalBrowsingContext/WindowGlobalParent. It makes the mixed content blocker just compute the state for the current load, and then send the results to the parent process, where we update the security state accordingly.

I think we could in the future remove onSecurityChange entirely, and instead just fire an event to the <browser> element notifying it of changes to the queryable securityUI.

Unfortunately we have a lot of existing code that depends on specific ordering between onSecurityChange and onLocationChange, so I had to hook into the RemoteWebProgress implementation in BrowserParent to mimic the same timings.

Differential Revision: https://phabricator.services.mozilla.com/D75447
2020-05-27 00:28:59 +00:00
Neil Deakin
f26bcad85c Bug 1640221, remove content-forms.js frame script from session store tests. Replace with SpecialPowers.spawn, r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D76515
2020-05-26 16:11:09 +00:00
Neil Deakin
e302160291 Bug 1640221, remove content.js frame script from session store tests. Replace with BrowserTestUtils functions and SpecialPowers.spawn, r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D76514
2020-05-26 16:10:36 +00:00
Adam Gashlin
e38a47a505 Bug 1633505 - Show refresh button within the uninstaller. r=mhowell
Detect a profile for the installation, if found offer refresh on welcome page:
- Replace text
- Add help link and button

Add a different prompt to close the browser for refresh.

When leaving the welcome page:
- via help link, launch a URL
- via Refresh button, launch Firefox with the necessary args

Add utility functions to launch the link and Firefox.

Remove the UN_CONFIRM_CLICK label and hide the subheading, this was an
addition to the design. Move down UN_CONFIRM_PAGE_TITLE to fill in the space.

Move the check for the install-specific profile to common.nsh from stub.nsi,
wrapped in stack ops to save regs and with _MOZFUNC_UN for uninstaller compat.

Move InitHashAppModelId to just after un.UninstallUnOnInitCommon (which sets
$INSTDIR correctly), so AUMID would be available in un.PreWelcome. I don't
think there's anything else that would change $INSTDIR in the uninstaller
so this should be ok.

Unrelated but adjacent cleanup: Remove inappropriate use of _MOZFUNC_UN
in CopyPostSigningData.

Differential Revision: https://phabricator.services.mozilla.com/D76435
2020-05-26 21:47:58 +00:00
Adam Gashlin
f66d880b9e Bug 1634115 - Send telemetry when refresh is requested from uninstaller. r=MattN,mhowell,chutten
Differential Revision: https://phabricator.services.mozilla.com/D76234
2020-05-26 21:47:58 +00:00
Michael Kaply
d627dab065 Bug 1577344 - Add policy for application handlers. r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D74865
2020-05-26 22:38:58 +00:00
Andrew McCreight
e5c54ca6f5 Bug 1640967 - Remove cpows preferences. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D76871
2020-05-26 22:19:41 +00:00
Nan Jiang
082a6cd662 Bug 1634481 - Add trigger to the reach ping r=andreio
Differential Revision: https://phabricator.services.mozilla.com/D76610
2020-05-26 15:54:39 +00:00
Bogdan Tara
a54ec3073f Backed out 4 changesets (bug 1631405) for multiple mochitest failures CLOSED TREE
Backed out changeset 9963cc0b23cb (bug 1631405)
Backed out changeset 469ac933ed7c (bug 1631405)
Backed out changeset 0c5f55864268 (bug 1631405)
Backed out changeset 20dcbcc2f3b8 (bug 1631405)
2020-05-27 01:30:20 +03:00
Matt Woodrow
d692732bdd Bug 1631405 - Update tests to account for security UI only living in the parent process. r=kmag,ckerschb,webcompat-reviewers,twisniewski
This is mostly changes to handle retrieving the security state asynchronously via the parent process, needing lots of async/await additions.

It also removes the docshell mixed content flag checks (which don't seem to be used in code, only tests), which are mostly still covered by checks of the security UI.

Differential Revision: https://phabricator.services.mozilla.com/D75448
2020-05-26 21:19:28 +00:00
Matt Woodrow
240d417eb6 Bug 1631405 - Move nsISecureBrowserUI to be owned by the canonical browsing context instead of docshell. r=nika,ckerschb,Gijs,webcompat-reviewers,twisniewski
This removes all docshell nsISecureBrowserUI and mixed content properties, and moves them into CanonicalBrowsingContext/WindowGlobalParent. It makes the mixed content blocker just compute the state for the current load, and then send the results to the parent process, where we update the security state accordingly.

I think we could in the future remove onSecurityChange entirely, and instead just fire an event to the <browser> element notifying it of changes to the queryable securityUI.

Unfortunately we have a lot of existing code that depends on specific ordering between onSecurityChange and onLocationChange, so I had to hook into the RemoteWebProgress implementation in BrowserParent to mimic the same timings.

Differential Revision: https://phabricator.services.mozilla.com/D75447
2020-05-26 21:17:01 +00:00
Mike Conley
9e763e77d2 Bug 1638380 - Write a test for nsIAlertsDoNotDisturb.suppressForScreenSharing attribute. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D76869
2020-05-26 20:11:41 +00:00
Mike Conley
c3b790584a Bug 1640744 - Modernize and re-enable the browser_notification_do_not_disturb.js test. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D76757
2020-05-26 20:08:34 +00:00
Mark Banner
40cac5473a Bug 1635235 - Ensure browser_ext_settings_overrides_default_search.js can wait for search engine setup to complete to avoid intermittents. r=mixedpuppy
Depends on D76480

Differential Revision: https://phabricator.services.mozilla.com/D76910
2020-05-26 19:53:42 +00:00
Mark Banner
ceba0e848d Bug 1635235 - Implement reading the allow override default search engine allowlist from remote settings. r=daleharvey
This implements reading the list from remote settings. We only read it at startup if necessary, or on add-on installation.

We do not check for updates - if something is removed, we'll wait until next startup before processing it.

Also adds lots of tests for canOverride as this seems a critical part to get right.

Differential Revision: https://phabricator.services.mozilla.com/D76473
2020-05-26 19:40:42 +00:00
Bogdan Tara
8986cea497 Backed out changeset 004a7596ab7c (bug 1637716) for test_addon_update.js failures CLOSED TREE 2020-05-26 22:55:34 +03:00
Mike Conley
4ad11c158e Bug 1639997 - Update WebRTC browser mochitests to test both old and new global indicators. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D76738
2020-05-26 18:01:47 +00:00
Mike Conley
7ef149ee09 Bug 1639997 - Split out WebRTC browser mochitests into a variation that runs with the legacy behaviour. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D76737
2020-05-26 18:01:18 +00:00
Mike Conley
bf6bb6f1c4 Bug 1639997 - Have webrtcUI handle the case where the selectedTab is set to null. r=pbz
It's possible for gBrowser.selectedTab to be set to null. This should be a no-op, but this
part of webrtcUI that tabbrowser calls doesn't handle the case, and causes an exception to
be thrown. This patch allows the no-op case to occur properly.

Differential Revision: https://phabricator.services.mozilla.com/D76736
2020-05-26 18:01:04 +00:00
Mike Conley
490f3dcbdf Bug 1639997 - Use more appropriate window features for new WebRTC global indicator. r=pbz
These features allow the indicator to not pull focus from the originating window, which
is important to maintain user task continuity, especially for screenreader users.

Differential Revision: https://phabricator.services.mozilla.com/D76735
2020-05-26 18:00:46 +00:00
Mike Conley
9af48e3c6d Bug 1639337 - Factor out the macOS status bar WebRTC indicator into a reusable class. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D76388
2020-05-26 18:00:36 +00:00
Michael Kaply
f52911603e Bug 1637716 - Shutdown AddonManager at end of test. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D76787
2020-05-26 18:04:19 +00:00
Liang-Heng Chen
e71ef209f6 Bug 1635984 - use effective cookie behavior in preferences page; r=ewright
Differential Revision: https://phabricator.services.mozilla.com/D74128
2020-05-26 17:35:12 +00:00
Erica Wright
c8a6793b3b Bug 1640736 - Hover effect on link should be a pointer. r=prathiksha
Differential Revision: https://phabricator.services.mozilla.com/D76752
2020-05-26 13:54:44 +00:00
Nihanth Subramanya
88c2ed6ab9 Bug 1638502 - [DoH] Persist TRR-selection dry-run result. r=valentin,johannh
Differential Revision: https://phabricator.services.mozilla.com/D75660
2020-05-26 15:43:30 +00:00
Nihanth Subramanya
9fe605615b Bug 1638502 - Clean up DoH doorhanger's TabProgressListener properly. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D76786
2020-05-26 15:43:30 +00:00
Nihanth Subramanya
0a46357bbd Bug 1607822 - Use waitForPrefChange instead of waitForCondition to observe pref changes in DoH tests. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D76778
2020-05-26 15:43:18 +00:00
Bogdan Tara
1c9a64d4d6 Backed out changeset 7cfa9199cc7e (bug 1577344) for mozilla::net::nsSocketTransport::InitiateSocket crashes CLOSED TREE 2020-05-26 20:40:51 +03:00
Molly Howell
d2fa14f4ef Bug 1638509 - Enable the limited PostUpdate to update the WDBA task. r=agashlin,bytesized
This also requires removing the registry value cleanup from the unregister-task
command and adding a new uninstall command which removes both the task and the
registry values, because this patch now runs unregister-task during updates to
remove the task before re-adding it, and that needs to leave the registry alone.

Differential Revision: https://phabricator.services.mozilla.com/D76354
2020-05-26 15:38:21 +00:00
Michael Kaply
dc9210608c Bug 1577344 - Add policy for application handlers. r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D74865
2020-05-26 03:21:46 +00:00
Ed Lee
810cab9903 Bug 1635090 - Build errors in newtab job should turn the job orange r=andreio
Also check exit code instead of only relying on detecting certain errors.

Differential Revision: https://phabricator.services.mozilla.com/D73729
2020-05-05 14:02:59 +00:00
Kershaw Chang
104bf647be Bug 1602832 - P3: Skip failed tests r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D67448
2020-05-26 14:30:26 +00:00