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

636507 Коммитов

Автор SHA1 Сообщение Дата
Kris Maglione 742b6ab14b Bug 1524688: Part 7 - Convert process singletons to static registration r=mconley
--HG--
rename : toolkit/components/processsingleton/ContentProcessSingleton.js => toolkit/components/processsingleton/ContentProcessSingleton.jsm
rename : toolkit/components/processsingleton/MainProcessSingleton.js => toolkit/components/processsingleton/MainProcessSingleton.jsm
extra : rebase_source : 6842e09777db559a25e94118fd64b18079616c6f
2019-01-29 18:32:37 -08:00
Kris Maglione 5990d491bd Bug 1524688: Part 6 - Convert profile migrators to static registration r=MattN
--HG--
rename : browser/components/migration/360seProfileMigrator.js => browser/components/migration/360seProfileMigrator.jsm
rename : browser/components/migration/ChromeProfileMigrator.js => browser/components/migration/ChromeProfileMigrator.jsm
rename : browser/components/migration/EdgeProfileMigrator.js => browser/components/migration/EdgeProfileMigrator.jsm
rename : browser/components/migration/FirefoxProfileMigrator.js => browser/components/migration/FirefoxProfileMigrator.jsm
rename : browser/components/migration/IEProfileMigrator.js => browser/components/migration/IEProfileMigrator.jsm
rename : browser/components/migration/ProfileMigrator.js => browser/components/migration/ProfileMigrator.jsm
rename : browser/components/migration/SafariProfileMigrator.js => browser/components/migration/SafariProfileMigrator.jsm
extra : rebase_source : cf4686c0caab1ee3fef97f75380341461732ea90
2019-01-29 18:20:19 -08:00
Kris Maglione d7b92ec19c Bug 1524688: Part 5 - Convert Places components to static registration r=mak
--HG--
rename : toolkit/components/places/ColorAnalyzer.js => toolkit/components/places/ColorAnalyzer.jsm
rename : toolkit/components/places/PageIconProtocolHandler.js => toolkit/components/places/PageIconProtocolHandler.jsm
rename : toolkit/components/places/PlacesCategoriesStarter.js => toolkit/components/places/PlacesCategoriesStarter.jsm
rename : toolkit/components/places/nsPlacesExpiration.js => toolkit/components/places/PlacesExpiration.jsm
rename : toolkit/components/places/nsTaggingService.js => toolkit/components/places/TaggingService.jsm
rename : toolkit/components/places/UnifiedComplete.js => toolkit/components/places/UnifiedComplete.jsm
extra : rebase_source : 9359cab414a24df31b287b9d980639ab560b8cf4
2019-01-29 18:02:04 -08:00
Kris Maglione d1eaf36a3b Bug 1524688: Part 4 - Convert UpdateService to static registration r=mhowell
--HG--
rename : toolkit/mozapps/update/nsUpdateService.js => toolkit/mozapps/update/UpdateService.jsm
rename : toolkit/mozapps/update/nsUpdateServiceStub.js => toolkit/mozapps/update/UpdateServiceStub.jsm
extra : rebase_source : a1af0d3ad9ae3ed0333864bdc50f61656c992345
2019-01-29 17:46:17 -08:00
Kris Maglione b8409da492 Bug 1524688: Part 3 - Convert PeerConnection to static registration r=jib
--HG--
rename : dom/media/PeerConnection.js => dom/media/PeerConnection.jsm
extra : rebase_source : 2c18cf151143babf414a2135ec2c7a64b7e976ed
2019-01-29 17:44:56 -08:00
Kris Maglione 075d41c086 Bug 1524688: Part 2 - Convert BrowserGlue and friends to static registration. r=mconley
--HG--
rename : browser/components/nsBrowserContentHandler.js => browser/components/BrowserContentHandler.jsm
rename : browser/components/nsBrowserGlue.js => browser/components/BrowserGlue.jsm
rename : browser/components/protocolhandler/WebProtocolHandlerRegistrar.js => browser/components/protocolhandler/WebProtocolHandlerRegistrar.jsm
extra : rebase_source : ce505f146ec12ec4c191039ae7004a723dc1c376
2019-01-29 17:44:35 -08:00
Kris Maglione 7ac4131a79 Bug 1524688: Part 1b - Support static JavaScript components in browser_all_files_referenced. r=mccr8
--HG--
extra : rebase_source : ce03c5869f13ed42fda024a3dca1320b907e18ad
2019-01-31 14:24:37 -08:00
Kris Maglione 447a46e33e Bug 1524688: Part 1a - Support static registration JS components. r=mccr8
--HG--
extra : rebase_source : b693f61d803dcebc625a697f88c9ec25f287d956
2019-01-29 17:46:27 -08:00
Kris Maglione 47c2c349a9 Bug 1524687: Part 12 - Convert everything else to static registration. r=erahm
--HG--
extra : rebase_source : 17756d218c39acadefbc6af9ef7ce31beef1ff36
2019-01-29 16:03:41 -08:00
Kris Maglione da032a5855 Bug 1524687: Part 11 - Convert browser modules to static registration. r=mossop
--HG--
extra : rebase_source : 005f3285fd136cb3e635efd0b50e0d200848b2b3
2019-01-25 16:41:53 -08:00
Kris Maglione ce35e49d4b Bug 1524687: Part 10 - Convert Windows widget module to static registration. r=erahm
--HG--
extra : rebase_source : 11703842effd4728b0d206bd7e9da9880a909219
2019-01-25 15:20:36 -08:00
Kris Maglione 2fdac262ce Bug 1524687: Part 9 - Convert gtk widget module to static registration. r=erahm
--HG--
extra : rebase_source : 86dc5b7cb29741bd67787d55e7198e204cfdb2d5
2019-01-24 17:27:24 -08:00
Kris Maglione 5328226b16 Bug 1524687: Part 8 - Convert remaining toolkit modules to static registration. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D18403

--HG--
extra : rebase_source : 9e44d8428aa1b2ba01b46e17964bca9d6f904367
2019-01-24 16:34:52 -08:00
Kris Maglione 811288342a Bug 1524687: Part 7 - Convert media bridge module to static registration. r=jesup
Differential Revision: https://phabricator.services.mozilla.com/D18402

--HG--
extra : rebase_source : 5883f1052577f8949cba472c9e65db903571026a
2019-01-24 16:07:39 -08:00
Kris Maglione 28bef88d35 Bug 1524687: Part 6 - Convert intl modules to static registration. r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D18401

--HG--
extra : rebase_source : 2b2e5c21bbfb2742c2dffa945269f3a233c1fd63
2019-01-24 15:58:31 -08:00
Kris Maglione 446bd30cde Bug 1524687: Part 5 - Convert JAR module to static registration. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D18400

--HG--
extra : rebase_source : 08e0e711161d0853f39647b0f98ab534fc03d2d4
2019-01-24 15:49:33 -08:00
Kris Maglione a0c0a5b1cd Bug 1524687: Part 4 - Convert Places module to static registration. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D18399

--HG--
extra : rebase_source : c00f25e481e74a9f65fa82752acd1865a6b283fe
2019-01-24 15:46:19 -08:00
Kris Maglione 69c029cba1 Bug 1524687: Part 3 - Convert nsImageModule to static registration. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D18398

--HG--
extra : rebase_source : f706513d05bf84c3a542a14986195550fc443385
2019-01-24 15:40:58 -08:00
Kris Maglione 85ac6775b5 Bug 1524687: Part 2 - Convert most of the embedding module to static registration. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D18397

--HG--
extra : rebase_source : e1b5638fd2ec08f9d934a41020d2b666e30715e7
2019-01-24 15:32:56 -08:00
Kris Maglione 01cd56a799 Bug 1524687: Part 1 - Convert PaymentRequestModule to static manifest. r=edenchuang
Differential Revision: https://phabricator.services.mozilla.com/D18396

--HG--
extra : rebase_source : fdd2d1d7e4164c3d6e3a82f222c2f9dab5469a84
2019-01-24 15:14:54 -08:00
Kris Maglione 9ac7ac8e31 Bug 1524687 - Part 0: Fix more dodgy component mocking code. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D18395

--HG--
extra : rebase_source : 7b77e0b58bcc29d83bb389ec1fb1516375a6ebbd
2019-01-31 12:27:15 -08:00
Alexander Surkov c60f2971fc Bug 1519533 - convert formautofill autocomplete-profile-listitem bindings to CE, r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D19257

--HG--
rename : browser/extensions/formautofill/content/formautofill.xml => browser/extensions/formautofill/content/customElements.js
2019-02-08 22:57:03 -05:00
Mike Hommey 6815fbc628 Backout changeset 8f7958c7d3e5 (bug 1431523) to give time to docker images, etc. to build without blocking other landings.
--HG--
rename : taskcluster/docker/debian-raw/cloud-mirror-workaround.sh => taskcluster/docker/debian-base/cloud-mirror-workaround.sh
rename : taskcluster/docker/debian-raw/setup_packages.sh => taskcluster/docker/debian-base/setup_packages.sh
2019-02-14 09:37:02 +09:00
Mike Hommey ced4e4afa4 Bug 1431523 - Use docker images for debian package tasks. r=dustin
We however leave moving the packages building to a script for another
day.

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


--HG--
rename : taskcluster/docker/debian-base/cloud-mirror-workaround.sh => taskcluster/docker/debian-raw/cloud-mirror-workaround.sh
rename : taskcluster/docker/debian-base/setup_packages.sh => taskcluster/docker/debian-raw/setup_packages.sh
2019-02-14 09:36:39 +09:00
Michal Novotny 8412fac97f Bug 1525900 - Remove unused code from old cache. r=mayhemer 2019-02-07 05:49:00 +02:00
Kris Maglione 258bee16d9 Bug 1489496: Add diagnostics for strange failures. r=me,test-only 2019-02-13 15:31:40 -08:00
shindli 54aa04bfd1 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-02-13 23:36:24 +02:00
Jason Laster 395b694a1e Bug 1527629 - Enable Log Points. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D19667

--HG--
extra : moz-landing-system : lando
2019-02-13 17:14:13 +00:00
Tooru Fujisawa cd1eff2104 Bug 1526234 - Add --dump-bytecode to fuzz-flags.txt. r=gkw
Differential Revision: https://phabricator.services.mozilla.com/D19136

--HG--
extra : moz-landing-system : lando
2019-02-13 11:56:49 +00:00
Jim Blandy ed1c6b0878 Bug 1145201: xpcshell test: Debugger callbacks protect debuggee's microtask queue. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D17548

--HG--
extra : moz-landing-system : lando
2019-02-12 08:11:02 +00:00
Jim Blandy 7360a10f30 Bug 1145201: Use AutoDebuggerJobQueueInterruption in Debugger. r=jorendorff
Modify the Debugger API implementation to ensure that debugger code's promise
activity (resolving promises; running reaction jobs) cannot interfere with the
debuggee's.

Specifically, ensure that there is an `AutoDebuggerJobQueueInterruption` in
scope at every site in the Debugger implementation that might invoke a debugger
hook function. This saves the debuggee's job queue, emplaces a fresh empty
queue, lets the hooks run, drains the queue, and then restores the debuggee's
original queue.

Since we must already mark sites that could invoke hooks with
`EnterDebuggeeNoExecute`, we ensure our job queue protection coverage is
complete statically by having `EnterDebuggeeNoExecute`'s constructor require a
reference to an `AutoDebuggerJobQueueInterruption`.

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

--HG--
extra : moz-landing-system : lando
2019-02-12 08:10:54 +00:00
Jim Blandy 6cc5bf24a5 Bug 1145201: Implement JS::AutoDebuggerJobQueueInterruption. r=arai,smaug
Define a new RAII class, AutoDebuggerJobQueueInterruption, to save and restore
the current ECMAScript job queue, to protect the debuggee's job queue from
activity that occurs in debugger callbacks. Add a new method to the JS::JobQueue
abstract base class, saveJobQueue, to support AutoDebuggerJobQueueInterruption.
Comments on AutoDebuggerJobQueueInterruption provide details.

Implement saveJobQueue for SpiderMonkey's internal job queue and for Gecko's job
queue in CycleCollectedJSContext.

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

--HG--
extra : moz-landing-system : lando
2019-02-12 08:14:34 +00:00
Jim Blandy 0ae9145c60 Bug 1145201: Replace EnqueuePromiseJobCallback and GetIncumbentGlobalCallback with new JobQueue abstract base class. r=arai,smaug
While the behavior of ECMAScript Promises and their associated job queue is
covered by the ECMAScript standard, the HTML specification amends that with
additional behavior the web platform requires. To support this, SpiderMonkey
provides hooks the embedding can set to replace SpiderMonkey's queue with its
own implementation.

At present, these hooks are C-style function-pointer-and-void-pointer pairs,
which are awkward to handle and mistake-prone, as passing a function the wrong
void* is not a type error. Later patches in this series must add new hooks,
making a bad situation worse.

A C++ abstract base class is a well-typed alternative. This introduces a new
`JS::JobQueue` abstract class, and adapts SpiderMonkey's internal job queue and
Gecko's customization to use it. `GetIncumbentGlobalCallback` and
`EnqueuePromiseJobCallback` become virtual methods.

Within SpiderMonkey, the patch gathers the various fields of JSContext that
implement the internal queue into their own type, js::InternalJobQueue. Various
jsfriendapi functions become veneers for calls to methods specific to the
derived class. The InternalJobQueue type itself remains private to SpiderMonkey,
as it uses types like TraceableFifo, derived from Fifo, that are not part of
SpiderMonkey's public API.

Within Gecko, CycleCollectedJSContext acquires JS::JobQueue as a private base
class, and a few static methods are cleaned up nicely.

There are a few other hooks defined in js/public/Promise.h that might make sense
to turn into virtual methods on JobQueue. For example,
DispatchToEventLoopCallback, used for resolving promises of results from
off-main-thread tasks, is probably necessarily connected to the JobQueue
implementation in use, so it might not be sensible to set one without the other.
But it was left unchanged to reduce this patch's size.

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

--HG--
extra : moz-landing-system : lando
2019-02-12 08:16:16 +00:00
Andrew McCreight 07e3ce0af7 Bug 1517601, part 3 - WebSocketEvent subclasses should not hold strong references to the channel. r=mayhemer
This patch moves the channel pointer from the WebSocketEvents into the
classes that wrap them (EventTargetDispatcher and
WrappedWebSocketEvent) to fix leaks.

EventTargetDispatcher uses a weak pointer. This is needed to prevent a
leak if the ChannelEvent dispatch fails, because it would create a
cycle of strong references between the WebSocketEvent, the channel,
the channel event queue, and EventTargetDispatcher. It is safe because
the ChannelEventQueue ensures that the channel remains alive.

WrappedWebSocketEvent uses a strong pointer. This won't create a leak
because the runnable is not owned by the channel. It is needed for
safety because it can't rely on the ChannelEventQueue mechanism for
keeping the channel alive.

The WPT whitelisting moves them into two subdirectories that still
seem to leak sometimes, but the top level websockets/ directory seems
okay now.

Depends on D19586

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

--HG--
extra : moz-landing-system : lando
2019-02-13 16:58:31 +00:00
Andrew McCreight 836727fcd1 Bug 1517601, part 2 - Create and use a new WebSocketEvent base class instead of ChannelEvent. r=mayhemer
In the next patch, I want to change the signature of Run(), so I need
to create a new base class for these inner WebSocket events.

For now, this class is the same as ChannelEvent, except that it does
not have the GetEventTarget method, which is never called.

Depends on D19585

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

--HG--
extra : moz-landing-system : lando
2019-02-13 16:57:58 +00:00
Andrew McCreight d4a4aebf1c Bug 1517601, part 1 - Remove the unused WebSocketChannelChild::DispatchToTargetThread() method. r=mayhemer
Later patches change the WrappedChannelEvent ctor, so I'm removing
this unused method to avoid having to fix it up.

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

--HG--
extra : moz-landing-system : lando
2019-02-13 16:49:26 +00:00
Luca Greco d787d73489 Bug 1527330 - Fix test_ext_userScript_exports.js failure on beta. r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D19533

--HG--
extra : moz-landing-system : lando
2019-02-13 17:30:20 +00:00
Dave Townsend 09e06b44c8 Bug 1522253: about:newinstall should get its configuration via RemotePageManager rather than query params. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D19413

--HG--
extra : moz-landing-system : lando
2019-02-13 17:28:20 +00:00
Dave Townsend e531d4a96c Bug 1522253: Add a standard mechanism for requesting data from the other process. r=Gijs
As we add more specific methods to RemotePageManager some of them will have to
call the main process to get the results. This adds a standard mechanism for
doing so. Calling sendRequest will return a promise that is resolved or rejected
when the main process responds.

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

--HG--
extra : moz-landing-system : lando
2019-02-13 17:29:53 +00:00
Jim Blandy 33e0302a5c Bug 1145201: Fix xpcshell tests not to mix the test's own microtasks with the debuggee's. r=jlast
Evaluation of debuggee code should always begin with an empty microtask queue.
In xpcshell tests, this is not guaranteed, as it is in the web platform. This
patch changes those devtools server xpcshell tests that break this rule in a
detectable way to run the debuggee code as a separate HTML task.

In an actual browser environment, debuggee JavaScript runs as an HTML task.
Since HTML requires a microtask checkpoint at the end of each task, this means
that a debuggee task begins execution with an empty microtask queue, free of
microtasks from other tabs or the browser machinery itself. Hence, while the
debugger is pausing debuggee code, it is safe for it to save the debuggee's
microtask queue, so that those jobs do not make progress. (Which is fortunate,
because it *must* do so, lest the debuggee's microtasks run during the pause!)

In an xpcshell test, however, there is no guarantee that debuggee code begins
execution with a fresh microtask queue: the test may call `eval` or
`evalInSandbox` at any time. If such an evaluation hits a breakpoint, `debugger`
statement, etc. that invokes a Debugger hook, supervisory microtasks from the
test harness code may be set aside along with the debuggee's microtasks. If the
hook code then blocks waiting for those microtasks to run, the test will hang.

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

--HG--
extra : moz-landing-system : lando
2019-02-12 08:20:29 +00:00
Noemi Erli 8842faa45f Backed out 2 changesets (bug 1522253) for causing ES Lint failure in newInstallPage.js
Backed out changeset 5b2aeaf2da17 (bug 1522253)
Backed out changeset a091f6b58aba (bug 1522253)
2019-02-13 19:12:35 +02:00
Dave Townsend ef53454138 Bug 1527499: Show the profile manager by default in preference to assigning or creating an initial profile. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D19592

--HG--
extra : moz-landing-system : lando
2019-02-13 14:04:23 +00:00
Markus Stange 8401b64d46 Bug 1527412 - Remove swizzling of -[NSView mouseDownCanMoveWindow]. r=spohl
This was added in bug 476393 in order to work around a problem with the Java plug-in.
We no longer support that plug-in.
The comment also mentions NSTexturedBackgroundWindowMask which we stopped using in bug 1335191.

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

--HG--
extra : moz-landing-system : lando
2019-02-13 11:14:03 +00:00
Markus Stange 02e8f0bcef Bug 1527412 - Make nsChildView::mView a ChildView*, because that's what it is. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D19556

--HG--
extra : moz-landing-system : lando
2019-02-13 11:14:02 +00:00
Markus Stange 20949d20bb Bug 1527412 - Remove unused contextMenu method. r=spohl
This method could only return something non-null in embedding situations,
in which our ChildView was a subview of somebody else's NSView that conforms
to the mozView protocol. Such a situation hasn't existed for about 10 years.

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

--HG--
extra : moz-landing-system : lando
2019-02-13 11:14:02 +00:00
Markus Stange 1b8351b1e6 Bug 1527412 - Fix mParentView's type (it doesn't necessarily implement the mozView protocol) and tweak a few comments. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D19554

--HG--
extra : moz-landing-system : lando
2019-02-13 11:14:02 +00:00
Dave Townsend 0fc1c65c7c Bug 1522253: about:newinstall should get its configuration via RemotePageManager rather than query params. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D19413

--HG--
extra : moz-landing-system : lando
2019-02-13 16:57:35 +00:00
Dave Townsend a111574927 Bug 1522253: Add a standard mechanism for requesting data from the other process. r=Gijs
As we add more specific methods to RemotePageManager some of them will have to
call the main process to get the results. This adds a standard mechanism for
doing so. Calling sendRequest will return a promise that is resolved or rejected
when the main process responds.

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

--HG--
extra : moz-landing-system : lando
2019-02-13 16:57:28 +00:00
Julian Descottes 5185592b70 Bug 1500074 - Add metrics test for jsdebugger;r=ochameau
Depends on D19639

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

--HG--
rename : devtools/client/framework/test/metrics/browser_metrics_netmonitor.ini => devtools/client/framework/test/metrics/browser_metrics_debugger.ini
rename : devtools/client/framework/test/metrics/browser_metrics_netmonitor.js => devtools/client/framework/test/metrics/browser_metrics_debugger.js
extra : moz-landing-system : lando
2019-02-13 15:46:38 +00:00
Julian Descottes d5da568b98 Bug 1500072 - Add metrics test for netmonitor;r=ochameau
Depends on D19638

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

--HG--
rename : devtools/client/framework/test/metrics/browser_metrics_webconsole.ini => devtools/client/framework/test/metrics/browser_metrics_netmonitor.ini
rename : devtools/client/framework/test/metrics/browser_metrics_webconsole.js => devtools/client/framework/test/metrics/browser_metrics_netmonitor.js
extra : moz-landing-system : lando
2019-02-13 15:44:43 +00:00