Граф коммитов

103 Коммитов

Автор SHA1 Сообщение Дата
Kris Maglione 031076f2f3 Bug 1463291: Move docShell getter from Document to Window. r=bz
DocShells are associated with outer DOM Windows, rather than Documents, so
having the getter on the document is a bit odd to begin with. But it's also
considerably less convenient, since most of the times when we want a docShell
from JS, we're dealing most directly with a window, and have to detour through
the document to get it.

MozReview-Commit-ID: LUj1H9nG3QL

--HG--
extra : source : fcfb99baa0f0fb60a7c420a712c6ae7c72576871
extra : histedit_source : 5be9b7b29a52a4b8376ee0bdfc5c08b12e3c775a
2018-05-21 16:58:23 -07:00
Narcis Beleuzu 561ccb2ceb Backed out 2 changesets (bug 1463016, bug 1463291) for geckoview failures
Backed out changeset fcfb99baa0f0 (bug 1463291)
Backed out changeset 0d69b4fb1ed4 (bug 1463016)
2018-07-29 03:55:23 +03:00
Kris Maglione cb1ee1e34d Bug 1463291: Move docShell getter from Document to Window. r=bz
DocShells are associated with outer DOM Windows, rather than Documents, so
having the getter on the document is a bit odd to begin with. But it's also
considerably less convenient, since most of the times when we want a docShell
from JS, we're dealing most directly with a window, and have to detour through
the document to get it.

MozReview-Commit-ID: LUj1H9nG3QL

--HG--
extra : rebase_source : a13c59d1a5ed000187c7fd8e7339408ad6e2dee6
2018-05-21 16:58:23 -07:00
Oriol Brufau a50c798f7a Bug 1474132 - Choose right add-on icon size in about:addons and install popup r=rpl
MozReview-Commit-ID: L5O2OwlK879

--HG--
extra : rebase_source : ee405d9a41a940f5a77df8eba2249ca9c9164101
2018-07-13 13:51:28 +02:00
Kris Maglione 980ae197a0 Bug 1456243: Remove dead prompt-for-distribution-add-ons code. r=aswan
MozReview-Commit-ID: B4HPk0ho7Cz

--HG--
extra : rebase_source : 35c163e652d4f885405a2fc1d79259b3fb17f4b6
2018-05-17 18:56:50 -07:00
Kris Maglione 6ac523347a Bug 1461145: Support async startup/shutdown bootstrap methods. r=aswan
MozReview-Commit-ID: L0G4DA0KJ87

--HG--
extra : rebase_source : b774d70d11c47d138535685104c5d5bc197f7866
2018-05-12 18:51:32 -07:00
Tomislav Jovanovic 253cc63c47 bug 1455269 - Cancel instalation on notification dismissal r=aswan
MozReview-Commit-ID: DqbgdVTarQ8

--HG--
extra : rebase_source : 94f6be292041e8c83ed40b2db9af596de8ac9593
2018-05-17 20:46:21 +02:00
Kris Maglione a7b308c3a2 Bug 1456686: Part 1 - Fix unused and shadowed explicit imports. r=standard8
These issues were previously ignored due to the nature of our global import
rules. They need to be fixed before that rule can be updated.

MozReview-Commit-ID: DCChktTc5TW

--HG--
extra : rebase_source : cffb1c9762191c579d1397c8169e6e7635d229da
extra : histedit_source : dea59ddd2daaae52069c5faceae9149a4f08dd73
2018-04-24 20:18:09 -07:00
Mike de Boer d16ee58ded Bug 1034036 - Part 1: Merge RecentWindow.jsm and UpdateTopLevelContentWindowIDHelper.jsm into one module called 'BrowserWindowTracker.jsm'. r=dao
MozReview-Commit-ID: 9qzq1aGvjDu

--HG--
rename : browser/modules/UpdateTopLevelContentWindowIDHelper.jsm => browser/modules/BrowserWindowTracker.jsm
extra : rebase_source : 9c4a728e13fd691d377e7f221c5632646115daca
2018-04-11 12:05:56 +02:00
Andrew Swan 68d8f5e967 Bug 1331521 Remove about:newaddon r=kmag
MozReview-Commit-ID: 6OFXGYEmSmy

--HG--
extra : rebase_source : 80ee72c190a2b2d06b895ad5bda22cc9b5849b01
2018-04-16 14:11:10 -07:00
Kris Maglione b5c2235a0f Bug 1382953: Fix permission prompts in about:addons options browsers. r=aswan
MozReview-Commit-ID: At5F5cqGSWu

--HG--
extra : rebase_source : 2bce19447ae0bd4b6cd8f51b16f1e7fabe59d6c8
extra : amend_source : 911e5b1f2d7ee501d08918c6191a79217f0d0b6f
2018-04-07 20:38:21 -07:00
Jonathan Kingston ff73ac0338 Bug 1374741 - Within browser/ make openUILinkIn() provide the correct triggeringPrincipal. r=gijs
MozReview-Commit-ID: 1NQrlWzIBja

--HG--
extra : rebase_source : 29d337e111d82e9c5729b5a59e1a16d06e67774c
2018-02-21 14:28:48 +00:00
Kris Maglione d47023da3b Bug 1446686: Follow-up: Fix pending permission prompts when prompt is dismissed. r=bustage
MozReview-Commit-ID: 35tW39omECd

--HG--
extra : rebase_source : e0b2a229f1f4a2e4bd452c233469e3fd92f9b3ce
2018-03-26 19:06:00 -07:00
Kris Maglione 1f5d2b4db6 Bug 1446686: Part 3 - Fix discovery pane and drag-and-drop tests which rely on legacy extensions. r=aswan
This removes some discovery pane tests which are obsolete. The discovery pane
page that it tests uses InstallTrigger, rather than mozAddonManager as we use
in production, and fails when used with WebExtensions.

The other tests have been updated to use WebExtensions, and some relevant
PopupNotifications bugs have been fixed so that they actually pass.

MozReview-Commit-ID: 1g0n73vhncp

--HG--
rename : toolkit/mozapps/extensions/test/browser/addons/browser_dragdrop1/install.rdf => toolkit/mozapps/extensions/test/browser/addons/browser_dragdrop1/manifest.json
rename : toolkit/mozapps/extensions/test/browser/addons/browser_dragdrop2/install.rdf => toolkit/mozapps/extensions/test/browser/addons/browser_dragdrop2/manifest.json
rename : toolkit/mozapps/extensions/test/browser/addons/browser_dragdrop_incompat/install.rdf => toolkit/mozapps/extensions/test/browser/addons/browser_dragdrop_incompat/manifest.json
extra : rebase_source : 0334268d0476227d084fb81bc8455deb186e6bd1
2018-03-17 17:42:51 -07:00
Prathiksha b360ee3691 Bug 1435160 - Format notification popup description message in a helper function. r=johannh
MozReview-Commit-ID: Bwy2WrbXjUf

--HG--
extra : rebase_source : 7560c426f8e3fbfb102cfcba1ef7f15fc112ec38
2018-02-28 02:01:55 +05:30
Andrew Swan 344a3d3d0b Bug 1441271 Show permissions notifications for distribution addons r=kmag
As described in the bug, this is intended as a temporary solution to
enable some experiments.  If this becomes a real feature, UX will
put some thought into a better startup experience.

MozReview-Commit-ID: 4DGMHj29M3e

--HG--
extra : rebase_source : a108fd58d4703c3110790f99e4936e6fee323cd2
2018-02-28 18:36:36 -08:00
Florian Quèze 682b1ec3b2 Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
Prathiksha 3ef0cd25b3 Bug 1434976 - Stop setting web-extension install prompt message details dynamically. r=johannh
MozReview-Commit-ID: GfewQFsgEAa

--HG--
extra : rebase_source : 4751a6874fad38dfb0dd41d67736fdfba52e1241
2018-02-15 18:44:29 +05:30
Prathiksha b28f3f4deb Bug 1431242 - Use popupnotification's built-in bolding for webextension prompts. r=aswan,johannh
MozReview-Commit-ID: 52AtWUlJj4p

--HG--
extra : rebase_source : deb657d44fb1306a49d2c38cc3632928b49ab6e8
2018-01-19 23:34:25 +05:30
Andrew McCreight 5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Kris Maglione 918ed6c474 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Cosmin Sabou 9a65a40178 Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione 6476f95b13 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
2018-01-29 15:20:18 -08:00
Brindusan Cristian af8879d1eb Backed out 2 changesets (bug 1431533) for ESlint failures on a CLOSED TREE
Backed out changeset 6e56f4c8843e (bug 1431533)
Backed out changeset 12fc4dee861c (bug 1431533)
2018-01-30 02:32:43 +02:00
Kris Maglione c276bb9375 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : rebase_source : c004a023389f1f6bf3d2f3efe93c13d423b23ccd
2018-01-29 15:20:18 -08:00
Kris Maglione 952665bf09 Bug 1433708: Part 2 - Fix ExtensionsUI innerHTML sanitization. r=aswan
MozReview-Commit-ID: B8Lzqx56fBi

--HG--
extra : rebase_source : 8a871ba1151cad23ae1d5bf80c118935443d8a96
2018-01-26 11:06:35 -08: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
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
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
Andrew Swan a806967d80 Bug 1379833 Part 1: Move common code to format permission dialog strings to Extension.jsm
MozReview-Commit-ID: LvyEy7x9TJg

--HG--
extra : rebase_source : 02e748210100e2f3b0a08b77746d0171f4085149
extra : intermediate-source : e742aefc28987ea2e80fda91ff277343862d2b5a
extra : source : 90778683c3dd067754dfff4ca776e2c0f9ad7c3b
2017-08-02 13:15:30 -07:00
Andrew Swan 728fcfe9c3 Bug 1382031 Set access key properly on optional permission doorhanger r=andym
MozReview-Commit-ID: J9MiAeGmMiT

--HG--
extra : rebase_source : 371d5b67f2e900670f09b53733e0ba0dcb2a0c7e
2017-07-18 16:54:07 -07:00
Florian Quèze 3d56aac575 Bug 1379788 - Stop loading RecentWindow.jsm during startup, r=Gijs. 2017-07-11 23:30:23 +02:00
Frederik Braun 56838ddb04 Bug 1351608 - Disable warnings for existing violations to no-unsanitize rule r=Standard8.
MozReview-Commit-ID: 7cTNL5jMtRw
2017-07-03 20:07:02 +01:00
Bob Silverberg 2c05852936 Bug 1369581 - Requesting an optional permission that does not cause a prompt should succeed, r=aswan
Currently, if an extension requests one or more optional permissions,
and those permissions do not cause a prompt to be displayed,
the framework will reject that request and not grant any permissions.
This should be the opposite in that we should grant permission to
those optional permissions event though no prompt is displayed.

MozReview-Commit-ID: 6SeyFSv92Lo

--HG--
extra : rebase_source : 08ba28ca7920c9d37af28afa24d9602813b4470b
2017-06-02 09:14:22 -04:00
Mark Striemer bb93b8c9b4 Bug 1358431 - Remove delay rendering add-on permissions popup header r=florian
MozReview-Commit-ID: rlpOW0xFtm

--HG--
extra : rebase_source : 96632d3f69ab7fa6ee25a6c80cacb4f1ed7ab3e9
2017-06-09 14:59:04 -05:00
Doug Thayer 26f8bae28d Bug 1359733 - (pt. 3) Pull out browser-addons.js badges r=aswan
We are moving app menu doorhangers and badges out from window-
specific code into a jsm, in order to simplify the work that
the new app udpate UI has to do. Since browser-addons.js also
consumes the badge system, this ensures that it also uses the
jsm store.

MozReview-Commit-ID: Fb5Fsja0RcA

--HG--
extra : rebase_source : c979e361aba54692f89e79317e4958b65c8b4722
2017-05-15 10:38:33 -07:00
Kris Maglione f5f76c7cff Bug 1356826: Part 7 - Scan for extension sideloads after final UI startup. r=aswan,rhelmer
MozReview-Commit-ID: 1syn9GD2DEb

--HG--
extra : rebase_source : aa3a45654f1d3b071cec33fe93fffd2cc8db294f
extra : source : c861e23ec8ef99e19d75e6e62dad143ccb95dffd
2017-05-10 12:34:17 -07:00
Kris Maglione 84e0c25849 Bug 1356826: Part 6 - Wait for delayed startup before checking for side-loads. r=aswan
MozReview-Commit-ID: IpuRNbdUXmE

--HG--
extra : rebase_source : 0fc72897bc0a12b5bd789c9a0d00df3dec4f7760
extra : source : d47998fa24cd084ffba07a73834d8ffb3af81b60
2017-04-15 14:09:41 -07:00
Iris Hsiao 6559420d58 Backed out 15 changesets (bug 1358846, bug 1356826) for talos error. a=backout
Backed out changeset 96ea13bb00c5 (bug 1358846)
Backed out changeset b533d7f9b9c2 (bug 1358846)
Backed out changeset 7dcb80a051a3 (bug 1358846)
Backed out changeset 26825f1e33dd (bug 1358846)
Backed out changeset 98b57ff82a54 (bug 1358846)
Backed out changeset b9088593e34f (bug 1358846)
Backed out changeset cb2518673c56 (bug 1358846)
Backed out changeset 889c487a5d41 (bug 1358846)
Backed out changeset 459b36092b7a (bug 1356826)
Backed out changeset c861e23ec8ef (bug 1356826)
Backed out changeset d47998fa24cd (bug 1356826)
Backed out changeset b02e89c67132 (bug 1356826)
Backed out changeset c46fed6e4f6a (bug 1356826)
Backed out changeset 237268e3d9d2 (bug 1356826)
Backed out changeset 527435fc20db (bug 1356826)
2017-05-12 17:45:21 +08:00
Kris Maglione 05591ed101 Bug 1356826: Part 7 - Scan for extension sideloads after final UI startup. r=aswan,rhelmer
MozReview-Commit-ID: 1syn9GD2DEb

--HG--
extra : rebase_source : d681fa6c0715790664e090580175cfe33bca3425
2017-05-10 12:34:17 -07:00
Kris Maglione 01a97bf1e9 Bug 1356826: Part 6 - Wait for delayed startup before checking for side-loads. r=aswan
MozReview-Commit-ID: IpuRNbdUXmE

--HG--
extra : rebase_source : 5ac9b960f9f06952120676b713d77624f832e4d6
2017-04-15 14:09:41 -07:00
Alexandre Poirot c90bccb53a Bug 1356231 - Use toolkit EventEmitter.jsm instead of devtools module. r=mossop
MozReview-Commit-ID: 49JI7NtLwKK

--HG--
extra : rebase_source : 7fb015f56be94c4bbe2d56506653f069c9ad8dd3
2017-04-27 17:58:09 +02:00
Andrew Swan ebcf41ae27 Bug 1358229 Fix exception during optional permission prompts r=rhelmer
MozReview-Commit-ID: 5e3tlFF7uvp

--HG--
extra : rebase_source : 44821fa0cdc9a97ccb99d0587e8575bb02ed8c0e
2017-04-24 10:44:41 -07:00
Andrew Swan 48d2c6f7c7 Bug 1343498: Don't fail on unparseable host permissions r=kmag
MozReview-Commit-ID: BHIzjjz23N7

--HG--
extra : rebase_source : d8b684281c04fc70e29737fbd67bc92725860114
2017-04-14 16:45:10 -07:00
Florian Queze 37ff4fc7cc Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Sebastian Hengst a07223d699 Backed out changeset 322fde2d53bf (bug 1356569) so bug 1355161 can be backed out. r=backout 2017-04-14 23:39:22 +02:00
Florian Queze 95d4d20c17 Bug 1356569 - Remove addObserver's last parameter when it is false, r=jaws. 2017-04-14 21:51:38 +02:00
Andrew Swan a02a18c1e5 Bug 1352152 Fix several issues with optional webextension permissions r=kmag
1. Use the right strings in permission dialogs
2. Don't show permissions dialogs for non-promptable permissions
3. Enable dialogs by default

MozReview-Commit-ID: JJdxxcP7IeU

--HG--
extra : rebase_source : b5525cbae3822f3e2727788fd63580e6d5bd8293
2017-04-10 19:12:23 -07:00
Mark Striemer bd06793922 Bug 1329942 - Fix alignment of webextensions permissions doorhanger r=florian
MozReview-Commit-ID: K0YM26lgOY5

--HG--
extra : rebase_source : 023e4ad41f0c2457238503e169472393f325ae30
2017-02-28 15:26:12 -06:00
Andrew Swan 00aad91298 Bug 1197420 Part 3 Initial browser.permissions api support r=kmag
With this patch, permissions are not actually applied,
but the permissions api is in place.

MozReview-Commit-ID: CTaXz5sa1xy

--HG--
extra : rebase_source : d5cc18abbae6809b196f8497ff91608d662d5030
extra : source : e4c13d11e401ae3bd40be3a5a7fb0aaf95c992bb
2017-03-24 13:55:09 -07:00