Commit graph

2985 commits

Author SHA1 Message Date
Julian Descottes
1ac3484028 Bug 1694140 - [devtools] Stop using TargetFactory.forTab outside of devtools r=rpl,ochameau
Depends on D106000

Differential Revision: https://phabricator.services.mozilla.com/D106001
2021-02-25 12:58:14 +00:00
Daisuke Akatsuka
7e58e85147 Bug 897954: Remove onBeginUpdateBatch and onEndUpdateBatch functions. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D105441
2021-02-25 01:58:24 +00:00
smolnar
8a82d9ec16 Backed out 3 changesets (bug 897954) for causing node test failures in PlacesFeed. CLOSED TREE
Backed out changeset 0a60eb3f7ba8 (bug 897954)
Backed out changeset 9443814d173b (bug 897954)
Backed out changeset 2e558ac8e419 (bug 897954)
2021-02-25 03:21:58 +02:00
Daisuke Akatsuka
9f8f7cf96f Bug 897954: Remove onBeginUpdateBatch and onEndUpdateBatch functions. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D105441
2021-02-25 00:12:40 +00:00
Michelle Goossens
23fb719f61 Bug 1692553 - Remove "View page info" from page context menu r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D105987
2021-02-23 16:09:43 +00:00
harry
43ec533571 Bug 1594132 - Move background-color rules so they do not appear under appearance rules, enabling sidebar vibrancy. r=ntim,dao
`appearance` CSS rules allow elements to take on system appearance. For UI elements that we want to take on system styling, we set `appearance: auto` combined with platform-specific rules like `-moz-default-appearance: -moz-mac-vibrant-titlebar-light;`

macOS sidebar vibrancy broke because a background-color was being applied to `root`. That colour appeared under elements with `appearance: auto` set, so we wouldn't see the platform-specific styling. This patch moves the root background-color to `#navigator-toolbox`, so that it does not appear under `#sidebar-box`.

We still want a background colour applied to sidebars when a lwtheme includes one. We only want `appearance: auto` applied to sidebars when the active theme does not have sidebar styling rules. That's why `#sidebar-box:not(:-moz-lwtheme)` is changed to `#sidebar-box:not([lwt-sidebar])`.

This patch also removes the rule
```
:root:-moz-lwtheme {
  appearance: none;
}
```
from osx/global/global.css. There's no corresponding addition of a `#navigator-toolbox { appearance:none; }` rule because that rule already exists in [osx/browser.css](https://searchfox.org/mozilla-central/rev/7067bbd8194f4346ec59d77c33cd88f06763e090/browser/themes/osx/browser.css#45).

Differential Revision: https://phabricator.services.mozilla.com/D104416
2021-02-23 15:03:45 +00:00
Alexandre Poirot
17df6d9066 Bug 1692874 - [devtools] Read isLocalTab from descriptor instead of target front. r=rpl,jdescottes
There is still some usages in isTargetSupported,
but that would requires refactoring this method into isDescriptorSupported
and be async as some isTargetSupported only works against target as it checks for traits on it.

Differential Revision: https://phabricator.services.mozilla.com/D105201
2021-02-18 18:36:48 +00:00
Drew Willcoxon
f7cda9a0be Bug 1692526 - Allow results to include a help/info button. r=dao
This supports a new `helpUrl` payload property on all results. It causes results
in the view to have a help button that can be selected and picked independently
of the main part of the result. When picked, the help button loads the
`helpUrl`. It looks and acts the same as the help buttons we already have for
tip results.

The help button should be flush with the trailing edge of the result row, and it
should be selectable independently from the main part of the result. To achieve
that without disrupting things too much, I create the button inside of
`.urlbarView-row` but outside of `.urlbarView-row-inner`. The "main" part of the
row is `.urlbarView-row-inner`. I made `.urlbarView-row` have `display: flex` so
the the inner part can have `flex: 1` so it can fill up the entire row except
for the help button.

This also reworks view selection a little so that for each row, we look for
selectable elements in the row instead of assuming that the row itself is
selectable. That also lets us remove a couple of special cases for tip and
dynamic results.

Differential Revision: https://phabricator.services.mozilla.com/D105095
2021-02-18 18:00:22 +00:00
Daisuke Akatsuka
105aaaa9fa Bug 1678618: Remove onDeleteURI and onDeleteVisits from nsINavHistoryObserver. r=mak
Depends on D101115

Differential Revision: https://phabricator.services.mozilla.com/D101118
2021-02-15 08:04:15 +00:00
Daisuke Akatsuka
f4358ad192 Bug 1678618: Apply page-removed event. r=mak
Depends on D101114

Differential Revision: https://phabricator.services.mozilla.com/D101115
2021-02-15 08:04:15 +00:00
Csoregi Natalia
b32d4ca055 Backed out 4 changesets (bug 1678618) for node failures. CLOSED TREE
Backed out changeset e714440f6c0d (bug 1678618)
Backed out changeset ae83fda183dd (bug 1678618)
Backed out changeset bef0ea72ded8 (bug 1678618)
Backed out changeset ec96259a3f81 (bug 1678618)
2021-02-15 05:49:54 +02:00
Daisuke Akatsuka
d41c3d5379 Bug 1678618: Remove onDeleteURI and onDeleteVisits from nsINavHistoryObserver. r=mak
Depends on D101115

Differential Revision: https://phabricator.services.mozilla.com/D101118
2021-02-15 02:47:39 +00:00
Daisuke Akatsuka
687e052ffb Bug 1678618: Apply page-removed event. r=mak
Depends on D101114

Differential Revision: https://phabricator.services.mozilla.com/D101115
2021-02-15 02:47:38 +00:00
digitalsimboja
4d31bed09c Bug 1692349 - Remove unreliable assertion in test_ext_menu_caller.js r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D105106
2021-02-14 11:50:25 +00:00
Mark Banner
263d555274 Bug 1608272 - Remove 'this' as the second argument to 'ChromeUtils.import', use object destructuring instead (test-only changes). r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D104683
2021-02-11 22:02:15 +00:00
digitalsimboja
85c30ab4b0 Bug 1588616 -Test case added Fix ext-menus.js to call withLastError with caller r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D103442
2021-02-11 13:42:31 +00:00
Alessio Placitelli
b265358b2c Bug 1691144 - Trigger windows.onFocusChanged with no private window permission. r=zombie
Credits to Jonathan Mayer for submitting the original patch.
The patch changes the onFocusChanged extension event handler
so that it no longer bails out if focus is moving to a private
window, ensuring that the onFocusChanged event gets generated
with the proper WINDOW_ID_NONE identifier.

Differential Revision: https://phabricator.services.mozilla.com/D104732
2021-02-11 09:26:29 +00:00
Mark Banner
269a6fbae9 Bug 1690750 - Simplify OpenSearchEngine to only allow loading engines from protocols where users can load them from. r=mak
The urls where an OpenSearch engine can be loaded from are already limited in LinkHandlerChild. This is cleaning up and simplifying what the OpenSearchEngine allows, and as a result allows the load path handling to be greatly simplified.

The test changes are due to no longer allowing chrome or file protocols. For future, we probably want to move away from OpenSearch for most of these, but the changes will make it easier to find the places to update.

Differential Revision: https://phabricator.services.mozilla.com/D104010
2021-02-10 18:12:08 +00:00
smolnar
7dfc35949f Backed out changeset ea9a50dbf12f (bug 1588616) for causing xpcshell failures in test_ext_menu_caller. CLOSED TREE DONTBUILD 2021-02-09 12:45:02 +02:00
digitalsimboja
336909c781 Bug 1588616 -Test case added Fix ext-menus.js to call withLastError with caller r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D103442
2021-02-09 09:57:25 +00:00
Paul Zuehlcke
cbda00d7e1 Bug 1596897 - Updated tests for decoupled permissions panel. r=johannh,remote-protocol-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D99893
2021-02-05 13:40:42 +00:00
Agi Sferro
1abeebbf81 Bug 1625593 - Move activeTab functionality to toolkit. r=robwu,esawin
Differential Revision: https://phabricator.services.mozilla.com/D95420
2021-02-04 02:19:18 +00:00
Agi Sferro
fc9e1d79fa Bug 1681360 - Implement AppUiTestDelegate for Desktop. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D101206
2021-02-04 11:35:20 +00:00
Neil Deakin
12b53e11e9 Bug 1690029, move image related context menu commands into a single section and remove view image info command, r=Gijs,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D103774
2021-02-03 17:56:25 +00:00
Luca Greco
e1d14d5183 Bug 1525179 - Use aboutaddons.html at the root of about:addons. r=robwu
- Moved aboutaddons.html at the root of the about:addons page
- renamed aboutaddons.js `initialize` global function to `initializeView` (and renamed `show` and `hide` global functions accordingly)
- Simplify initial load logic a bit more:
  - remove gCategories
  - moved responsability of the CategoriesBox initialization to the `initializationView` function
  - replaced initialization logic based on `gPendingInitializations` and `notifyInitialized` with
    a `promiseInitialized` global resolved when `initializeView` method has been called and its return value resolved
- Fix test helpers and test failures
  - InlineOptionsBrowser: take into account that browser-custom-element does opt-in the delayedConnectedCallback behavior
    and browser.loadURI may throw if called while the document is still loading.

Differential Revision: https://phabricator.services.mozilla.com/D96472
2021-02-03 17:08:14 +00:00
Narcis Beleuzu
868935867c Backed out 2 changesets (bug 1596897) for bc failures on browser_search_discovery.js
Backed out changeset 635972f169e7 (bug 1596897)
Backed out changeset a84b667007e2 (bug 1596897)
2021-01-30 04:01:21 +02:00
Dorel Luca
9d50e72c4a Backed out changeset 100bc29bbb72 (bug 1625593) for Browser-chrome failures in gfx/layers/apz/test/mochitest/browser_test_scrollbar_in_extension_popup_window.js. CLOSED TREE 2021-01-30 01:13:18 +02:00
Dorel Luca
85e20aac7c Backed out 3 changesets (bug 1681360) for Browser-chrome failures in browser/base/content/test/performance/browser_startup_content_subframe.js. CLOSED TREE
Backed out changeset 2e07885dda4c (bug 1681360)
Backed out changeset c80806107851 (bug 1681360)
Backed out changeset 49e0948090b9 (bug 1681360)
2021-01-30 01:12:33 +02:00
Agi Sferro
fce977af88 Bug 1625593 - Move activeTab functionality to toolkit. r=robwu,esawin
Differential Revision: https://phabricator.services.mozilla.com/D95420
2021-01-29 19:07:55 +00:00
Agi Sferro
004674087d Bug 1681360 - Implement AppUiTestDelegate for Desktop. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D101206
2021-01-29 19:01:23 +00:00
Paul Zuehlcke
3d476753eb Bug 1596897 - Updated tests for decoupled permissions panel. r=johannh,remote-protocol-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D99893
2021-01-29 16:11:08 +00:00
Kris Maglione
e6237071e6 Bug 1685801: Part 6 - Move some front-end code from BrowserUtils to a separate module. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D101486
2021-01-28 20:58:43 +00:00
Mihai Alexandru Michis
040e2ea5d0 Backed out 12 changesets (bug 1685801) for causing bc failures in browser_ctrlTab.js
CLOSED TREE

Backed out changeset 021924b62f13 (bug 1685801)
Backed out changeset 38cc10101c1f (bug 1685801)
Backed out changeset 9ab9574ac72a (bug 1685801)
Backed out changeset 1a7f259cc2ec (bug 1685801)
Backed out changeset b267b19a7f6e (bug 1685801)
Backed out changeset 7dfcf0257487 (bug 1685801)
Backed out changeset ee0d0169b079 (bug 1685801)
Backed out changeset 0c358ee51951 (bug 1685801)
Backed out changeset 338ab91af557 (bug 1685801)
Backed out changeset a49415007aaf (bug 1685801)
Backed out changeset b91098299143 (bug 1685801)
Backed out changeset edf6209861a8 (bug 1685801)
2021-01-28 22:55:11 +02:00
Brindusan Cristian
e117dc4695 Backed out 2 changesets (bug 1596897) for mochitest failures at browser_setIgnoreCertificateErrors.js. CLOSED TREE
Backed out changeset 00c45a405129 (bug 1596897)
Backed out changeset 61304ccbaada (bug 1596897)
2021-01-28 21:53:46 +02:00
Kris Maglione
69c936d646 Bug 1685801: Part 6 - Move some front-end code from BrowserUtils to a separate module. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D101486
2021-01-28 05:25:03 +00:00
Paul Zuehlcke
bbdb4f3b7b Bug 1596897 - Updated tests for decoupled permissions panel. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D99893
2021-01-28 12:14:43 +00:00
Butkovits Atila
7decdccbdc Backed out 12 changesets (bug 1685801) for causing failures on browser_fission_maxOrigins.js. CLOSED TREE
Backed out changeset 0d7153110519 (bug 1685801)
Backed out changeset 5175062925c7 (bug 1685801)
Backed out changeset 2c1250e786f0 (bug 1685801)
Backed out changeset 0ce3c773ba74 (bug 1685801)
Backed out changeset 9d51c6e24dee (bug 1685801)
Backed out changeset 3f4dc6349441 (bug 1685801)
Backed out changeset a80de9abb9f8 (bug 1685801)
Backed out changeset 30786893a5e7 (bug 1685801)
Backed out changeset 8007b12d6e32 (bug 1685801)
Backed out changeset fa814f4b7125 (bug 1685801)
Backed out changeset 14e4e47ee99f (bug 1685801)
Backed out changeset d9f1feba9454 (bug 1685801)
2021-01-28 07:15:59 +02:00
Kris Maglione
5b2b2517a2 Bug 1685801: Part 6 - Move some front-end code from BrowserUtils to a separate module. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D101486
2021-01-28 03:32:43 +00:00
Magnus Melin
e4574c7ab0 Bug 1524836 - Move new HTML about:config page from browser to toolkit. r=fluent-reviewers,preferences-reviewers,geckoview-reviewers,Gijs,agi
Unbitrot and change strategy for geckoview: now map about:config directly in nsAboutRecirector.cpp

Differential Revision: https://phabricator.services.mozilla.com/D25938
2021-01-26 00:27:56 +00:00
Robbendebiene
cdec8d59d8 Bug 1679688 - make host permissions grant access to privileged parts of the tabs API and fix Bug 1686443 r=robwu,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D98471
2021-01-23 14:09:22 +00:00
harry
4362da24e9 Bug 1687313 - Add international Amazon search suggestions URLs. r=Standard8,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D102210
2021-01-21 21:57:41 +00:00
Daisuke Akatsuka
62162d18fd Bug 1678619: Remove onManyFrecenciesChanged interface from nsINavHistoryService. r=mak
Depends on D100460

Differential Revision: https://phabricator.services.mozilla.com/D100461
2021-01-21 15:51:03 +00:00
Daisuke Akatsuka
60b58213bc Bug 1678619: Remove onFrecencyChanged interface from nsINavHistoryService. r=mak
Depends on D100457

Differential Revision: https://phabricator.services.mozilla.com/D100458
2021-01-21 15:51:02 +00:00
smolnar
6652db1a08 Backed out 6 changesets (bug 1678619) on suspicion of causing crashes (bug 1687914). a=backout DONTBUILD
Backed out changeset c8b691b8e793 (bug 1678619)
Backed out changeset 37b2f438bd2b (bug 1678619)
Backed out changeset 0a92dfd99dac (bug 1678619)
Backed out changeset 2043a28e668e (bug 1678619)
Backed out changeset 53e385030d67 (bug 1678619)
Backed out changeset 9a1d599b4060 (bug 1678619)
2021-01-21 17:25:23 +02:00
Daisuke Akatsuka
016b34f0c7 Bug 1678619: Remove onManyFrecenciesChanged interface from nsINavHistoryService. r=mak
Depends on D100460

Differential Revision: https://phabricator.services.mozilla.com/D100461
2021-01-19 06:03:07 +00:00
Daisuke Akatsuka
f2af6a6ae5 Bug 1678619: Remove onFrecencyChanged interface from nsINavHistoryService. r=mak
Depends on D100457

Differential Revision: https://phabricator.services.mozilla.com/D100458
2021-01-15 11:00:22 +00:00
Oriol Brufau
97892639fb Bug 1580003 - Remove isLastMultiSelectChange parameter. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D45245
2021-01-20 11:56:54 +00:00
Abhishek Sharma
2086f68cb0 Bug 1685638 - Change :not(:disabled) to :enabled in CSS files. r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D101130
2021-01-19 14:02:38 +00:00
Csoregi Natalia
af61aa1d72 Backed out changeset 0b6e13411d3f (bug 1646817) for causing crashes on macOS. a=backout 2021-01-18 18:32:42 +02:00
Tomislav Jovanovic
97da5f608c Bug 1646817 - Support DocumentChannel process switching in sidebars and popups r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D100396
2021-01-14 20:32:24 +00:00
Butkovits Atila
db44a41c6c Backed out 5 changesets (bug 1678619) for causing memory leaks. CLOSED TREE
Backed out changeset 64be4bea09dd (bug 1678619)
Backed out changeset 308fda30c166 (bug 1678619)
Backed out changeset efb9bdef89b8 (bug 1678619)
Backed out changeset d26f45eac0b9 (bug 1678619)
Backed out changeset b2f22d6d2725 (bug 1678619)
2021-01-15 12:56:01 +02:00
Daisuke Akatsuka
7aa244ac52 Bug 1678619: Remove onManyFrecenciesChanged interface from nsINavHistoryService. r=mak
Depends on D100460

Differential Revision: https://phabricator.services.mozilla.com/D100461
2021-01-15 00:00:34 +00:00
Daisuke Akatsuka
450eb54843 Bug 1678619: Remove onFrecencyChanged interface from nsINavHistoryService. r=mak
Depends on D100457

Differential Revision: https://phabricator.services.mozilla.com/D100458
2021-01-12 10:45:50 +00:00
Micah Tigley
1b5b46ec79 Bug 1680637 - Update tests using the old dialog UI to only use the old UI. r=jaws,Gijs,marionette-reviewers,whimboo,remote-protocol-reviewers
Depends on D100172

Differential Revision: https://phabricator.services.mozilla.com/D101388
2021-01-14 21:45:14 +00:00
Narcis Beleuzu
f108cdcd91 Backed out changeset 81be428b9df0 (bug 1580003) for bc failures on browser_multiselect_tabs_close_other_tabs.js. CLOSED TREE 2021-01-14 21:19:04 +02:00
Oriol Brufau
04f94d6d52 Bug 1580003 - Remove isLastMultiSelectChange parameter. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D45245
2021-01-14 15:32:24 +00:00
Butkovits Atila
7742c03714 Backed out 4 changesets (bug 1680637, bug 1682395) for causing Marionette failures. CLOSED TREE
Backed out changeset 073e0be7db95 (bug 1680637)
Backed out changeset 552b91b31b0f (bug 1682395)
Backed out changeset c80de6c72779 (bug 1680637)
Backed out changeset d513e228b0ad (bug 1680637)
2021-01-13 02:13:06 +02:00
Micah Tigley
06e7942185 Bug 1680637 - Update tests using the old dialog UI to only use the old UI. r=jaws,Gijs
Depends on D100172

Differential Revision: https://phabricator.services.mozilla.com/D101388
2021-01-12 22:32:24 +00:00
Mihai Alexandru Michis
fcffbed8d9 Backed out changeset 6e6788b1853e (bug 1646817) for causing bc failures in browser_ext_popup_api_injection.js
CLOSED TREE
2020-12-25 01:54:50 +02:00
Tomislav Jovanovic
5e0fb3e867 Bug 1646817 - Support DocumentChannel process switching in sidebars and popups r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D100396
2020-12-24 20:16:12 +00:00
Daisuke Akatsuka
53590561a9 Bug 1678606: Remove onClearHistory interface from nsINavHistoryService. r=mixedpuppy,mak
Depends on D99751

Differential Revision: https://phabricator.services.mozilla.com/D99752
2020-12-23 11:15:20 +00:00
Daisuke Akatsuka
04610c3c99 Bug 1678606: Apply history-cleared event instead of onClearHistory. r=mixedpuppy,mak
Depends on D99750

Differential Revision: https://phabricator.services.mozilla.com/D99751
2020-12-23 10:21:54 +00:00
Shane Caraveo
5e7a36fdfb Bug 1253129 warn when using focused property with windows.create r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D76944
2020-12-18 19:06:56 +00:00
Daisuke Akatsuka
2b482f984d Bug 1678611: Remove onTitleChanged interface from nsINavHistoryService. r=mak,mixedpuppy
Depends on D98280

Differential Revision: https://phabricator.services.mozilla.com/D98281
2020-12-18 07:25:49 +00:00
Daisuke Akatsuka
62cb87a93f Bug 1678611: Apply page-title-changed event instead of onTitleChanged. r=mak,mixedpuppy
Depends on D98278

Differential Revision: https://phabricator.services.mozilla.com/D98280
2020-12-16 08:28:54 +00:00
Sonia Singla
970cc13ce5 Bug 1458764 - Removed the references with extensions.webextensions.tabhide.enabled pref. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D97092
2020-12-17 19:14:07 +00:00
Csoregi Natalia
da65c94d99 Backed out 2 changesets (bug 1253129) for causing failures on browser_ext_windows_create_params.js. CLOSED TREE
Backed out changeset ac8d0372dcb1 (bug 1253129)
Backed out changeset 016006d107b6 (bug 1253129)
2020-12-17 00:50:20 +02:00
Shane Caraveo
d4a1a434ac Bug 1253129 warn when using focused property with windows.create r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D76944
2020-12-16 19:55:45 +00:00
Kartik Gautam
f7ffcd09fb Bug 1679758 - Remove trailing empty lines r=sylvestre,marionette-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D99595
2020-12-15 10:34:54 +00:00
Dorel Luca
7320ae982a Backed out changeset f3aaf04fce3b (bug 1679758) for Devtool failures in browser_styleeditor_syncAddProperty.js. CLOSED TREE 2020-12-13 16:38:21 +02:00
Kartik Gautam
caf549c200 Bug 1679758 - Remove trailing empty lines r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D99595
2020-12-13 13:28:30 +00:00
Tomislav Jovanovic
7fabc9e74c Bug 1680877 - Enable content scripts in extension popups and sidebars r=rpl
See comment in ExtensionPolicyService::CheckDocument for details.

Differential Revision: https://phabricator.services.mozilla.com/D99133
2020-12-12 15:59:18 +00:00
Shane Caraveo
2f3f1e7b7a Bug 1678786 fix url_overrides_newtab intermittent r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D99132
2020-12-11 17:51:56 +00:00
Sam Foster
fa664601db Bug 1654684 - Add sheet-indicator and preview navigation to the print preview. r=mstriemer,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D96737
2020-12-09 20:56:28 +00:00
ankushduacodes
6f8bc11f0f Bug 1671579 - Granting the devtools optional permission should also enabled the extension devtools page from a toolbox perspective r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D98841
2020-12-09 17:35:58 +00:00
Csoregi Natalia
491d6b17d3 Backed out changeset 9d25024d5811 (bug 1680877) for causing failures on browser_ext_menus_events.js. CLOSED TREE 2020-12-09 18:13:47 +02:00
Tomislav Jovanovic
a3ababf703 Bug 1680877 - Enable content scripts in extension popups and sidebars r=rpl
See comment in ExtensionPolicyService::CheckDocument for details.

Differential Revision: https://phabricator.services.mozilla.com/D99133
2020-12-09 10:10:56 +00:00
Csoregi Natalia
4eae934956 Backed out 2 changesets (bug 1654684) for browser chrome failures with .printPreviewCurrentPageNumber. CLOSED TREE
Backed out changeset 2fdc1b5569e1 (bug 1654684)
Backed out changeset 8ae1d037aa9c (bug 1654684)
2020-12-09 16:11:42 +02:00
Sam Foster
0c4bb65e4d Bug 1654684 - Add sheet-indicator and preview navigation to the print preview. r=mstriemer,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D96737
2020-12-09 02:59:26 +00:00
Agi Sferro
0b9c0abdce Bug 1625233 - Move xpcshell browsingData to toolkit. r=robwu
Depends on D98368

Differential Revision: https://phabricator.services.mozilla.com/D98369
2020-12-04 21:43:32 +00:00
Agi Sferro
06e6777956 Bug 1625233 - Convert browsingData browser tests to mochitests. r=rpl
Depends on D96153

Differential Revision: https://phabricator.services.mozilla.com/D96154
2020-12-04 21:43:22 +00:00
Agi Sferro
25013d8d5f Bug 1625233 - Refactor ext-browsingData code so it can be shared with other platforms. r=rpl,robwu
Depends on D96150

Differential Revision: https://phabricator.services.mozilla.com/D96152
2020-12-04 20:52:52 +00:00
harry
9e16e8ed83 Bug 1679890 - Change UrlbarProviderExtension.notificationTimeout into a pref. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D98253
2020-12-01 05:35:45 +00:00
Dão Gottwald
57d8ec78b2 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
Marco Bonardo
819b880581 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
8e04f6d341 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
470d497c4a 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
7bd9662c5d 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
803c3be427 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
Erica Wright
2e621affde Bug 1595858 - Allow users to select or deselect addons for homepage and newtab without disabling the addons. r=preferences-reviewers,Gijs,mixedpuppy,ahal
Differential Revision: https://phabricator.services.mozilla.com/D93584
2020-11-20 21:40:14 +00:00
Luca Greco
ec28416cf3 Bug 1675106 - Make browsingData.removePluginData a no-op and to log a deprecation warning. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D97672
2020-11-20 18:00:46 +00:00
Liz Krane
e65db138f1 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
Shane Caraveo
eef9cb9a88 Bug 1640746 fix intermittent timeout when testing addon hang r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D97363
2020-11-18 19:28:53 +00:00
David Parks
98abc7273a Bug 1675349: Update tests under browser/components for the removal of plugins. r=jmathies,mixedpuppy
UPDATED
-------

browser/components/extensions/test/browser/browser_ext_browsingData_pluginData.js
Test plugindata part of the browsingData extension's use of nsIClearDataService.
Have test attempt to clear non-existent data.  Test that browsingData APIs do not cause exceptions.

REMOVED
-------
browser/components/enterprisepolicies/tests/browser/browser_policy_disable_flash_plugin.js
Bug 1429169
Flash ctp/disabled by enterprise policy.

Differential Revision: https://phabricator.services.mozilla.com/D95907
2020-11-18 15:57:10 +00:00
Bogdan Tara
56346a0425 Backed out 19 changesets (bug 1675349) for lint failures on browser_ext_browsingData_pluginData and test_archive CLOSED TREE
Backed out changeset 244e0f2b410c (bug 1675349)
Backed out changeset ba5724069dd4 (bug 1675349)
Backed out changeset 37fca259c7e9 (bug 1675349)
Backed out changeset f2b16caca1fc (bug 1675349)
Backed out changeset 28835d4935be (bug 1675349)
Backed out changeset eb913f58953a (bug 1675349)
Backed out changeset 19e3cb80f469 (bug 1675349)
Backed out changeset d9723f3a3a7e (bug 1675349)
Backed out changeset c888dfcdf70e (bug 1675349)
Backed out changeset 48f153341af6 (bug 1675349)
Backed out changeset 7fc67a9b2932 (bug 1675349)
Backed out changeset 1cee4d97f801 (bug 1675349)
Backed out changeset 59a0cb79c7c1 (bug 1675349)
Backed out changeset 43d349fa37b1 (bug 1675349)
Backed out changeset c84bfb6eae59 (bug 1675349)
Backed out changeset 38e9af69ae57 (bug 1675349)
Backed out changeset 3255c1ab3059 (bug 1675349)
Backed out changeset 2f3eaf9c342c (bug 1675349)
Backed out changeset 769e5c0db4c2 (bug 1675349)
2020-11-18 06:06:36 +02:00
David Parks
b1b7e6c4f0 Bug 1675349: Update tests under browser/components for the removal of plugins. r=jmathies,mixedpuppy
UPDATED
-------

browser/components/extensions/test/browser/browser_ext_browsingData_pluginData.js
Test plugindata part of the browsingData extension's use of nsIClearDataService.
Have test attempt to clear non-existent data.  Test that browsingData APIs do not cause exceptions.

REMOVED
-------
browser/components/enterprisepolicies/tests/browser/browser_policy_disable_flash_plugin.js
Bug 1429169
Flash ctp/disabled by enterprise policy.

Differential Revision: https://phabricator.services.mozilla.com/D95907
2020-11-18 03:11:46 +00:00
Tim Giles
973bb4dad6 Bug 1613620 - Provide an option to remove all logins at once from about:logins. r=prathiksha,fluent-reviewers,sfoster,markh
Depends on D89078

Differential Revision: https://phabricator.services.mozilla.com/D91198
2020-11-17 21:38:33 +00:00
Bogdan Tara
7b40f0b246 sBacked out changeset 26f7d3a8b1b6 (bug 1595858) for overrides related mochitest failures CLOSED TREE 2020-11-18 01:42:59 +02:00
Erica Wright
a0437a3853 Bug 1595858 - Allow users to select or deselect addons for homepage and newtab without disabling the addons. r=preferences-reviewers,Gijs,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D93584
2020-11-17 19:49:36 +00:00
Mihai Alexandru Michis
e2ec982790 Backed out 2 changesets (bug 1613620, bug 1675557) for causing bc failures in browser_removeAllDialog.js
CLOSED TREE

Backed out changeset 46f96d192bbd (bug 1675557)
Backed out changeset 20a2fcd59084 (bug 1613620)
2020-11-17 18:40:20 +02:00
Tim Giles
8e6c2d4b17 Bug 1613620 - Provide an option to remove all logins at once from about:logins. r=prathiksha,fluent-reviewers,sfoster,markh
Depends on D89078

Differential Revision: https://phabricator.services.mozilla.com/D91198
2020-11-17 15:02:42 +00:00
Nika Layzell
42028efc71 Bug 1671983 - Part 4: Stop awaiting BrowserTestUtils.loadURI, r=annyG,remote-protocol-reviewers,extension-reviewers,preferences-reviewers,whimboo,zombie
This method only is async in order to allow callers to wait for a process switch
triggered by the call to `loadURI` to be finished before resolving. With
DocumentChannel, we should never trigger a process switch eagerly like this
again, so we don't need any of the async behaviour here anymore.

This part is largely mechanical changes to tests, removing the `await` calls on
`loadURI`, and a follow-up part will remove the actual async logic from
`BrowserTestUtils.loadURI`.

Differential Revision: https://phabricator.services.mozilla.com/D94641
2020-11-12 18:01:03 +00:00
Emilio Cobos Álvarez
1c753a9c55 Bug 1676843, bug 1618639 - Hopefully the last round of test fixes.
MANUAL PUSH: Orange in a CLOSED TREE
2020-11-13 22:07:48 +01:00
Emilio Cobos Álvarez
2731a2e354 Bug 1676843, bug 1618639 - A couple more test fixes.
MANUAL PUSH: Orange in a CLOSED TREE
2020-11-13 19:12:39 +01:00
Emilio Cobos Álvarez
04aacd7070 Bug 1676843 - Fix up some tests that rely on rounded inner windows dimensions.
MANUAL PUSH: Timeouts on a CLOSED TREE
2020-11-13 17:19:06 +01:00
Bogdan Tara
ca56bb2db5 Backed out changeset d86e4d6c2be4 (bug 1595858) for browser_ext_chrome_settings_overrides_home.js failures CLOSED TREE 2020-11-13 06:11:35 +02:00
Erica Wright
afcd271556 Bug 1595858 - Allow users to select or deselect addons for homepage and newtab without disabling the addons. r=preferences-reviewers,Gijs,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D93584
2020-11-13 02:02:47 +00:00
Tom Schuster
bf6253f556 Bug 1675643. Fix browsingData.removeLocalStorage when next-gen storage is disabled. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D96173
2020-11-06 16:14:16 +00:00
Mark Banner
171ca8fd0a Bug 1643858 - When an add-on is uninstalled at early startup, ensure that we also remove associated search engines. r=mixedpuppy,daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D95540
2020-11-04 11:20:45 +00:00
Razvan Maries
10425eddfc Backed out 7 changesets (bug 1658084, bug 1671983) for perma failures on browser_async_remove_tab.js and browser_e10s_chrome_process.js. CLOSED TREE
Backed out changeset 2e6309c1cdbd (bug 1658084)
Backed out changeset 99aafd9304ef (bug 1671983)
Backed out changeset 80280b85280a (bug 1671983)
Backed out changeset 008db2659002 (bug 1671983)
Backed out changeset 32bd45c7fe3a (bug 1671983)
Backed out changeset 56e227e6580c (bug 1671983)
Backed out changeset a404f809f79d (bug 1671983)
2020-11-04 04:23:47 +02:00
Nika Layzell
5f9c85da95 Bug 1671983 - Part 4: Stop awaiting BrowserTestUtils.loadURI, r=annyG,remote-protocol-reviewers,extension-reviewers,preferences-reviewers,whimboo,zombie
This method only is async in order to allow callers to wait for a process switch
triggered by the call to `loadURI` to be finished before resolving. With
DocumentChannel, we should never trigger a process switch eagerly like this
again, so we don't need any of the async behaviour here anymore.

This part is largely mechanical changes to tests, removing the `await` calls on
`loadURI`, and a follow-up part will remove the actual async logic from
`BrowserTestUtils.loadURI`.

Differential Revision: https://phabricator.services.mozilla.com/D94641
2020-11-04 00:55:36 +00:00
Tom Schuster
98810e5387 Bug 1670811 - Tests for browsingData.remove with cookieStoreId r=extension-reviewers,mixedpuppy,rpl
Depends on D93277

Differential Revision: https://phabricator.services.mozilla.com/D93332
2020-11-03 18:28:58 +00:00
Tom Schuster
c80939398a Bug 1670811 - browsingData.remove cookieStoreId support for next-gen localStorage and indexedDB r=rpl
Depends on D93276

Differential Revision: https://phabricator.services.mozilla.com/D93277
2020-11-03 18:28:55 +00:00
Tom Schuster
3e9a407b7f Bug 1670811 - Unify indexedDB and localStorage code r=rpl
Depends on D93275

Differential Revision: https://phabricator.services.mozilla.com/D93276
2020-11-03 18:28:47 +00:00
Tom Schuster
288d639be4 Bug 1670811 - Basic browsingData.remove cookieStoreId support for clearing cookies r=extension-reviewers,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D93275
2020-11-03 18:28:40 +00:00
Dorel Luca
ce470538d0 Backed out 4 changesets (bug 1670811) for Browser-chrome failures in extensions/test/browser/browser_ext_browsingData_localStorage.js. CLOSED TREE
Backed out changeset d8c8748e2368 (bug 1670811)
Backed out changeset edde0caa4fa2 (bug 1670811)
Backed out changeset 3ce25bc93634 (bug 1670811)
Backed out changeset 2e6562022528 (bug 1670811)
2020-11-03 16:29:56 +02:00
Tom Schuster
ad21606ced Bug 1670811 - Tests for browsingData.remove with cookieStoreId r=extension-reviewers,mixedpuppy,rpl
Depends on D93277

Differential Revision: https://phabricator.services.mozilla.com/D93332
2020-11-03 13:18:58 +00:00
Tom Schuster
db38ffdd23 Bug 1670811 - browsingData.remove cookieStoreId support for next-gen localStorage and indexedDB r=rpl
Depends on D93276

Differential Revision: https://phabricator.services.mozilla.com/D93277
2020-11-02 20:46:22 +00:00
Tom Schuster
32c7705e76 Bug 1670811 - Unify indexedDB and localStorage code r=rpl
Depends on D93275

Differential Revision: https://phabricator.services.mozilla.com/D93276
2020-11-02 20:46:14 +00:00
Tom Schuster
3d2496e8a9 Bug 1670811 - Basic browsingData.remove cookieStoreId support for clearing cookies r=extension-reviewers,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D93275
2020-11-02 21:00:14 +00:00
Brad Werth
adb6ce1988 Bug 1634556 Part 4: Add tests of mousewheel zoom in a sidebar, browser action, and page action panels. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D86467
2020-11-02 14:40:54 +00:00
Brad Werth
32579b7ff7 Bug 1634556 Part 2: Make web extension popup panels listen to zoom enlarge/reduce events. r=mixedpuppy
These events are fired for all parent process documents by the code that
handles native mousewheel events. This change adds listeners to those events
and handles them similarly to how they are handled for browsers.

Differential Revision: https://phabricator.services.mozilla.com/D87113
2020-10-23 23:20:07 +00:00
Narcis Beleuzu
009e6beb73 Backed out 4 changesets (bug 1670811) for mochitest failures on test_ext_cookies_containers.html
Backed out changeset 26b4582e47ae (bug 1670811)
Backed out changeset 3de473631613 (bug 1670811)
Backed out changeset ef9da168cdfd (bug 1670811)
Backed out changeset 3175566381a6 (bug 1670811)
2020-11-02 18:13:48 +02:00
Tom Schuster
ab1a6f2a2b Bug 1670811 - Tests for browsingData.remove with cookieStoreId r=extension-reviewers,mixedpuppy,rpl
Depends on D93277

Differential Revision: https://phabricator.services.mozilla.com/D93332
2020-11-02 12:22:45 +00:00
Tom Schuster
8ccf778780 Bug 1670811 - browsingData.remove cookieStoreId support for next-gen localStorage and indexedDB r=rpl
Depends on D93276

Differential Revision: https://phabricator.services.mozilla.com/D93277
2020-11-02 12:20:11 +00:00
Tom Schuster
c15e97f97b Bug 1670811 - Unify indexedDB and localStorage code r=rpl
Depends on D93275

Differential Revision: https://phabricator.services.mozilla.com/D93276
2020-10-31 18:09:04 +00:00
Tom Schuster
dbf7afa2c0 Bug 1670811 - Basic browsingData.remove cookieStoreId support for clearing cookies r=extension-reviewers,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D93275
2020-11-02 12:22:53 +00:00
Razvan Maries
aa6c94921b Backed out changeset b952d7de3e3e (bug 1650956) for perma failures on browser_ext_tabs_successors.js. CLOSED TREE 2020-10-30 01:29:15 +02:00
Liz Krane
ab5ae8ff2a Bug 1650956 - browser.tabs.remove() now calls removeTabs(). r=robwu
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-10-29 20:36:34 +00:00
Ricky Stewart
02a7b4ebdf Bug 1654103: Standardize on Black for Python code in mozilla-central.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Jared Wein
3d2a8005c8 Bug 727668 - Show bookmarks toolbar on the new tab page. r=Gijs,fluent-reviewers,marionette-reviewers,whimboo
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-10-26 02:32:07 +00:00
Bogdan Tara
da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart
c0cea3b0fa Bug 1654103: Standardize on Black for Python code in mozilla-central. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Mihai Alexandru Michis
f11e661f24 Backed out changeset ba261cf25651 (bug 727668) for causing marionette failures in test_screenshot.py
CLOSED TREE
2020-10-22 06:13:54 +03:00
Dorel Luca
1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart
50762dacab Bug 1654103: Standardize on Black for Python code in mozilla-central. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Jared Wein
e0e5f6bba3 Bug 727668 - Show bookmarks toolbar on the new tab page. r=Gijs,fluent-reviewers
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-10-21 19:20:20 +00:00
Narcis Beleuzu
8945877156 Backed out 1 changesets (bug 727668) for bc failures on browser_aboutNewTab_bookmarksToolbar.js . CLOSED TREE
Backed out changeset 5b6a14b4e16e (bug 727668)
2020-10-19 21:19:17 +03:00
Jared Wein
0e83701c0c Bug 727668 - Show bookmarks toolbar on the new tab page. r=Gijs,fluent-reviewers
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-10-19 16:38:17 +00:00
Peter Van der Beken
b9f1b3e0e2 Bug 1671223 - Reenable some tests that are now succeeding with session history in parent. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D93770
2020-10-19 08:41:11 +00:00
Richa Sharma
4bf7a105cc Bug 1665568 - Throw no receiver error if tab is not available. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D93005
2020-10-09 21:42:17 +00:00
Emilio Cobos Álvarez
4e68e78542 Bug 1669925 - Add a printing.trigger keyed scalar to record what triggers a particular print dialog. r=jwatt,marionette-reviewers,maja_zf
In order to avoid over/under-counting, we need to treat window.print()
specially. The new UI was using aOpenWindowInfo.isForPrintPreview for
that, but that doesn't quite work for the old UI (because it will
trigger a regular print, not a preview).

But since isForPrintPreview was only really needed to distinguish
window.print(), just rename it and set it to true when the old UI is
triggered by window.print() as well.

Differential Revision: https://phabricator.services.mozilla.com/D92925
2020-10-09 14:59:46 +00:00
Olli Pettay
8a508eaa66 Bug 1668357 - Disable tests which fail when fission and session-history-in-parent are enabled, r=peterv,marionette-reviewers,whimboo
In many cases with wpt, most of the tests in the file pass, but it is rather time consuming to annotate
.ini files case by case.

Differential Revision: https://phabricator.services.mozilla.com/D91977
2020-10-01 10:23:47 +00:00
Daisuke Akatsuka
37cb66004f Bug 1638633: Introduce loadSearchFromExtension to use same mechanism as loadSearchFrom*. r=mak,robwu
Differential Revision: https://phabricator.services.mozilla.com/D91560
2020-10-01 00:12:15 +00: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
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
Alexandre Poirot
fad9e1690b Bug 1663649 - [devtools] Enable target switching by default. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D91020
2020-09-23 17:50:20 +00:00
Agi Sferro
490c700133 Bug 1664522 - Move ext_tabs_captureTab test to toolkit. r=robwu,snorp
Differential Revision: https://phabricator.services.mozilla.com/D90167
2020-09-17 18:04:20 +00:00
Agi Sferro
ffd9c2aa20 Bug 1664522 - Fix tabs.captureVisibleTab for mobile. r=robwu,zombie,snorp
There are two things wrong with captureVisibleTab on mobile:

    * ownerGlobal is not available on nativeTab, this patch uses
      this.browser.ownerGlobal instead.
    * ZoomManager is not available on mobile, this patch moves that code to
      browser/../ext-tabs.

Differential Revision: https://phabricator.services.mozilla.com/D90009
2020-09-16 22:08:33 +00:00
Dorel Luca
36eb42a5a8 Backed out 3 changesets (bug 1664522) for Mochitest failures in extensions/test/mochitest/test_ext_tabs_captureTab.html. CLOSED TREE
Backed out changeset 30b8a0e3514b (bug 1664522)
Backed out changeset 04b61d3d734a (bug 1664522)
Backed out changeset c951834c99c7 (bug 1664522)
2020-09-17 00:26:59 +03:00
Dorel Luca
cef5008fd7 Backed out 4 changesets (bug 1665162, bug 1664522, bug 1620324) for XPCshell failures and build bustages. CLOSED TREE
Backed out changeset a31efbcf3ff5 (bug 1664522)
Backed out changeset c985209d3ced (bug 1665162)
Backed out changeset ea2f00c4049e (bug 1620324)
Backed out changeset 2ee894a67a93 (bug 1620324)
2020-09-17 00:55:33 +03:00
Dorel Luca
70bfa5c776 Backed out 3 changesets (bug 1664522) for Mochitest failures in extensions/test/mochitest/test_ext_tabs_captureTab.html. CLOSED TREE
Backed out changeset 30b8a0e3514b (bug 1664522)
Backed out changeset 04b61d3d734a (bug 1664522)
Backed out changeset c951834c99c7 (bug 1664522)
2020-09-17 00:26:59 +03:00
Agi Sferro
f9bb44fe18 Bug 1664522 - Move ext_tabs_captureTab test to toolkit. r=robwu,snorp
Differential Revision: https://phabricator.services.mozilla.com/D90167
2020-09-16 20:11:35 +00:00
Agi Sferro
8647758548 Bug 1664522 - Fix tabs.captureVisibleTab for mobile. r=robwu,zombie,snorp
There are two things wrong with captureVisibleTab on mobile:

    * ownerGlobal is not available on nativeTab, this patch uses
      this.browser.ownerGlobal instead.
    * ZoomManager is not available on mobile, this patch moves that code to
      browser/../ext-tabs.

Differential Revision: https://phabricator.services.mozilla.com/D90009
2020-09-16 20:12:00 +00:00
Michael Goossens
1805ff69e9 Bug 1662329 - Drop cookie permission requirement for cookieStoreId r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D90032
2020-09-16 13:50:30 +00:00
Tomislav Jovanovic
c99e9821ef Bug 1636508 - Add options to select captureTab area and scale r=robwu,geckoview-reviewers,agi
Also fix test for HiDPI monitors, and refactor it to remove duplicate code for captureVisibleTab.

Differential Revision: https://phabricator.services.mozilla.com/D89128
2020-09-10 19:38:17 +00:00
Christoph Kerschbaumer
d29c3dd45d Bug 1654258: Package all activity-stream css files and load them using the internal chrome: protocol. r=mconley,k88hudson,perftest-reviewers,zombie,sparky
Differential Revision: https://phabricator.services.mozilla.com/D85022
2020-09-09 16:11:28 +00:00
Tomislav Jovanovic
9122004b63 Bug 1662654 - Convert default top sites icons to data: URIs r=ckerschb,rpl
Differential Revision: https://phabricator.services.mozilla.com/D89297
2020-09-08 11:36:05 +00:00
Drew Willcoxon
6d6402fb4e Bug 1658964 - Convert local restriction chars to search mode and make other improvements to search mode. r=harry
Summary of major changes:

* Bookmarks, history, and tabs restriction chars now enter search mode. I added
  a method to UrlbarProviderHeuristicFallback to return a result with a keyword
  when one of these is used.
* This fixes other bugs like recognizing aliases that are entered at the
  beginning of non-empty search strings, and not quasi-re-entering search mode
  when search mode is already entered and you type another alias.
* The heuristic now determines whether we enter search mode, similar to how it
  also determines whether we autofill. When the heuristic has a keyword but no
  keyword offer, and the keyword is one of the recognized search mode keywords,
  then we enter search mode, cancel the current query, and start a new query
  with the remainder of the search string after the keyword.
* I slightly changed how we detect an alias, but only when update2 is
  enabled. Now, an alias must be followed by a space; otherwise, the alias is
  not recognized and instead just remains part of the seach string. Because if
  we don't do that, then you end up in a strange situation after typing an alias
  but before pressing space: The heuristic says "Search with <engine with the
  alias>", but we haven't entered search mode yet because you haven't typed a
  space yet. This is true for both @aliaes and non-@aliases.
* A consequence of the previous point is that we can still autofill @aliases
  with a trailing space, which IMO is important. Then, once the user types any
  char (space or not), we immediately enter search mode with the query being
  whatever char they typed. This is less important after bug 1658605 landed, but
  it's still good to have.
* Previously, `UrlbarView.onQueryResults` called UrlbarInput in order to
  autofill after the first result is received. This is circuitous becaue the
  input already has an `onFirstResult` method, which I now use to enter search
  mode when appropriate. So I moved the autofill call from UrlbarView to
  `UrlbarInput.onFirstResult`.
* As I mentioned, I improved some test framework and simplified some related
  product (non-test) code. For example:
    * I removed `UrlbarUtils.KEYWORD_OFFER.NONE` in favor of just leaving
      `keywordOffer` as `undefined`.
    * `tailOffsetIndex` can now be `undefined` if it's not relevant.
    * I removed empty-string `icon` properties from payloads in favor of
      `undefined`.
    * In tests, I ignore `undefined` but present properties in payloads so they
      don't count when comparing payloads with `deepEqual`.
    * We weren't previously comparing `result.source` and `result.type` in
      xpcshell tests, and that's important IMO, so I added checks for those and
      updated tests.
    * `isSearchHistory` is redundant, so I removed it. For form history, we
      should be checking `result.source == HISTORY` and `result.type == SEARCH`.
* A bunch of tests needed to be updated for this new behavior.

Differential Revision: https://phabricator.services.mozilla.com/D87944
2020-09-02 00:52:12 +00:00
Mark Banner
552793d2cc Bug 1619926 - Remove remnants of Search geo-location handling now it is handled by Region.jsm. r=daleharvey
Depends on D88021

Differential Revision: https://phabricator.services.mozilla.com/D88022
2020-09-01 18:08:46 +00:00
Mark Banner
c58199cf9f Bug 1619926 - Remove old search config list.json files from tests as they aren't necessary anymore. r=daleharvey
Depends on D88020

Differential Revision: https://phabricator.services.mozilla.com/D88021
2020-09-01 18:08:43 +00:00
Butkovits Atila
7b340f9684 Backed out 15 changesets (bug 1612824, bug 1661234, bug 1619926, bug 1612380, bug 1559530, bug 1642990) for Xpc failures. CLOSED TREE
Backed out changeset 426d017d7e46 (bug 1642990)
Backed out changeset 84ab4021d403 (bug 1559530)
Backed out changeset 82a8305543e5 (bug 1559530)
Backed out changeset 38832c1185b8 (bug 1559530)
Backed out changeset f16918c10a6b (bug 1661234)
Backed out changeset 3a13258fbd51 (bug 1661234)
Backed out changeset abf8d8b24845 (bug 1612824)
Backed out changeset 7dfeb065a385 (bug 1619926)
Backed out changeset bc9d3e210fe7 (bug 1619926)
Backed out changeset 786164c461ae (bug 1619926)
Backed out changeset d89793e9d17d (bug 1619926)
Backed out changeset d665885bc912 (bug 1619926)
Backed out changeset 9260b6620943 (bug 1619926)
Backed out changeset af69a4896f2f (bug 1619926)
Backed out changeset b9cd6b7047b9 (bug 1612380)
2020-09-01 21:03:23 +03:00
Mark Banner
074a2c9ecb Bug 1619926 - Remove remnants of Search geo-location handling now it is handled by Region.jsm. r=daleharvey
Depends on D88021

Differential Revision: https://phabricator.services.mozilla.com/D88022
2020-08-31 16:34:25 +00:00
Mark Banner
ea5b87fb78 Bug 1619926 - Remove old search config list.json files from tests as they aren't necessary anymore. r=daleharvey
Depends on D88020

Differential Revision: https://phabricator.services.mozilla.com/D88021
2020-08-31 16:34:24 +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
Tomislav Jovanovic
ccc7783ad3 Bug 1636508 - Make tabs.captureTab compatible with Fission r=mattwoodrow,robwu,geckoview-reviewers,agi
Also fix WindowGlobalParent.drawSnapshot() to render the currently visible
viewport when called with a null rect, and clarify the webidl comment.

Differential Revision: https://phabricator.services.mozilla.com/D87971
2020-08-25 11:30:52 +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
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
Sonia Singla
5f5c9fd7f2 Bug 1659267 - Remove usages of -moz-user-select across the Firefox codebase. r=emilio,marionette-reviewers,geckoview-reviewers,preferences-reviewers,whimboo,agi
Differential Revision: https://phabricator.services.mozilla.com/D87499
2020-08-18 23:37:51 +00:00
Rob Wu
8103eaba24 Bug 1659074 - Regression tests for undefined/uncloneable error in onMessage r=zombie,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D85644
2020-08-14 10:23:51 +00:00
Kris Maglione
0c976d908a Bug 1651519: Part 2 - Also remove nsIDOMWindowUtils::outerWindowID. r=nika,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D82957
2020-08-17 20:22:12 +00:00
Kris Maglione
3af8c4138c Bug 1651519: Remove nsIDOMWindowUtils::currentInnerWindowID. r=nika,remote-protocol-reviewers,webcompat-reviewers,whimboo
It has some properties which make it footgunny, especially in the face of
Fission. Callers should use WindowGlobalChild.innerWindowId instead.

Differential Revision: https://phabricator.services.mozilla.com/D82801
2020-08-17 20:20:50 +00:00
Emma Malysz
18fe337c0c Bug 1657161, enable print.tab_modal.enabled for EARLY_BETA_OR_EARLIER and hide page range section r=mstriemer,fluent-reviewers,preferences-reviewers,flod
We want this to be turned on for nightly users by default. The page range is still a WIP,
so we should hide that section for now.
This also adds the pref to the "Nightly Experiment" panel, turned on by default.

Differential Revision: https://phabricator.services.mozilla.com/D85907
2020-08-06 23:02:13 +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
2f84ab8f50 Bug 1589517 - Part 3: Add initialBrowsingContextGroupId to extension browsers, r=zombie
This attribute can be used to force non-tab extension browsers to be loaded in
the correct BrowsingContextGroup, and also subsumes the existing
sameProcessAsFrameLoader uses in extension code.

Differential Revision: https://phabricator.services.mozilla.com/D85652
2020-08-06 17:01:10 +00:00
Dale Harvey
e27206c34b Bug 1650881 - Support multiple aliases in webextensions r=Standard8,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D84921
2020-08-06 12:10:30 +00:00
Luca Greco
335c638616 Bug 1570478 - Prevent browser_ext_devtools_network.js from failing intermittently due to late RDP requests. r=Honza
A late getEventTimings RDP request is being cancelled while we are exiting the test case and we have already closed the devtools toolbox.

The related network request is very likely unrelated to the scenario being tested (I suspect it may be an HTTP request triggered by some
privileged code and being automatically added to the webconsole panel, it is not unlikely that we are not explicitly checking if the http
requests logged in the webconsole are actually related to the extension that the devtools toolbox is targeting).

In the meantime, the attached patch is adding to the PromiseTestUtils's "global allow list" the rejections for any late RDP request
that may still be pending while the test is exiting.

Differential Revision: https://phabricator.services.mozilla.com/D86000
2020-08-05 15:38:26 +00:00
Jonathan Kew
7e5e4c7638 Bug 1653354 - Make the WebExtensions API tabs.saveAsPDF work via the Cocoa printing code on macOS. r=jwatt,extension-reviewers,zombie
Differential Revision: https://phabricator.services.mozilla.com/D85891
2020-08-04 16:58:20 +00:00
Luca Greco
f5fc6a6274 Bug 1654842 - webNavigation.getAllFrames/getFrame should resolve to null when called on discarded tabs. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D85622
2020-08-03 22:01:52 +00:00
Luca Greco
8de6c706ec Bug 1653530 - Add an explicit regression test to ensure that a content script can successfully use window.open in a private tab. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D85584
2020-07-31 15:10:32 +00:00
Agi Sferro
3767fc3e36 Bug 1654856 - Move ext-android to json. r=robwu,owlish
Differential Revision: https://phabricator.services.mozilla.com/D84739
2020-07-29 21:44:09 +00:00
Dcoder99
faef0a6577 Bug 1651008 - Gives meaningful menus create error message. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D85024
2020-07-29 02:58:43 +00:00
Jonathan Watt
b7e932192e Bug 1652270. Convert nsFrameLoader::Print to return a Promise. r=farre,remote-protocol-reviewers,marionette-reviewers,jgraham,whimboo,mixedpuppy
(Instead of requiring callers to pass an nsIWebProgressListener.)

Differential Revision: https://phabricator.services.mozilla.com/D83249
2020-07-22 23:17:45 +00:00
Narcis Beleuzu
687f235fbc Backed out changeset f95c19e45ab2 (bug 1652270) for reftest failures on test-text.html . CLOSED TREE 2020-07-22 20:36:53 +03:00
Jonathan Watt
8c0fb25348 Bug 1652270. Convert nsFrameLoader::Print to return a Promise. r=farre,remote-protocol-reviewers,marionette-reviewers,jgraham,whimboo,mixedpuppy
(Instead of requiring callers to pass an nsIWebProgressListener.)

Differential Revision: https://phabricator.services.mozilla.com/D83249
2020-07-22 15:54:01 +00:00
Dorel Luca
990d081d9f Backed out 2 changesets (bug 1651519) for WPT failures in webdriver/tests/switch_to_frame/switch.py. CLOSED TREE
Backed out changeset 7b973a0e7be9 (bug 1651519)
Backed out changeset 55e9184c5617 (bug 1651519)
2020-07-22 02:47:34 +03:00
Kris Maglione
d182c95351 Bug 1651519: Part 2 - Also remove nsIDOMWindowUtils::outerWindowID. r=nika,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D82957
2020-07-21 22:19:19 +00:00
Kris Maglione
e7d942c77f Bug 1651519: Remove nsIDOMWindowUtils::currentInnerWindowID. r=nika,remote-protocol-reviewers,webcompat-reviewers,whimboo
It has some properties which make it footgunny, especially in the face of
Fission. Callers should use WindowGlobalChild.innerWindowId instead.

Differential Revision: https://phabricator.services.mozilla.com/D82801
2020-07-21 19:02:27 +00:00
Nicolas Chevobbe
ae24ed2cde Bug 1652016 - Destroy target created by WebExtension when destroying the toolbox. r=rpl,daisuke,jdescottes.
The problem has 2 folds.
The first one is that the shutdown function on DevToolsExtensionPageContextParent
wasn't called, which means the target was never destroyed. This is fixed by
overriding unload in DevToolsExtensionPageContextParent instead of shutdown, so
the function gets called and the target destroyed.

The second issue was that a single webextension could create 2 targets, and since
we only keep track of a single target, we would miss one. This is fixed by putting
the call to watchTargets in getCurrentDevTools in a promise, so subsequent calls
that might occur before the resulting promise isn't resolved don't end up calling
watchTargets a second time.

Differential Revision: https://phabricator.services.mozilla.com/D83935
2020-07-21 16:26:16 +00:00
Dorel Luca
d91c6dc40b Backed out 2 changesets (bug 1651519) for wpt failures in webdriver/tests/switch_to_frame/switch.py. CLOSED TREE
Backed out changeset 52317abc5c68 (bug 1651519)
Backed out changeset 45448dca59a4 (bug 1651519)
2020-07-21 21:55:57 +03:00
Kris Maglione
4a25531b4a Bug 1651519: Part 2 - Also remove nsIDOMWindowUtils::outerWindowID. r=nika,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D82957
2020-07-21 16:59:33 +00:00
Kris Maglione
9c2c147159 Bug 1651519: Remove nsIDOMWindowUtils::currentInnerWindowID. r=nika,remote-protocol-reviewers,webcompat-reviewers,whimboo
It has some properties which make it footgunny, especially in the face of
Fission. Callers should use WindowGlobalChild.innerWindowId instead.

Differential Revision: https://phabricator.services.mozilla.com/D82801
2020-07-21 16:59:28 +00:00
Kashav Madan
ae956c4eef Bug 1653674 - Unskip passing fission tests, r=kmag
It's possible that some of these are still failing intermittently. We can't
really know without first unskipping them.

https://github.com/annygakh/audit-tests

Differential Revision: https://phabricator.services.mozilla.com/D84017
2020-07-21 15:42:48 +00:00
Narcis Beleuzu
d78bc06be2 Bug 1651261 - Disable browser_ext_url_overrides_newtab.js on linux64. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D84049
2020-07-20 19:21:47 +00:00
Andreea Pavel
e46180930b Bug 1595340 - re-enable browser_ext_urlbar.js on fission r=cpeterson
Differential Revision: https://phabricator.services.mozilla.com/D83851
2020-07-20 17:59:41 +00:00
Csoregi Natalia
c99b2cfaf1 Backed out changeset ad64957cf655 (bug 1271047) for failures on browser_ext_windows_create_params.js. CLOSED TREE 2020-07-17 12:25:28 +03:00
YUKI "Piro" Hiroshi
f9cdb32c1e Bug 1271047 - Place "popup" type window to given coordinates r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D73419
2020-07-13 16:02:46 +00:00