Commit Graph

860 Commits

Author SHA1 Message Date
Johann Hofmann
44c917c82c Bug 1337492 - Split up identity icon into SVG files to avoid slow load on hover. r=jwatt
We know that using multiple SVGs in a single file with :not(:target)
is slower than splitting that file up into several files (see bug 1358998).

This patch attempts to fix an issue where the identity icon will
briefly flicker when hovered the first time by splitting the SVG file up.

MozReview-Commit-ID: 2FJeBvKxKmn
2017-05-22 16:20:42 +02:00
Ben Kelly
4ee13a7ef6 Bug 1366791 Make browser_ext_geckoProfiler_symbolicate.js wait for prefs to be written. r=mstange 2017-05-23 07:30:57 -07:00
Matthew Wein
74f2a47192 Bug 1351418 - Put single checkbox items into submenu on linux r=mixedpuppy
MozReview-Commit-ID: 9swHS0yEoDg
2017-05-15 13:20:41 -04:00
Rob Wu
b00bde8edf Bug 1299053 - Ensure that background pages have windowId -1 in browser.extension.getViews r=aswan
MozReview-Commit-ID: HdayD0JrIBm
2017-04-23 13:03:11 +02:00
Rob Wu
22824f113e Bug 1299053 - support tabId in browser.extension.getViews r=aswan
MozReview-Commit-ID: Ep6pdUdbhmc
2017-04-23 13:01:34 +02:00
Rob Wu
24755d9637 Bug 1299053 - Refactor test/browser/browser_ext_getViews r=aswan
I want to add more tests, based on tabId.
Adding more positional arguments makes the code less readable,
so I moved the check for windowId to a separate method.

MozReview-Commit-ID: 2aTtMftoCZX
2017-04-23 12:44:59 +02:00
Mark Banner
9fc03b12e9 Bug 1365412 - Clean up various ESLint global definitions in browser/. r=mossop
MozReview-Commit-ID: JqAm9x1XGCM
2017-05-16 22:22:42 +01:00
Matthew Wein
947bca800c Bug 1266012 - Add identity indication for the moz-extensions scheme r=mixedpuppy
MozReview-Commit-ID: BtbRGPJbsHs
2017-05-10 15:14:15 -04:00
Marco Bonardo
266b05cbf9 Bug 1344924 - Contextual onboarding for search suggestions in the awesomebar. r=adw
Make the onboarding being opt-in or opt-out depending on the default value of the
browser.urlbar.sugges.searches pref.
In both cases respect userMadeSearchSuggestionChoice though, so we won't further nag users that
made a choice already.

MozReview-Commit-ID: D4rRMRbdMrW
2017-04-05 15:01:02 +02:00
Carsten "Tomcat" Book
f216cbd3b4 Backed out changeset 720c38d9052e (bug 1344924) for crashes at [@ mozilla::net::nsSocketTransport::InitiateSocket] 2017-05-17 10:56:57 +02:00
Marco Bonardo
4d6b9940f4 Bug 1344924 - Contextual onboarding for search suggestions in the awesomebar. r=adw
Make the onboarding being opt-in or opt-out depending on the default value of the
browser.urlbar.sugges.searches pref.
In both cases respect userMadeSearchSuggestionChoice though, so we won't further nag users that
made a choice already.

MozReview-Commit-ID: D4rRMRbdMrW
2017-04-05 15:01:02 +02:00
Shane Caraveo
75f6a84aa8 Bug 1360796 fix intermittent assert, r=mattw
MozReview-Commit-ID: IEQeZ6NwVsz
2017-05-15 14:40:10 -07:00
Tomislav Jovanovic
6fd8d981f9 Bug 1362047 - Fix default value for content script run_at, add tests r=mixedpuppy
MozReview-Commit-ID: CiBaSkZ0TqQ
2017-05-10 02:00:29 +02:00
Florian Quèze
b2499a4c57 Bug 1353542 - smaller script-generated patch converting remaining generators that are likely tasks (actual generators were identified by hand and whitelisted), r=Mossop. 2017-05-12 14:45:01 +02:00
Florian Quèze
ff53eb9a63 Bug 1353542 - massive script-generated patch converting Task.async and Task.spawn calls, and generators clearly identifiable as tasks, rs=Mossop. 2017-05-12 14:42:39 +02:00
Dão Gottwald
3cb52f881d Bug 1364090 - Detach the reload and stop buttons from the location bar. r=johannh
MozReview-Commit-ID: Ltp6EghiI44
2017-05-11 19:16:05 +02:00
Markus Stange
ee5fa46e90 Bug 1362800 - Expose geckoProfiler.getProfileAsArrayBuffer. r=kmag
MozReview-Commit-ID: 7uFPWAhh25L
2017-05-11 00:32:46 -04:00
Wes Kocher
871bb96369 Backed out 2 changesets (bug 1362800) for eslint failures a=backout
Backed out changeset 0492e6f16df1 (bug 1362800)
Backed out changeset 785cf0c4b67b (bug 1362800)

MozReview-Commit-ID: EY2RYz7lwtI
2017-05-10 14:42:49 -07:00
Markus Stange
5c68ac2882 Bug 1362800 - Expose geckoProfiler.getProfileAsArrayBuffer. r=kmag
MozReview-Commit-ID: 7uFPWAhh25L
2017-05-10 17:09:51 -04:00
Kris Maglione
d90dddf7d5 Bug 1362224: requestAnimationFrame before changing browserAction/pageAction buttons. r=aswan
MozReview-Commit-ID: H9Eq7z5L4Xq
2017-05-05 14:56:19 -07:00
Shane Caraveo
4611875e9c Bug 1336908 implement management APIs needed for theme management, r=aswan
MozReview-Commit-ID: 8tZpCE3nXGr
2017-05-04 11:40:02 -07:00
Martin Giger
c7cdc77246 Bug 1299371 - Show context menu in WebExtension popups; r=mixedpuppy
MozReview-Commit-ID: 5bty8uurFns
2017-02-19 11:02:14 +01:00
Doug Thayer
d28db54125 Bug 1337545 - Use keydown event for keycodes in commands r=kmag
When you create a <key> element, which is what the commands API
does under the hood to allow keyboard shortcuts, the event type
that the handler listens to defaults to keypress. For printable
characters, the keyCode property of a keypress event is 0,
causing keycode bindings for these printable characters to not
work. We could use key for these properties, but the shift key
interacts with the key property in ways that make it simpler to
simply fix the keycode usage for our purposes.

MozReview-Commit-ID: HdWdN7cMfuq
2017-05-01 13:49:18 -07:00
Bob Silverberg
fff108b9ea Bug 1261963 - createData should be optional for browser.windows.create, r=aswan
MozReview-Commit-ID: GCPFx4kuH9r
2017-02-08 11:32:31 -05:00
Tomislav Jovanovic
d84d4dcf9b Bug 1359704 - "page" context items should not appear in "tab" context r=mixedpuppy
MozReview-Commit-ID: 9Lz8ZzzbNhq
2017-04-27 15:59:32 +02:00
Doug Thayer
c8eb3cc7f1 Bug 1326572 - Provide an API for nsIProfiler r=kmag,mstange
In order to rewrite the Gecko Profiler add-on as a WebExtension,
we need an API for the profiler which allows us to control the
nsIProfiler, and symbolicate the stacks that it provides. This
is the implementation of the simpler parts of that API.

TODO:
- Support profiling of remote targets through a new devtools
  API.
- Support the dump_syms breakpad code which was asm.js in the
  old extension by directly calling into native code.
- Figure out a faster way to send the large volume of data from
  getSymbols all the way from our extension down to the content
  process and then into the page's context.

MozReview-Commit-ID: JzDbV4l2eXd
2017-04-11 09:03:40 -07:00
Bob Silverberg
b7d71cb291 Bug 1359806 - Fix sessions.restore to return an object instead of an array, r=mixedpuppy
sessions.restore should always have returned an object, but landed returning an array.

MozReview-Commit-ID: EMP9UZaI6UV
2017-04-26 10:18:41 -04:00
Bob Silverberg
8687267bad Bug 1344087 - Update browser_ext_sessions_getRecentlyClosed_tabs.js to use a URL with an identical title, r=mixedpuppy
This is to confirm that the fix that landed in https://bugzilla.mozilla.org/show_bug.cgi?id=1344857


MozReview-Commit-ID: 7pndTsHxn1b
2017-03-06 13:55:03 -05:00
Iris Hsiao
79335d532a Backed out changeset e08459e83d3f (bug 1299371) for multiple mochitests time out 2017-04-24 16:19:59 +08:00
Matthew Wein
913573d431 Bug 1339250 - Fix error caused by ending an input session immediately after the session is started r=robwu
MozReview-Commit-ID: Gz9B468NTI1
2017-02-14 12:02:40 +00:00
Martin Giger
9e3d6b883e Bug 1299371 - Show context menu in WebExtension popups; r=mixedpuppy
MozReview-Commit-ID: 5bty8uurFns
2017-02-19 11:02:14 +01:00
Mark Banner
5ab31ba811 Bug 1358213 - Give WebExtension created menuitems in the context menu an ID. r=kmag
This matches the rest of the context menu and is better for unit tests.

MozReview-Commit-ID: 509HH4wnClN
2017-04-20 20:48:16 +01:00
Marco Bonardo
5fea7a77a8 Bug 1354681 - Intermittent timeout in browser_ext_omnibox.js. r=mattw
MozReview-Commit-ID: 5gc6IvkMfXt
2017-04-10 12:18:28 +02:00
Tushar Saini (:shatur)
428e824e9c Bug 1337509 - Do not create tab objects with an unsupported 'selected' property. r=bsilverberg,mixedpuppy
MozReview-Commit-ID: 4Bi6LdNUxMo
2017-04-18 22:07:38 +05:30
Joel Maher
2e6572623e Bug 1354681 - Intermittent browser/components/extensions/test/browser/test-oop-extensions/browser_ext_omnibox.js. temporarily disable on debug and asan. r=gbrown
MozReview-Commit-ID: LJaepBjFxfE
2017-04-18 12:34:41 -04:00
Carsten "Tomcat" Book
a76fde59da merge mozilla-inbound to mozilla-central a=merge 2017-04-18 10:21:31 +02:00
Wes Kocher
aa48997b1e Merge m-c to inbound, a=merge 2017-04-17 13:03:40 -07:00
Thomas Wisniewski
90a1179be9 Bug 1334266 - Add support for WebExtension APIs browser.sessions.{forgetClosedTab|forgetClosedWindow}. r=bsilverberg, r=mixedpuppy 2017-04-07 23:30:36 -04:00
Bob Silverberg
7cb80138f0 Bug 1342207 - chrome.tabs.onActivated does not fire for new windows, r=kmag
MozReview-Commit-ID: D9Nwd9lc57x
2017-04-04 09:43:50 -04:00
Sebastian Hengst
cf93ded4fa merge mozilla-central to autoland. r=merge a=merge 2017-04-15 20:08:03 +02:00
Shane Caraveo
8d79eea464 Bug 1353073 handle contextmenu in sidebar when remote=true, r=kmag
MozReview-Commit-ID: BSmPhaNYmYe
2017-04-15 10:30:44 -07:00
Wes Kocher
a1ec030ef0 Backed out changeset fc91bd1a27a7 (bug 1353073) for eslint failures a=backout 2017-04-15 00:33:34 -07:00
Shane Caraveo
879fbe7c86 Bug 1353073 handle contextmenu in sidebar when remote=true, r=kmag
MozReview-Commit-ID: GDAd2jYrlf6
2017-04-14 15:15:37 -07:00
Wes Kocher
74eee0ab05 Merge m-c to autoland, a=merge 2017-04-13 17:35:34 -07:00
Kris Maglione
e6a8ac0beb Bug 1355120: Get rid of top-level window ID tracking. r=aswan
MozReview-Commit-ID: y7DzMxXBot
2017-04-12 14:12:22 -07:00
Andy McKay
230cfc0e67 bug 1323311 make tabs.move on multiple tabs more reliable r=kmag
MozReview-Commit-ID: 9o4huF1f60g
2017-04-10 11:18:04 -07:00
Kris Maglione
35ce65b3d6 Bug 1357137: Make sure all content scripts for the same page load into the same sandbox. r=mixedpuppy
MozReview-Commit-ID: xB8kZ2KZdz
2017-04-17 10:24:43 -07:00
Zibi Braniecki
8c433fc56a Bug 1346616 - Migrate callsites that are retrieving requested locale from pref, to use LocaleService::GetRequestedLocales. r=jfkthame,Pike
I'm adding a helper function mozILocaleService::GetRequestedLocale to simplify
most of the callsites that are looking for the first of the requested locales.

In most cases, I'm just matching the behavior of the code with reusing
LocaleService API instead of direct manipulation on the prefs.
That includes how I handle error case scenarios.

In case of sdk/l10n/locale.js I am reusing LocaleService heuristics over
the custom one from the file since the ones in LocaleService are just
more correct and unified accross the whole platform.

In case of FallbackEncoding I have to turn it into a nsIObserver to listen
to intl:requested-locales-changed.

MozReview-Commit-ID: 7rOr2CovLK
2017-03-11 18:43:11 -08:00
Sebastian Hengst
017c2ee2bf Backed out changeset 60d72c2dd49d (bug 1346616) for eslint failure in DirectoryLinksProvider.jsm. r=backout on a CLOSED TREE 2017-04-18 00:48:16 +02:00
Zibi Braniecki
64bae2dccf Bug 1346616 - Migrate callsites that are retrieving requested locale from pref, to use LocaleService::GetRequestedLocales. r=jfkthame,Pike
I'm adding a helper function mozILocaleService::GetRequestedLocale to simplify
most of the callsites that are looking for the first of the requested locales.

In most cases, I'm just matching the behavior of the code with reusing
LocaleService API instead of direct manipulation on the prefs.
That includes how I handle error case scenarios.

In case of sdk/l10n/locale.js I am reusing LocaleService heuristics over
the custom one from the file since the ones in LocaleService are just
more correct and unified accross the whole platform.

In case of FallbackEncoding I have to turn it into a nsIObserver to listen
to intl:requested-locales-changed.

MozReview-Commit-ID: 7rOr2CovLK
2017-03-11 18:43:11 -08:00