Commit graph

1243 commits

Author SHA1 Message Date
Mark Striemer
5c1b7369e5 Bug 1415029 - Use better extension icon in identity block r=johannh
MozReview-Commit-ID: CFTIe9I9mfe

--HG--
extra : rebase_source : 763d0cce8ebc278b285e5810ab01f6c180f56988
2017-11-27 11:36:10 -06:00
tushararora
b990216761 Bug 1334782 - tabs.query should pattern match the title r=zombie
MozReview-Commit-ID: 5WaKLaOP7Nc

--HG--
extra : rebase_source : 6d317b643cd6d6f38659dfc5cc0c8e16bee74e56
2017-11-16 16:17:45 +05:30
Marco Bonardo
42c2f7913b Bug 1416142 - Intermittent timeout in browser_ext_omnibox.js. r=standard8
MozReview-Commit-ID: DAZumEpI1xB

--HG--
extra : rebase_source : d422ca4bd2afbf2ae7ea27027a2cddc0ff445a23
2017-11-23 13:47:34 +01:00
Bob Silverberg
dec75b31da Bug 1416039 - Fix intermittent browser_ext_tabs_lastAccessed.js, r=mixedpuppy
The recent failures all seem to be on the assertion that lastAccessed of tab 1 is
later than the test start time. It's possible that things happen so quickly that
lastAccessed of tab 1 is the same as the start time, so this patch changes the
comparison to be a <=.

MozReview-Commit-ID: 67CVQPj1ShM

--HG--
extra : rebase_source : c370422f3c9e54bbae8b4e7827c671c5a784ce7b
2017-11-24 08:26:34 -05:00
Mark Striemer
8a1f9ea7ae Bug 1390158 - Notify user of extension controlling New Tab on first access r=aswan,jaws
MozReview-Commit-ID: 1g9d4UTuOgr

--HG--
extra : rebase_source : 29e07cff103e7751bf4ca414a88f89136d3ac237
2017-11-22 19:00:58 -06:00
Tiberius Oros
797c93d81f Merge inbound to mozilla-central r=merge a=merge 2017-11-21 11:55:23 +02:00
Tooru Fujisawa
50f5bf47cd Bug 1418739 - Part 2: Remove unused delayedStartup parameter from BrowserTestUtils.waitForNewWindow. r=smaug 2017-11-21 03:41:56 +09:00
Bob Silverberg
ea5edb4f6a Bug 1404584 Part 3: Convert ExtensionPreferencesManager to use update and uninstall events, r=aswan,jkt
This includes removing the "web-extension-preferences-replacing" and "web-extension-preferences-replaced"
notifications as they are no longer needed.

MozReview-Commit-ID: IjNf4BImgas

--HG--
extra : rebase_source : a48e72c291ebd509d19e9e94196d3600eb7328c4
2017-11-01 09:51:41 -04:00
Bob Silverberg
d5a84e4c0a Bug 1404584 Part 2: Convert ext-chrome-settings-overrides to use update and uninstall events, r=aswan,mkaply
MozReview-Commit-ID: KtagRbDz19S

--HG--
extra : rebase_source : 07b6aca0c1ad1653397055fc0ab61c2f37ad51bb
2017-11-01 09:50:03 -04:00
Andrew Swan
e22db87de6 Bug 1404584 Part 1: Use extensionId in ExtensionSettingsStore and ExtensionPreferencesManager methods, r=aswan
This code changes all of the functions in the ESS and the EPM to accept an extensionId rather than an
extension object, which is required for responding to the new onUpdate event.

MozReview-Commit-ID: FwMVa0fShGj

--HG--
extra : rebase_source : 6b17f729966b5f1c804fb50fe41459859ab3049b
2017-10-24 20:18:03 -07:00
Tim Nguyen
a8dec5b3f6 Bug 1370499 - Support WebExtensions bookmark context menus. r=mixedpuppy
MozReview-Commit-ID: AkYxeGHlDvi

--HG--
extra : rebase_source : 104e86ceec0994076b1c05d6de2000ac1bc77e8c
2017-11-20 23:01:02 +00:00
Tim Nguyen
6a9b3a4737 Bug 1415872 - Implement colors.tab_text and colors.background_tab_text. r=jaws
MozReview-Commit-ID: Gp5CHqmOi6A

--HG--
extra : rebase_source : 3d88c63a68721a120161b9ddb915eb05a24ad9e0
2017-11-15 17:34:12 +00:00
Xidorn Quan
7d5f568abc Bug 1417281 part 2 - Add 32x32 theme icon in browser_ext_browserAction_theme_icons.js test so that it works as expected on HiDPI as well. r=mixedpuppy
MozReview-Commit-ID: DLFuxxeVyTR

--HG--
extra : rebase_source : 4c83df88e8a99a5886f481774dfbf0ce4eec16ab
2017-11-14 17:55:06 -08:00
Mark Banner
ab78a2a54d Bug 1371293 - Fix instances of space-before-function-paren failures after ESLint 4 upgrade. r=mossop
MozReview-Commit-ID: 5XfdCSDjLEG

--HG--
extra : rebase_source : 96335eec91a40f893ff28a1c002653b758d8f24d
2017-11-06 13:46:21 +00:00
Joel Maher
fdb492189b Bug 1285500 - Disable browser_ext_browserAction_popup.js on windows/debug for frequent failures. r=me, a=testonly 2017-11-13 12:20:01 -05:00
Kris Maglione
541e9a6989 Remove unused imports. r=trivial (no bug)
MozReview-Commit-ID: EEVSPkAgORY

--HG--
extra : rebase_source : 8a3da61bdf0f65c518e6cea3c6f5cacf42c6d24d
2017-11-09 16:39:57 -08:00
Drew Willcoxon
46c5139ac2 Bug 1413574 - Hide disabled page actions and offer a "Manage Extension" command for actions in extensions. r=Gijs
MozReview-Commit-ID: HJpu9Jfi2bB

--HG--
extra : rebase_source : ee219138b8df1744c223d81281d9525c3d7b7227
2017-11-10 11:06:02 -05:00
J. Ryan Stinnett
2e1f988e96 Bug 1394841 - Check iframes for related tabs in WebExt. r=kmag
When using WebExt messaging with Responsive Design Mode, message manager
messages traveling from content to parent such as "MessageChannel:Messages" are
received with `event.target` set to the <iframe mozbrowser> inside RDM that
hosts the content.

Here we change `getSender` processing for messages like this to also check HTML
iframes for related tabs, in addition to XUL elements as before.

MozReview-Commit-ID: 3qphe2W8jHM

--HG--
extra : rebase_source : 4b9f3bc930a57bda847cede0217af29d1692d852
2017-11-01 17:19:19 -05:00
Bob Silverberg
0e9d7b7ac2 Bug 1381684 - Fix intermittent browser/components/extensions/test/browser/browser_ext_tabs_lastAccessed.js, r=mixedpuppy
This patch introduces two changes to the test:

1. It breaks apart the assertion that was combining three tests into individual assertions, so if this does
fail again in the future it will be easier to spot the actual problem.

2. It uses addTab and browserLoaded instead of openNewForegroundTab, which seems to allow the test to wait
long enough before starting the extension.

When I was able to reproduce the failure, after separating the assertions, I found the one that was failing
was the check that tab2.lastAccessed was less than the current time. I believe that the current time was being
recorded too soon, which is why I changed the test to not record the current time until after both tabs have
completed loading. This seems to fix the intermittent locally for me.

MozReview-Commit-ID: I3VoYODwjgz

--HG--
extra : rebase_source : 34729a3ae02e9266cf5aee63de293786403a46e9
2017-10-30 13:39:53 -04:00
Marco Bonardo
223e6dec30 Bug 1402286 - chunk notifyResults calls so that we don't run all the autocomplete js for each match. r=adw
MozReview-Commit-ID: GuYew5B30WQ

--HG--
extra : rebase_source : 236f6fe83728ddbb9d73c4f7606aca2187e267b5
2017-10-31 11:13:47 +01:00
Gijs Kruitbosch
c8a6cce3c5 Bug 1387081 - stop re-adding the sidebar button to the toolbar now that it's there by default, r=mixedpuppy
MozReview-Commit-ID: 9e1eFaVltMO

--HG--
extra : rebase_source : b05d6e7034037da95187d25303d359b4c2e67179
2017-11-08 18:01:53 +01:00
Drew Willcoxon
e42d94c099 Bug 1413692 - Extensions page actions are pinned to address bar again and again. r=mixedpuppy
MozReview-Commit-ID: HrhYTNSwygH

--HG--
extra : rebase_source : e67932403b4294902c5096883cb5be6759969d69
2017-11-06 21:19:26 -05:00
Shane Caraveo
6cd7d5e813 Bug 1413648 fix default extension icon use, r=aswan
MozReview-Commit-ID: 3Dh2DjGIAgn

--HG--
extra : rebase_source : da88dcede96fa8f89cca1e9abf9baabb78a73855
2017-11-02 15:49:38 -07:00
Tomislav Jovanovic
bf724a5a3a Bug 1409433 - Handle contextmenu clicks in non-tab content r=aswan
MozReview-Commit-ID: BSTb0ATBfbh

--HG--
extra : rebase_source : 03888d08aab2dd58f8886d1adc0baa1d2c658c8f
2017-11-01 23:00:33 +01:00
Michael Kaply
c7b960e287 Bug 1413298 - Allow search encoding to be specifed by WebExtension. r=florian,mixedpuppy
MozReview-Commit-ID: 4O73NlqIfjm

--HG--
extra : rebase_source : d9859034a5e98879c7911a802cc6b631e1d3f0a1
2017-10-31 20:15:49 -05:00
Csoregi Natalia
452c8e7040 Backed out 1 changesets (bug 1413298)
Backed out changeset 2b8095d47140 (bug 1413298) for failing ESLINT browser_ext_settings_overrides_search.js:37 r=backout on a CLOSED TREE
2017-11-01 15:11:39 +02:00
Michael Kaply
c2e017ed48 Bug 1413298 - Allow search encoding to be specifed by WebExtension. r=florian,mixedpuppy
MozReview-Commit-ID: 4O73NlqIfjm

--HG--
extra : rebase_source : 5bec3399533e3832d50593e8172d9f053e435291
2017-10-31 20:15:49 -05:00
Phil Ringnalda
90dde0bad4 Backed out 2 changesets (bug 1345433) for eslint bustage
Backed out changeset 7353f6f68571 (bug 1345433)
Backed out changeset 6ee966b99e7e (bug 1345433)

MozReview-Commit-ID: 47mqBLmmBpv
2017-10-31 19:35:18 -07:00
Thomas Nguyen
e6dd599a0d Bug 1345433 - Ensure tests load pass valid triggeringPrincipal. r=ckerschb
MozReview-Commit-ID: LWcP7drDPwL

--HG--
extra : rebase_source : c8bef97f35437368297af402ddf0f18b32182035
2017-10-23 18:15:40 +08:00
Shane Caraveo
ccad062436 Bug 1321854 add logging for intermittent, r=mixedpuppy
MozReview-Commit-ID: 6Wo1CYLVtgL

--HG--
extra : rebase_source : cdee6fc233475a3f29f4ec58833da67a32632b5a
2017-10-31 15:46:13 -07:00
Andrew Swan
77124f8a0d Bug 1409245 Part 3 Handle update and uninstall events in WebExtensions r=kmag
This patch just forwards invocations of the bootstrap update() and
uninstall() methods to events that other parts of the WebExtension
framework can listen for.  We have an existing event that fires while
an extension is being uninstalled.  This event was named "uninstall"
but it gets renamed here to "onUninstalling" to disambiguate the two
events.

MozReview-Commit-ID: BIpIR8n9HBM

--HG--
extra : rebase_source : b191d43279129da6fc7f67b7e7960b8b20dca6b8
2017-10-25 20:49:14 -07:00
Mark Banner
0e947c9d32 Bug 1411891 - Improve the performance of deleting bookmarks with async transactions. r=mak
MozReview-Commit-ID: GL9nKfypie1

--HG--
extra : rebase_source : 5cd1c4d848dc32611349e25eb7297ba50890f0a9
2017-10-26 10:14:14 +01:00
Bob Silverberg
f85ae5dc48 Bug 1371919 - Fix Intermittent browser/components/extensions/test/browser/browser_ext_browsingData_history.js, r=mixedpuppy
I spoke to Marco about this and it turns out the problem is due to using PlacesUtils.history.insertMany together with
PlacesTestUtils.visitsInDB. Calling the former to insert the visits and then immediately calling the latter to verify
them can result in the latter reading a snapshot of the places DB that is not up to date. The fix is to call
PlacesTestUtils.addVisits which will not return until everything is finished up and will therefore not cause
PlacesTestUtils.visitsInDB to possibly read an old snapshot.

MozReview-Commit-ID: GebqORQI0Co

--HG--
extra : rebase_source : a52b9354557f7bcf4f94ad2b06693ae8f81b87ab
2017-10-30 11:37:31 -04:00
Margareta Eliza Balazs
1d0ba383ae Backed out changeset e17a2bca5391 (bug 1411891) for failing xpcshell in toolkit/modules/tests/xpcshell/test_NewTabUtils.js r=backout on CLOSED TREE 2017-10-31 14:19:52 +02:00
Attila Craciun
2ae920762e Merge mozilla-central to mozilla-autoland. r=merge a=merge CLOSED TREE 2017-10-31 12:53:23 +02:00
Margareta Eliza Balazs
a63fdbeabb Merge inbound to mozilla-central r=merge a=merge 2017-10-31 12:46:19 +02:00
Mark Banner
d059b763bb Bug 1411891 - Improve the performance of deleting bookmarks with async transactions. r=mak
MozReview-Commit-ID: GL9nKfypie1

--HG--
extra : rebase_source : ca8ec95e51899bc1fb18e7a39f42a96569a2d4d1
2017-10-26 10:14:14 +01:00
Sebastian Hengst
2c835e29c4 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-31 00:00:54 +01:00
Sebastian Hengst
f07fc93141 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4PW6ESqLL73
2017-10-30 23:52:23 +01:00
Kevin Jones
02944dc817 Bug 1322485 - Implement browser.tabs.discard API. r=mixedpuppy 2017-10-30 12:52:00 -04:00
Sebastian Hengst
6979ea37b4 merge mozilla-central to autoland. r=merge a=merge 2017-10-30 23:58:16 +01:00
Drew Willcoxon
37cb69c21b Bug 1395387 - Reconcile WebExtension page actions and Photon page actions: WebExtensions changes. r=mixedpuppy
MozReview-Commit-ID: n2eR3q1aZF

--HG--
extra : rebase_source : 56a68a6a268e23c05d57960040be4a441566fa03
2017-10-27 17:39:57 -04:00
Drew Willcoxon
3629cb997a Bug 1412170 - Integrate WebExtension page action context menus with the Photon page action context menu: WebExtensions changes. r=mixedpuppy
MozReview-Commit-ID: 4vBNSmCU1a0

--HG--
extra : rebase_source : dd4f1a60479a435565c78ff7561bf3997cc8e049
2017-10-30 17:50:33 -04:00
Phil Ringnalda
c21a471320 Backed out 2 changesets (bug 1412170) for eslint bustage
Backed out changeset a9a646fe54ec (bug 1412170)
Backed out changeset 8b46ed411edf (bug 1412170)

MozReview-Commit-ID: Et3MnX3ieBe
2017-10-30 14:21:45 -07:00
Drew Willcoxon
7cdccba586 Bug 1412170 - Integrate WebExtension page action context menus with the Photon page action context menu: WebExtensions changes. r=mixedpuppy
MozReview-Commit-ID: 4vBNSmCU1a0

--HG--
extra : rebase_source : c80e33fdb0e7dd825987c8bd4b36dcbaa875ebcc
2017-10-30 16:53:42 -04:00
Joel Maher
302c4b5c31 Bug 1405453 - Disable browser/components/extensions/test/browser/test-oop-extensions/browser_ext_browserAction_context.js on windows and mac for frequent failures. r=me, a=testonly 2017-10-30 07:56:25 -04:00
Mark Banner
2f2b926bc0 Bug 1411368 - Automatically fix indent-legacy issues raised when using ESLint 4. r=mossop
MozReview-Commit-ID: BaQ8GXIGV5v

--HG--
extra : rebase_source : 0be52046d11133a54e961d770572d81e5c0dd7f7
2017-10-26 12:20:08 +01:00
Mark Banner
4de6bf22b1 Bug 1411368 - Automatically fix no-multi-spaces issues raised when using ESLint 4. r=mossop
MozReview-Commit-ID: H5YVp3rnzGo

--HG--
extra : rebase_source : 5b45b6c0df834131812d094e975047eaad374e06
2017-10-26 11:47:01 +01:00
Bob Silverberg
05d1c44747 Bug 1411351 - Fix Console error "WeakMap key must be an object..." that happens when opening a new tab, r=aswan
When the New Tab page is opened, the browser object that is passed into the isArticleChangeListener
is not a valid browser from the perspective of tabbrowser.xml, so it is not able to find it in its
_tabForBrowser map. This causes undefined to be passed into tabManager.getWrapper(), which causes
the error.

This patch fixes this by not calling tabManager.getWrapper(), and subsequently firing the onUpdate
event, if the return value from gBrowser.getTabForBrowser() is undefined. Testing shows that that
is only the case when the New Tab page is opened, and that page is not, and is unlikely to be
readerable any time in the foreseeable future (confirmed on IRC), so ignoring this case in the
listener is acceptable.

MozReview-Commit-ID: D9LQRrPmCoU

--HG--
extra : rebase_source : da5c074c2e59babb5385d24a4f768aa4b7ae8997
2017-10-26 14:31:43 -04:00
Sebastian Hengst
319217d574 Backed out changeset ba4a39241953 (bug 1386018) for xpcshell failures, e.g. toolkit/mozapps/extensions/test/xpcshell/test_signed_install.js on Linux debug. r=backout on a CLOSED TREE
--HG--
extra : amend_source : 0b31c5a3d73783a3c60f4126a5c11fdda862d9e3
2017-10-25 00:32:35 +02:00