Commit Graph

8865 Commits

Author SHA1 Message Date
Gijs Kruitbosch
dc78268f2e Bug 1545123 - move reading pluginreg and scanning for plugins to a background thread, r=handyman,mconley
Finally, let's move the actual IO away from the main thread.

This means there are now 3 ways of looking for plugins:
1. looking for changes from ReloadPlugins. This runs the PluginFinder runnable
   on the main thread.
2. loading plugins from LoadPlugins. This will:
   a) first check prefs and report the flash plugin based on that information,
      if the prefs indicate it exists (using the callback provided by
      nsPluginHost).
   b) then hopefully dispatch to a background thread, where it will read
      pluginreg.dat, scan the appropriate folders on disk, and see if
      anything changed. Once done, it sets mFinishedFinding to true and
      re-dispatches itself to the main thread.
   c) then on the main thread, it reports any changes to nsPluginHost.
3. if dispatching in 2(b) fails, we will run steps (b) and (c) on the main
   thread.

Note: if ReloadPlugins is called, we intiially do (1), but if we find
changes, we clear out the set of known plugins and then run LoadPlugins
again (meaning we go through 2 (or 3 if 2(b) fails)). This is how
reloading plugins worked prior to my changes and I've attempted not to
change it.

In order for this to work, there are some other changes in this commit:

- the sandbox prefs are being read "early" and cached for flash vs
  "everything else". We can't access prefs on non-main threads without
  using StaticPrefs, which doesn't seem worth it here.
- some of the plugin tag classes are moved to threadsafe refcounting.
  This is a bit unfortunate, but because they're instantiated on a non-
  mainthread, and then later used on the main thread, despite the
  fact that the architecture means nothing tries to touch them from
  more than one thread at once, without threadsafe refcounting we hit
  asserts in debug mode if we add references to them back on the main thread.
- we add shutdown blocking for pluginfinding. We don't really want to
  be halfway through finding plugins and then trying to shut them down,
  or re-instantiating plugins after they've been unloaded.
- we keep a reference to the "pending" pluginfinder instance while
  doing lookups away from the main thread (ie (2)), to avoid re-entrancy or
  trying to write to pluginreg while we're reading it somewhere else,
  etc. If there's an attempt to do more plugin finding while this is
  ongoing, we flip mDoReloadOnceFindingFinished and do a reload once
  our initial lookups are complete.

Depends on D48331

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

--HG--
extra : moz-landing-system : lando
2019-10-30 15:53:15 +00:00
Mark Striemer
966031d6f8 Bug 1525175 - Part 3: Move system message bars into HTML views r=rpl,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D47804

--HG--
extra : moz-landing-system : lando
2019-11-01 16:01:38 +00:00
Mark Striemer
2fa34a861c Bug 1525175 - Part 2: Position panel-list elements based on triggering event r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D46228

--HG--
extra : moz-landing-system : lando
2019-11-01 16:01:31 +00:00
Mark Striemer
d9f5739109 Bug 1525175 - Part 1: Convert about:addons header to HTML r=rpl,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D43610

--HG--
rename : toolkit/mozapps/extensions/test/browser/browser_bug567127.js => toolkit/mozapps/extensions/test/browser/browser_page_options_install_addon.js
rename : toolkit/mozapps/extensions/test/browser/browser_bug570760.js => toolkit/mozapps/extensions/test/browser/browser_search_bar_focus.js
extra : moz-landing-system : lando
2019-11-01 16:26:32 +00:00
Gijs Kruitbosch
02792a426f Bug 1592600 - fix prefs link in about:addons to ignore hashes/fragments as well as right clicks, r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D51286

--HG--
extra : moz-landing-system : lando
2019-11-01 17:46:09 +00:00
Neil Deakin
01f6409a03 Bug 1590752, remove now unneeded content.js framescript, r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D50585

--HG--
extra : moz-landing-system : lando
2019-10-31 10:11:52 +00:00
Andrew McCreight
07dc2afa5b Bug 1586393, part 2 - Fix BrowserTestUtils.addContentEventListener() with Fission. r=mconley
The current implementation of addContentEventListener() is centered
around the message manager. When any message manager goes away, it
cleans up everything, which does not work when Fission is enabled and
we do a cross-process navigation.

My new implementation instead uses window actors. Message manager
shared state is used to store the set of expected event listeners. New
windows, after the function is called for the first time in a test,
will get listeners added properly. Of windows that exist at the first
time the function is called in a test, only windows associated with
the BC of the browser that is passed in will get added, which is a
disadvantage relative to the current setup. That could probably be
fixed.

We auto remove at the end of the test, not when any message manager is
torn down, so there's never a need to disable auto removal.

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

--HG--
extra : moz-landing-system : lando
2019-10-29 21:29:02 +00:00
Sean Feng
74eaf3ce20 Bug 1592083 - Convert certList to raw array for nsITransportSecurityInfo r=keeler,Ehsan,kershaw
This patch converts the certList attribute of nsITransportSecurityInfo
from nsIX509CertList to Array<nsIx509Cert>

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

--HG--
extra : moz-landing-system : lando
2019-10-29 17:20:07 +00:00
Tomislav Jovanovic
c9669e07c3 Bug 1591736 - Fix AddonManagerWebAPI::IsAPIEnabled in out-of-process iframes r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D50713

--HG--
extra : moz-landing-system : lando
2019-10-28 21:51:30 +00:00
Luca Greco
e55ba5638c Bug 1586973 - Fix typo in Telemetry assertEvents filter parameter used by browser_interaction_telemetry.js. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D50841

--HG--
extra : moz-landing-system : lando
2019-10-28 19:58:59 +00:00
Paul Zuehlcke
c462a0fcba Bug 1422056 - Updated tests to account for permission manager OA stripping. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D48665

--HG--
extra : moz-landing-system : lando
2019-10-24 14:19:57 +00:00
Aaron Klotz
4aa92ef8e6 Bug 1485057: Fix makensis.mk to allow helper.exe to build incrementally; r=mshal
Differential Revision: https://phabricator.services.mozilla.com/D16919

--HG--
extra : moz-landing-system : lando
2019-10-24 23:49:56 +00:00
Cosmin Sabou
c734bcf655 Bug 1590136 - Disable browser_block_fullscreen_prompt.js on mac debug for frequent failures. r=egao
Differential Revision: https://phabricator.services.mozilla.com/D50385

--HG--
extra : moz-landing-system : lando
2019-10-24 01:23:25 +00:00
Shane Caraveo
ef6d2edce8 Bug 1581852 handle incognito checkbox for consecutive installs r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D49669

--HG--
extra : moz-landing-system : lando
2019-10-23 21:38:56 +00:00
Tomislav Jovanovic
6224294d28 Bug 1589885 - Fix two xpinstall/browser_badargs* tests with fission r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D49831

--HG--
extra : moz-landing-system : lando
2019-10-21 23:00:45 +00:00
shindli
e951c7608b Backed out changeset bfee70929e1a (bug 1589885) for causing linting failure in /builds/worker/checkouts/gecko/toolkit/mozapps/extensions/test/xpinstall/browser_localfile2.js CLOSED TREE 2019-10-22 00:48:25 +03:00
Tomislav Jovanovic
0713623dcf Bug 1589885 - Fix two xpinstall/browser_badargs* tests with fission r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D49831

--HG--
extra : moz-landing-system : lando
2019-10-21 18:10:16 +00:00
Mihai Alexandru Michis
44e67f1a7f Backed out changeset 11e5baee978e (bug 1580315) for issues related to certList. CLOSED TREE 2019-10-21 23:50:35 +03:00
Sean Feng
2279d51cf5 Bug 1580315 - Convert certList to raw array for nsITransportSecurityInfo r=keeler,Ehsan,kershaw
This patch converts the certList attribute of nsITransportSecurityInfo
from nsIX509CertList to Array<nsIx509Cert>

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

--HG--
extra : moz-landing-system : lando
2019-10-21 19:49:01 +00:00
Sylvestre Ledru
7c309095ea Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
Please note that it is the first reformat with clang-format 9
I only saw a fix in the .mm file

# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-10-21 14:13:44 +00:00
Gijs Kruitbosch
dd9ea7239d Bug 1589410 - fix how remote-settings blocklist handles the absence of a blockID property in the blocklist entry, r=leplatrem
Differential Revision: https://phabricator.services.mozilla.com/D49673

--HG--
extra : moz-landing-system : lando
2019-10-18 20:55:56 +00:00
Shane Caraveo
3812c7138b Bug 1558326 re-enable test browser_block_fullscreen_prompt.js r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D49661

--HG--
extra : moz-landing-system : lando
2019-10-18 16:58:35 +00:00
Kris Maglione
e7fd10bd79 Bug 1585776 - Fix XPInstall content handler under Fission. r=nika
The XPInstall content handlers currently make all sorts of assumptions about
the process they're being run in and the docShell their request is tied to.
These assumptions don't hold under Fission, either now, when they may be
called just after a process switch, or in the future, when they'll be called
in the parent process.

This patch updates them to operate on the BrowsingContext of the request, and
to do their messaging via the process message manager, rather than via frame
message managers. As a bonus, it also removes the existing hacks they had in
place to handle the cases where frame message managers didn't work.

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

--HG--
extra : moz-landing-system : lando
2019-10-18 01:35:33 +00:00
Tomislav Jovanovic
c12a764d36 Bug 1589508 - Fix three xpinstall/browser_enabled* tests r=mixedpuppy
[browser_enabled.js]
[browser_enabled2.js]
[browser_enabled3.js]

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

--HG--
extra : moz-landing-system : lando
2019-10-17 21:45:53 +00:00
Andrew McCreight
2e32ec2b4b Bug 1589138 - Make addContentEventListener take an options object for the listener. r=Gijs
All but browser_bug744745.js seem to pass even without the fixes I
made, which seems odd.

browser_bug1058164.js is a little odd because it passes in {} instead
of a boolean for the useCapture argument. I think this ends up calling
addEventListener(..., {}, false), which should be the equivalent of
addEventListener(..., {}).

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

--HG--
extra : moz-landing-system : lando
2019-10-16 17:36:44 +00:00
Luca Greco
b3de1edab5 Bug 1576472 - Fix browser_about_debugging_link.js intermittent failure due to RDP requests pending while closing the tab. r=jdescottes
browser_about_debugging_link.js is testing the page options that open (or switch) to about:debugging
from about:addons.

This test seems to be failing intermittently because there are pending RDP requests when the about:debugging
tab is being closed once the test is completed.

We already had a similar issue before and at the time daisuke provided us the test helpers currently used
in the test to wait for the tabs, workers and extensions to be populated in the store.

Unfortunately this doesn't seem enough anymore, especially with fission enabled the test is keep
failing because it seems that some new RDP requests are pending when we are closing the tab
(from the stacktrace it seems that the pending requests are triggered by the "processes updates listener").

The waitForRequestsToSettle test helper used in some other about:debugging tests seems to be able to fix
the intermittent failure (trying on linux64 debug locally it passed test-verify multiple times).

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

--HG--
extra : moz-landing-system : lando
2019-10-14 13:16:29 +00:00
Abdoulaye Oumar Ly
a0898dc653 Bug 1505916 - [Fission] Part 1: Make the fullscreen code work with JSWindowActors. r=NeilDeakin,dao,smaug
At this point, fullscreen is not regressed but it doesn't work with oop iframes yet.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 14:30:28 +00:00
Luca Greco
262712a461 Bug 1580561 - Part 2a: Add amo entry point to telemetry event definition and related test assertions. r=janerik
Depends on D46025

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

--HG--
extra : moz-landing-system : lando
2019-10-10 21:23:00 +00:00
Luca Greco
9da1e2339a Bug 1580561 - Part 2: Extend mozAddonManager API to allow AMO to handoff reports to the integrated abuse report panel. r=kmag,zombie,webidl,smaug
Depends on D46024

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

--HG--
extra : moz-landing-system : lando
2019-10-10 22:53:08 +00:00
Luca Greco
045726bf55 Bug 1580561 - Part 1a: Add test case for the AMO details used by the abuse report panel. r=mixedpuppy
Depends on D46021

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

--HG--
extra : moz-landing-system : lando
2019-10-10 23:06:34 +00:00
Luca Greco
941ac88426 Bug 1580561 - Part 1: AbuseReporter should retrieve the addon details from AMO for non installed addons. r=mixedpuppy
Depends on D46362

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

--HG--
extra : moz-landing-system : lando
2019-10-10 23:06:06 +00:00
Robert Strong
bfaa253620 Bug 1587841 - properly null terminate the uuid string returned by GetSecureID in updater.cpp. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D48872

--HG--
extra : moz-landing-system : lando
2019-10-10 16:00:16 +00:00
Mark Striemer
aa5a36985b Bug 1580962 - Show a SUMO link when an add-on can't be removed r=rpl,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D48128

--HG--
extra : moz-landing-system : lando
2019-10-09 18:46:23 +00:00
Dave Townsend
1c67b00d98 Bug 1586216: Fallback to a synchronous channel load if the url preloader cannot load the ftl file. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D48726

--HG--
extra : moz-landing-system : lando
2019-10-09 17:50:33 +00:00
Gurzau Raul
f0739b1205 Backed out changeset 10c62a0c06f0 (bug 1580962) for remove button related failures at browser_policy_extensions.js on a CLOSED TREE. 2019-10-09 20:26:52 +03:00
Mark Striemer
be025da362 Bug 1580962 - Show a SUMO link when an add-on can't be removed r=rpl,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D48128

--HG--
extra : moz-landing-system : lando
2019-10-08 16:27:43 +00:00
Paul Zuehlcke
53a3c77cec Bug 1583665 - Fixed AddonManager.jsm fullscreen check to only cancel installation for DOM fullscreen. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D47933

--HG--
extra : moz-landing-system : lando
2019-10-09 09:28:19 +00:00
John Lin
36bb9562d3 Bug 1581902 - p4: add HW H.264 feature to GfxInfo. r=esawin
Recycle FEATURE_WEBRTC_HW_ACCELERATION constant and rename it for H.264.

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

--HG--
extra : moz-landing-system : lando
2019-10-08 17:15:44 +00:00
Robert Strong
de030c48f8 Bug 1510494 - fix crash when running xpcshell tests on Windows 7 debug builds. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D48557

--HG--
extra : moz-landing-system : lando
2019-10-08 15:20:05 +00:00
Robert Strong
d199f64c18 Bug 1510494 - write elevated updater log and status files to a new directory in the Maintenance Service directory. r=agashlin,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D46627

--HG--
extra : moz-landing-system : lando
2019-10-08 15:10:29 +00:00
Tomislav Jovanovic
eee38da669 Bug 1578420 - Fix test_delay_update_webextension to actually wait for extension startup after restart r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D48259

--HG--
extra : moz-landing-system : lando
2019-10-07 14:24:53 +00:00
Daniel Varga
27d99ab2df Backed out 6 changesets (bug 1581902) for xpcshell failure at xpcshell/rs-blocklist/test_gfxBlacklist_Equal_DriverNew.js. On a CLOSED TREE
Backed out changeset c900fdf28f82 (bug 1581902)
Backed out changeset 92c9ea70040d (bug 1581902)
Backed out changeset 1f588b5bf019 (bug 1581902)
Backed out changeset f837f2c5224f (bug 1581902)
Backed out changeset 44e248976099 (bug 1581902)
Backed out changeset c7dfff053f71 (bug 1581902)
2019-10-07 23:07:36 +03:00
Junior Hsu
1f16c48cd1 Bug 1584005 - P2 fix tests with wrong parameter to ZipWriter r=michal
Differential Revision: https://phabricator.services.mozilla.com/D47359

--HG--
extra : moz-landing-system : lando
2019-10-07 18:29:15 +00:00
John Lin
572a122361 Bug 1581902 - p4: add HW H.264 feature to GfxInfo. r=esawin
Recycle FEATURE_WEBRTC_HW_ACCELERATION constant and rename it for H.264.

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

--HG--
extra : moz-landing-system : lando
2019-10-01 16:54:34 +00:00
Luca Greco
562194ec83 Bug 1580554 - AbuseReporter.openDialog should close and resolve as user cancelled a previous report dialog. r=mstriemer
Depends on D46019

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

--HG--
extra : moz-landing-system : lando
2019-10-07 16:03:20 +00:00
Luca Greco
b6e9ea77e6 Bug 1580554 - Move common report test cases into head_abuse_report.js and run them on sub-frame and dialog mode. r=mstriemer
Move test helpers and the common abuse report test cases (the ones that should run in sub-frame and dialog window mode)
into an head_abuse_report.js support file, then run all the common test cases from browser_html_abuse_report.js
(in sub-frame mode) and browser_html_abuse_report_dialog.js (in dialog window mode).

Depends on D45571

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

--HG--
rename : toolkit/mozapps/extensions/test/browser/browser_html_abuse_report.js => toolkit/mozapps/extensions/test/browser/head_abuse_report.js
extra : moz-landing-system : lando
2019-10-07 16:03:08 +00:00
Luca Greco
ac81c98b57 Bug 1580554 - Set a localized title on the abuse report dialog window. r=fluent-reviewers,flod,mstriemer
Depends on D45570

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

--HG--
extra : moz-landing-system : lando
2019-10-07 16:02:50 +00:00
Luca Greco
b62acf4aca Bug 1580554 - Open abuse report panel in a separate dialog window. r=mstriemer
Introduced a new "extensions.abuseReport.openDialog" pref:
- when set to false (current default): the abuse report panel is opened
  as a subframe of the about:addons tab
- when set to true: the abuse report panel is opened in its own dialog window

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

--HG--
extra : moz-landing-system : lando
2019-10-07 16:02:38 +00:00
Neil Deakin
71ba434e0a Bug 1573839, modify BrowserTestUtils.synthesizeMouse/Key/etc to handle fission. Remove support for passing arrays of selectors and instead modify the last argument to be a browsing context, or browser. Fix up tests that use this obsolete form, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D46307

--HG--
extra : moz-landing-system : lando
2019-10-07 08:51:52 +00:00
Sylvestre Ledru
f12b9fa5c3 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-10-06 18:29:55 +00:00