Commit graph

5279 commits

Author SHA1 Message Date
Narcis Beleuzu
4fa3a7f995 Backed out changeset 6cf959e2de7b (bug 1666670) for wpt failures on scroll-behavior-smooth.html . CLOSED TREE 2020-10-01 05:20:54 +03:00
Kris Maglione
49bc543261 Bug 1666670: Fix beforeunload timeout handling to ignore prompt. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D91351
2020-09-30 19:39:56 +00:00
Gijs Kruitbosch
694bed5ea1 Bug 1657263 - use pdf.js to determine whether we can find in the pdf, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D91718
2020-09-29 20:00:50 +00:00
Micah Tigley
3524fbc87d Bug 1328637 - Add a keyboard shortcut for showing/hiding the bookmarks toolbar. r=jaws,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D90132
2020-09-29 15:04:54 +00:00
Razvan Maries
7979196254 Backed out changeset 2b2e72856dc1 (bug 1665237) for perma failures on browser_popupNode.js. CLOSED TREE 2020-09-25 06:03:12 +03:00
Kris Maglione
bbfbd2f113 Bug 1660057: Add preferences for Fission rollout Normandy experiment. r=nika,marionette-reviewers,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D91066
2020-09-25 02:01:15 +00:00
Michael Kaply
baf3127120 Bug 1665237 - Make managed bookmarks item dynamic. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D90628
2020-09-22 20:08:17 +00:00
Razvan Maries
8de1e9f262 Backed out changeset 737f0e3e2f94 (bug 1660057) for xpcshell perma failures. CLOSED TREE 2020-09-24 23:25:54 +03:00
Kris Maglione
04dc79653a Bug 1660057: Add preferences for Fission rollout Normandy experiment. r=nika,marionette-reviewers,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D91066
2020-09-24 18:35:58 +00:00
Csoregi Natalia
9d16fe7e4d Backed out changeset 034825cf1c71 (bug 1665237) for multiple failures e.g. browser_1007336_lwthemes_in_customize_mode.js. CLOSED TREE 2020-09-22 21:48:53 +03:00
Michael Kaply
63434c4e40 Bug 1665237 - Make managed bookmarks item dynamic. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D90628
2020-09-22 15:51:42 +00:00
Kris Maglione
d3498e1041 Bug 1655866: Part 5 - Use native PermitUnload implementation from front-end code. r=nika,mconley
Differential Revision: https://phabricator.services.mozilla.com/D88318
2020-09-21 22:41:04 +00:00
Mihai Alexandru Michis
903eef7389 Backed out changeset bd318d959528 (bug 727668) for causing multiple failures
CLOSED TREE
2020-09-22 03:02:17 +03:00
Jared Wein
3a697d4e80 Bug 727668 - Show bookmarks toolbar on the new tab page. r=Gijs
This adds the ability to force the bookmarks toolbar to appear on all pages. The checkbox in the toolbar context menu will reflect if the toolbar will appear outside of the newtab page. The toolbar will always appear on the newtab page. Profiles that already had the toolbar showing will have a migration to keep their experience unchanged.

Differential Revision: https://phabricator.services.mozilla.com/D89222
2020-09-21 17:01:41 +00:00
Harry Twyford
b2cc3e61c2 Bug 1657676 - Add search mode preview. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D89964
2020-09-17 03:31:04 +00:00
Emma Malysz
b94b50a7ae Bug 1660665, hide subdialog if user chooses to print using system dialog. r=jwatt,Gijs,mstriemer
When the user chooses to print using the system dialog, we should hide the print
UI. We are choosing to hide the dialog stack instead of closing the dialog because
the print preview browser still needs to be available if the user tries to print.
We close the window if the user cancels the system dialog or once we receive the
promise from PrintUtils.printWindow.

Differential Revision: https://phabricator.services.mozilla.com/D88096
2020-09-17 02:18:50 +00:00
Dorel Luca
ac0e714d57 Backed out changeset b445d02b1367 (bug 1657676) for Browser-chrome failures in newtab/test/browser/browser_topsites_section.js. CLOSED TREE 2020-09-17 04:46:23 +03:00
Harry Twyford
8f95a2e763 Bug 1657676 - Add search mode preview. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D89964
2020-09-16 23:18:59 +00:00
Brindusan Cristian
09fafce1c6 Backed out changeset 6e3078121a13 (bug 1657676) for bc failures at browser_oneOffs_keyModifiers.js. CLOSED TREE 2020-09-16 03:18:05 +03:00
Harry Twyford
b769c92faf Bug 1657676 - Add search mode preview. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D89964
2020-09-15 22:55:12 +00:00
Jared Wein
573c5943de Bug 1662098 - Move default browser notification to JS Window Actor and use pageshow to trigger if the notification will appear. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D88909
2020-09-14 18:26:23 +00:00
Michael Kaply
ac05a3c153 Bug 1498688 - Add ManagedBookmarks policy. r=fluent-reviewers,emalysz,Standard8,flod
Differential Revision: https://phabricator.services.mozilla.com/D76009
2020-09-08 20:09:35 +00:00
Tooru Fujisawa
5f55a03e39 Bug 1663500 - Revert bug 1661643 change and resurrect browser.link.open_newwindow=1. r=Gijs,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D89447
2020-09-08 12:09:43 +00:00
pbz
32b7cf7c35 Bug 1661030 - Extended TabDialogBox with an option to persist dialogs across same origin location change. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D88423
2020-09-02 14:24:58 +00:00
pbz
2a72e0a43c Bug 1661030 - Refactor SubDialog and TabDialogBox to support passing multiple window arguments. r=Gijs,preferences-reviewers
This also updates the behavior of the allowDuplicates check:
Instead of only checking if the top dialog is a duplicate, it will now check the whole stack and
skip the dialog open if a duplicate URL is found.
This fixes an issue where callers could alternate between dialogs to bypass the check.

Differential Revision: https://phabricator.services.mozilla.com/D88422
2020-09-02 14:24:47 +00:00
Emma Malysz
defa918a51 Bug 1661618, update shortcut in app menu and toolbar tip for the toolbarbutton r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D88521
2020-08-31 19:14:11 +00:00
Emilio Cobos Álvarez
07eda2fd53 Bug 1661867 - Create the print preview browser with the right userContextId. r=jwatt
This was a pre-existing bug that my patch uncovered it.

Co-Authored-By: Hiroyuki Ikezoe <hikezoe.birchill@mozilla.com>

Differential Revision: https://phabricator.services.mozilla.com/D88772
2020-08-31 10:41:40 +00:00
Tooru Fujisawa
9cff0fe8c0 Bug 1661643 - Remove browser.link.open_newwindow=1. r=preferences-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D88572
2020-08-28 13:44:46 +00:00
pbz
ffd9bba19b Bug 1660951 - Focus TabDialogBox top dialog when switching tabs. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D88437
2020-08-28 12:36:00 +00:00
Emilio Cobos Álvarez
5b82674837 Bug 1660739 - Fix tabs.printPreview API with the new print preview design. r=mstriemer,mixedpuppy
Return a promise from PrintUtils.printPreview which resolves when the
new print preview dialog is closed.

Differential Revision: https://phabricator.services.mozilla.com/D88013
2020-08-26 03:10:47 +00:00
Emilio Cobos Álvarez
044b3c4332 Bug 1636728 - Centralize printing entry points in nsGlobalWindowOuter, and move cloning out of nsPrintJob. r=jwatt,geckoview-reviewers,smaug,agi
This centralizes our print and preview setup in nsGlobalWindowOuter so
that we never re-clone a clone, and so that we reuse the window.open()
codepath to create the browsing context to clone into.

For window.print, for both old print dialog / silent printing and new
print preview UI, we now create a hidden browser (as in with visibility:
collapse, which takes no space but still gets a layout box).

 * In the modern UI case, this browser is swapped with the actual print
   preview clone, and the UI takes care of removing the browser.

 * In the print dialog / silent printing case, the printing code calls
   window.close() from nsDocumentViewer::OnDonePrinting().

 * We don't need to care about the old print preview UI for this case
   because it can't be open from window.print().

We need to fall back to an actual window when there's no
nsIBrowserDOMWindow around for WPT print tests and the like, which don't
have one. That seems fine, we could special-case this code path more if
needed but it doesn't seem worth it.

Differential Revision: https://phabricator.services.mozilla.com/D87063
2020-08-25 17:45:12 +00:00
Neil Deakin
3bcbd15d51 Bug 1614761, move refresh blocking handling from framescript to an actor, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D87206
2020-08-25 10:21:38 +00:00
Mark Striemer
596793feda Bug 1654962 - Size tab modal print UI to available window size r=Gijs,sfoster,emalysz,pbz
Differential Revision: https://phabricator.services.mozilla.com/D86037
2020-08-24 21:00:36 +00:00
Jared Wein
6c6d41cb43 Bug 1656494 - Show the default browser notification on the first New Tab Page of a session. r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D87490
2020-08-23 22:24:05 +00:00
Noemi Erli
cad3633ca8 Backed out 5 changesets (bug 1656494) for causing failures in browser_all_files_referenced.js
Backed out changeset 4c4a5066876f (bug 1656494)
Backed out changeset 8017af5da26a (bug 1656494)
Backed out changeset 8b6aa5d6dae2 (bug 1656494)
Backed out changeset 0588b4cf76ec (bug 1656494)
Backed out changeset 8a88718e4ec3 (bug 1656494)
2020-08-24 00:01:04 +03:00
Jared Wein
1e92a26a92 Bug 1656494 - Show the default browser notification on the first New Tab Page of a session. r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D87490
2020-08-23 08:01:12 +00:00
Cristina Coroiu
09e50d2ff3 Backed out 5 changesets (bug 1656494) for browser-chrome failures at browser/base/content/test/about/browser_aboutNewTab_defaultBrowserNotification.js
Backed out changeset 2ec1967f17c1 (bug 1656494)
Backed out changeset 90d378b5aab9 (bug 1656494)
Backed out changeset 0e8cadf60b6a (bug 1656494)
Backed out changeset a980956c1ddf (bug 1656494)
Backed out changeset 0208b2ba6a6f (bug 1656494)
2020-08-23 10:56:06 +03:00
Jared Wein
db18b40ed8 Bug 1656494 - Show the default browser notification on the first New Tab Page of a session. r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D87490
2020-08-23 06:57:00 +00:00
Emma Malysz
511f442a94 Bug 1659859, make sure printing from context menu uses correct pref value r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D87778
2020-08-21 23:33:17 +00:00
Mihai Alexandru Michis
3e266b539c Backed out changeset 80e6be24260d (bug 1654962) for causing bc failures in browser_modal_print.js
CLOSED TREE
2020-08-21 17:47:07 +03:00
Mark Striemer
223bb33a6c Bug 1654962 - Size tab modal print UI to available window size r=Gijs,sfoster,emalysz,pbz
Differential Revision: https://phabricator.services.mozilla.com/D86037
2020-08-21 13:55:15 +00:00
Sebastian Hengst
0f2aef673e Backed out changeset 809409c1751f (bug 1623856) due to behavior change of feature widely used by developers.
See bug 1659473 for more discussion.
2020-08-21 15:51:50 +02:00
Mark Banner
0542586f06 Bug 1656220 - Implement recording attributions for search engines. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D87501
2020-08-20 12:58:23 +00:00
Cristina Coroiu
3a18ab95b5 Backed out 2 changesets (bug 1656220, bug 1656219) for browser-chrome failures at browser_UsageTelemetry_urlbar.js and browser_oneOffs.js on a CLOSED TREE
Backed out changeset bf68aec38a05 (bug 1656220)
Backed out changeset 706d2900077b (bug 1656219)
2020-08-20 14:15:07 +03:00
Mark Banner
21253cfa1a Bug 1656220 - Implement recording attributions for search engines. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D87501
2020-08-20 09:06:59 +00:00
Emilio Cobos Álvarez
f04cda9679 Bug 1602410 - Make window.print() work with tab-modal printing. r=nika,geckoview-reviewers,agi
Do this by spinning the event loop until we've done the clone for
preview as appropriate.

This should be much less risky than finishing the previous patches
which would still be nice, but realistically landing them for 81 is not
going to happen.

This just returns without doing nothing in a couple cases, like when
there's already another modal dialog or such. That seems acceptable to
me, it's not clear what better way to do would be.

Differential Revision: https://phabricator.services.mozilla.com/D87484
2020-08-19 09:27:18 +00:00
Drew Willcoxon
4a6570ffd6 Bug 1659128 - Exit search mode as appropriate when input.setURI is called. r=harry
We need to exit search mode when a page loads in the current tab. We may need to
exit search mode for page loads in other tabs too: If you're in search mode,
click a slow link, switch tabs, and the page loads in the meantime, then search
mode should be not be entered when you switch back. I don't think we handle that
case correctly right now, and this patch doesn't address that at all. That's
worth doing in another bug because I think the fix will be different.

At first I added an `onLocationChange` method to UrlbarInput that was called by
`XULBrowserWindow.onLocationChange` in browser.js [1], just like we have an
`onLocationChange` in UrlbarProviderSearchTips called by
`XULBrowserWindow.onLocationChange`. But we need to potentially exit search mode
any time `input.setURI` is called. `setURI` happens to be called by
`XULBrowserWindow.onLocationChange`, one of the several places that calls it
[2].

`setURI` is also called when switching tabs. Bug 1647899 already took care of
handling search mode for tab switches, but it would be nice to handle all this
in one place. `setURI` is also how `userTypedValue` is restored in the input,
and of course `userTypedValue` is something we need to restore when switching
tabs, just like search mode. For these reasons I moved per-tab search mode
restoration to `setURI` as part of this.

I'm also changing the name of the second parameter in `setURI`. I wasn't sure
whether it's true iff we're switching tabs, so I tracked down why that param was
added. It was added in bug 1478348, and comment 21 confirms it was added to tell
`setURI` and `XULBrowserWindow.onLocationChange` when they're being called due
to a tab switch. To make this clearer, I renamed the param and added some
javadoc for `XULBrowserWindow.onLocationChange`.

[1] https://searchfox.org/mozilla-central/rev/50cb0892948fb4291b9a6b1b30122100ec7d4ef2/browser/base/content/browser.js#5205
[2] https://searchfox.org/mozilla-central/search?q=symbol:%23setURI&redirect=false

Differential Revision: https://phabricator.services.mozilla.com/D87172
2020-08-17 20:31:44 +00:00
pbz
1058f2522e Bug 1650795 - Implemented TabDialogBox to show chrome dialogs embedded on tab level. r=Gijs,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D83631
2020-08-17 10:26:22 +00:00
Bogdan Tara
f3e186366b Backed out 7 changesets (bug 1650795, bug 1651958) for test_master_password.html failures CLOSED TREE
Backed out changeset 4812945bfaf2 (bug 1651958)
Backed out changeset a3f28fadcdf3 (bug 1651958)
Backed out changeset 70a61c971427 (bug 1651958)
Backed out changeset e7194e7e7ecc (bug 1651958)
Backed out changeset 7e66e5431ef7 (bug 1651958)
Backed out changeset a6c58935e1d8 (bug 1650795)
Backed out changeset b79f254df4cb (bug 1650795)
2020-08-14 23:29:33 +03:00
pbz
509eea0b25 Bug 1650795 - Implemented TabDialogBox to show chrome dialogs embedded on tab level. r=Gijs,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D83631
2020-08-14 11:31:04 +00:00
Csoregi Natalia
eac68e26b0 Backed out 7 changesets (bug 1650795, bug 1651958) for failures on test_modal_prompts.html . CLOSED TREE
Backed out changeset 505f46d2cd97 (bug 1651958)
Backed out changeset f7893f4dc092 (bug 1651958)
Backed out changeset 54ea7a160e0d (bug 1651958)
Backed out changeset c2bc9c8d2e97 (bug 1651958)
Backed out changeset 247880941893 (bug 1651958)
Backed out changeset c8945eb14177 (bug 1650795)
Backed out changeset fc4dcfaf3938 (bug 1650795)
2020-08-14 00:02:08 +03:00
pbz
8c8b150bd2 Bug 1650795 - Implemented TabDialogBox to show chrome dialogs embedded on tab level. r=Gijs,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D83631
2020-08-13 18:43:49 +00:00
Xidorn Quan
ddf0b0df24 Bug 1623856 - Make shift-click reload button open a new window. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D86464
2020-08-12 14:56:50 +00:00
Valentin Gosu
e1f98ce23a Bug 1657582 - Add nsIDNSResolverInfo interface r=necko-reviewers,geckoview-reviewers,snorp,mixedpuppy,extension-reviewers,dragana
This patch adds the nsIDNSResolverInfo interface which is used to hold
information about the resolver to be used in a DNS resolution.

We use this to merge all of the *WithTRRServer resolve functions into one.
Passing a resolver info will use that object when appropriate. No resolver
info means that we default to using the system resolver, or the default TRR
resolver.

This patch also converts the RESOLVE_TYPE_* flags into a cenum and adds
the resolveType as a parameter to asyncResolve thus removing the need
to have asyncResolveByType methods.

Differential Revision: https://phabricator.services.mozilla.com/D86176
2020-08-12 08:25:14 +00:00
Bogdan Tara
694b77183c Backed out 2 changesets (bug 1657582) for test_DNSLookup.js failures CLOSED TREE
Backed out changeset 784122a5f5ab (bug 1657582)
Backed out changeset 0f17312b01ad (bug 1657582)
2020-08-12 11:18:06 +03:00
Valentin Gosu
fc1bf09e47 Bug 1657582 - Add nsIDNSResolverInfo interface r=necko-reviewers,geckoview-reviewers,snorp,mixedpuppy,extension-reviewers,dragana
This patch adds the nsIDNSResolverInfo interface which is used to hold
information about the resolver to be used in a DNS resolution.

We use this to merge all of the *WithTRRServer resolve functions into one.
Passing a resolver info will use that object when appropriate. No resolver
info means that we default to using the system resolver, or the default TRR
resolver.

This patch also converts the RESOLVE_TYPE_* flags into a cenum and adds
the resolveType as a parameter to asyncResolve thus removing the need
to have asyncResolveByType methods.

Differential Revision: https://phabricator.services.mozilla.com/D86176
2020-08-12 01:00:39 +00:00
Drew Willcoxon
075c66c124 Bug 1647889 - Show different Urlbar placeholder while visual indicator is showing. r=harry,fluent-reviewers,flod
This is the simplest possible way to fix this bug in the interest of landing
ASAP. It keeps a hardcoded list of engines that search the web.

Differential Revision: https://phabricator.services.mozilla.com/D86664
2020-08-12 00:25:58 +00:00
Kashav Madan
255b3f3ecb Bug 1566422 - Avoid unnecessary coordinate conversions when showing tooltips, r=emilio
We currently start with screen-relative coordinates, translate them to
widget-relative coordinates, and then translate them back to screen-relative
coordinates when actually showing the tooltip in XULBrowserWindow.showTooltip().
There's no reason for the extra conversions, so we can just send screen-relative
coordinates directly.

Since the widget origin for out-of-process frames is the origin of the frame
itself (instead of the tab, which is the case for in-process frames), the
screen-to-widget conversion was incorrect, and was causing a bug in how the
tooltip was being positioned. Avoiding that conversion altogether also fixes
that bug.

Differential Revision: https://phabricator.services.mozilla.com/D86750
2020-08-11 22:01:40 +00:00
julianwels
3e427e5423 Bug 1656027 - Added cached property 'isSecureContext' as an additional condition when the security UI should be updated. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D85327
2020-08-11 10:57:40 +00:00
Nika Layzell
c366c291b9 Bug 1589517 - Part 4: Remove sameProcessAsFrameLoader, r=zombie,mconley,farre,smacleod
The functionality has been fully subsumed by the new
initialBrowsingContextGroupId attribute, so it is no longer necessary.

Differential Revision: https://phabricator.services.mozilla.com/D85653
2020-08-06 17:01:13 +00:00
Nika Layzell
2f8013d4a9 Bug 1589517 - Part 2: Add initialBrowsingContextGroupId to sameProcessAsFrameLoader callers, r=mconley,smacleod
This attribute, when combined with the remoteType attribute, should subsume all
callers of sameProcessAsFrameLoader, and also support selecting the same process
as an out-of-process iframe.

Differential Revision: https://phabricator.services.mozilla.com/D85651
2020-08-06 17:01:08 +00:00
Harry Twyford
649526b7fe Bug 1647893 - Enter search mode with default engine on Accel+K. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D85914
2020-08-05 19:17:54 +00:00
Gijs Kruitbosch
2783349ab6 Bug 1645619 - stop using the default URL bar placeholder string after customize mode by using fluent all the time, r=Standard8,fluent-reviewers,flod
The original issue this patch addresses is what happens when exiting customize
mode: the reinsertion of the urlbar (customize mode wraps it in a container)
causes fluent to re-run as there's a DOM mutation, which causes the default
placeholder to be re-translated. This caused issues because we were using
.properties to translate the string that included the engine name, and
fluent for the "default" placeholder string.

This patch fixes the issue by always using fluent, and using a hardcoded
'unknown' placeholder to deal with the case where there is no known engine.

Differential Revision: https://phabricator.services.mozilla.com/D85769
2020-08-05 13:33:17 +00:00
Sebastian Streich
bf58055b03 Bug 1633710 - Move uri.spec calls to nsIPrincipal r=necko-reviewers,geckoview-reviewers,preferences-reviewers,ckerschb,ntim,snorp,valentin
Differential Revision: https://phabricator.services.mozilla.com/D82911
2020-08-04 11:10:41 +00:00
Noemi Erli
5cebe61c77 Backed out changeset 4ed7b13fb7a5 (bug 1633710) for causing failures in browser_amosigned_url.js CLOSED TREE 2020-07-29 22:34:42 +03:00
Sebastian Streich
ea482d8e73 Bug 1633710 - Move uri.spec calls to nsIPrincipal r=necko-reviewers,geckoview-reviewers,preferences-reviewers,ckerschb,ntim,snorp,valentin
Differential Revision: https://phabricator.services.mozilla.com/D82911
2020-07-29 17:33:10 +00:00
Sebastian Streich
fb1d1dc1df Bug 1558394 - Pass the TriggeringSandboxFlags to nsILoadinfo r=ckerschb,smaug,necko-reviewers,valentin
Add triggering Sandbox flags to loadinfo
***
Pass triggering Flags into Loadinfo

***
Fix triggeringSandboxflags passing

Differential Revision: https://phabricator.services.mozilla.com/D69588
2020-07-29 11:43:23 +00:00
Drew Willcoxon
99378dda74 Bug 1654439 - Part 1: Move search-one-offs.js into a jsm, add UrlbarSearchOneOffs.jsm. r=harry
This moves search-one-offs.js into a jsm without making any substantive changes,
adds a new subclass in UrlbarSearchOneOffs.jsm, and uses `UrlbarSearchOneOffs`
in `UrlbarView` instead of the base `SearchOneOffs` class. `UrlbarSearchOneOffs`
will be fleshed out in part 2.

Differential Revision: https://phabricator.services.mozilla.com/D84784
2020-07-28 02:54:37 +00:00
Narcis Beleuzu
d2ab5ee1a5 Backed out 2 changesets (bug 1654439) for lint failure on SearchOneOffs.jsm . CLOSED TREE
Backed out changeset c03e14b7c430 (bug 1654439)
Backed out changeset 51b575b0d605 (bug 1654439)
2020-07-28 03:35:15 +03:00
Drew Willcoxon
97c020d1fc Bug 1654439 - Part 1: Move search-one-offs.js into a jsm, add UrlbarSearchOneOffs.jsm. r=harry
This moves search-one-offs.js into a jsm without making any substantive changes,
adds a new subclass in UrlbarSearchOneOffs.jsm, and uses `UrlbarSearchOneOffs`
in `UrlbarView` instead of the base `SearchOneOffs` class. `UrlbarSearchOneOffs`
will be fleshed out in part 2.

Differential Revision: https://phabricator.services.mozilla.com/D84784
2020-07-27 14:55:41 +00:00
harsh
371e10380d Bug 1640665 - Use inBackground parameter of duplicateTab in duplicateTabIn. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D84236
2020-07-23 17:52:09 +00:00
Emma Malysz
fbe0b5e6ba Bug 1648637, remove fxa panel from main view and place in template r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D81637
2020-07-17 20:17:32 +00:00
Dimi Lee
0ad0e5b18c Bug 1628305 - Fallback to use host or spec when failing to get base domain in SafeBrowsingNotificationBox r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D82492
2020-07-14 06:59:18 +00:00
Sebastian Streich
38264715e9 Bug 1633710 - Move js uri.host to principal r=ckerschb,preferences-reviewers,ntim
Differential Revision: https://phabricator.services.mozilla.com/D73242
2020-07-13 18:35:01 +00:00
Kris Maglione
9d78661f88 Bug 1649221: Update ChromeUtils.generateQI callers to pass strings. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,agi,whimboo,Bebe,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D81594
2020-07-10 23:58:28 +00:00
Emma Malysz
cb57528ee2 Bug 1648640, remove character encoding panel view, panic view, SSB view, more view, and what's new panel view from main panel and place in template r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D81621
2020-07-09 00:35:30 +00:00
Matt Woodrow
17fbf88433 Bug 1649879 - Handle URIFixup that happens on a failed channel in DocumentLoadListener if available, rather than waiting for it to reach nsDocShell. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D81947
2020-07-08 23:38:22 +00:00
Matt Woodrow
8575748f00 Bug 1649879 - Remove URIFixupChild. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D81946
2020-07-08 23:37:59 +00:00
Kris Maglione
bd94db4e9a Bug 1580764: Part 2 - Use BrowsingContext IDs rather than window IDs to compute frame IDs. r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D82464
2020-07-07 21:37:53 +00:00
Dorel Luca
3e761e3907 Backed out changeset 255d9078dd17 (bug 1633710) for Browser-chrome failures in extensions/test/xpinstall/browser_datauri.js. CLOSED TREE 2020-07-06 18:38:13 +03:00
Sebastian Streich
95212989d4 Bug 1633710 - Move js uri.host to principal r=ckerschb,preferences-reviewers,ntim
Differential Revision: https://phabricator.services.mozilla.com/D73242
2020-07-06 14:00:09 +00:00
Coroiu Cristina
057efa89c8 Backed out 5 changesets (bug 1649879) for browser-chrome failures at browser/base/content/test/tabs/browser_progress_keyword_search_handling.js
Backed out changeset f9670eed4ac5 (bug 1649879)
Backed out changeset 76ab8adad34b (bug 1649879)
Backed out changeset 6dc2e9474f43 (bug 1649879)
Backed out changeset 6f905d33681f (bug 1649879)
Backed out changeset 13b19e14a332 (bug 1649879)
2020-07-06 10:44:56 +03:00
Matt Woodrow
1ef58514bd Bug 1649879 - Handle URIFixup that happens on a failed channel in DocumentLoadListener if available, rather than waiting for it to reach nsDocShell. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D81947
2020-07-06 04:29:33 +00:00
Matt Woodrow
d234fdfda8 Bug 1649879 - Remove URIFixupChild. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D81946
2020-07-06 04:29:16 +00:00
Dorel Luca
1e4fff31e4 Backed out changeset 2c46bcd325bb (bug 1633710) for Browser-chrome failures in extensions/test/xpinstall/browser_datauri.js. CLOSED TREE 2020-07-01 18:12:19 +03:00
Sebastian Streich
51a16a3ad7 Bug 1633710 - Move js uri.host to principal r=ckerschb,preferences-reviewers,ntim
Differential Revision: https://phabricator.services.mozilla.com/D73242
2020-07-01 12:21:22 +00:00
Drew Willcoxon
8cf8a6212d Bug 1646086 - Improve UrlbarProviderSearchTips's impact on ts_paint. r=mak
ts_paint depends on the first MozAfterPaint in the content window, not in the
browser as I had thought. After MozAfterPaint, it pings the parent process and
waits for a response (see `TalosPowers.loadPromise`), and then it ends. It will
wait up to 500ms for the response before timing out. Source:
https://dxr.mozilla.org/mozilla-central/source/testing/talos/talos/startup_test/tspaint_test.html

At first I modified UrlbarProviderSearchTips to wait on
`browser-delayed-startup-finished`, but the jsm kept appearing in ts_paint
profiles, and that's how I found out the above. So that's not sufficient.

There's already a promise in browser.js for waiting on the first paint in the
first content window, but it's "private." I added a public getter for it and
changed the name so it's clearer that it's related to the first content window,
not the browser window.

I also added a 500ms timeout just like the worst case in ts_paint.

Both checks (paint and the timeout) are done for a particular browser window
only the first time UrlbarProviderSearchTips sees it.

Finally, UrlbarProviderSearchTips can avoid importing BrowserWindowTracker
during startup by having browser.js pass the window to its `onLocationChange`. I
saw the BrowserWindowTracker.jsm import in some profiles while working on this.

With these changes, UrlbarProviderSearchTips no longer appears in ts_paint
profiles when I run it locally -- except when it is imported by
UrlbarProvidersManager, which ultimately happens due to setting the placeholder
text in the urlbar input. But even that doesn't appear in every profile.

I've also included the reordering of checks from a previous version of this
patch. That's still worth doing in general even if it's no longer relevant to
ts_paint.

Differential Revision: https://phabricator.services.mozilla.com/D80799
2020-06-29 21:28:07 +00:00
Gijs Kruitbosch
fca766666b Bug 1646780 - use a template to wrap the identity popup while it's not needed, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D78894
2020-06-23 14:04:49 +00:00
Dorel Luca
d4c820fa0f Backed out changeset 3671a57712e4 (bug 1646780) for Browser-chrome failures in webrtc/browser_devices_get_user_media_tear_off_tab.js 2020-06-19 04:22:23 +03:00
Gijs Kruitbosch
f457ccd655 Bug 1646780 - use a template to wrap the identity popup while it's not needed, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D78894
2020-06-19 00:02:11 +00:00
Kris Maglione
3bda67deab Bug 1638153: Part 2 - Fix uses of .rootTreeItem to get top browser window. r=geckoview-reviewers,nika,snorp
Differential Revision: https://phabricator.services.mozilla.com/D75429
2020-06-17 17:17:16 +00:00
Dave Townsend
e07f989e6c Bug 1620358: Gather telemetry on toolbar state. r=Gijs,zombie
Differential Revision: https://phabricator.services.mozilla.com/D78393
2020-06-16 21:06:15 +00:00
Nika Layzell
cde53b3bec Bug 1508306 - Part 1: Migate the Large-Allocation handler to DocumentLoadListener, r=mattwoodrow,necko-reviewers,geckoview-reviewers,agi,valentin
This removes the diagnostic warnings which used to be logged when the
Large-Allocation header was present, but failed to switch into a
Large-Allocation process. Due to the low adoption of the header, this shouldn't
be too large of a problem, but we can look into re-adding the diagnostics if
needed in the future.

The new codepath no longer performs multiple network requests for
Large-Allocation resources, and now relies on the battle-tested
DocumentLoadListener codepath for process switching.

Differential Revision: https://phabricator.services.mozilla.com/D78998
2020-06-15 23:24:07 +00:00
Nika Layzell
c867d0930c Bug 1640019 - Part 7: Remove the unused 'navigateAndRestoreByIndex' method, r=Gijs
This method was used by GroupedSHistory for prerendering, and was missed when we
ripped out the incomplete code.

Differential Revision: https://phabricator.services.mozilla.com/D78975
2020-06-15 23:24:02 +00:00
julianwels
68d7c6ffa2 Bug 1640853 - Using PermissionManager for HTTPS Only Mode upgrade exceptions. r=ckerschb,nhnt11,nika,johannh,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D77040
2020-06-15 11:19:39 +00:00
Narcis Beleuzu
a8dde16e58 Backed out 10 changesets (bug 1508306, bug 1640019) for bc failures on browser_autoOpen.js . CLOSED TREE
Backed out changeset 8844170ff408 (bug 1508306)
Backed out changeset b750f1d873cf (bug 1508306)
Backed out changeset c7170e76e676 (bug 1640019)
Backed out changeset 5905995e4815 (bug 1640019)
Backed out changeset 7bf86513348e (bug 1640019)
Backed out changeset f7d0605295f7 (bug 1640019)
Backed out changeset 521b4d5a9a89 (bug 1640019)
Backed out changeset 8542edc564bc (bug 1640019)
Backed out changeset 4f6a03152526 (bug 1640019)
Backed out changeset 30d2bf04719b (bug 1640019)
2020-06-12 22:47:50 +03:00
Nika Layzell
47c0aeb539 Bug 1508306 - Part 1: Migate the Large-Allocation handler to DocumentLoadListener, r=mattwoodrow,necko-reviewers,geckoview-reviewers,agi,valentin
This removes the diagnostic warnings which used to be logged when the
Large-Allocation header was present, but failed to switch into a
Large-Allocation process. Due to the low adoption of the header, this shouldn't
be too large of a problem, but we can look into re-adding the diagnostics if
needed in the future.

The new codepath no longer performs multiple network requests for
Large-Allocation resources, and now relies on the battle-tested
DocumentLoadListener codepath for process switching.

Differential Revision: https://phabricator.services.mozilla.com/D78998
2020-06-12 16:52:13 +00:00
Nika Layzell
8119d83e05 Bug 1640019 - Part 7: Remove the unused 'navigateAndRestoreByIndex' method, r=Gijs
This method was used by GroupedSHistory for prerendering, and was missed when we
ripped out the incomplete code.

Differential Revision: https://phabricator.services.mozilla.com/D78975
2020-06-12 16:52:09 +00:00
Emma Malysz
affa2cc671 Bug 1627676: add telemetry probes for downloads panel r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D78709
2020-06-12 17:18:07 +00:00
Marco Bonardo
2e16489d68 Bug 1642943 - Introduce a pref to control post-search DNS resolution of single word hosts. r=Gijs,mkaply
Differential Revision: https://phabricator.services.mozilla.com/D78403
2020-06-11 12:42:29 +00:00
Johann Hofmann
2f56a8a52d Bug 1515073 - Part 3 - Add support for skipping session entries without user interaction on desktop. r=JanH,Gijs
Depends on D27586

Differential Revision: https://phabricator.services.mozilla.com/D27587
2020-06-09 14:50:18 +00:00
Razvan Maries
a36bb7751f Backed out 3 changesets (bug 1638153) for perma failures on cross-origin-objects.html. CLOSED TREE
Backed out changeset f7aedc92d396 (bug 1638153)
Backed out changeset 07ec713926c6 (bug 1638153)
Backed out changeset 5a656842e241 (bug 1638153)
2020-06-01 23:51:35 +03:00
Kris Maglione
b3fcd970ec Bug 1638153: Part 2 - Fix uses of .rootTreeItem to get top browser window. r=geckoview-reviewers,nika,snorp
Differential Revision: https://phabricator.services.mozilla.com/D75429
2020-06-01 17:59:01 +00:00
Jared Wein
d9d492eda7 Bug 887515 - Restore multiple tab closings using Undo Close Tab(s) after a multiple-tab operation. r=fluent-reviewers,flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D76087
2020-05-30 06:48:18 +00:00
Mihai Alexandru Michis
415dcacc56 Backed out changeset 3d607fcf4dee (bug 887515) for causing failures in toolbar-context-menu-undo-close-tab
CLOSED TREE
2020-05-30 09:25:30 +03:00
Jared Wein
803b52c5dd Bug 887515 - Restore multiple tab closings using Undo Close Tab(s) after a multiple-tab operation. r=fluent-reviewers,flod,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D76087
2020-05-30 05:38:56 +00: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
JulianWels
2cc2e49495 Bug 1625156 - Error page for HTTPS Only Mode. r=fluent-reviewers,ckerschb,nhnt11,flod,nika,johannh,mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D72129
2020-05-26 11:45:21 +00:00
Gijs Kruitbosch
cb82792e02 Bug 1626842 - migrate the browser window title to fluent, r=zbraniecki,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D75854
2020-05-25 10:01:42 +00:00
Drew Willcoxon
a76816c826 Bug 1611645 - Don't set documentElement.title in private windows. r=Gijs
Please see https://bugzilla.mozilla.org/show_bug.cgi?id=1611645#c9 for a
summary.

Differential Revision: https://phabricator.services.mozilla.com/D76584
2020-05-23 08:44:38 +00:00
David Teller
6445aa57da Bug 1639051 - Remove fission without webrender infobar;r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D76099
2020-05-20 08:02:55 +00:00
Mike Conley
27a590bd9e Bug 1634796 - Add a panel that warns users before switching tabs when sharing the window over WebRTC. r=johannh,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D73734
2020-05-18 22:41:43 +00:00
Gijs Kruitbosch
08cecbdc20 Bug 1634051 - don't eagerly initialize the all tabs menu, r=mstriemer
The initialization costs of the TabList constructors is very small compared to
the cost of actually calling _populate, so instead of calling init() from an
idle task, we can just wait until the view actually needs to be shown.

Differential Revision: https://phabricator.services.mozilla.com/D73946
2020-05-15 17:04:29 +00:00
Razvan Maries
481517ce87 Backed out 2 changesets (bug 1558394) for perma failures on iframe_sandbox_anchor_download_block_downloads.sub.tentative.html. CLOSED TREE
Backed out changeset 79046ff8143b (bug 1558394)
Backed out changeset e13ede3c68d4 (bug 1558394)
2020-05-15 19:18:34 +03:00
Razvan Maries
5d2cb9f87e Backed out changeset a3400287932b (bug 1634051) for perma failures on browser_favicon_firstParty.js. CLOSED TREE 2020-05-15 18:59:34 +03:00
Sebastian Streich
bb0855332f Bug 1558394 - Pass the TriggeringSandboxFlags to nsILoadinfo r=ckerschb,smaug,necko-reviewers,valentin
Add triggering Sandbox flags to loadinfo
***
Pass triggering Flags into Loadinfo

Differential Revision: https://phabricator.services.mozilla.com/D69588
2020-05-15 14:03:28 +00:00
Gijs Kruitbosch
27332e0af0 Bug 1634051 - don't eagerly initialize the all tabs menu, r=mstriemer
The initialization costs of the TabList constructors is very small compared to
the cost of actually calling _populate, so instead of calling init() from an
idle task, we can just wait until the view actually needs to be shown.

Differential Revision: https://phabricator.services.mozilla.com/D73946
2020-05-15 14:50:20 +00:00
Bogdan Tara
edcb53f163 Backed out 2 changesets (bug 1558394) for nsDocShellLoadState related bustage CLOSED TREE
Backed out changeset 5889105bd089 (bug 1558394)
Backed out changeset 80a0ea17c9f8 (bug 1558394)
2020-05-14 15:17:32 +03:00
Sebastian Streich
9ce86dc585 Bug 1558394 - Pass the TriggeringSandboxFlags to nsILoadinfo r=ckerschb,smaug,necko-reviewers,valentin
Add triggering Sandbox flags to loadinfo
***
Pass triggering Flags into Loadinfo

Differential Revision: https://phabricator.services.mozilla.com/D69588
2020-05-14 10:04:44 +00:00
Gijs Kruitbosch
d6e7c731e7 Bug 1558635 - use an html:template for the customize mode palette to avoid instantiating items in the palette, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D74097
2020-05-13 23:31:05 +00:00
Neil Deakin
b8f7ac9956 Bug 1591469, move reader mode to use JSWindowActor instead of message managers, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D71452
2020-05-13 19:22:20 +00:00
Bianca Danforth
ef3ac906a2 Bug 1226236 - Allow user to remove saved login/password when being asked to update it; r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D73177
2020-05-13 16:41:48 +00:00
Marco Bonardo
b53ba0122e Bug 1634650 - Add whitelisting of domain suffixes for URIFixup. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D74015
2020-05-13 16:05:04 +00:00
Gijs Kruitbosch
e83010ea13 Bug 1196151 - use browsing contexts for urifixupinfo's consumer property, r=mak
Differential Revision: https://phabricator.services.mozilla.com/D74559
2020-05-13 14:54:47 +00:00
Bogdan Tara
be25a1cf76 Backed out changeset 3a50d857d097 (bug 1591469) for newtab failures complaining about AboutReaderParent CLOSED TREE 2020-05-12 06:13:10 +03:00
Neil Deakin
f9054b8cff Bug 1591469, move reader mode to use JSWindowActor instead of message managers, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D71452
2020-05-12 01:06:51 +00:00
Dão Gottwald
c25aee166f Bug 1636112 - Make post-prompt animation obey prefers-reduced-motion. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D74231
2020-05-11 12:06:50 +00:00
Gijs Kruitbosch
5705baea2e Bug 1636559 - make confirmation hint panel lazy, r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D74466
2020-05-08 21:51:31 +00:00
Dorel Luca
bdddaad896 Backed out changeset 57d78ba110be (bug 1634650) for marionette failures in migration/tests/marionette/test_refresh_firefox.py. CLOSED TREE 2020-05-07 19:36:39 +03:00
Marco Bonardo
410cff4774 Bug 1634650 - Add whitelisting of domain suffixes for URIFixup. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D74015
2020-05-07 08:42:10 +00:00
Ian Moody
011b59d595 Bug 1536556 - Replace raw thrown Cr.ERRORs with Components.Exception. r=mossop,remote-protocol-reviewers,marionette-reviewers,whimboo,necko-reviewers,geckoview-reviewers,valentin,agi
Raw Cr.ERROR don't get stack information, same as throwing JS literals instead
of `new Error()`s.

This was done automatically with a new eslint rule that will be introduced in
the next commit.  One instance of a raw Cr.ERROR was not replaced since it is
used in a test that specifically checks the preservation of raw Cr values in
XPCJS.  The rule will be disabled for that instance.

Differential Revision: https://phabricator.services.mozilla.com/D28073
2020-05-05 17:41:36 +00:00
Emilio Cobos Álvarez
761e9dfe4c Bug 1635094 - Cleanup the ReferrerInfo code. r=ckerschb
The cast in InitWithNode is wrong. AsElement() asserts instead of
checking the flag, so we always pass an element (and if we didn't we'd
have type confusion problems). I audited the callers and we're fine.

Anyhow, always require an element, and add two convenience constructors
for C++ code.

Differential Revision: https://phabricator.services.mozilla.com/D73636
2020-05-04 18:50:20 +00:00
Cosmin Sabou
71a40eae48 Backed out 2 changesets (bug 1635094) for build bustages on nsMacShellService.cpp. CLOSED TREE
Backed out changeset 0a2b0c6ea19a (bug 1635094)
Backed out changeset ead4f26f76ee (bug 1635094)
2020-05-04 20:04:06 +03:00
Emilio Cobos Álvarez
6dde680742 Bug 1635094 - Cleanup the ReferrerInfo code. r=ckerschb
The cast in InitWithNode is wrong. AsElement() asserts instead of
checking the flag, so we always pass an element (and if we didn't we'd
have type confusion problems). I audited the callers and we're fine.

Anyhow, always require an element, and add two convenience constructors
for C++ code.

Differential Revision: https://phabricator.services.mozilla.com/D73636
2020-05-04 16:26:51 +00:00
Emma Malysz
b7c5fd62b7 Bug 1634026, lazy load panic button panel by storing in HTML template r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D73106
2020-04-30 20:34:35 +00:00
Dão Gottwald
042ea1810d Bug 1633635 - Make tab animations obey prefers-reduced-motion. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D72791
2020-04-30 18:43:37 +00:00
Gijs Kruitbosch
7073bb6903 Bug 1634075 - back out changeset 0aa77ee04caa (bug 1583696) over regressions with overly long non-wrapping prompt text and visual appearance with lightweight themes, r=MattN
Things that were broken:

- prompts become unreadable when using dark-background lwthemes, because they
  keep the window text-shadow (due to the namespace change of tabmodalprompt)
- prompts with long text without word-wrap possibilities
  (e.g. `alert("x".repeat(1000))`) cause the text to escape its container.

Differential Revision: https://phabricator.services.mozilla.com/D73131
2020-04-29 20:30:37 +00:00
Dão Gottwald
dfbeca257b Bug 1629757 - Use switchToTabHavingURI to load about:addons. r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D72138
2020-04-28 17:54:07 +00:00
pbz
04d2b23c67 Bug 1632199 - Suppress PopupNotifications while tab system prompts are shown. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D72700
2020-04-28 16:04:06 +00:00
Tim Nguyen
059c4f1854 Bug 1583696 - Remove XUL grid from toolkit/components/prompts/content/tabprompts.jsm. r=MattN,marionette-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D61442
2020-04-23 09:48:17 +00:00
Andreea Pavel
b9c773a74f Backed out changeset 2f06fd7ef8b6 (bug 1583696) for failing test_bug619644.html on a CLOSED TREE 2020-04-23 05:16:18 +03:00
Tim Nguyen
09f305d392 Bug 1583696 - Remove XUL grid from toolkit/components/prompts/content/tabprompts.jsm. r=MattN,marionette-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D61442
2020-04-22 23:46:35 +00:00
Dão Gottwald
cc338e2e6d Bug 1631696 - Disable the stop/reload animation during startup, restoring pre-bug 1629953 behavior. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D71952
2020-04-22 18:32:45 +00:00
Gijs Kruitbosch
b14bbb1d75 Bug 1627685 - do not wipe out widths if the search bar only overflows temporarily, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D71343
2020-04-22 09:18:49 +00:00
Gijs Kruitbosch
1c0a1c9f3e Bug 1631358 - remove traces of CPOWs from browser/, testing/ and toolkit/, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D71510
2020-04-21 14:05:35 +00:00
Marco Bonardo
45a8a38b0b Bug 1080682 - Use the Public Suffix List to distinguish foo.bar searches in URIFixup (and consequently the Address Bar). r=Gijs,dao
Use the PSL list to evaluate whether user typed strings in urlbar are valid URLs.
Cleanup the URIFixupInfo.fixupChangedProtocol property to be set appropriately.
Auto-correct the most common suffix typos for com, net, org.

Stop using URIFixup to trim urls when the urlbar value is set, instead always trim,
then untrim on focus if the trimmed string would cause, on navigation, a search
instead of a visit. This saves us from doing the URIfixup work on page load and
tab switch, running it only when strictly necessary.

Fix the "Did you mean to go to" prompt to show a protocol, avoiding the
confusing (but funny) "did you mean to go to 'space'" prompts.

Differential Revision: https://phabricator.services.mozilla.com/D68796
2020-04-20 12:39:08 +00:00
Neil Deakin
c7e68f61b7 Bug 1614750, convert translation bar to use JSWindowActor, r=florian
Differential Revision: https://phabricator.services.mozilla.com/D67535
2020-04-18 12:15:10 +00:00
pbz
3623dafadb Bug 1615588 - TabModalPrompt(Box): Added tab level system prompts. r=MattN
This patch updates the prompt code in browser.js and the tabprompts.jsm module
to support the two new prompt types: tab and content
- Updated TabModalPromptBox to support both prompt types
- Updated TabModalPrompt styles for tab prompt type

Differential Revision: https://phabricator.services.mozilla.com/D67134
2020-04-16 14:44:02 +00:00
Marco Bonardo
fb0662edda Bug 1628906 - First search in a tab from location bar could trigger an "Invalid URL" error page. r=Gijs,nika,mattwoodrow
Before 1496578, URIFixup::keywordToURI used to do a synchronous IPC call to be
able to access search engines from the content process. Consumers of URIFixup
didn't care. Bug 1496578 moved the IPC messaging to the callers, in particular
nsDocShell, but assumed nsDocShellLoadState wasn't loading from content.
It looks like in some cases it does, so this adds another sync IPC call for
GetFixupURIInfo.
The total numer of sync IPCs should not change from before Bug 1496578, URIFIxup
was just doing it internally, while now it happens at the call point.
Note the long term plan would be for these docshell objects callers to just
handle URIs, while the UI code should do fixup.
Bug 1375244 tracks the removal of these sync IPC messages.

Differential Revision: https://phabricator.services.mozilla.com/D70607

--HG--
extra : moz-landing-system : lando
2020-04-15 22:39:38 +00:00
Christoph Kerschbaumer
7e43ad336f Bug 1621987: Implement Sec-Fetch-User. r=baku,edgar,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D69392

--HG--
extra : moz-landing-system : lando
2020-04-16 08:04:26 +00:00
Dão Gottwald
483b6d0917 Bug 1629953 - Use prefers-reduced-motion media query for the stop/reload button animation. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D70899

--HG--
extra : moz-landing-system : lando
2020-04-15 08:48:08 +00:00
Mihai Alexandru Michis
72126bcffd Backed out changeset c522095c6db2 (bug 1629953) for causing failures in browser_aboutStopReload.js
CLOSED TREE
2020-04-15 01:57:31 +03:00
Dão Gottwald
ec2c37d516 Bug 1629953 - Use prefers-reduced-motion media query for the stop/reload button animation. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D70899

--HG--
extra : moz-landing-system : lando
2020-04-14 17:33:13 +00:00
Dão Gottwald
f49f6b2f27 Bug 1628731 - Reinstate shouldRemoveFocusedAttribute hack. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D70852

--HG--
extra : moz-landing-system : lando
2020-04-14 16:18:01 +00:00
Csoregi Natalia
954b969608 Backed out 5 changesets (bug 1615588) for browser-chrome failures e.g. browser_beforeunload_duplicate_dialogs.js. CLOSED TREE
Backed out changeset 751cca7566a8 (bug 1615588)
Backed out changeset 474aca043834 (bug 1615588)
Backed out changeset 7839b95ef76c (bug 1615588)
Backed out changeset 32bb87f48b13 (bug 1615588)
Backed out changeset 264e642042b1 (bug 1615588)

--HG--
extra : rebase_source : 41ed149c97382bc1cf823abc56811b382cae0207
2020-04-10 21:19:15 +03:00
pbz
5ef7a7ac78 Bug 1615588 - TabModalPrompt(Box): Added tab level system prompts. r=MattN
This patch updates the prompt code in browser.js and the tabprompts.jsm module
to support the two new prompt types: tab and content
- Updated TabModalPromptBox to support both prompt types
- Updated TabModalPrompt styles for tab prompt type

Differential Revision: https://phabricator.services.mozilla.com/D67134

--HG--
extra : moz-landing-system : lando
2020-04-10 16:44:57 +00:00
William Durand
b90b5b3778 Bug 1489430 - Add "Remove Extension" context menu item for pageAction. r=robwu,mstriemer,fluent-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D69831

--HG--
extra : moz-landing-system : lando
2020-04-08 14:18:53 +00:00
Dão Gottwald
3b8b1171af Bug 1627969 - Remove the megabar pref. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D70023

--HG--
extra : moz-landing-system : lando
2020-04-08 19:04:24 +00:00
Nika Layzell
f036c4e342 Bug 1616353 - Part 8: Remove forceInitialBrowserNonRemote, r=Gijs
This method is no longer necessary, as frontend will always make the correct
decisions for the remoteness of the intial content browser by reading
openWindowInfo.

Differential Revision: https://phabricator.services.mozilla.com/D67058

--HG--
extra : moz-landing-system : lando
2020-04-07 21:39:47 +00:00
Nika Layzell
b99cf8f798 Bug 1616353 - Part 7.4: Pass nsOpenWindowInfo through tabbrowser, r=Gijs
The interface changes which browser.js and tabbrowser.js are being updated for
are performed in earlier parts. This patch just covers the required changes to
frontend code to propagate this information down to the nsFrameLoader when it is
created.

Differential Revision: https://phabricator.services.mozilla.com/D67053

--HG--
extra : moz-landing-system : lando
2020-04-07 21:39:37 +00:00
Nika Layzell
98528edbf2 Bug 1616353 - Part 6.2: Remove setOriginAttributesBeforeLoading API, r=smaug
This API is no longer possible to implement, as it will always try to set the
OriginAttributes on a content BrowsingContext after it has been attached, and JS
can never observe a detached BrowsingContext.

Users of this API are instead changed to perform assertions that
originAttributes have already been set correctly.

Differential Revision: https://phabricator.services.mozilla.com/D67046

--HG--
extra : moz-landing-system : lando
2020-04-07 21:39:14 +00:00
Cosmin Sabou
aefb5f9c88 Backed out 24 changesets (bug 1616353) for fission assertion failures nsGlobalWindowOuter.cpp.
Backed out changeset 3a43210e4900 (bug 1616353)
Backed out changeset cb77e9149cf8 (bug 1616353)
Backed out changeset 3aacc7cfe33f (bug 1616353)
Backed out changeset c026b06063a5 (bug 1616353)
Backed out changeset 580e790c5d17 (bug 1616353)
Backed out changeset 6f09bc1c476d (bug 1616353)
Backed out changeset 6955906262c0 (bug 1616353)
Backed out changeset a7700472807a (bug 1616353)
Backed out changeset a4735096e01b (bug 1616353)
Backed out changeset bd1706c57d91 (bug 1616353)
Backed out changeset 363c13296fda (bug 1616353)
Backed out changeset e414df387524 (bug 1616353)
Backed out changeset 765d3364cca0 (bug 1616353)
Backed out changeset 8a13355b4ac4 (bug 1616353)
Backed out changeset ada17fb8fca7 (bug 1616353)
Backed out changeset 6b6b99af186d (bug 1616353)
Backed out changeset ea966e78b296 (bug 1616353)
Backed out changeset cb88e0bbb3b9 (bug 1616353)
Backed out changeset f89a89015114 (bug 1616353)
Backed out changeset ae6058552969 (bug 1616353)
Backed out changeset f42bb5b48c1b (bug 1616353)
Backed out changeset 1ab9d22c73bb (bug 1616353)
Backed out changeset 2692c2c1396b (bug 1616353)
Backed out changeset 11a279c8da08 (bug 1616353)
2020-04-06 20:03:02 +03:00
Nika Layzell
60b5a34a33 Bug 1616353 - Part 8: Remove forceInitialBrowserNonRemote, r=Gijs
This method is no longer necessary, as frontend will always make the correct
decisions for the remoteness of the intial content browser by reading
openWindowInfo.

Differential Revision: https://phabricator.services.mozilla.com/D67058

--HG--
extra : moz-landing-system : lando
2020-04-06 14:30:22 +00:00
Nika Layzell
7be2efaa78 Bug 1616353 - Part 7.4: Pass nsOpenWindowInfo through tabbrowser, r=Gijs
The interface changes which browser.js and tabbrowser.js are being updated for
are performed in earlier parts. This patch just covers the required changes to
frontend code to propagate this information down to the nsFrameLoader when it is
created.

Differential Revision: https://phabricator.services.mozilla.com/D67053

--HG--
extra : moz-landing-system : lando
2020-04-06 14:30:07 +00:00
Nika Layzell
f0e314fa2a Bug 1616353 - Part 6.2: Remove setOriginAttributesBeforeLoading API, r=smaug
This API is no longer possible to implement, as it will always try to set the
OriginAttributes on a content BrowsingContext after it has been attached, and JS
can never observe a detached BrowsingContext.

Users of this API are instead changed to perform assertions that
originAttributes have already been set correctly.

Differential Revision: https://phabricator.services.mozilla.com/D67046

--HG--
extra : moz-landing-system : lando
2020-04-06 14:29:50 +00:00
Mark Banner
bb413bca06 Bug 1590803 - Clean up uses of SearchService.getDefaultEngines where we can now use engine.isAppProvided. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D69235

--HG--
extra : moz-landing-system : lando
2020-04-03 11:36:35 +00:00
Dorel Luca
af82b27122 Backed out 2 changesets (bug 1590803) for browser-chrome failures in browser/browser_placeholder.js. CLOSED TREE
Backed out changeset 6256694a9047 (bug 1590803)
Backed out changeset efd1d1868d70 (bug 1590803)

--HG--
extra : histedit_source : 0dfcd9580b8b8a2274402ba9f32f43a07b7854dd
2020-04-02 18:39:32 +03:00
Mark Banner
b85978d734 Bug 1590803 - Clean up uses of SearchService.getDefaultEngines where we can now use engine.isAppProvided. r=daleharvey
Depends on D69233

Differential Revision: https://phabricator.services.mozilla.com/D69235

--HG--
extra : moz-landing-system : lando
2020-04-02 14:31:45 +00:00
Zibi Braniecki
44bbaba5c4 Bug 1602808 - Revert Window Title to use DTD. r=fluent-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D68661

--HG--
extra : moz-landing-system : lando
2020-04-01 18:44:03 +00:00
Dão Gottwald
9569fc3fef Bug 1626265 - Don't hide the status panel while a link's context menu is open. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D69182

--HG--
extra : moz-landing-system : lando
2020-04-01 11:06:31 +00:00
Narcis Beleuzu
7fba7adfcd Backed out changeset 16d82f57e0fb (bug 1602808) for bc failures on browser_privatebrowsing_windowtitle.js . CLOSED TREE 2020-04-01 10:24:08 +03:00
Zibi Braniecki
329298b6fc Bug 1602808 - Revert Window Title to use DTD. r=fluent-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D68661

--HG--
extra : moz-landing-system : lando
2020-03-31 23:52:03 +00:00
Gijs Kruitbosch
ab9fa951ca Bug 1616639 - revert url bar and search bar width when removing the search bar from the navbar, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D64140

--HG--
extra : moz-landing-system : lando
2020-03-31 17:25:50 +00:00
Harry Twyford
70b99b17f1 Bug 1623978 - Disable Search Tips on secondary location changes. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D68067

--HG--
extra : moz-landing-system : lando
2020-03-31 13:56:34 +00:00
prathiksha
75c7060274 Bug 1303775 - Fix race conditions prevalent with closing captive portal tabs that re-direct to the canonicalURL after successful login/abort. r=johannh,nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D65554

--HG--
extra : moz-landing-system : lando
2020-03-26 19:04:59 +00:00
Stefan Hindli
bcca559238 Backed out changeset 6b86d0dfff95 (bug 1303775) for causing perma bc failures in browser/base/content/test/captivePortal/browser_CaptivePortalWatcher.js CLOSED TREE 2020-03-26 15:52:02 +02:00
prathiksha
743ccb63ac Bug 1303775 - Fix race conditions prevalent with closing captive portal tabs that re-direct to the canonicalURL after successful login/abort. r=johannh,nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D65554

--HG--
extra : moz-landing-system : lando
2020-03-26 12:43:11 +00:00
Dão Gottwald
80fb089287 Bug 1623673 - Make gKeywordURIFixup a good browser.js citizen. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D67508

--HG--
extra : moz-landing-system : lando
2020-03-20 07:45:26 +00:00
Andrea Marchesini
1e01916653 Bug 1531289 - target=_blank with a download should close the download tab, r=nika,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D66454

--HG--
extra : moz-landing-system : lando
2020-03-19 13:03:14 +00:00
meenohara
812500d8dc Bug 1567827 Get rid of security.insecure_password.ui.enabled r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D67178

--HG--
extra : moz-landing-system : lando
2020-03-19 11:28:36 +00:00
Masatoshi Kimura
3df19bc1d4 Bug 1623222 - Remove the charset parameter from nsITextToSubURI::UnEscapeURIForUI. r=hsivonen
Only 3 callers are using a non-UTF-8 charset as the first parameter.
* MediaDocument.cpp: This does not make sense because the "filename" part of
  URLs will always be encoded with UTF-8.
* nsContextMenu.js: This is wrong because "mailto:" URLs don't care about the
  document charset.
* Finder.jsm: This caused bug 1623222.

Differential Revision: https://phabricator.services.mozilla.com/D67386

--HG--
extra : moz-landing-system : lando
2020-03-19 10:45:28 +00:00
Sam Foster
08d2b6aa6d Bug 1618696 - Prevent overlapping show/hide of the ConfirmationHint. r=MattN
* Track and clear a timerID for the ConfirmationHint to avoid callbacks from one show() call interfering with a subsequent call.
* Tighten up waiting for and verifying the confirmation hint in browser_doorhanger_generated_password.js
* Pass in the correct browser when retrieving the anchorNode for the confirmation hint.

Differential Revision: https://phabricator.services.mozilla.com/D67398

--HG--
extra : moz-landing-system : lando
2020-03-18 23:05:57 +00:00
Sydney
01e6267b90 Bug 1587496 - Update nsIBrowserHandler users in browser.js to use new BrowserHandler lazy getter. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D67027

--HG--
extra : moz-landing-system : lando
2020-03-18 19:31:54 +00:00
Coroiu Cristina
0c837bbcd0 Backed out changeset 0453b0a0c49d (bug 1531289) for browser-chrome failures at uriloader/exthandler/tests/mochitest/browser_auto_close_window.js on a CLOSED TREE 2020-03-18 15:55:43 +02:00
Andrea Marchesini
c486efbb58 Bug 1531289 - target=_blank with a download should close the download tab, r=nika,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D66454

--HG--
extra : moz-landing-system : lando
2020-03-18 12:08:24 +00:00
Dão Gottwald
976a235654 Bug 1610479 - Remove UrlbarInput's dependency on focusAndSelectUrlBar. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D66954

--HG--
extra : moz-landing-system : lando
2020-03-16 15:53:32 +00:00
Marco Bonardo
2dc20c6432 Bug 1621328 - Move CreateExposableURI into nsIOService. r=Gijs,mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D66269

--HG--
extra : moz-landing-system : lando
2020-03-13 12:44:36 +00:00
Ed Lee
acb960676c Bug 1620556 - Automatic code fixes for Prettier 1.19.1 upgrade. r=Standard8,remote-protocol-reviewers,marionette-reviewers,webcompat-reviewers,perftest-reviewers,sparky,whimboo,denschub
Differential Revision: https://phabricator.services.mozilla.com/D66128

--HG--
extra : moz-landing-system : lando
2020-03-13 23:38:52 +00:00
Dão Gottwald
7ba24289ce Bug 1539838 - Move SetPageProxyState into UrlbarInput. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D66288

--HG--
extra : moz-landing-system : lando
2020-03-12 18:15:58 +00:00
Theo Ottah
bb0e7503e5 Bug 1612650 - Shift clicking navigation buttons in private browser opens content in private window r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D65886

--HG--
extra : moz-landing-system : lando
2020-03-13 00:07:05 +00:00
Mike Conley
8ba260392e Bug 1619992 - Split AboutNewTabService into AboutNewTabParentService and AboutNewTabChildService. r=perftest-reviewers,Mardak,sparky
This patch does the following:
* Moves most logic for initiating about:home / about:newtab into AboutNewTab.jsm
* Makes AboutNewTab the API surface for overriding the default about:newtab URLs.
* Reduces the surface of nsIAboutNewTabService, and makes the properties read-only
* Splits the remaining code in the nsIAboutNewTabService into an implementation for
  the parent process, and one for content processes.

This split will hopefully help reduce confusion about which code in
AboutNewTabService is running in which process.

Differential Revision: https://phabricator.services.mozilla.com/D65569

--HG--
rename : browser/components/newtab/test/xpcshell/test_AboutNewTabService.js => browser/components/newtab/test/xpcshell/test_AboutNewTab.js
extra : moz-landing-system : lando
2020-03-11 03:10:29 +00:00
Dorel Luca
6c6fc9f3dc Backed out changeset 9160f18bc24e (bug 1619992) for XPCshell failures in newtab/test/xpcshell/test_AboutNewTab.js
--HG--
rename : browser/components/newtab/test/xpcshell/test_AboutNewTab.js => browser/components/newtab/test/xpcshell/test_AboutNewTabService.js
2020-03-11 04:20:31 +02:00
Mike Conley
4cb59612e3 Bug 1619992 - Split AboutNewTabService into AboutNewTabParentService and AboutNewTabChildService. r=perftest-reviewers,Mardak,sparky
This patch does the following:
* Moves most logic for initiating about:home / about:newtab into AboutNewTab.jsm
* Makes AboutNewTab the API surface for overriding the default about:newtab URLs.
* Reduces the surface of nsIAboutNewTabService, and makes the properties read-only
* Splits the remaining code in the nsIAboutNewTabService into an implementation for
  the parent process, and one for content processes.

This split will hopefully help reduce confusion about which code in
AboutNewTabService is running in which process.

Differential Revision: https://phabricator.services.mozilla.com/D65569

--HG--
rename : browser/components/newtab/test/xpcshell/test_AboutNewTabService.js => browser/components/newtab/test/xpcshell/test_AboutNewTab.js
extra : moz-landing-system : lando
2020-03-11 01:25:31 +00:00
Gijs Kruitbosch
703ed9959d Bug 1620613 - improve checks for the webrender + fission infobar, r=Yoric
Differential Revision: https://phabricator.services.mozilla.com/D66123

--HG--
extra : moz-landing-system : lando
2020-03-10 09:08:09 +00:00
Dão Gottwald
61b4e4cf7f Bug 1620626 - Move checkEmptyPageOrigin to BrowserUtils. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D65861

--HG--
extra : moz-landing-system : lando
2020-03-09 15:52:06 +00:00
Dão Gottwald
1f136fd774 Bug 1610475 - Move URLBarSetURI to UrlbarInput. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D65535

--HG--
rename : browser/components/urlbar/tests/browser/browser_URLBarSetURI.js => browser/components/urlbar/tests/browser/browser_UrlbarInput_setURI.js
extra : moz-landing-system : lando
2020-03-06 16:27:16 +00:00
Dale Harvey
3accbdadfa Bug 1615901 - Dont send Origin header with context menu searches. r=ckerschb,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D63630

--HG--
extra : moz-landing-system : lando
2020-03-06 14:18:34 +00:00
Dão Gottwald
2b154f8360 Bug 1610533 - Move losslessDecodeURI to UrlbarInput. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D65092

--HG--
extra : moz-landing-system : lando
2020-03-04 14:14:25 +00:00
Dão Gottwald
8cb5663fca Bug 1619916 - Remove ancient getWebNavigation helper function. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D65311

--HG--
extra : moz-landing-system : lando
2020-03-04 12:03:53 +00:00
Dão Gottwald
d5dc8413cf Bug 1619913 - Remove unused global constants from browser.js. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D65310

--HG--
extra : moz-landing-system : lando
2020-03-04 11:19:58 +00:00
David Teller
de37ecf1a7 Bug 1607366 - Display a warning when we're running Fission without WebRender;r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D61827

--HG--
extra : moz-landing-system : lando
2020-03-02 19:29:17 +00:00
Dave Townsend
6b18fc8fb5 Bug 1617682: Add a menu option to uninstall an ssb. r=Gijs.
Differential Revision: https://phabricator.services.mozilla.com/D63921

--HG--
extra : moz-landing-system : lando
2020-03-02 10:29:41 +00:00
Gijs Kruitbosch
3738af45a4 Bug 1618379 - remove Web Replay (recordExecution/replayExecution) remnants from browser code, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D64747

--HG--
extra : moz-landing-system : lando
2020-02-28 16:03:08 +00:00
Mihai Alexandru Michis
6ea754b170 Backed out changeset 22f74b61de35 (bug 1607366) for causing mochitest fission failures.
CLOSED TREE
2020-02-27 17:57:30 +02:00
David Teller
ebe25e677b Bug 1607366 - Display a warning when we're running Fission without WebRender;r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D61827

--HG--
extra : moz-landing-system : lando
2020-02-27 13:59:23 +00:00
Dão Gottwald
65e9ed9d0a Bug 1617899 - gBrowserInit._delayedStartup shouldn't call SessionStore in the middle of announcing that delayed startup has finished. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D64088

--HG--
extra : moz-landing-system : lando
2020-02-25 15:59:35 +00:00
Kris Maglione
f3354d4788 Bug 1617254: Rename BrowsingContext.getChildren() to .children. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D63699

--HG--
extra : moz-landing-system : lando
2020-02-25 22:33:53 +00:00
Arthur Iakab
73b6d9dca6 Backed out changeset 5616425b54da (bug 1617254)for casuing multiple browser-chrome failures.
CLOSED TREE
2020-02-26 00:09:34 +02:00
Kris Maglione
c65ef42473 Bug 1617254: Rename BrowsingContext.getChildren() to .children. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D63699

--HG--
extra : moz-landing-system : lando
2020-02-25 21:03:58 +00:00
Noemi Erli
6b488deed0 Backed out changeset 034e2e79ecfa (bug 1617254) for causing build bustages CLOSED TREE 2020-02-25 21:59:14 +02:00
Kris Maglione
e4c4115afb Bug 1617254: Rename BrowsingContext.getChildren() to .children. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D63699

--HG--
extra : moz-landing-system : lando
2020-02-25 19:39:25 +00:00
Andrew Osmond
772f973027 Bug 1608189 - Allow WebRender captures on beta/release if pref is set. r=jrmuizel,mconley
Differential Revision: https://phabricator.services.mozilla.com/D62916

--HG--
extra : moz-landing-system : lando
2020-02-25 15:23:31 +00:00
shindli
dba7079347 Backed out changeset 3f52616a34d3 (bug 1607366) for causing bc failures in browser_startup_flicker.js CLOSED TREE 2020-02-25 15:52:14 +02:00
David Teller
25f863ae92 Bug 1607366 - Display a warning when we're running Fission without WebRender;r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D61827

--HG--
extra : moz-landing-system : lando
2020-02-22 10:03:42 +00:00
Michael Kaply
8f1480c9ed Bug 1616832 - Don't run code after delayed startup. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D63491

--HG--
extra : moz-landing-system : lando
2020-02-20 15:38:33 +00:00
Dão Gottwald
4d610df268 Bug 1508171 - Remove gBrowser.initialBrowser. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D63332

--HG--
extra : moz-landing-system : lando
2020-02-19 15:49:19 +00:00
Gijs Kruitbosch
766d80fdda Bug 1566786 - don't leave stop/reload button without an icon if the animation gets cancelled, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D63084

--HG--
extra : moz-landing-system : lando
2020-02-17 17:27:08 +00:00
Dão Gottwald
3d091ee473 Bug 1545046 - Hide the container label in the URL bar in small windows. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D62609

--HG--
extra : moz-landing-system : lando
2020-02-14 18:15:55 +00:00
Mike Conley
d8069ef65c Bug 1607545 - Don't record about_home_topsites_first_paint scalar unless the first windows initial tab is about:home. r=k88hudson
The test fix was reviewed by Ed Lee (edilee@mozilla.com) in https://phabricator.services.mozilla.com/D61401, and then
that change was rolled into this commit.

Differential Revision: https://phabricator.services.mozilla.com/D60416

--HG--
extra : moz-landing-system : lando
2020-02-12 19:17:12 +00:00
Nika Layzell
6ff27537b1 Bug 1602903 - Collect per-window useRemoteSubframes telemetry, r=mconley
This telemetry records, for each toplevel window, the relationship between the
actual fission-enabled status of the window, and the "fission.autostart" pref.

This takes the form of a categorized telemetry histogram with the following
keys:
 * EnabledByAutostart:  useRemoteSubframes == true   fission.autostart == true
 * EnabledByUser:       useRemoteSubframes == true   fission.autostart == false
 * DisabledByAutostart: useRemoteSubframes == false  fission.autostart == false
 * DisabledByUser:      useRemoteSubframes == false  fission.autostart == true

'DisabledByUser' helps indicate useful information such as how often fission
testers need to open non-fission windows due to breakage, while
'EnabledByAutostart' and 'EnabledByUser' helps give a better image of how many
people are testing fission.

Differential Revision: https://phabricator.services.mozilla.com/D61927

--HG--
extra : moz-landing-system : lando
2020-02-10 21:46:51 +00:00
Marco Bonardo
5af1f5f1ef Bug 1601052 - Merge openViewOnFocus and retained results features. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D60668

--HG--
extra : moz-landing-system : lando
2020-01-31 08:30:34 +00:00
Oana Pop Rus
aace55be1b Backed out changeset cfb9cc9ee352 (bug 1607545) for node failures on a CLOSED TREE 2020-01-25 01:21:24 +02:00
Mike Conley
5a5b08df8c Bug 1607545 - Don't record about_home_topsites_first_paint scalar unless the first windows initial tab is about:home. r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D60416

--HG--
extra : moz-landing-system : lando
2020-01-24 21:08:30 +00:00
Kendall Werts
7f966c7fbf Bug 1606265 - Work on new tab containers menu popup. r=fluent-reviewers,Gijs,flod
Added right click on new tab button to open containers menu.
Removed long press and added option to enable left click in preferences menu.
Renamed privacy.userContext.longPressBehavior to privacy.userContext.newTabContainer.enabled

Differential Revision: https://phabricator.services.mozilla.com/D58410

--HG--
extra : moz-landing-system : lando
2020-01-23 22:28:30 +00:00
Mike Conley
ea70cbeec9 Bug 1576917 - Port PopupBlocker to JSWindowActors to make it Fission-compatible. r=NeilDeakin
This patch was started by Alex Vamvounis <a.vamvounis@gmail.com> and finished by
Mike Conley <mconley@mozilla.com>

Differential Revision: https://phabricator.services.mozilla.com/D53075

--HG--
extra : moz-landing-system : lando
2020-01-22 21:24:19 +00:00
Neil Deakin
87bf897e88 Bug 1598919, move Browser:LoadURI into BrowserTabParent actor, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D54411

--HG--
extra : moz-landing-system : lando
2020-01-20 15:19:14 +00:00
Harry Twyford
cf63dc31df Bug 1604798 - Re-focus Urlbar more reliably after exiting customize mode. r=dao
focusAndSelectUrlbar can fire after isCustomizing() is false but before customizeMode is fully exited. This means the Urlbar is refocused but then quickly loses focus after the main browser window is focused. By adding this additional check we can be sure that the browser focus event occurs before the Urlbar is refocused.

Differential Revision: https://phabricator.services.mozilla.com/D59715

--HG--
extra : moz-landing-system : lando
2020-01-16 15:22:47 +00:00
Harry Twyford
8ad4e1813a Bug 1606909 - Port Tips from the experiment behind a pref. r=adw,fluent-reviewers,flod
Top Sites must be disabled for this to work correctly. This is because we haven't defined the behaviour for when two restricting providers are active. Bug 1607797 must be resolved before this is preffed on.

Differential Revision: https://phabricator.services.mozilla.com/D59351

--HG--
extra : moz-landing-system : lando
2020-01-14 16:28:46 +00:00
Dimi Lee
10c00c38cf Bug 1600878 - P3. Do not store contentBlockingEvent in RemoteSecurityUI.jsm r=timhuang,Ehsan
ContentBlockingEvents is now accessed via WindowGlobalActor::ContentBlockingEvents.
Updating and storing contentBlockingEvent in RemoteSecurityUI are no longer needed.

Depends on D55622

Differential Revision: https://phabricator.services.mozilla.com/D55623

--HG--
extra : moz-landing-system : lando
2019-12-17 11:25:27 +00:00
Dimi Lee
27d4d88bfe Bug 1600878 - P2. Use contentBlockingEvents in WindowGlobalParent instead of contentBlockingEvent in RemoteSecurityUI r=timhuang,Ehsan
ContentBlockingEvent in RemoteSecurityUI is updated after receiving a notification from a child process.
Since contentBlockingEvent will be removed from the child, this patch removes the use of
contentBlockingEvent in RemoteSecurityUI and uses the API defined in WindowGlobalActor.

Depends on D55621

Differential Revision: https://phabricator.services.mozilla.com/D55622

--HG--
extra : moz-landing-system : lando
2019-12-17 11:25:23 +00:00
Dão Gottwald
f536402657 Bug 1606069 - Enable openViewOnFocus for about:newtab and about:home. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D59548

--HG--
extra : moz-landing-system : lando
2020-01-13 19:18:16 +00:00
Shane Caraveo
7fa8b283f6 Bug 1544975 remove private window extension change notification r=robwu,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D57716

--HG--
extra : moz-landing-system : lando
2020-01-03 23:01:54 +00:00
Neil Deakin
16f95497b9 Bug 1601301, rework webrtc permission granting UI around JSWindowActor, performing the work of determining the ultimate state for the tab icon and menu in the parent rather than the content process, r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D56570

--HG--
rename : browser/modules/webrtcUI.jsm => browser/actors/WebRTCParent.jsm
extra : moz-landing-system : lando
2020-01-10 15:09:59 +00:00
Dão Gottwald
3225b46d32 Bug 1607170 - Remove openNewTabWith, openNewWindowWith. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D58754

--HG--
extra : moz-landing-system : lando
2020-01-07 11:00:30 +00:00
Andreea Pavel
c4508fa4ad Backed out changeset 564b928b0203 (bug 1607170) for crashing browser_newWindowDrop.js on a CLOSED TREE 2020-01-06 16:31:37 +02:00
Dão Gottwald
3baab4766b Bug 1607170 - Remove openNewTabWith, openNewWindowWith. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D58754

--HG--
extra : moz-landing-system : lando
2020-01-06 12:41:19 +00:00
Dave Townsend
06456f883d Bug 1603272: List installed site specific browsers in the app menu. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D57015

--HG--
extra : moz-landing-system : lando
2019-12-23 18:58:03 +00:00
Vijay Budhram
69c06d53ba Bug 1597994 - Update FxA menu manage account labels r=markh,flod
Differential Revision: https://phabricator.services.mozilla.com/D57548

--HG--
extra : moz-landing-system : lando
2019-12-23 14:42:09 +00:00
Dão Gottwald
e400e680a5 Bug 1605050 - Stop inconsistently accepting javascript: and data: URL drops on new-tab-button. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D57762

--HG--
extra : moz-landing-system : lando
2019-12-19 11:24:13 +00:00
Johann Hofmann
edad9865cc Bug 1603511 - Optimize sending SiteProtection:ContentBlockingEvent events. r=nhnt11
These events were sent excessively on onStateChange. This patch makes it so that:

- we only listen to top-level document changes (we used to send all events from iframes)
- we don't send events unless there's tracking content on the page
- we only send a single event on tab switch instead of multiple

Differential Revision: https://phabricator.services.mozilla.com/D57006

--HG--
extra : moz-landing-system : lando
2019-12-12 23:48:13 +00:00
Dão Gottwald
2dd81d3884 Bug 1599544 - Remove the workaround hiding the initial browser. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D56718

--HG--
extra : moz-landing-system : lando
2019-12-12 14:06:40 +00:00
Marco Bonardo
d360177352 Bug 1601450 - Further restrict the retained results behavior. r=dao
If the user types a full url, confirms it, and then focuses the urlbar, we should
not

When focusing the address bar after typing and confirming a page, we end up reopening
the view because the search string is the same. This causes unexpected noise and
selection problems (the url is not selected anymore).
This patch changes the behavior so we don't reopen on valid pageproxystate, that
seems to make sense considering the feature scope of restoring an abandoned search.

Additionally, make the keyboard shortcut not trying to reopen the view if it's
already open, to avoid messing up with the selection.

Finally, restore the appropriate allowAutofill status from the last context.
This may still cause us to not autofill something that was previously autofilled,
if 2 tabs contain the same exact search, but that's an edge case, so acceptable.

Differential Revision: https://phabricator.services.mozilla.com/D56635

--HG--
extra : moz-landing-system : lando
2019-12-11 09:16:22 +00:00
Emma Malysz
57215abe07 Bug 1601094, rename the remaining .xul files in browser/ to .xhtml r=marionette-reviewers,whimboo,mossop
Differential Revision: https://phabricator.services.mozilla.com/D55751

--HG--
rename : browser/base/content/aboutDialog.xul => browser/base/content/aboutDialog.xhtml
rename : browser/base/content/newInstall.xul => browser/base/content/newInstall.xhtml
rename : browser/base/content/pageinfo/pageInfo.xul => browser/base/content/pageinfo/pageInfo.xhtml
rename : browser/base/content/safeMode.xul => browser/base/content/safeMode.xhtml
rename : browser/base/content/sanitize.xul => browser/base/content/sanitize.xhtml
rename : browser/base/content/titlebar-items.inc.xul => browser/base/content/titlebar-items.inc.xhtml
rename : browser/base/content/webext-panels.xul => browser/base/content/webext-panels.xhtml
rename : browser/base/content/webrtcIndicator.xul => browser/base/content/webrtcIndicator.xhtml
rename : browser/components/downloads/content/contentAreaDownloadsView.xul => browser/components/downloads/content/contentAreaDownloadsView.xhtml
rename : browser/components/migration/content/migration.xul => browser/components/migration/content/migration.xhtml
rename : browser/components/places/content/bookmarkProperties.xul => browser/components/places/content/bookmarkProperties.xhtml
rename : browser/components/places/content/bookmarksSidebar.xul => browser/components/places/content/bookmarksSidebar.xhtml
rename : browser/components/places/content/historySidebar.xul => browser/components/places/content/historySidebar.xhtml
rename : browser/components/places/content/places.xul => browser/components/places/content/places.xhtml
rename : browser/components/shell/content/setDesktopBackground.xul => browser/components/shell/content/setDesktopBackground.xhtml
extra : moz-landing-system : lando
2019-12-11 00:27:19 +00:00
Jonathan Watt
8b155d8f62 Bug 1602561. Make PrintUtils.printWindow() act on a BrowsingContext. r=Gijs
Factored out from patches to make printing work with Fission enabled.

Differential Revision: https://phabricator.services.mozilla.com/D56436

--HG--
extra : moz-landing-system : lando
2019-12-10 21:59:02 +00:00
Andrei Oprea
a06612790c Bug 1596118 - Remove fxa accounts badge that has been replaced by Messaging System badging r=eoger,k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D52843

--HG--
extra : moz-landing-system : lando
2019-12-06 13:53:07 +00:00
Sean Feng
93f9021bb1 Bug 1589700 - Record the number of unique site origins across all tabs r=smaug,agi,Dexter
Differential Revision: https://phabricator.services.mozilla.com/D54027

--HG--
extra : moz-landing-system : lando
2019-12-05 23:13:24 +00:00
Mark Striemer
7609763e4b Bug 1564525 - Remove extensions.htmlaboutaddons.enabled pref r=Gijs
Depends on D55720

Differential Revision: https://phabricator.services.mozilla.com/D56028

--HG--
extra : moz-landing-system : lando
2019-12-05 18:49:43 +00:00
Masatoshi Kimura
502bc1fe35 Bug 1601235 - Remove the second arg of nsIXULBrowserWindow::SetOverLink. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D55946

--HG--
extra : moz-landing-system : lando
2019-12-05 14:23:01 +00:00
Razvan Maries
ef51899325 Backed out changeset 52af8765cb21 (bug 1589700) for perma fails on browser_Telemetry_numberOfSiteOrigins.js. CLOSED TREE 2019-12-04 23:48:27 +02:00