Commit Graph

1180 Commits

Author SHA1 Message Date
Matthew Wein
af9d2254bd Bug 1330369 - Part 3 - Add unit tests for sidebar.browser_style r=mixedpuppy
MozReview-Commit-ID: 9ILOY3s5pci
2017-05-16 22:48:38 -04:00
Matthew Wein
d6fb199d99 Bug 1330369 - Part 2 - Add browser_style support to ext-sidebar.js r=kmag
MozReview-Commit-ID: AIGuVv98HGR
2017-05-25 19:46:59 -04:00
Matthew Wein
95bd4ed601 Bug 1330369 - Part 1 - Share the extension stylesheets between sidebar, popups, and options r=mixedpuppy
MozReview-Commit-ID: EquM6hSQ8pH
2017-05-19 15:48:44 -04:00
Shane Caraveo
e6eb930b6f Bug 1365637 place WE sidebars into the photon sidebar dropdown, r=Gijs,mattw
MozReview-Commit-ID: 3ZM9mXjEbWh
2017-05-29 15:20:48 -07:00
Phil Ringnalda
8c7bfb5333 Backed out changeset 69a878129f88 (bug 1365637) for failures in browser_ext_sidebarAction_windows.js
MozReview-Commit-ID: JNs7zYG7XVZ
2017-05-29 14:34:58 -07:00
Shane Caraveo
88ff0f48b4 Bug 1365637 place WE sidebars into the photon sidebar dropdown, r=Gijs,mattw
MozReview-Commit-ID: EVeR5ShTBst
2017-05-29 12:39:44 -07:00
Bob Silverberg
77f15c8cfe Bug 1365562 - Ensure that SessionStore is initialized before any interaction via WebExtension APIs, r=mixedpuppy
Awaiting the resolution of SessionStore.promiseInitialized as the first step in each API method that needs to interact with SessionStore.
As I needed to await a promise, took the opportunity to migrate the entire file to async/await.

MozReview-Commit-ID: 3ovavDHimhj
2017-05-24 09:26:16 -04:00
Bob Silverberg
8f7ddf916b Bug 1349896 - Part 2: Implement devtools.panels.themeName API property, f?rpl r=mixedpuppy
MozReview-Commit-ID: 8uN2VBIyYyt
2017-05-11 08:54:02 -04:00
Bob Silverberg
2addc83c48 Bug 1364546 - Set the children property for BookmarkTreeNodes without children, r=mixedpuppy
BookmarkTreeNodes without children do not contain a children property, but they should actually
contain a children property which is an empty array. This is what Chrome does as well.

This patch fixes that, and includes a test for a case of getChildren that was previously
untested, which I noticed when working on this code.

MozReview-Commit-ID: CjUwExma760
2017-05-23 15:16:10 -04:00
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
Ryan VanderMeulen
711977f23c Merge inbound to m-c. a=merge 2017-05-19 11:46:56 -04: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
Carsten "Tomcat" Book
d4006b93b2 merge mozilla-inbound to mozilla-central a=merge 2017-05-16 15:04:38 +02:00
Kris Maglione
232ff61655 Bug 1365005: Cleanup async code after Task.jsm migration. r=aswan
MozReview-Commit-ID: FNKSsBqq6Kf
2017-05-15 12:07:06 -07: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
50b8c6608d Bug 1353542 - script-generated patch to remove .bind(this) calls we no longer need now that generator functions have been replaced with async functions, r=Mossop. 2017-05-12 14:47:41 +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
Markus Stange
abfa01b37b Bug 1362861 - Pass the correct arch to nm on macOS. r=dthayer,kmag
MozReview-Commit-ID: C8vfSUu8dM8
2017-05-09 14:47:17 -04:00
Tomislav Jovanovic
fa9e24877d Bug 1362445 - Fix _action context menus when module is not loaded r=bsilverberg,mixedpuppy
MozReview-Commit-ID: AOzcpXSgy8d
2017-05-07 21:38:01 +02: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
Kris Maglione
25a66508a9 Bug 1362224: Cache per-tab icon data for browserAction/pageAction. r=aswan
MozReview-Commit-ID: JifAtY36gKA
2017-05-05 14:21:07 -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
Bob Silverberg
acab821a21 Bug 1361463 - Fix typo in BrowserAction.getPopup, r=kmag
The if statement in getPopup should read `if (!blockParser)` not `if (!this.blockParser)`.

MozReview-Commit-ID: IBtHHS634sG
2017-05-02 14:55:03 -04: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
Kris Maglione
8418c4825f Bug 1365660: Part 1 - Add a remote="true" attribute to popups with remote browsers. r=mixedpuppy
Popups with remote browsers currently do not render correctly on any platform.
Since support for composited popups is marginal, at best, at the moment, we
only want to enable the features we need for these popups when they actually
contain remote content.

This bug adds an initial stopgap implementation, primarily for testing
purposes, that force enables compositing for remote popups, despite the UI
quirks it causes.

MozReview-Commit-ID: 2I6IJyIEdUd
2017-05-16 14:12:57 -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
Alexandre Poirot
208511b0d3 Bug 1356231 - Use toolkit EventEmitter.jsm instead of devtools module. r=mossop
MozReview-Commit-ID: 49JI7NtLwKK
2017-04-27 17:58:09 +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