Commit Graph

532 Commits

Author SHA1 Message Date
Jonas Allmann
7f8cbbfa55 Bug 1523813, Remove new Function from utilityOverlay.js, r=Gijs
Replaced new Function() by CustomEvent carrying original click event as sourceEvent.
Adapted all oncommand listeners to use event.sourceEvent instead of event.

Differential Revision: https://phabricator.services.mozilla.com/D18847
2019-02-19 16:20:02 +00:00
Daisuke Akatsuka
352909c300 Bug 1522400: Set proper context menu items on about:devtools-toolbox page. r=jdescottes,mconley
Depends on D17458

Differential Revision: https://phabricator.services.mozilla.com/D17459
2019-02-13 01:50:20 +00:00
Jonathan Kingston
58708e007c Bug 1520868 - Replacing AsyncOpen2 with AsyncOpen always r=valentin
Replacing js and text occurences of asyncOpen2
Replacing open2 with open

Differential Revision: https://phabricator.services.mozilla.com/D16885
2019-02-12 16:08:25 +00:00
Mike Conley
10054c9787 Bug 1520329 - Add messaging infrastructure for opening videos in a Picture in Picture window. r=Felipe
Differential Revision: https://phabricator.services.mozilla.com/D16903
2019-02-12 02:34:38 +00:00
Myk Melez
5ecc2c1225 Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17526
2019-01-30 17:26:25 +00:00
Kris Maglione
856fa07b17 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16750
2019-01-17 10:18:31 -08:00
Daisuke Akatsuka
f89726c3bd Bug 1495944: Show/Hide 'Inspect Element' item in content context menu. r=jdescottes
This patch removes "Inspect Element" menu item from content context menu in
case that about:devtools-toolbox are opening.
However, we may be able to remove after fixing 1515265.

Depends on D16684

Differential Revision: https://phabricator.services.mozilla.com/D16685
2019-01-18 16:21:43 +00:00
Dorel Luca
7d0f6e84e2 Backed out 5 changesets (bug 1495944) for DevTools failures in devtools/client/aboutdebugging-new/test/browser/browser_aboutdebugging_devtoolstoolbox_menubar.js
Backed out changeset 52e5f0d01900 (bug 1495944)
Backed out changeset 025ffd6f441f (bug 1495944)
Backed out changeset df656c9d03b1 (bug 1495944)
Backed out changeset be64b571b600 (bug 1495944)
Backed out changeset 9418ac4c2fa1 (bug 1495944)
2019-01-18 16:14:34 +02:00
Daisuke Akatsuka
930bcde779 Bug 1495944: Show/Hide 'Inspect Element' item in content context menu. r=jdescottes
This patch removes "Inspect Element" menu item from content context menu in
case that about:devtools-toolbox are opening.
However, we may be able to remove after fixing 1515265.

Depends on D16684

Differential Revision: https://phabricator.services.mozilla.com/D16685
2019-01-18 11:53:50 +00:00
Bogdan Tara
e30a8b9a04 Backed out 5 changesets (bug 1495944) for browser_989751_subviewbutton_class.js failures CLOSED TREE
Backed out changeset f365b9fa9697 (bug 1495944)
Backed out changeset cd627a79a250 (bug 1495944)
Backed out changeset 7862a0a1c3ec (bug 1495944)
Backed out changeset f78876cf49e6 (bug 1495944)
Backed out changeset 85f355a22192 (bug 1495944)
2019-01-18 04:58:40 +02:00
Daisuke Akatsuka
9f6b22bfb8 Bug 1495944: Show/Hide 'Inspect Element' item in content context menu. r=jdescottes
This patch removes "Inspect Element" menu item from content context menu in
case that about:devtools-toolbox are opening.
However, we may be able to remove after fixing 1515265.

Depends on D16684

Differential Revision: https://phabricator.services.mozilla.com/D16685
2019-01-17 06:59:17 +00:00
Luca Greco
781ae42557 Bug 1468460 - Fix and test extension menus and menus.overrideContext on options_ui pages. r=mixedpuppy,robwu
Depends on D9920

Differential Revision: https://phabricator.services.mozilla.com/D15225
2019-01-08 22:23:00 +00:00
Luca Greco
bb30a553fe Bug 1468460 - Support context menu in WebExtensions options pages embedded inside an about:addons tab. r=mixedpuppy,robwu
Differential Revision: https://phabricator.services.mozilla.com/D9920
2019-01-07 20:53:13 +00:00
Siddhant085
8ee1087713 Bug 1493483 - Use nsIBrowserSearchService::defaultEngine instead of currentEngine (in production code) r=Standard8
nsIBrowserSearchService::currentEngine and nsIBrowserSearchService::defaultEngine are the same thing.
The use of defaultEngine makes more sense and thus we are phasing out the use of currentEngine and replace it with defaultEngine.

Differential Revision: https://phabricator.services.mozilla.com/D7972
2018-10-27 16:52:02 +00:00
Csoregi Natalia
c42d79525b Backed out changeset c35bab726b03 (bug 1493483) for multiple browser-chrome failures e.g browser_extension_controlled.js. CLOSED TREE 2018-10-09 23:26:24 +03:00
Siddhant085
0a154604f3 Bug 1493483 - Use nsIBrowserSearchService::defaultEngine instead of currentEngine (in production code) r=Standard8
nsIBrowserSearchService::currentEngine and nsIBrowserSearchService::defaultEngine are the same thing.
The use of defaultEngine makes more sense and thus we are phasing out the use of currentEngine and replace it with defaultEngine.

Differential Revision: https://phabricator.services.mozilla.com/D7972
2018-10-09 18:40:08 +00:00
Rob Wu
3a839b492e Bug 1416839 - Add viewType/viewTypes to menus API r=mixedpuppy
- Support viewTypes property in menus.create / menus.update.
- Add info.viewType to menus.onShown / menus.onClicked event.
- This "viewType" reuses the existing extension.ViewType enum,
  which is a "tab", "popup" (pageAction/browserAction) or "sidebar".

Differential Revision: https://phabricator.services.mozilla.com/D6205
2018-10-01 16:56:53 +00:00
Rob Wu
f05b3204a5 Bug 1367160 - Allow extensions to hide default menu items r=mixedpuppy
The new method allows extensions to modify menu items in their own
moz-extension:-pages, with the following features:

- All matching extension items are shown in the root menu (instead of
  being moved into a submenu), above other menu items, if any.
- The icons for these menu items are customizable.
- Optionally, the default menu items (including those from other
  extensions) can be hidden.

Depends on D6621

Differential Revision: https://phabricator.services.mozilla.com/D6622
2018-09-25 16:41:47 +00:00
Christoph Kerschbaumer
619aeb7fa1 Bug 1490874: Log Principal based Security Errors to the Security pane in the console. r=smaug 2018-09-25 07:25:05 +02:00
shindli
23c0be1304 Backed out changeset 510e95767aeb (bug 1490874) for security failures in browser/components/payments/test/mochitest/test_basic_card_form.html CLOSED TREE 2018-09-24 11:43:30 +03:00
Christoph Kerschbaumer
72e1ad4898 Bug 1490874: Log Principal based Security Errors to the Security pane in the console. r=smaug 2018-09-24 09:34:04 +02:00
Mark Banner
462116b7f9 Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop
Automatic changes by ESLint, except for manual corrections for .xml files.

Differential Revision: https://phabricator.services.mozilla.com/D4439
2018-08-31 05:59:17 +00:00
Paolo Amadini
8445cdc144 Bug 1482648 - Part 4 - Clean up remaining references to broadcasters in front-end code. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D3151
2018-08-11 17:25:58 +01:00
Paolo Amadini
993b3608ee Bug 1482648 - Part 3 - Remove remaining broadcasters from front-end code. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D3150
2018-08-21 14:55:04 +01:00
Jonathan Kingston
0891ddde89 Bug 1364392 - Provide correct triggeringPrincipal to openLinkIn r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D3873
2018-08-21 14:15:40 +00:00
Andreea Pavel
c0fa540cec Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-08-14 19:17:13 +03:00
Paolo Amadini
4ea606710c Bug 1481813 - Part 1 - Remove unneeded broadcaster observers for bookmarks. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D3007
2018-08-09 13:13:27 +01:00
Jonathan Kingston
6fc76db0d9 Bug 1482681 - Fix load iframe in tab context menu. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D3200
2018-08-14 12:58:24 +00:00
Jonathan Kingston
bb6cd22c00 Bug 1466801 - Flipping disallowInheritPrincipal to be allow. r=ckerschb r=gijs 2018-07-16 10:17:51 +01:00
Rob Wu
cd1bdb8e47 Bug 1325814 - Add extension API to find menu target r=mixedpuppy
- Add info.targetElementId to menus.onShown event.

- Add info.targetElementId to menus.onClicked event.

- Add menus.getTargetElement API that is available to all contexts,
  including content scripts, which allows extensions to get the DOM
  element for a given targetElementId.

- Add new schema instead of re-using schemas/menus.json to avoid sending
  too much schema data (of the existing menus API) to content processes.

MozReview-Commit-ID: 6Onf7jZlIho
2018-08-04 18:09:49 +02:00
Jonathan Kingston
07af5c5572 Bug 1362034 - Have addTab() provide the correct triggering principal. r=ckerschb r=Gijs
Reviewers: ckerschb!, Gijs!

Tags: #secure-revision

Bug #: 1362034

Differential Revision: https://phabricator.services.mozilla.com/D2046
2018-07-06 15:14:54 +01:00
dvarga
86b7ee6d9f Backed out 2 changesets (bug 1362034) for failure at browser/tools/mozscreenshots/primaryUI/browser_primaryUI.js on a CLOSED TREE
Backed out changeset 1c3329958b8a (bug 1362034)
Backed out changeset f68b1b76af36 (bug 1362034)
2018-08-08 22:11:56 +03:00
Jonathan Kingston
0e48203cf4 Bug 1362034 - Have addTab() provide the correct triggering principal. r=ckerschb,Gijs
Reviewers: ckerschb, Gijs

Reviewed By: ckerschb, Gijs

Subscribers: mixedpuppy, reviewbot

Bug #: 1362034

Differential Revision: https://phabricator.services.mozilla.com/D2046
2018-08-08 20:03:55 +03:00
Andreea Pavel
31fb9c007c Backed out 2 changesets (bug 1362034) for failing damp | inspector/cold-open.js on a CLOSED TREE
Backed out changeset 8c8925b75aa2 (bug 1362034)
Backed out changeset ff6b05c96094 (bug 1362034)
2018-08-06 20:42:44 +03:00
Jonathan Kingston
ea417d37e5 Bug 1362034 - Have addTab() provide the correct triggering principal. r=ckerschb,Gijs
Reviewers: ckerschb, Gijs

Reviewed By: ckerschb, Gijs

Subscribers: reviewbot

Bug #: 1362034

Differential Revision: https://phabricator.services.mozilla.com/D2046
2018-08-06 19:54:47 +03:00
Boris Zbarsky
e9dec2a2c5 Bug 1480310. Use docshell's editingSession getter instead of getInterface to get editing sessions. r=kmag
All the C++ consumers already call the getter, so we can remove
nsIEditingSession from the docshell GetInterface method completely.

Differential Revision: https://phabricator.services.mozilla.com/D2668
2018-08-02 19:15:27 +00:00
Boris Zbarsky
df1e81934e Bug 1446940 part 2. Stop getting docshells from windows via getInterface in browser. r=gijs 2018-08-01 13:07:10 -04:00
Boris Zbarsky
e98236cf07 Bug 1476145 part 3. Stop using getInterface(nsIDOMWindowUtils) in browser/. r=gijs 2018-07-24 19:47:41 -04:00
Narcis Beleuzu
634f9e8d3c Backed out changeset 4cba8b6eb37a (bug 1466801) for wpt failures. CLOSED TREE 2018-07-25 00:37:59 +03:00
Jonathan Kingston
3eed490cdd Bug 1466801 - Flipping disallowInheritPrincipal to be allow. r=ckerschb,Gijs
Reviewers: Gijs, ckerschb

Reviewed By: Gijs, ckerschb

Subscribers: aryx, smaug, dao, RyanVM, dveditz, Gijs, ckerschb, bzbarsky, jkt

Bug #: 1466801

Differential Revision: https://phabricator.services.mozilla.com/D2096
2018-07-24 20:35:55 +03:00
Marco Bonardo
899632d5f6 Bug 1475276 - Remove some no more necessary usage of promiseItemGuid. r=lina
Some code is unnecessarily using promiseItemGuid

Differential Revision: https://phabricator.services.mozilla.com/D2100
2018-07-12 21:38:21 +00:00
Gurzau Raul
88b556d61a Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-07-04 13:01:13 +03:00
Gijs Kruitbosch
567d31a745 Bug 1469916, r=ckerschb,jkt 2018-06-22 15:41:39 +01:00
Gijs Kruitbosch
435b8f162d Backed out changeset be11a3290029 (bug 1469916) for test orange involving Not enough arguments [nsIWebBrowserPersist.saveURI] 2018-07-03 15:45:13 +01:00
Gijs Kruitbosch
2cd42146aa Bug 1469916, r=ckerschb,jkt 2018-06-22 15:41:39 +01:00
Dão Gottwald
541fa834f8 Bug 1472275 - Remove PlacesCommandHook.bookmarkPage's aShowEditUI argument. r=standard8
MozReview-Commit-ID: CGYSF1OvoVg
2018-06-29 19:45:35 +02:00
Dão Gottwald
a39a79d47f Bug 1473073 - Remove PlacesCommandHook.bookmarkPage's browser argument. r=mak
MozReview-Commit-ID: BH5r7Tn8KV1
2018-07-03 22:46:46 +02:00
J. Ryan Stinnett
0dcd6d60ba Bug 1365626 - Remove View MathML Source feature. r=mconley
The in-tree version of View MathML Source appears to have low usage, so it seems
reasonable to remove.  A similar feature is available as an add-on.

In recent months, the in-tree version has actually been broken, which wasn't
noticed for quite a while.  This adds further evidence for removal given the
lack of maintenance and interest in this feature.

Differential Revision: https://phabricator.services.mozilla.com/D1830
2018-06-28 20:45:31 +00:00
Mark Banner
efb967ef3e Bug 1453667 - Remove BrowserUITelemetry from other parts of browser/ r=Gijs
MozReview-Commit-ID: FG1PiVPBY5U
2018-06-06 19:42:19 +01:00
Jonathan Kingston
c9c163f346 Bug 1465160 - Pass null principal to view image. r=ckerschb, r=Gijs 2018-05-30 00:42:50 +01:00