Commit Graph

2253 Commits

Author SHA1 Message Date
Brian Grinstead
73a601351c Bug 1519502 - Convert menu bindings to a Custom Element r=surkov
Differential Revision: https://phabricator.services.mozilla.com/D19593
2019-04-17 15:56:41 +00:00
Luca Greco
0687f13b7e Bug 1542842 - Fix remaining references to undefined Ci.nsITelemetry constant in WebExtensions tests. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D27650
2019-04-16 12:58:30 +00:00
Brian Grinstead
6bf5cf3d2a Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky
This excludes dom/, otherwise the file size is too large for phabricator to handle.

This is an autogenerated commit to handle scripts loading mochitest harness files, in
the simple case where the script src is on the same line as the tag.

This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170
using the `--part 2` argument.

Differential Revision: https://phabricator.services.mozilla.com/D27456
2019-04-16 03:50:44 +00:00
Drew Willcoxon
c2c5a74a3a Bug 1541929 - Don't autofill the first result in some cases. r=mak
We need to handle autofilling the first result separately from autofilling results in general (which happens in UrlbarInput.setValueFromResult), so add a new UrlbarInput.autofillFirstResult method. The controller calls it instead of setValueFromResult. I ported the logic from nsAutoCompleteController, as described in the bug.

Other changes are related to the new test for this.

As part of this work, I was interested in learning how awesomebar handles browser_autoFill_typed.js, so I added it to the legacy tests, with a small tweak in the test for awesomebar.

Differential Revision: https://phabricator.services.mozilla.com/D26852
2019-04-15 13:15:30 +00:00
Dale Harvey
6bc5b736e5 Bug 1496075 - Part 3: Use webextensions in SearchServices. r=mikedeboer,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D25246
2019-04-11 20:49:31 +00:00
Dale Harvey
062752de53 Bug 1496075 - Part 1: Extensions changes to support search extensions. r=mixedpuppy,robwu
Differential Revision: https://phabricator.services.mozilla.com/D25244
2019-04-11 21:30:47 +00:00
Shane Caraveo
652ce87375 Bug 1543538 fix TV failure in browser_ext_tabs_newtab_private.js due to async test r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D27015
2019-04-11 02:26:30 +00:00
Shane Caraveo
b371837b78 Bug 1532165 use prefs to support extension newtab and homepage on startup. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D25808
2019-04-08 22:36:26 +00:00
Rob Wu
28cf36b91f Bug 1541833 - Clean up getIncognitoWindow in head.js r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D26087
2019-04-04 14:47:00 +00:00
Luca Greco
613e2adfca Bug 1540112 - Enable addonsManager telemetry event category before the AddonManager/XPIProvider have been started. r=aswan,chutten
Differential Revision: https://phabricator.services.mozilla.com/D25380
2019-04-03 17:56:52 +00:00
Jan-Erik Rediger
5fec79a3f4 Bug 1529696 - Rename DATASET_RELEASE_CHANNEL_OPTOUT/OPTIN to DATASET_ALL/PRERELEASE_CHANNELS everywhere r=chutten
Depends on D25934

Differential Revision: https://phabricator.services.mozilla.com/D25935
2019-04-03 17:12:11 +00:00
Edwin Gao
6d3a965c0a Bug 1538785 - disable plugin-related tests from windows10-aarch64 r=jmaher
Disabled plugin related tests.

Added `crashreporter` dependency for browser_restore_isAppTab.js.

Differential Revision: https://phabricator.services.mozilla.com/D25504
2019-04-01 18:30:23 +00:00
Brian
83c5bc6d2e Bug 1523763 - Move tab context menu strings to FTL file loaded on-demand. r=Gijs,flod
Moved tab context menu out of browser.dtd to browser.xul except for sendPageToDevice, sendLinkToDevice, moveTabOptions, moveSelectedTabOptions, undoCloseTab. Not sure if tabbrowser.js and tabbrowser.xul are working as intended.

Differential Revision: https://phabricator.services.mozilla.com/D19312
2019-03-29 14:55:12 +00:00
Luca Greco
09e7969398 Bug 1348536 - Fix browser_ext_tabs_onUpdated frequent intermittent failures on the test_url test case. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D25271
2019-03-28 19:03:08 +00:00
Mark Banner
d5029e0dae Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D23850
2019-03-28 09:38:14 +00:00
Mark Banner
330c125649 Bug 1415265 - Implement a central configuration for setting ESLint environments for test directories. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D23849
2019-03-28 09:38:02 +00:00
ariasuni
835e6ceca1 Bug 1394376 - Resolve browser.tabs.duplicate() promise as soon as possible r=zombie
Don’t wait for tab to be fully loaded to resolve the promise.

Differential Revision: https://phabricator.services.mozilla.com/D15337
2019-03-27 23:16:46 +00:00
Oriol Brufau
b55cdc4483 Bug 1538378 - Test that tabs.onCreated fires with active:true. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D24819
2019-03-26 00:50:22 +00:00
Oriol Brufau
fb21f6e419 Bug 1538378 - Back out bug 1529411. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D24818
2019-03-26 02:40:18 +00:00
Philipp Kewisch
b20b6a24fc Bug 1507709 - Move WebExtensions geckoProfiler API to toolkit. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D12100
2019-03-22 13:18:01 +00:00
Mark Banner
95232e5aa5 Bug 1530675 - Enable WebNavigation transistion notifications for WebExtensions with QuantumBar. r=mak,rpl
Differential Revision: https://phabricator.services.mozilla.com/D21218
2019-03-20 20:22:35 +00:00
Rob Wu
c9ee179b58 Bug 1492895 - Fix intermittent failure in browser_ext_search.js r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D23503
2019-03-15 08:27:48 +00:00
Rob Wu
b51d89ac07 Bug 1525729 - Stop blocking extension startup on searchInitialized r=aswan
Depends on D23311

Differential Revision: https://phabricator.services.mozilla.com/D19701
2019-03-13 18:48:57 +00:00
Edwin Gao
33d266792b Bug 1531590, 1531598, 1534811, 1336075, 1531571, 1531572, 1531572, 1531574, 1534855, 1534857, 1535082 - skip tests in mochitest-dev-tools and mochitest-browser-chrome suites for windows10-aarch64 r=jmaher
Bug 1531598 - disable browser_markup_copy_image_data.js
Bug 1531598 - disable browser_markup_links_04.js
Bug 1531598 - disable browser_inspector_menu-01-sensitivity.js
Bug 1534811 - disable accessible/tests/browser/general
Bug 1336075 - disable browser_largeAllocation_non_win32.js
Bug 1531571 - disable browser_jsterm_context_menu_labels.js
Bug 1531572 - disable browser_jsterm_helper_dollar_x.js
Bug 1531573 - disable browser_jsterm_no_input_and_tab_key_pressed.js
Bug 1531574 - disable browser_jsterm_syntax_highlight_output.js
Bug 1534855 - disable accessible/tests/browser/
Bug 1534857 - disable browser_ext_slow_script.js
Bug 1535082 - disable browser_jsterm_helper_dollar_dollar.js

Differential Revision: https://phabricator.services.mozilla.com/D23369
2019-03-13 19:47:25 +00:00
Oana Pop Rus
56669d88a4 Merge inbound to mozilla-central. a=merge 2019-03-13 12:09:03 +02:00
Andrew Swan
3753935bea Bug 1534796 Tweak default search prompts r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D23227
2019-03-12 14:32:24 -07:00
Edouard Oger
fbcc2b613c Bug 1532514 - Update sinon to v7.2.7. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D22046
2019-03-12 19:32:40 +00:00
Dorel Luca
163580f51c Backed out changeset 4b280518c7b1 (bug 1532514) for Browser-chrome failures in browser/components/syncedtabs/test/browser/browser_sidebar_syncedtabslist.js. CLOSED TREE 2019-03-12 03:59:56 +02:00
Edouard Oger
1afa261c1b Bug 1532514 - Update sinon to v7.2.7. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D22046
2019-03-12 00:18:16 +00:00
sagarwala
35dbe131dc Bug 1451079 - Fix runtime.setUninstallURL to honor empty string, r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D18499
2019-03-11 17:46:44 +00:00
Shane Caraveo
ddba318067 Bug 1529394 fix tests for pref'ing on incognito not_allowed r=rpl
This patch addresses remaining test issues when pref'ing on.  These are tests that
previously ran some tests in private contexts that now require the use of incognitoOverride.
This also fixes an xpcshell test wrapper to set the permission when overridden.

Differential Revision: https://phabricator.services.mozilla.com/D21300
2019-03-05 14:17:36 +00:00
Andreea Pavel
6abd33d328 Backed out 2 changesets (bug 1529394) for bc failures at automation.py on a CLOSED TREE
Backed out changeset 7f3e254c982c (bug 1529394)
Backed out changeset 3a8c338af709 (bug 1529394)
2019-03-05 01:34:50 +02:00
Shane Caraveo
b4a71ecc49 Bug 1529394 fix tests for pref'ing on incognito not_allowed r=rpl
This patch addresses remaining test issues when pref'ing on.  These are tests that
previously ran some tests in private contexts that now require the use of incognitoOverride.
This also fixes an xpcshell test wrapper to set the permission when overridden.

Differential Revision: https://phabricator.services.mozilla.com/D21300
2019-03-01 17:55:38 +00:00
Shane Caraveo
093ebb26fb Bug 1529582 prevent addon-set external home pages in private browsing without permission r=rpl,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D21228
2019-02-28 18:12:46 +00:00
Narcis Beleuzu
fa44140bd3 Backed out changeset 52747743fe65 (bug 1525729) for XPCShell failures on test_ext_chrome_settings_overrides_update.js . CLOSED TREE 2019-02-28 22:59:55 +02:00
Rob Wu
5fa40d4191 Bug 1525729 - Ignore searchInitialized promise on shutdown r=aswan
Differential Revision: https://phabricator.services.mozilla.com/D19701
2019-02-28 17:39:18 +00:00
Luca Greco
379b6d25fc Bug 1285500 - Re-enable browser_ext_browserAction_popup.js on windows opt. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D21524
2019-02-28 13:42:24 +00:00
Shane Caraveo
cbc9b93286 Bug 1523605 fix intermittent failure in browser_ext_sidebarAction_incognito.js r=rpl
Sometimes about:blank would match a non-private window, ensure we're looking
for a url specific to the private window.

Differential Revision: https://phabricator.services.mozilla.com/D21454
2019-02-28 13:40:58 +00:00
Mark Banner
ded1e126a7 Bug 1522508 - Port browser_ext_omnibox.js to work with QuantumBar. r=mak
The timer cancelling in UnifiedComplete.js seems to make the tests more stable with QuantumBar for some reason. Without it, some of the sub-tests would tend to time out. This might be better once we can implement a proper waitForResult() that doesn't have to wait for the entire search to be complete.

Differential Revision: https://phabricator.services.mozilla.com/D21006
2019-02-28 09:25:36 +00:00
Mark Banner
8c15e0aaf9 Bug 1522508 - Port WebExtension tests to work with QuantumBar (simple changes). r=mak
Differential Revision: https://phabricator.services.mozilla.com/D21002
2019-02-28 09:25:05 +00:00
Luca Greco
d6d78c7284 Bug 1285500 - Rewrite browser_ext_browserAction_popup test and avoid intermittency on the 'overflow menu' test. r=mixedpuppy
This patch rewrites the browser_ext_browserAction_popup.js test file to make it easier to follow the
sequence of its test cases (in the previous version of this test file, the logic that was executing
the sequence of test cases was fragmented in a bunch of listeners, in both the test extension and
the privileged test code) and to make the test able to wait for the popups to be fully loaded or
fully destroyed before moving to the next test case.

Differential Revision: https://phabricator.services.mozilla.com/D21427
2019-02-27 21:44:47 +00:00
Oriol Brufau
1ed6cdfc8b Bug 1529411 - Fire onCreated before onRemoved when closing last tab with browser.tabs.closeWindowWithLastTab=false. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D20584
2019-02-28 00:10:30 +00:00
Ciure Andrei
bd80e09d68 Backed out changeset 56d817208b35 (bug 1451079) for failing browser_ext_runtime_setUninstallURL.js CLOSED TREE 2019-02-28 05:38:41 +02:00
sagarwala
40fea49281 Bug 1451079 - Adding fix for setting empty url to set uninstall url during runtime. r=zombie
The bug indicated that the setUninstallURL did not honor empty url during runtime.
Steps to reproduce:
1. Install an extension, uninstall URL is set
2. Update the extension, changing the uninstall URL string to null (empty)
3. Uninstall the extension

Differential Revision: https://phabricator.services.mozilla.com/D18499
2019-02-28 02:15:12 +00:00
Daisuke Akatsuka
86d3bc4d84 Bug 1525533: Stop supporting inspection of addon in Browser Toolbox. r=jdescottes,rpl
Depends on D20786

Differential Revision: https://phabricator.services.mozilla.com/D20971
2019-02-27 01:57:19 +00:00
Shane Caraveo
0c4decd61f Bug 1512353 skip moving windows between pb and non-pb windows r=zombie
Differential Revision: https://phabricator.services.mozilla.com/D20557
2019-02-25 18:38:49 +00:00
Luca Greco
f8dd4bd060 Bug 1488981 - Fix browser_ext_getViews.js popup count failure when getViews is called before inner-window-destroyed. r=robwu
This test was failing intermittently in opt and pgo builds because there was a slightly chance that
the test extension may be calling browser.extension.getViews while the popup context was unloading
but it wasn't still destroyed and so it wasn't yet removed from the set of the extension views.

This patch fixes this intermittency by changing the promiseBrowserContentUnloaded test helper to
ensure that the unloadPromise is resolved when the "inner-window-destroyed" message for the
extension window is being notified to the "observer service" listeners, as it is what
the ExtensionPageChild is listening to decide when the ExtensionPageContextChild should be
unloaded and removed from the set of the extension views.

Differential Revision: https://phabricator.services.mozilla.com/D20658
2019-02-25 11:45:29 +00:00
Luca Greco
6e435bd5c3 Bug 1349892 - Fix browser_ext_sidebarAction_contex intermittency. r=mixedpuppy
This test was intermittently timing out, mostly on debug builds, because there
was a chance that from time to time the sidebar could have been loaded for the
first time while the background page of the test extension was still being loaded.

The test was sending an extension test message as soon as the sidebar was loaded
for the first time, and so if the background page didn't yet added its test message
listener, the test cases did never get started and the entire test was getting stuck.

The changes included in this patch prevents this intermittent failures by ensuring
that the test always waits for the background page and the sidebar to be both loaded
and ready before sending the test message that starts to run the test cases.

Differential Revision: https://phabricator.services.mozilla.com/D20657
2019-02-21 14:08:27 +00:00
Rob Wu
be13d50df6 Bug 1503617 - Fix intermittent failures in tests with permission prompts r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D19492
2019-02-20 21:48:21 +00:00
Shane Caraveo
1e0dd4dc35 Bug 1525125 block newtab and homepage overrides in private windows r=rpl,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D18730
2019-02-19 19:19:44 +00:00