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

2463 Коммитов

Автор SHA1 Сообщение Дата
Chris Pearce 4a6ff21ab5 Bug 1473671 - Don't store persistent block permission if ESC pressed while showing permission doorhanger. r=florian
While showing a doorhanger permisison prompt, if the user presses the ESC key
we call the secondary action callback, passing in whether any checkbox on
the popup notification was checked.

In the case of an autoplay-media permission prompt, we have a "remember"
checkbox, which is checked by default. So pressing ESC means the user will
remember a "block" result for the current site.

We believe that users don't expect pressing ESC to result in a remembered
decision, they expect pressing ESC to avoid making a decision. So we want to
ignore the checkbox when ESC is pressed for autoplay-media.

So this patch adds a new PopupNotification behaviour which reports the source
of event which caused the action callback to be called. This enables the ESC
key press to ignore storing a permission.

Note: the change here to not store a permission on ESC press applies to all
permissions, not just autoplay-media.


MozReview-Commit-ID: IUWFN8LG9VF

--HG--
extra : rebase_source : b004bc211177a7bfb6dcea563d75db9a6750b214
2018-07-17 14:45:17 +12:00
Kris Maglione c13281e92a Bug 1479236: Stop loading NetUtil.jsm in the content process. r=Mossop
MozReview-Commit-ID: CvV25FHerXJ

--HG--
extra : rebase_source : 893e4b8f59b1e576c9461cb54c41fd9ab8d03eff
extra : amend_source : 4f0f20c6fa3ac51d4eec1728390449d30952987a
2018-07-28 17:47:06 -07:00
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
Michael Kaply 6cf31b8253 Bug 1477042 - Add a pref for counting URIs in private browsing mode. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D2479

--HG--
extra : moz-landing-system : lando
2018-07-27 22:45:29 +00:00
Cosmin Sabou 09e026181d Backed out changeset c03547ff0797 (bug 1477042) for browser chrome failures on browser_address_edit. CLOSED TREE 2018-07-28 00:17:19 +03:00
Michael Kaply 7f005b8d0d Bug 1477042 - Add a pref for counting URIs in private browsing mode. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D2479

--HG--
extra : moz-landing-system : lando
2018-07-27 20:00:12 +00:00
Tim Nguyen b3a838d6e4 Bug 1474163 - Make use of sharedData for content theme data. r=mconley
MozReview-Commit-ID: Etz8huX2YCt

--HG--
rename : browser/modules/LightweightThemeChildListener.jsm => browser/modules/LightweightThemeChildHelper.jsm
extra : rebase_source : 913275a0002531ddefce19308fc13b3cfbf5efec
2018-07-13 16:21:34 +01:00
Gijs Kruitbosch 5c0e726193 Bug 1477670 - remove content handler code from browser/, r=florian,jkt
MozReview-Commit-ID: 3kS7yPdkjGs

--HG--
extra : rebase_source : 6aae9414ed8e5c2a31509f85ef0cbfc9b31895fd
2018-07-24 17:54:40 +01:00
Felipe Gomes 6e2a493f16 Bug 1369466 - Change consumers to the new location of RemotePageManager. r=mossop
MozReview-Commit-ID: 66YVrSfIpYj

--HG--
extra : rebase_source : 594e8b1ecd3338804efd598f65cc3d61b800306c
2018-07-26 22:09:12 -03:00
Mark Banner 6feaa5a9c3 Bug 1478308 - Remove unnecessary ChromeUtils.imports in browser/ r=mikedeboer
MozReview-Commit-ID: BYTDdLU2HoM

--HG--
extra : rebase_source : 1e31ff288280d09ae226cdc698331263ba969205
2018-07-25 09:10:07 +01:00
Narcis Beleuzu d47c829065 Backed out 4 changesets (bug 1478308) for ESlint failure on AttributionCode.jsm. CLOSED TREE
Backed out changeset a809b45ff49b (bug 1478308)
Backed out changeset c68131530742 (bug 1478308)
Backed out changeset 0e4ba7a6dc1a (bug 1478308)
Backed out changeset 32a27f317a77 (bug 1478308)
2018-07-26 11:13:28 +03:00
Mark Banner 180233c593 Bug 1478308 - Remove unnecessary ChromeUtils.imports in browser/ r=mikedeboer
MozReview-Commit-ID: BYTDdLU2HoM

--HG--
extra : rebase_source : 67dc15c0cdff0234d3274f1a8978d1f2a5b3f411
2018-07-25 09:10:07 +01:00
Andreea Pavel 8a01d542af Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-07-25 18:10:55 +03:00
Shane Caraveo 7962eacafd Bug 1344771 - Implement attribution on OSX using quarantine data, r=mossop,spohl
MozReview-Commit-ID: NgjE1HZS7M

--HG--
rename : browser/modules/AttributionCode.jsm => browser/components/attribution/AttributionCode.jsm
rename : browser/modules/test/unit/test_AttributionCode.js => browser/components/attribution/test/xpcshell/test_AttributionCode.js
extra : rebase_source : 197f427e0d2fcbdbe85d5ebe65067dcc9eee6407
2018-07-23 11:01:26 -03:00
Boris Zbarsky 270fa12c79 Bug 1476145 part 3. Stop using getInterface(nsIDOMWindowUtils) in browser/. r=gijs 2018-07-24 19:47:41 -04:00
Brian Grinstead 96dc530924 Bug 1476333 - Refer to AppConstants.BROWSER_CHROME_URL to get the browser URL from the frontend;r=Gijs
Before this change, we accessed the browser URL in the following ways:

- "chrome://browser/content/browser.xul"
- "chrome://browser/content/" (which redirects to chrome://browser/content/browser.xul)
- Services.prefs.getCharPref("browser.chromeURL") which returns "chrome://browser/content/"
- getBrowserURL() from utilityOverlay.js

MozReview-Commit-ID: I5vtRke1x9t

--HG--
extra : rebase_source : c525350a1954740873e85b045cbb14a8b43aa89d
2018-07-24 08:12:50 -07:00
Dale Harvey 8776031416 Bug 1476889 - Update autoplay copy. r=flod
MozReview-Commit-ID: D8Ss2U2gZ9q

--HG--
extra : rebase_source : 4987f9365b0a8eec31a7031cd2ffea342187aa84
2018-07-23 12:20:30 +01:00
shindli bcc9b73a57 Backed out changeset 590299c07f06 (bug 1474163) for AddressSanitizer failures on a CLOSED TREE.
--HG--
rename : browser/modules/LightweightThemeChildHelper.jsm => browser/modules/LightweightThemeChildListener.jsm
2018-07-23 21:35:34 +03:00
Tim Nguyen 47579db045 Bug 1474163 - Make use of sharedData for content theme data. r=mconley
MozReview-Commit-ID: Etz8huX2YCt

--HG--
rename : browser/modules/LightweightThemeChildListener.jsm => browser/modules/LightweightThemeChildHelper.jsm
extra : rebase_source : ac87b4f18f2d03a8da00726bc9b39604ffd2e73b
2018-07-13 16:21:34 +01:00
shindli fe6aa6d8b5 Backed out changeset 7fd40900b7c1 (bug 1474163) for assertion failure at /builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/dom/BindingUtils.h:1070 on a CLOSED TREE
--HG--
rename : browser/modules/LightweightThemeChildHelper.jsm => browser/modules/LightweightThemeChildListener.jsm
2018-07-23 20:41:23 +03:00
Tim Nguyen 2d03c6adef Bug 1474163 - Make use of sharedData for content theme data. r=mconley
MozReview-Commit-ID: Etz8huX2YCt

--HG--
rename : browser/modules/LightweightThemeChildListener.jsm => browser/modules/LightweightThemeChildHelper.jsm
extra : rebase_source : 00aa3b51403c5d8d9ac5fa3333f96567fe192613
2018-07-13 16:21:34 +01:00
Cosmin Sabou f58174c712 Backed out changeset f840add2cdd4 (bug 1474163) for causing mochitest frequent leaks.
--HG--
rename : browser/modules/LightweightThemeChildHelper.jsm => browser/modules/LightweightThemeChildListener.jsm
2018-07-23 16:29:05 +03:00
Tim Nguyen a874fa36fa Bug 1474163 - Make use of sharedData for content theme data. r=mconley
MozReview-Commit-ID: Etz8huX2YCt

--HG--
rename : browser/modules/LightweightThemeChildListener.jsm => browser/modules/LightweightThemeChildHelper.jsm
extra : rebase_source : bed95f7e99c88d22821b55b4e4b7b4ba15dcbe19
2018-07-13 16:21:34 +01:00
trisha fbed68adb3 Bug 1463759 Change the copy of certificate error pages r=johannh
MozReview-Commit-ID: LbZBwSk1xX4

--HG--
extra : rebase_source : 27329d727b15b7310df81494d16de38bd0760d42
2018-07-04 18:15:43 +05:30
Doug Thayer 04f1e1bc1e Bug 1476238 - Use nsresult/promise rejection in initListBuild r=Gijs
I mistranslated the boolean success value of the old initListBuild
method. Simplifying it to just use a promise rejection should be
equivalent and simpler, since this is only run from the update
method of WindowsJumpLists, and the call sites for that don't do
anything afterwards.

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

--HG--
extra : moz-landing-system : lando
2018-07-20 16:56:01 +00:00
Dale Harvey a0acdad553 Bug 1476561 - Fix autoplay notification icon. r=johannh
MozReview-Commit-ID: BZhTOnhgY8n

--HG--
extra : rebase_source : 9c1a4e57203197f57e6e1a4d45f5980755dc1984
2018-07-19 21:17:44 +01:00
Alex Chronopoulos 367ccc1325 Bug 1152401 - Add MediaDeviceKind member in MediaDevice to differentiate sink devices. r=jib
MozReview-Commit-ID: E6SGabjpqIA

--HG--
extra : rebase_source : ec79f2f8d949334209c0346e624fa4b16c8732a5
2018-07-16 11:29:12 +02:00
Margareta Eliza Balazs 0cf58ddcab Backed out 9 changesets (bug 1152401) for android gv-junit failures org.mozilla.geckoview.test.PermissionDelegateTest.media on a CLOSED TREE
Backed out changeset 987f2e0b2cb1 (bug 1152401)
Backed out changeset e45630a7c7b1 (bug 1152401)
Backed out changeset 95661c6cd914 (bug 1152401)
Backed out changeset d68ab111809f (bug 1152401)
Backed out changeset 10b039210911 (bug 1152401)
Backed out changeset aebabaa96ad3 (bug 1152401)
Backed out changeset 93457990e40f (bug 1152401)
Backed out changeset 1630f67ac197 (bug 1152401)
Backed out changeset aef64bf5b024 (bug 1152401)
2018-07-19 13:35:58 +03:00
Alex Chronopoulos 0e13e8f104 Bug 1152401 - Add MediaDeviceKind member in MediaDevice to differentiate sink devices. r=jib
MozReview-Commit-ID: E6SGabjpqIA

--HG--
extra : rebase_source : ec79f2f8d949334209c0346e624fa4b16c8732a5
2018-07-16 11:29:12 +02:00
Mark Striemer 26b09659c7 Bug 1470947 - Part 2: Call _tabAttrModified on busy and progress changes r=dao
This fixes the tab throbbers not showing sometimes and not showing
the progress state in the all tabs menu.

MozReview-Commit-ID: FintGto9e9g

--HG--
extra : rebase_source : f83a0184e79be433d1f3e975d28e0f70a668a9c6
2018-06-25 11:30:44 -04:00
Mark Striemer 7d0d7441d1 Bug 1470947 - Part 1: Remove visible tab indicator from all tabs menu r=dao
MozReview-Commit-ID: CliduvaGqUb

--HG--
extra : rebase_source : 554a305ac628f077d5b24ab82323f71b143d1be8
2018-06-25 11:30:07 -04: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
Dale Harvey c9e5e7c554 Bug 1470082 - Change autoplay checkbox to combobox. r=cpearce,flod,johannh
MozReview-Commit-ID: E71TxvgfJlJ

--HG--
extra : rebase_source : 30ca63df77e48a44de4d3e90182440c3937ed32f
2018-06-29 14:14:33 +01:00
Tiberius Oros d701ae940f Merge inbound to mozilla-central. a=merge 2018-07-18 00:55:33 +03:00
Julian Descottes 28776da332 Bug 1449968 - Add support for Inspect Element in Shadow DOM;r=bgrins
MozReview-Commit-ID: HhwyDMyZe1k

--HG--
rename : devtools/client/inspector/markup/test/browser_markup_shadowdom_pick_nested.js => devtools/client/inspector/markup/test/browser_markup_shadowdom_nested_pick_inspect.js
extra : rebase_source : 4276e3f88251075fd41d1e7f41a2f229be905f99
2018-07-05 18:48:24 +02:00
Kris Maglione e13b4d0e20 Bug 1474155: Part 4 - Move ClickEventHandler to a separate JSM. r=mconley
MozReview-Commit-ID: Agroe5P3vim

--HG--
rename : browser/base/content/content.js => browser/modules/ClickEventHandler.jsm
extra : rebase_source : f87aa3c390836d86b266478b59c3313e3fa476b5
extra : histedit_source : d6ea61b389fc45080d370b915c3eb2d879da59e4
2018-07-07 20:28:32 -07:00
Ursula Sarracini 95af8b91ca Bug 1474410 - Move ActivityStream instantiation and uninit into AboutNewTab r=Mardak
MozReview-Commit-ID: 5PupSQra62m

--HG--
extra : rebase_source : ae481f0884f827e61eb6d611a5e5a154f824a58e
2018-07-16 11:58:35 -04:00
Chris Pearce 5d98d9108c Bug 1471485 - Hide autoplay permission doorhanger if user plays video. r=johannh
If we're showing a permission UI prompt for "autoplay-media", the user can
still actually play media without interacting with the doorhanger; if they
click a "play" button in the document, they'll "gesture activate" the document
and unblock autoplay and be able to start playback.

It doesn't make sense to keep showing the permission doorhanger to approve
autoplay when the page is already playing, as playback has already started, and
if they clicked on "block" then the site would receive a promise reject on the
promise returned on the first call to HTMLMediaElement.play() for which we were
showing the permission prompt for, even though the media is actually playing.
This will likely confuse JS video players.

So we should hide the permission prompt when playback in the page starts.

MozReview-Commit-ID: 1XU47AfT6vf

--HG--
extra : rebase_source : 3d5c164527e26ba8f58f0baac3474d5b2d7fb587
2018-07-03 11:17:16 +12:00
Doug Thayer c9cbf586a8 Bug 1425144 - Init Jump list on lazy idle thread (js) r=Gijs
This is just the js side of the equation for initting jump lists
on a background thread. It should just be functionally equivalent
to the old code with the exception that it works asynchronously
on a promise of an array of urls rather than an nsIMutableArray.

MozReview-Commit-ID: 2handMr6FWS

--HG--
extra : rebase_source : bcd71b96778a3bbcc141513c9e5b0213accf8705
2018-07-10 15:34:28 -07:00
Axel Hecht 5bdc727943 Bug 721211: consolidate home page retrieval code, make it support non-localized prefs, r=jaws
Also changes the tooltip on the home button to be independent of the URLs
it opens, per dolske.

Some tests explicitly set browser.startup.homepage, but only through
SpecialPowers.putPrefEnv. That's a good compromise, given the extra
functionality there.

MozReview-Commit-ID: FPLxzi3jQAP

--HG--
extra : rebase_source : c2b014f2fb1c78ce04859344bd1803ef48d5d68d
2018-05-28 12:38:01 +02:00
Dave Townsend dc25178740 Bug 1474431: Clear references to FaviconLoader and its channel when possible. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D2042

--HG--
extra : moz-landing-system : lando
2018-07-10 13:44:05 +00:00
Michael Kelly 41a5d0da21 Bug 1470505: Disable browser error collection for webextension errors. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D1792

--HG--
extra : moz-landing-system : lando
2018-07-09 18:27:22 +00:00
Tim Nguyen e6c156f9ed Bug 1347204 - Implement the colors.ntp_background and colors.ntp_text properties. r=mconley
MozReview-Commit-ID: En8HajryiJS

--HG--
extra : rebase_source : 97b007626fc9c9ed6f49b3153b02a883b293ca08
2018-04-12 16:48:23 -04:00
Cosmin Sabou 4d56fa5458 Backed out 2 changesets (bug 1347204) for ESlint failure on browser_ext_themes_ntp_colors. CLOSED TREE
Backed out changeset 29caa8009784 (bug 1347204)
Backed out changeset 46922541d170 (bug 1347204)
2018-07-06 01:13:43 +03:00
Tim Nguyen 7620721be3 Bug 1347204 - Implement the colors.ntp_background and colors.ntp_text properties. r=mconley
MozReview-Commit-ID: En8HajryiJS

--HG--
extra : rebase_source : b0b321418a68c134772616cc47ab883f8ffb9078
2018-04-12 16:48:23 -04:00
Michael Kelly b6450821b2 Bug 1471204: Disable browser error telemetry tests when scalars expire. r=Gijs,chutten
Differential Revision: https://phabricator.services.mozilla.com/D1891

--HG--
extra : moz-landing-system : lando
2018-07-05 16:12:13 +00:00
Dave Townsend 711c06e26b Bug 1473264: Catch failures to get the favicon expiration. r=mak
This ignores failures to get expiration data from favicon requests. It also adds
some safety to the rest of onStopRequest wrapping it in a try...catch block to
catch any unexpected errors and correctly reject the waiting promise.

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

--HG--
extra : moz-landing-system : lando
2018-07-04 12:36:13 +00:00
Dave Townsend fd6bf727ed Bug 1472477: Follow redirects when loading favicons. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D1902

--HG--
extra : moz-landing-system : lando
2018-07-02 13:44:47 +00:00