Commit Graph

23704 Commits

Author SHA1 Message Date
Tim Huang
b77a2550da Bug 1679325 - Part 1: Making contentAreaUtils.saveURL to accept cookieJarSettings. r=smaug
This patch makes the contentAreaUtils.saveURL to be aware of the
cookieJarSettings, and updates all callers.

This also updates the documentation of the persistArgs
'cookieJarSettings' for internalPersist().

Differential Revision: https://phabricator.services.mozilla.com/D98455
2020-12-03 20:10:36 +00:00
Emilio Cobos Álvarez
b94d9aed75 Bug 1678987 - Make page style menu deal with <link disabled> better. r=mconley
<link disabled> doesn't appear in document stylesheets, but some pages
use it to use alternative stylesheets.

Differential Revision: https://phabricator.services.mozilla.com/D97988
2020-12-04 01:34:15 +00:00
Matt Woodrow
001369c210 Bug 1678684 - Initialize DXVA on the media thread, remove the mostly-unused dll blocklist, and the crashguard. r=jya
The main-thread requirements for DXVA appear to have been needed when we initialized a crash guard. We now only run DXVA in the GPU and RDD processes, which don't support crash guards. This removes the main thread dispatch and the crashguard code, and enforces that we're in the GPU/RDD process to init DXVA.

This also removes the DLL blocklist code. This was disabled via pref when in the GPU process, which should be the majority of the time. In rare cases we would have been running DXVA in the RDD process (on older win7 when the GPU process isn't available). In these cases we can just do the same as the GPU process, allowing crashes and recovering from them (and disabling DXVA).

Differential Revision: https://phabricator.services.mozilla.com/D98036
2020-12-04 00:49:27 +00:00
Razvan Maries
9711964d06 Bug 1678590 - Disabled browser_aboutCertError_mitm.js on Windows and Linux. r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D98696
2020-12-04 00:26:21 +00:00
Narcis Beleuzu
c3cbe04130 Backed out changeset f59efe5a5ef8 (bug 1638215) for bc failures on browser_tabDrop.js. CLOSED TREE 2020-12-03 17:25:28 +02:00
Daisuke Akatsuka
8c988bd912 Bug 1638215: Use https for canonization the URL. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D97942
2020-12-03 11:21:36 +00:00
Gijs Kruitbosch
144ce9b683 Bug 1678921 - make empty toolbar disclaimer take up no horizontal space, so the entire toolbar functions as a drag target for bookmarks, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D98546
2020-12-02 23:38:04 +00:00
Micah Tigley
4709190877 Bug 1678662 - Add a listener to respond to changes when the 'Show Other Bookmarks' pref is changed. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D98397
2020-12-02 20:00:47 +00:00
Byron Campen [:bwc]
528426dad0 Bug 1626278: Add a browser-chrome test for the WebrtcGlobalInformation interface. r=ng
Differential Revision: https://phabricator.services.mozilla.com/D92637
2020-11-19 15:12:48 +00:00
Micah Tigley
41687e7f07 Bug 1678659 - Update Fluent strings for bookmarks toolbar submenu. r=jaws,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D98373
2020-12-01 21:28:58 +00:00
Micah Tigley
ac42beea10 Bug 1678659 - Remove 'Show Other Bookmarks' context menu item from the primary toolbar. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D97840
2020-12-01 21:27:50 +00:00
Christian Holler
d2b020d497 Bug 1677049 - Skip problematic mochitest-bc tests in TSan. r=Gankro,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D98365
2020-12-01 20:21:20 +00:00
Gijs Kruitbosch
679a544eaa Bug 1680069 - proton root attribute and pref work, r=jaws,mconley
Differential Revision: https://phabricator.services.mozilla.com/D98375
2020-12-01 20:11:54 +00:00
Emma Malysz
779c8f15b9 Bug 1678211, remove unused fullscreen.used telemetry probe r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D98124
2020-12-01 16:59:30 +00:00
Emma Malysz
44c40c14be Bug 1673092, disable skeleton ui if tabsintitlebar pref is false r=dthayer
If browser.tabs.drawInTitlebar is false, we should not paint the skeleton
UI. It creates an additional top bar with the icon and name of the current
tab, so our skeleton UI will not match the window, and we risk creating
a poor experience for our users.

Differential Revision: https://phabricator.services.mozilla.com/D97206
2020-12-01 16:05:40 +00:00
Emilio Cobos Álvarez
770b552041 Bug 1679160 - Simplify a bit PageStyleChild. r=mconley
We don't use the href, so don't send it to the parent.

Remove getBrowserStyleSheets (also unused).

Differential Revision: https://phabricator.services.mozilla.com/D97921
2020-11-30 21:37:15 +00:00
Paul Zuehlcke
e6226e46ef Bug 1654546 - Test that we show the protection UI for top level sandboxed pages. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D98055
2020-11-30 12:26:03 +00:00
neha
a887a6dde4 Bug 1589103 Unskip browser_privilegedmozilla_process_pref.js r=nika
Depends on D98086

Differential Revision: https://phabricator.services.mozilla.com/D98087
2020-11-27 20:06:08 +00:00
neha
1035de0122 Bug 1589103 Don't wait for SSTabRestored event. This event doesn't get fired when back/forward causes processes switching. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D98086
2020-11-27 20:03:09 +00:00
Dão Gottwald
f1cf8c85f6 Bug 1679463 - Replace :not(foo):not(bar) with :not(foo,bar) in browser/. r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D98028
2020-11-26 21:54:32 +00:00
Csoregi Natalia
da460474df Backed out changeset cd968a980827 (bug 1649590) for causing Bug 1679252. CLOSED TREE 2020-11-26 21:30:38 +02:00
Emilio Cobos Álvarez
6e34e31600 Bug 1679050 - Backed out changeset 73181c2aa309 (bug 1455479) for having too many false positives. r=backout,a=NarcisB
MANUAL PUSH: Backout on a CLOSED TREE
2020-11-25 00:41:59 +01:00
Markus Stange
ca4294deba Bug 1672091 - Disable the fade-in animation on macOS Big Sur, to work around a macOS bug (FB8828157) that causes the panel shadow to be missing. r=dao
The fade-out animation is kept.

To work around the bug, the first paint of the panel window needs to be done at
full window opacity. Reducing the window opacity after the shadow has been
computed works correctly.

Differential Revision: https://phabricator.services.mozilla.com/D97863
2020-11-23 18:54:17 +00:00
Marco Bonardo
5fee7240ed Bug 1677408 - Part 4 - Replace onItemVisited with page-visited. r=Standard8
Rather than fetching bookmarks from the disk for each page-visited notification,
we just let the result to recursively find and update children in the memory
structure.

Differential Revision: https://phabricator.services.mozilla.com/D97277
2020-11-23 16:28:04 +00:00
Marco Bonardo
c1aa2fcc37 Bug 1677408 - Part 2 - Update consumers of onPageChanged. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D97275
2020-11-23 16:26:17 +00:00
Butkovits Atila
c08d529090 Backed out 7 changesets (bug 1677408) for bustages on nsNavHistory.cpp. CLOSED TREE
Backed out changeset 1e0dc9aaa979 (bug 1677408)
Backed out changeset 4198bc35198c (bug 1677408)
Backed out changeset ff93f264138b (bug 1677408)
Backed out changeset 0f2d72d2ed5a (bug 1677408)
Backed out changeset 996cbd111957 (bug 1677408)
Backed out changeset b0c23854e117 (bug 1677408)
Backed out changeset f7d6cc5e4457 (bug 1677408)
2020-11-23 16:49:31 +02:00
Marco Bonardo
ae29233b62 Bug 1677408 - Part 4 - Replace onItemVisited with page-visited. r=Standard8
Rather than fetching bookmarks from the disk for each page-visited notification,
we just let the result to recursively find and update children in the memory
structure.

Differential Revision: https://phabricator.services.mozilla.com/D97277
2020-11-23 12:56:40 +00:00
Marco Bonardo
4ef53e7609 Bug 1677408 - Part 2 - Update consumers of onPageChanged. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D97275
2020-11-23 12:54:26 +00:00
Noemi Erli
460b27e8f6 Backed out changeset b21f364898eb (bug 1678389) for causing Android gv-unit failures CLOSED TREE 2020-11-22 04:24:23 +02:00
Emilio Cobos Álvarez
1581184384 Bug 1678389 - Use transient user activation for <input> file/color picker. r=edgar
This matches other browsers, see [1], and should fix this and other
similar bugs like bug 1610726.

[1]: https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/html/forms/file_input_type.cc;l=163;drc=8a5de62dd01360cfe3d150640d3ff4d974bbe842

Differential Revision: https://phabricator.services.mozilla.com/D97640
2020-11-22 00:20:03 +00:00
Emilio Cobos Álvarez
d2d7231b56 Bug 1455479 - Show paste context menu item when there are paste event listeners. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D97751
2020-11-21 16:22:42 +00:00
Florian Quèze
c9cdba401b Bug 1678418 - avoid stopping the profiler for performance tests that don't require a startup profile, r=Gijs.
Differential Revision: https://phabricator.services.mozilla.com/D97780
2020-11-20 16:50:14 +00:00
Steven MacLeod
a8a5d5d11c Bug 1585070 - move nsPIDOMWindowOuter::mIsActive to BrowsingContext. r=kmag
A new `BrowsingContext` field has been added to track the active
browser window for the `:-moz-window-inactive` pseudoclass. This
field takes the place of `nsPIDOMWindowOuter::mIsActive`.

With this change `:-moz-window-inactive` is now fission compatible.

Differential Revision: https://phabricator.services.mozilla.com/D86422
2020-11-20 15:16:58 +00:00
Gijs Kruitbosch
a69698a340 Bug 1667237 - bookmarks toolbar flickers on startup / new windows in some cases, r=florian,jaws
Differential Revision: https://phabricator.services.mozilla.com/D97712
2020-11-20 13:22:38 +00:00
Xidorn Quan
ddbb4074f5 Bug 729011 - Make fullscr-toggler not affect viewport size. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D97736
2020-11-20 11:21:03 +00:00
Johann Hofmann
5fb2fe3bf4 Bug 1603002 - Avoid racy waitForCondition check in browser_aboutCertError_mitm.js. r=prathiksha
Differential Revision: https://phabricator.services.mozilla.com/D97693
2020-11-20 10:56:25 +00:00
pbz
e34f97e28a Bug 1669990 - SubDialog: Use system event listener for escape key. r=Gijs
If a <select> in a SubDialog closes its popup when the user hits the esc key, it calls `preventDefault()` on the event. The SubDialog code didn't see this preventDefault, because it was using a normal event listener, while the select code uses a system event listener.

https://searchfox.org/mozilla-central/rev/c2e3ac11be4837718c2604e58085fbc8252b69dd/layout/forms/nsListControlFrame.cpp#925,2058,2068-2069,2075-2076

Differential Revision: https://phabricator.services.mozilla.com/D93253
2020-11-19 18:20:36 +00:00
Micah Tigley
2218b31ae9 Bug 1674539 - Add option to hide Other Bookmarks button from bookmarks toolbar. r=jaws,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D97211
2020-11-19 21:49:26 +00:00
Brindusan Cristian
4ed7f2e0c5 Bug 1661833 - Fix ESlint prettier error. r=nbeleuzu CLOSED TREE 2020-11-20 01:59:30 +02:00
Anny Gakhokidze
9e9bd89661 Bug 1661833 - Fix duplicate OnStateChange events during process switches, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D96228
2020-11-19 23:21:04 +00:00
Narcis Beleuzu
016b07dbf6 Backed out 2 changesets (bug 1674539) for bc failures on browser_toolbar_other_bookmarks.js . CLOSED TREE
Backed out changeset 63032f8390ea (bug 1674539)
Backed out changeset 36ab7b9324d9 (bug 1674539)
2020-11-19 23:46:02 +02:00
Micah Tigley
afe05f330b Bug 1674539 - Add option to hide Other Bookmarks button from bookmarks toolbar. r=jaws,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D97211
2020-11-19 20:40:04 +00:00
Gijs Kruitbosch
c6d8bf0635 Bug 1676326 - wait for about:newtab to actually load in browser_aboutNewTab_bookmarksToolbarEmpty.js, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D97560
2020-11-19 20:16:36 +00:00
Liz Krane
9949f148fb Bug 1650956 - browser.tabs.remove() now calls removeTabs(). r=robwu,Gijs
Removing multiple tabs via extensions now calls `gBrowser.removeTabs()`
once for each window that has tabs being removed. Also adds automated
browser tests for removing one tab or multiple tabs.

Differential Revision: https://phabricator.services.mozilla.com/D93438
2020-11-19 19:01:40 +00:00
Dão Gottwald
a9d9048fd3 Bug 1676759 - Prevent long email address from making the Firefox Account pane overflow horizontally. r=eoger
Differential Revision: https://phabricator.services.mozilla.com/D97601
2020-11-19 18:08:39 +00:00
Michael Goossens
6eecb8fcb3 Bug 1649590 - Convert XPIProvider.jsm to use IOUtils r=emalysz,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D97354
2020-11-19 17:37:18 +00:00
Jared Wein
1cacf7d2fc Bug 1665391 - Add telemetry to measure effectiveness of 2h2020 bookmarks changes. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D97251
2020-11-19 16:01:25 +00:00
Marco Bonardo
faf9ed7038 Bug 1677977 - Part 2 - Merge PlacesCategoriesStarter into PlacesDBUtils. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D97504
2020-11-19 11:20:59 +00:00
pbz
4b339f2d96 Bug 1338637 - Added test for folder upload confirmation prompt. r=Gijs
This also fixes an issue where MockFilePicker wouldn't set the mode correctly,
which caused it to always use "modeOpen". For this test we need to pass
"modeGetFolder" in order for the prompt to show.

Differential Revision: https://phabricator.services.mozilla.com/D96526
2020-11-17 17:14:49 +00:00
David Parks
b06e5865dd Bug 1675349: Update tests under browser/base/content/test for the removal of plugins. r=jmathies
UPDATED
-------
browser/base/content/test/plugins/browser_CTP_favorfallback.js
Test that plugin fallback behavior is correct.
Updated to reflect that plugins always show "alternate" content, which is either the user fallback of the browser's transparent fallback, regardless of the HTML.

browser/base/content/test/plugins/browser_CTP_outsideScrollArea.js
Test that overlay is visible (in layout sense) only if plugin is partially or completely visible.
Changed to test new fallback behavior where overlay is a hidden element with "blockall" atribute.

browser/base/content/test/plugins/browser_CTP_zoom.js
Test that overlay is present and visible at multiple zoom levels.
Adjusted to work with hidden overlay.

browser/base/content/test/performance/browser_startup_mainthreadio.js
Track IO done at browser startup
Removed `UserPlugins.parent` from list since we no longer scan for plugins.

browser/base/content/test/plugins/browser_bug797677.js
bug 797677
Test that plugin instantiation fails (with PLUGIN_UNSUPPORTED and no console error) when MIME type missing.
Removed the cleanup of (unused) test plugin.

browser/base/content/test/contextMenu/browser_contextmenu.js
Test context menu for many types of elements
Removed plugin element portion.

REMOVED
-------
browser/base/content/test/plugins/browser_CTP_contextmenu.js
Test that the CTP activate action in content menus for plugins works

browser/base/content/test/plugins/browser_CTP_crashreporting.js
Test that plugin crash submissions still work properly after click-to-play activation.

browser/base/content/test/plugins/browser_CTP_drag_drop.js
Test that plugin CTP dialog behaves correctly when dragging tab out of/into a window

browser/base/content/test/plugins/browser_CTP_hide_overlay.js
Test ability to close plugin "overlay" placeholder (the grey lego element)

browser/base/content/test/plugins/browser_CTP_iframe.js
Test that overlay can be interacted with (closed) when in an iframe

browser/base/content/test/plugins/browser_CTP_nonplugins.js
Bug 926605
Says it tests that non-plugin <object> elements don't show CTP but it doesn't.  It tests that removing a CTP plugin from a page does not remove CTP dialog (in case, for example, page shows, then quickly removes plugin).

browser/base/content/test/plugins/browser_CTP_overlay_styles.js
Verify that styling on overlay elements, based on sizing, is correct.

browser/base/content/test/plugins/browser_CTP_resize.js
Test that a resize properly updates the overlay styling, which is only visible when large enough.

browser/base/content/test/plugins/browser_CTP_shouldShowOverlay.js
Test that partially obscured plugins show the overlay, properly styled (when they should).

browser/base/content/test/plugins/browser_blocking.js
bug 1129040
Test CTP behavior -- overlay dialog behavior, vulnerable plugin user approval, plugin's infoURL, etc.

browser/base/content/test/plugins/browser_blocklist_content.js
bug 1129040
Test (plugin) blocklist, including attempt to "hack" it in a content process.

browser/base/content/test/plugins/browser_bug743421.js
Test CTP approval persists for new plugin instances in page.

browser/base/content/test/plugins/browser_bug744745.js
Test that CTP notification correctly appears despite plugin with opacity: 0 !important

browser/base/content/test/plugins/browser_bug787619.js
bug 787619
Make sure CTP works for plugins nested inside <a></a> elements.

browser/base/content/test/plugins/browser_bug812562.js
bug 812562
Navigating away from, then back to a page should restore its CTP status.

browser/base/content/test/plugins/browser_bug818118.js
bug 818118
Test that CTP plugin and "unknown" plugin type work correctly on same page.

browser/base/content/test/plugins/browser_clearplugindata.js
Test clearing plugin data using Sanitizer.jsm

browser/base/content/test/plugins/browser_iterate_hidden_plugins.js
Bug 1318383
Test `plugins.navigator.hidden_ctp_plugin`, which hides CTP plugins from `navigator.plugins`.

browser/base/content/test/plugins/browser_pluginCrashCommentAndURL.js
Test plugin crash detection and reporting

browser/base/content/test/plugins/browser_pluginCrashReportNonDeterminism.js
Bug 1110887
Test both "plugin process crash notification" orders -- content proc before main proc and vice-versa.

browser/base/content/test/plugins/browser_plugin_reloading.js
Bug 1129040
Re-instantiating plugin (using `plugin.src = new_value`) should retain CTP approval.

browser/base/content/test/plugins/browser_plugin_framed_domain.js
Plugin CTP prompts should adopt top-level page's principal for instead of closest frame's principal.

browser/base/content/test/plugins/browser_pluginnotification.js
Tests many CTP interface behavior cases -- doorhangers, overlays, multiple plugin instances, CTP choices (always, allow, never)

browser/base/content/test/plugins/browser_private_clicktoplay.js
Make sure CTP interface works in private windows

browser/base/content/test/plugins/browser_subframe_access_hidden_plugins.js
Allow navigator.plugins to list plugin after CTP approval, even if it listed in `plugins.navigator.hidden_ctp_plugin`

Differential Revision: https://phabricator.services.mozilla.com/D95906
2020-11-18 15:56:56 +00:00