Commit Graph

1153 Commits

Author SHA1 Message Date
Mark Striemer
4c033eb077 Bug 1395074 - Clear browserAction tab data on navigation r=mixedpuppy
MozReview-Commit-ID: 4hugj2q84Rd
2017-09-26 16:06:06 -05:00
Wouter Verhelst
4663f4df9b 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
2017-08-22 17:59:38 +02:00
Wes Kocher
c4e92cfbc2 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
f8f3aa51f5 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
2017-08-22 17:59:38 +02:00
Mike de Boer
3f2ca69f96 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
2017-09-29 13:51:51 +02:00
Kris Maglione
a53de73c40 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
b148bb5e9a Bug 1402503: Part 2 - Add test for extension slow script dialog. r=mixedpuppy
MozReview-Commit-ID: BknBhAttKHS
2017-09-25 11:49:39 -07:00
Kris Maglione
5a9116a4e2 Bug 1402944: Part 8 - Avoid X-ray overhead when cloning event handler responses. r=mixedpuppy
MozReview-Commit-ID: 4CHP80WymuA
2017-09-23 13:30:52 -07:00
Kris Maglione
c186675da3 Bug 1402944: Part 6 - Optimize getBrowserInfo some more. r=mixedpuppy
MozReview-Commit-ID: 8kdeVqKb889
2017-09-23 00:50:46 -07:00
Thomas Wisniewski
df36f3c816 Bug 1388428 - Extend browsingData to restrict removing localStorage to a given list of hostnames; r=asuth,bsilverberg
MozReview-Commit-ID: ELgjLHsVLkv
2017-09-25 16:47:38 -04:00
Dale Harvey
d4946bdda2 Bug 1399642 - Use photon search icon in awesomebar. r=dao
MozReview-Commit-ID: Dzf8DqrGRam
2017-09-26 11:13:56 +01:00
Mark Striemer
67d2df8a0c Bug 1314674 - Maintain badge style in new windows and customize r=mixedpuppy
MozReview-Commit-ID: 8f99d6Uqtx1
2017-09-20 17:27:48 -05:00
Bob Silverberg
4ac6021faa 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
2017-09-08 17:00:27 -04:00
Sebastian Hengst
f54d49906c 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
adb943d5da 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
2017-09-08 17:00:27 -04:00
Andrea Marchesini
930ae961f4 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
62f4ec4130 Merge m-c to m-i
MozReview-Commit-ID: LQmIsTRxble
2017-09-21 20:49:43 -07:00
Wes Kocher
f05fbb8ef7 Merge m-c to inbound, a=merge
MozReview-Commit-ID: IsEMW5gXG3W
2017-09-21 17:04:36 -07:00
Sebastian Hengst
2086ee8ef6 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
021d3d1107 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
2017-09-21 22:18:07 +02:00
Michael Kaply
2be5d65247 Bug 1397975 - Show opt-in dialog for is_default with non built-in engines. r=aswan
MozReview-Commit-ID: 67SvzDcM7kK
2017-09-07 19:38:55 -05:00
Michael Kaply
b915722337 Bug 1397975 - Show opt-in dialog for is_default with non built-in engines. r=aswan
MozReview-Commit-ID: 67SvzDcM7kK
2017-09-07 19:38:55 -05:00
Bob Silverberg
d30597e970 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
2017-09-19 16:05:33 -04:00
Andrea Marchesini
d860ef7768 Bug 1333050 - Test for BrowsingData.removeIndexedDB, r=kmag 2017-09-21 21:41:52 +02:00
Andrea Marchesini
db339e30be Bug 1333050 - Introduce BrowsingData.removeIndexedDB, r=kmag, r=janv 2017-09-21 21:41:36 +02:00
Sebastian Hengst
33dad84671 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9Z3Ly8icnvh
2017-09-20 11:48:02 +02:00
Kris Maglione
04e5cf32c0 Bug 1384078: Prevent enter key from closing extension panels. r=Gijs
MozReview-Commit-ID: DnpiIUc4RkH
2017-09-19 16:37:07 -07:00
Luca Greco
a1f9605516 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
2017-09-19 20:06:02 +02:00
Sebastian Hengst
2bdce0b67c 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
30ffa2b3a5 Bug 1352459 - Collect rich icons in ContentLinkHandler. r=mak,Mardak
MozReview-Commit-ID: GrjpuyvY7nm
2017-09-12 09:47:51 -04:00
Luca Greco
386576fa84 Bug 1383310 - Extensions Devtools panels should not receive messages or ports from content scripts. r=zombie
MozReview-Commit-ID: B5Hq11Tb3Y0
2017-09-14 16:43:45 +02:00
Dan Banner
f7d41414af Bug 1395890 - Change all ESLint rules that are warnings to errors. r=standard8
MozReview-Commit-ID: LJS6m1GppiS
2017-09-18 19:07:17 +01:00
Wes Kocher
d15cf9737d Merge m-c to autoland, a=merge
MozReview-Commit-ID: 7Z1eEWwhzZC
2017-09-18 16:25:06 -07:00
Joel Maher
34ea8ffcdc 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
00e062bad2 Merge m-c to inbound. a=merge 2017-09-15 14:20:59 -04:00
Luca Greco
58f9bcb721 Bug 1398729 - Support devtools.panels.elements sidebar.setExpression API method. r=aswan
MozReview-Commit-ID: 2tRLF59o8Bg
2017-09-09 16:39:17 +02:00
Luca Greco
8d1c843974 Bug 1398729 - Share devtools.inspectedWindow.eval helper methods in ext-devtools API module. r=aswan
MozReview-Commit-ID: 9ezZNjEOdUY
2017-09-09 15:44:35 +02:00
Nicolas Chevobbe
f94f373874 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
2017-09-14 17:59:33 +02:00
Liang-Heng Chen
51f591d6b3 Bug 1399409 - Ignore about:blank in awaitBrowserLoaded. r=kmag
MozReview-Commit-ID: 8WoN86Zd6PS
2017-09-13 23:46:00 -04:00
Shane Caraveo
4a51349fc2 Bug 1394947 fix toggling the extension sidebars from menus, r=Gijs
MozReview-Commit-ID: G2LGIzSl9Be
2017-09-11 14:48:18 -07:00
Shane Caraveo
8a372d6de1 Bug 1399070 move launchWebAuthFlow to parent to fix opening auth window when remote, r=zombie
MozReview-Commit-ID: GAdlxYUM6rr
2017-09-14 09:18:27 -07:00
Bob Silverberg
03a66f5cfc 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
2017-05-31 12:01:58 -04:00
Mark Striemer
eb1fcb2d5b Bug 1372996 - Clear the URL bar when on ext newtab r=mixedpuppy
MozReview-Commit-ID: 2NNOK2kRPgl
2017-09-01 09:39:24 -05:00
Luca Greco
9cf8821c11 Bug 1374590 - Add a new test case for toolbox dock mode switch with a devtools panel addon. r=aswan
MozReview-Commit-ID: 9Rf0OEdKYQl
2017-09-11 19:02:12 +02:00
Luca Greco
46acc799dd Bug 1374590 - Fix changing devtools toolbox dock location while using WebExtension devtools panel. r=aswan
MozReview-Commit-ID: 2O1MoNZXZm0
2017-09-11 17:32:05 +02:00
Luca Greco
4d4c2ebb93 Bug 1374590 - Refactoring ParentDevToolsPanel class to provide create/destroyBrowserElement helper methods. r=aswan,ochameau
MozReview-Commit-ID: FsGlCU0H9VG
2017-09-11 15:49:36 +02:00
Sebastian Hengst
b2d95c824e merge mozilla-central to autoland. r=merge a=merge 2017-09-14 00:11:28 +02:00
Sebastian Hengst
07e658e083 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-09-13 13:35:21 +02:00
Sebastian Hengst
cf4fdc5fdc merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 9SALJlvWgoZ
2017-09-13 13:32:44 +02:00
Sebastian Hengst
2253081558 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: GUc4LEY8qp4
2017-09-13 11:27:47 +02:00