Commit graph

1152 commits

Author SHA1 Message Date
Wouter Verhelst
81a56d6525 Bug 1357391 - Implement a PKCS#11 management API r=kmag,zombie
This WebExtensions API allows to install, remove, and query installed
PKCS#11 modules as well as to query the the status of available PKCS#11
"slots" for a given module.

Reuses the native application manifests from the "Native Messaging" API,
but using the "pkcs11" type rather than the "stdio" type.

All calls expect an application name, which is not the PKCS#11 friendly
name (the "description" field in the manifest file is used for that) but
instead the application name in the manifest file.

MozReview-Commit-ID: 8dHr5QfEaXv

--HG--
extra : rebase_source : 196ff66a8987be1b21463b725a2e207396e5eb0a
2017-08-22 17:59:38 +02:00
Wes Kocher
32225d9fd6 Backed out changeset 82920c8bb33a (bug 1357391) for xpcshell failures in test_ext_pkcs11_management.js a=backout
MozReview-Commit-ID: JUyVhAEDNs0
2017-09-29 11:22:49 -07:00
Wouter Verhelst
39f5c2a463 Bug 1357391 - Implement a PKCS#11 management API r=kmag,zombie
This WebExtensions API allows to install, remove, and query installed
PKCS#11 modules as well as to query the the status of available PKCS#11
"slots" for a given module.

Reuses the native application manifests from the "Native Messaging" API,
but using the "pkcs11" type rather than the "stdio" type. Update the
code for the Native Messaging API to ignore any manifests for the
"pkcs11" type.

All calls expect an application name, which is not the PKCS#11 friendly
name (the "description" field in the manifest file is used for that) but
instead the application name in the manifest file.

MozReview-Commit-ID: 8dHr5QfEaXv

--HG--
extra : rebase_source : 00cc9c6d8433460c93f9c579f1696e4e17d6d3a0
2017-08-22 17:59:38 +02:00
Mike de Boer
882fa06e25 Bug 1401991 - Ensure that we don't hide panelviews that are already reparented to another multi-view and ensure to hide other panels consistently. r=Gijs
* Harden the new `hideAllViewsExcept()` to not do erroneous things if called when
   the binding is already gone.
 * Generalize things into `hideAllViewsExcept(thisOne)`:
    - Clear `_viewShowing` in there and do the descriptionHeightWorkaround thing
      in there too,
    - For Photon panels, do all the 'current' attribute setting in there. To show
      a panel during transition, I introduced the 'in-transition' attribute.
 * I had to make sure not to over-eagerly dispatch 'ViewShowing' events, because
   that confuses some,
 * Move the temporary panel handling, which contains an ephemeral panelmultiview
   instance, internally. This cleans up the hacky, duplicate PanelUI.js code nicely.
 * Keep a local copy of `_transitionDetails` to ensure it's still there after transition,
 * Harden `_cleanupTransitionPhase()` to only clear the phase that belongs to a
   specific transition, _if_ that's passed in as an argument. This resolves any
   potential raciness that might occur when `showSubView()` is called again mid-transition.
 * Skip the UITour element visibility check when it's inside a panelview, because
   too many things need to happen and that check is too simple to be useful in
   that case.

MozReview-Commit-ID: 5HpJKs1Ny5j

--HG--
extra : rebase_source : b810e1de2dbd75932a42d68e751fdaecd9fee69a
2017-09-29 13:51:51 +02:00
Kris Maglione
c10f9821fe Bug 1402503: Follow-up: Make sure we get a new content process for process hang tests. r=bustage
MozReview-Commit-ID: 1CLUQbahE2W
2017-09-27 20:44:30 -07:00
Kris Maglione
fb9f7d6fe8 Bug 1402503: Part 2 - Add test for extension slow script dialog. r=mixedpuppy
MozReview-Commit-ID: BknBhAttKHS

--HG--
extra : rebase_source : c428dcfd2472fe020514a07395f11768d51c7ab5
extra : histedit_source : 44b7dff6bb414ac705736496cf481ab8734dcd3b
2017-09-25 11:49:39 -07:00
Kris Maglione
a32ad146bd Bug 1402944: Part 8 - Avoid X-ray overhead when cloning event handler responses. r=mixedpuppy
MozReview-Commit-ID: 4CHP80WymuA

--HG--
extra : rebase_source : 612b9d38cc0c6c5146b1863f22a40789c7471808
2017-09-23 13:30:52 -07:00
Kris Maglione
32f579d0e3 Bug 1402944: Part 6 - Optimize getBrowserInfo some more. r=mixedpuppy
MozReview-Commit-ID: 8kdeVqKb889

--HG--
extra : rebase_source : 63282fc295a50ef9743b3e6192e2b1ac726af022
2017-09-23 00:50:46 -07:00
Thomas Wisniewski
9c0a07404c Bug 1388428 - Extend browsingData to restrict removing localStorage to a given list of hostnames; r=asuth,bsilverberg
MozReview-Commit-ID: ELgjLHsVLkv

--HG--
extra : rebase_source : 8df793d8484762670e42fff4c3708df2b3ea1ebe
2017-09-25 16:47:38 -04:00
Dale Harvey
5c22c4c93e Bug 1399642 - Use photon search icon in awesomebar. r=dao
MozReview-Commit-ID: Dzf8DqrGRam

--HG--
rename : browser/themes/shared/icons/find.svg => browser/themes/shared/icons/search-glass.svg
extra : rebase_source : 488ba12e63e58d6b04b7cb41b3c9b5aee332def5
2017-09-26 11:13:56 +01:00
Mark Striemer
a84f31e137 Bug 1314674 - Maintain badge style in new windows and customize r=mixedpuppy
MozReview-Commit-ID: 8f99d6Uqtx1

--HG--
extra : rebase_source : 66da5414a5baf68f276915258947c5886e030f7d
2017-09-20 17:27:48 -05:00
Bob Silverberg
8f848ff9df Bug 1381992 - Add some reader mode support to the tabs API, r=mixedpuppy
This adds two properties to the Tab object:

- isArticle indicates whether the document in the tab is likely able to be
  rendered in reader mode.
- isInReaderMode indicates if the document in the tab is being rendered in
  reader mode.

It also adds a toggleReaderMode() which toggles a tab into and out of reader mode.

There is also a new case in which tabs.onUpdated will fire. When the isArticle
status of a tab changes, an onUpdated event will fire with data {isArticle: boolean}.

MozReview-Commit-ID: AaAQ0V5qm2Z

--HG--
extra : rebase_source : f9cbed6dff56781ecd86281cb46f23f0ec8aecf6
2017-09-08 17:00:27 -04:00
Sebastian Hengst
8abbab2bc7 Backed out changeset 4e174306e0b0 (bug 1381992) for e.g. failing chrome's mobile/android/components/extensions/test/mochitest/test_ext_activeTab_permission.html on Android. r=backout 2017-09-25 18:28:58 +02:00
Bob Silverberg
659e58f274 Bug 1381992 - Add some reader mode support to the tabs API, r=mixedpuppy
This adds two properties to the Tab object:

- isArticle indicates whether the document in the tab is likely able to be
  rendered in reader mode.
- isInReaderMode indicates if the document in the tab is being rendered in
  reader mode.

It also adds a toggleReaderMode() which toggles a tab into and out of reader mode.

There is also a new case in which tabs.onUpdated will fire. When the isArticle
status of a tab changes, an onUpdated event will fire with data {isArticle: boolean}.

MozReview-Commit-ID: AaAQ0V5qm2Z

--HG--
extra : rebase_source : 579fccb76358dc0d333409ed81669cf45576e67f
2017-09-08 17:00:27 -04:00
Andrea Marchesini
d2b7163264 Bug 1402270 - Sanitizer and BrowsingData should delete QuotaManager storages using the origin directly and not the origin as pattern, r=janv 2017-09-22 11:52:48 +02:00
Phil Ringnalda
9728bc3636 Merge m-c to m-i
MozReview-Commit-ID: LQmIsTRxble
2017-09-21 20:49:43 -07:00
Wes Kocher
640a5d3c46 Merge m-c to inbound, a=merge
MozReview-Commit-ID: IsEMW5gXG3W
2017-09-21 17:04:36 -07:00
Sebastian Hengst
117f151830 Backed out changeset 7e8e47c972f4 (bug 1397975) for eslint failure at browser/components/extensions/ext-chrome-settings-overrides.js:124: windowTracker is not defined. r=backout 2017-09-21 22:56:07 +02:00
Mike de Boer
f7dd6d2d6d Bug 1401383 - remove anchor state after transition even if the transition is canceled, and always set main view as current, r=Gijs
We weren't removing the 'open' attribute from the anchor if the transition didn't complete.
This patch fixes this by moving the addition of 'open' into _transitionViews, and its removal into
_cleanupTransitionPhase.

MozReview-Commit-ID: TS0CcwsHVN

--HG--
extra : rebase_source : 1bdace324f22ee95002024fe68b572a16dd25aac
2017-09-21 22:18:07 +02:00
Michael Kaply
20d1c205fc Bug 1397975 - Show opt-in dialog for is_default with non built-in engines. r=aswan
MozReview-Commit-ID: 67SvzDcM7kK

--HG--
extra : rebase_source : 93ab53e43be09b0b24bb7c7fcd73c0010fc912a2
2017-09-07 19:38:55 -05:00
Michael Kaply
9b7d4d878e Bug 1397975 - Show opt-in dialog for is_default with non built-in engines. r=aswan
MozReview-Commit-ID: 67SvzDcM7kK

--HG--
extra : rebase_source : 674a8e9e4e3e0769a58ed919f268678cb5af48c7
2017-09-07 19:38:55 -05:00
Bob Silverberg
597114a565 Bug 1375546 - Fix sessions.getRecentlyClosed to consider the current tab history index, r=mikedeboer,mixedpuppy
If the back button is used to navigate a tab backwards in its history, and then the tab is closed,
the current implementation of sessions.getRecentlyClosed does not take this into account and
just uses the last item in the tab history for the values returned for the tab. This patch fixes
this by using the values for the current position of the tab in its history.

MozReview-Commit-ID: LcgtA5FqVWi

--HG--
extra : rebase_source : 3b8cd840fd30305471feec643f77d57378bd40d7
2017-09-19 16:05:33 -04:00
Andrea Marchesini
1477716537 Bug 1333050 - Test for BrowsingData.removeIndexedDB, r=kmag 2017-09-21 21:41:52 +02:00
Andrea Marchesini
680323e92f Bug 1333050 - Introduce BrowsingData.removeIndexedDB, r=kmag, r=janv 2017-09-21 21:41:36 +02:00
Sebastian Hengst
bc68e8f407 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9Z3Ly8icnvh
2017-09-20 11:48:02 +02:00
Kris Maglione
8a6b0ff3bf Bug 1384078: Prevent enter key from closing extension panels. r=Gijs
MozReview-Commit-ID: DnpiIUc4RkH

--HG--
extra : amend_source : f768acea169a593bf7313a58378ca4b7c84d4e87
2017-09-19 16:37:07 -07:00
Luca Greco
51b5ca0e35 Bug 1401288 - Run remote devtools panel browsers in the right TabGroup. r=aswan
This patch ensures that the devtools panel browser elements are associated to
the same TabGroup of the other extension pages from the same extension.

MozReview-Commit-ID: 40TSPqGfTnz

--HG--
extra : rebase_source : 93c429c5a3277407da648e3efa03717b4bd22fbd
2017-09-19 20:06:02 +02:00
Sebastian Hengst
48545a66e9 Backed out changeset f4c33a37fe6d (bug 1395890) for failing browser-chrome's browser/components/extensions/test/browser/browser_ext_find.js. r=backout on a CLOSED TREE 2017-09-19 16:35:31 +02:00
Nan Jiang
dcc9a5e00a Bug 1352459 - Collect rich icons in ContentLinkHandler. r=mak,Mardak
MozReview-Commit-ID: GrjpuyvY7nm

--HG--
extra : rebase_source : a1800ae9f1626aeeea311ea85c81e50b5dd2094c
2017-09-12 09:47:51 -04:00
Luca Greco
7c23181cbd Bug 1383310 - Extensions Devtools panels should not receive messages or ports from content scripts. r=zombie
MozReview-Commit-ID: B5Hq11Tb3Y0

--HG--
extra : rebase_source : 6f0458a10717dfd4264e56ac66422882ddaaee7f
2017-09-14 16:43:45 +02:00
Dan Banner
d9bd75f0cc Bug 1395890 - Change all ESLint rules that are warnings to errors. r=standard8
MozReview-Commit-ID: LJS6m1GppiS

--HG--
extra : rebase_source : 0428c961831f079a63f345c8d6684b869fbcdecd
2017-09-18 19:07:17 +01:00
Wes Kocher
c36e650732 Merge m-c to autoland, a=merge
MozReview-Commit-ID: 7Z1eEWwhzZC
2017-09-18 16:25:06 -07:00
Joel Maher
8277a708a2 Bug 1398514 - Disable browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_executeScript_runAt.js on windows for frequent failures. r=me, a=test-only 2017-09-18 12:00:26 -04:00
Ryan VanderMeulen
17c17bd036 Merge m-c to inbound. a=merge 2017-09-15 14:20:59 -04:00
Luca Greco
19b7ef8391 Bug 1398729 - Support devtools.panels.elements sidebar.setExpression API method. r=aswan
MozReview-Commit-ID: 2tRLF59o8Bg

--HG--
extra : rebase_source : c0371df9af68cf3332194ed6849525b0620cd8d0
2017-09-09 16:39:17 +02:00
Luca Greco
ad4b833918 Bug 1398729 - Share devtools.inspectedWindow.eval helper methods in ext-devtools API module. r=aswan
MozReview-Commit-ID: 9ezZNjEOdUY

--HG--
extra : rebase_source : 82b6cb645b3b6894f98b17f8a474cf3232b20b34
2017-09-09 15:44:35 +02:00
Nicolas Chevobbe
cd3fe07201 Bug 1399460 - Fix browser_ext_devtools_inspectedWindow_eval_bindings.js failure. r=rpl
The bug was failing because we were calling the server but the connection was already closed.
In order to prevent such things, we check the number of nodes of the tree, and if it has only
one, then we wait on a mutation that will ensure that server calls are done.

MozReview-Commit-ID: 7kHAkYs2I4K

--HG--
extra : rebase_source : 0204960d4ea3cca8bd9614908a730a0d4d6b4e69
2017-09-14 17:59:33 +02:00
Liang-Heng Chen
bb17178a61 Bug 1399409 - Ignore about:blank in awaitBrowserLoaded. r=kmag
MozReview-Commit-ID: 8WoN86Zd6PS
2017-09-13 23:46:00 -04:00
Shane Caraveo
c554e8efa5 Bug 1394947 fix toggling the extension sidebars from menus, r=Gijs
MozReview-Commit-ID: G2LGIzSl9Be

--HG--
extra : rebase_source : a92497efe61b50cdbe6455415b4e6ff460872d0f
2017-09-11 14:48:18 -07:00
Shane Caraveo
aac2ef44df Bug 1399070 move launchWebAuthFlow to parent to fix opening auth window when remote, r=zombie
MozReview-Commit-ID: GAdlxYUM6rr

--HG--
rename : toolkit/components/extensions/ext-c-identity.js => toolkit/components/extensions/ext-identity.js
extra : rebase_source : eaec4890e559e0c969b6d7721ee94dcbda85c4f6
2017-09-14 09:18:27 -07:00
Bob Silverberg
7ab3a9f057 Bug 1366290 - Fix the ordering of tabs.onActivated and tabs.onRemoved, r=kmag
Currently tabs.onActivated (for the tab that becomes active after a tab is removed) fires before
tabs.onRemoved (for the tab that was removed). This is neither the order in which Chrome fires
these events, nor is it the order in which the internal TabSelect and TabClose happen in Firefox.
This bug fixes this so tabs.onActivated fires *after* tabs.onRemoved.

Note that this does introduce an issue in in-process mode, where window.close() will not
trigger a tabs.onRemoved event for the window, but Kris says "Meh" about that.

MozReview-Commit-ID: CrFR3jqL2u5

--HG--
extra : rebase_source : 5cc3d2a138bf812d13779e8ca1188b89ddbcdcc1
2017-05-31 12:01:58 -04:00
Mark Striemer
afefcefd15 Bug 1372996 - Clear the URL bar when on ext newtab r=mixedpuppy
MozReview-Commit-ID: 2NNOK2kRPgl

--HG--
extra : rebase_source : ce37a70b67296d8d5ae86dfa46ce769c4479405e
2017-09-01 09:39:24 -05:00
Luca Greco
d5377bce31 Bug 1374590 - Add a new test case for toolbox dock mode switch with a devtools panel addon. r=aswan
MozReview-Commit-ID: 9Rf0OEdKYQl

--HG--
extra : rebase_source : e7a8113e22140caf14b93a2958a6b25e6c6ce6d8
2017-09-11 19:02:12 +02:00
Luca Greco
aa97a9eb65 Bug 1374590 - Fix changing devtools toolbox dock location while using WebExtension devtools panel. r=aswan
MozReview-Commit-ID: 2O1MoNZXZm0

--HG--
extra : rebase_source : fc986e0a9b100453ee14eb7d10947765a094cfb8
2017-09-11 17:32:05 +02:00
Luca Greco
ff48108bf0 Bug 1374590 - Refactoring ParentDevToolsPanel class to provide create/destroyBrowserElement helper methods. r=aswan,ochameau
MozReview-Commit-ID: FsGlCU0H9VG

--HG--
extra : rebase_source : 8a3711bf01460e572d638a98ca3706312ef51518
2017-09-11 15:49:36 +02:00
Sebastian Hengst
45bab258b7 merge mozilla-central to autoland. r=merge a=merge 2017-09-14 00:11:28 +02:00
Sebastian Hengst
7dd2b068b5 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-13 13:35:21 +02:00
Sebastian Hengst
e4a2f44531 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9SALJlvWgoZ
2017-09-13 13:32:44 +02:00
Sebastian Hengst
1fbe7771e8 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: GUc4LEY8qp4
2017-09-13 11:27:47 +02:00
Sebastian Hengst
a3ed708553 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-13 11:44:38 +02:00