gecko-dev/browser
Rob Wu 89cd46a436 Bug 1494957 - Stop throwing outside of contextmenu events r=mixedpuppy
Stop checking whether `browser.menus.overrideContext` is called during
a `contextmenu` event, because the implementation cannot rely on
`window.event` due to bug 1493869.
Because of the removed check, `overrideContext` does not throw any more
when called outside of a "contextmenu" event. An extra check was added
to make sure that this does not impact menus of non-extension documents.

The new implementation has the following other effects:
- overrideContext can be called from shadow DOM (+tests).
- overrideContext can be called for context menu in a different
  (same-origin) document (e.g. a menu in a blank child frame).

Differential Revision: https://phabricator.services.mozilla.com/D7249

--HG--
extra : moz-landing-system : lando
2018-10-01 15:43:54 +00:00
..
actors Bug 1490810 - Simulate Fission for browser actors by blocking them from receiving sub-frame events. r=kmag 2018-09-26 21:46:18 +00:00
app Backed out changeset 83efe831ed1d (bug 1492563) for frequent mochitest failures on test_bug704320_preload.html (Bug 1494182) 2018-09-30 16:50:21 +03:00
base Merge mozilla-central to autoland 2018-09-29 07:17:34 +03:00
branding Bug 1471657 - Update Nightly DMG background to high-res r=Dolske 2018-08-21 20:54:30 +00:00
components Bug 1494957 - Stop throwing outside of contextmenu events r=mixedpuppy 2018-10-01 15:43:54 +00:00
config Bug 1477490: Merge upstream ASan patch to unpoison thread stacks. r=ted 2018-09-20 17:40:38 -04:00
docs
extensions Bug 1495403 - Update pdf.js to version 2.0.892. r=bdahl 2018-10-01 07:02:33 -04:00
fonts
installer Bug 1494900 Part 2 - Always use IE to show the uninstall survey on Win7/8. r=agashlin 2018-09-28 08:44:11 -07:00
locales Bug 1480456 - Add 'Select All Tabs' into tab context menu. r=Felipe 2018-09-28 18:17:23 +00:00
modules Bug 1494276 - Removed unused hasFocus parameter from WindowHelper.onActivate;r=dao 2018-09-29 09:39:57 +00:00
themes Bug 1492841 - Add tab icon for switch-to-tab UrlbarView results. r=adw 2018-09-26 12:32:50 +02:00
tools/mozscreenshots Bug 1485676 - Adapt mozscreenshot code to async TargetFactory.forTab. r=yulia 2018-09-24 09:53:00 -07:00
.eslintrc.js
app.mozbuild
build.mk
confvars.sh Bug 1482256 - Support switching to browser.xul to browser.xhtml. r=mossop 2018-08-14 13:13:38 -07:00
defs.mk
LICENSE
Makefile.in
moz.build Bug 1465251 - use PrioEncoder to encode Telemetry values for pilot project r=kmag 2018-09-09 00:23:52 +00:00
moz.configure Bug 1493315: Build config for dedicated profiles and downgrade protection. r=ted 2018-09-21 23:32:55 +00:00