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

587611 Коммитов

Автор SHA1 Сообщение Дата
Kris Maglione eb1a0bb258 Bug 1446250: Part 1 - Optimize Photon PageAction update performance. r=Gijs
The amount of computational complexity and garbage array/string/object
generation for each update to a pageAction property went up astronomically
with the migration of WebExtension page actions to the Photon API. This
resulted in non-trivial talos regression when Screenshots attempted to switch
back to the built-in pageAction API.

These changes fix most of the garbage generation, and reduce a lot of the
duplicated work for each update.

MozReview-Commit-ID: 4uPLnAesdU2

--HG--
extra : rebase_source : 3f723f3f35abf032cf12e02ce38552e21ea4827f
2018-03-15 21:34:01 -07:00
sotaro 57a55d1c2d Bug 1411481- Enable SkiaGL canvas usage on Mac r=jrmuizel 2018-03-21 08:59:38 +09:00
Kris Maglione 63cdc06086 Bug 1446585: Follow-up: Fix Windows file locking xpcshell bustage. r=bustage
MozReview-Commit-ID: TSB0CWep6h

--HG--
extra : rebase_source : b096176aeb25977de07d610a9ece40078003d107
2018-03-20 16:18:04 -07:00
Nicholas Nethercote 5f16fc9dc3 Bug 1447246 - Refactor ContentProcess::Init(). r=jimm
The current code is a bit of a mess. This patch does the following.

- Changes the processing from backwards to forwards. This avoids the need for
  all the `found` booleans, because if a flag is present multiple times, the
  last one will naturally override.

- Tightens up the checking. It now doesn't use assertions, but instead returns
  false if any of the options are missing arguments, or have malformed
  arguments, or any of the mandatory flags are missing. (It assumes that
  -appdir and -profile are optional.)

- Renames the loop variable `idx` as `i`.

- Changes `!strcmp(...)` to `strcmp(...) == 0`, because I find that clearer.

- Avoids a redundant nsCString when handling -appdir.

The patch also tweaks GeckoChildProcessHost::mGroupId, which was buggy. It
holds the appModelUserId argument, which XRE_InitChildProcess() always expects
is present in the command. But it's only set to a non-empty value in
InitWindowsGroupID(), which is only called for plugin processes. So in lots of
cases the appModelUserId argument was missing, and a different argument would
be interpreted as the appModelUserId argument (seemingly without noticeable ill
effect).

The patch changes things to mGroupId defaults to "-", which means it's always
present in the command.

Note: all this explains why the old code for ContentProcess::Init() started
processing from argument aArgc, instead of aArgc-1 as you might expect -- it
had to read one extra arg in order to see the argument following -appdir,
because XRE_InitChildProcess() was decrementing aArgc for the appModelUserId
argument even when that argument wasn't present. The new code for
ContentProcess::Init() doesn't have to read past aArgc-1 because the mGroupId
fix ensures the appModelUserId argument is always present.

MozReview-Commit-ID: 8a8k6ABYMgo

--HG--
extra : rebase_source : 70695125ee26e67af3337119f4dfc293a0dab74c
2018-03-16 12:23:10 +11:00
Timothy Guan-tin Chien e470a057a1 Bug 1444489 - Part VIII, Transition the visibility property instead of using transitionend event r=Gijs
Fades out all the UIs by applying CSS transition on opacity and visibility.
Stop relying on transitionend event to set the hidden state.

This removes a source of intermittent failure and while making sure UIs are
hidden.

MozReview-Commit-ID: FR7JQn4eO3X

--HG--
extra : rebase_source : d62faf9eb8c1cab72e9a0e445974be67e7ff5c85
2018-03-16 06:55:58 +08:00
Ed Lee 28bf7b2e86 Bug 1446053 - Add about:preferences section, sidebar removal and bug fixes to Activity Stream. r=ursula
Also adds new crh locale and in-content prefs test fix.

MozReview-Commit-ID: DFs0s710wZ4

--HG--
extra : rebase_source : 7edf0d5401cdb8da9559d98fe7837d6f23889c85
2018-03-15 10:38:18 -07:00
Nicolas Chevobbe 9efe6dcb78 Bug 1446941 - Remove old-event-emitter usage from styleeditor; r=gl.
MozReview-Commit-ID: D8szZGCwb9i

--HG--
extra : rebase_source : 50966436201cff0008befd0586323199a4395016
2018-03-19 12:35:40 +01:00
Nicolas Chevobbe 9321958641 Bug 1405243 - Extract consoleAPICall helper function in common.js; r=bgrins.
The function was used through multiple tests so it makes sense
to have it in common.js.
We take this as an opportunity to unify the style of the tests, and
to make closeDebugger return a Promise.

MozReview-Commit-ID: 7y8dMNErYZp

--HG--
extra : rebase_source : 61fa671d0f6c31b68d9b94a388454d39446a12bf
2018-03-19 18:09:41 +01:00
Nicolas Chevobbe d8779b51f0 Bug 1405243 - Migrate browser_webconsole_bug_1006027_message_timestamps_incorrect.js to a server test; r=bgrins.
The test was testing that the 3 messages we display when
evaluating a console.log (text of the input, evaluation result,
consoleAPI message) all had a timestamp in a 2000ms range.
This wasn't really what it should have been about, since the
original bugfix (for Bug 1405243), was only in Console.cpp (and
the fix is still up there).
So here we only assert that the timestamp in the ConsoleAPI packet
is between the moment the log was requested and the time we receive
the packet.

MozReview-Commit-ID: HikGCJGHXMy

--HG--
extra : rebase_source : beeec437f12592b2229c89a5ab9125cc66d1971e
extra : source : 041a5ee841a41db1afca180d6b67890622543123
2018-03-19 16:42:09 +01:00
Masayuki Nakano e6ee7e1c05 Bug 1423693 - Make IMContextWrapper::Init() resolve actual IM if active IM context ID is "xim" and there is XMODIFIERS env r=m_kato
On some Linux environment, GTK_IM_MODULE env may be "xim".  Then, actual
IM is specified with XMODIFIERS env with "@im=".  Therefore, if active IM
context ID is xim, IMContextWrapper::Init() needs to look for actual IM name
in XMODIFIERS.

MozReview-Commit-ID: 1aGjBkF4AQn

--HG--
extra : rebase_source : 8c50baa517c61ec2d872c036abc989b4a07e8e36
2018-03-19 14:22:52 +09:00
Mark Hammond b0d93f4e69 Bug 1433180 - Ensure the bookmark mirror handles a child which is a tombstone. r=kitcambridge
MozReview-Commit-ID: AJJv9y8Py94

--HG--
extra : rebase_source : 3d7475499d6c0936ee96e7c6e9f57077bfb23265
2018-03-15 17:54:18 +11:00
Christian Poveda 134842bf17 servo: Merge #20389 - getRandomValues uses ArrayBufferView now (from christianpoveda:issue_20350); r=jdm
<!-- Please describe your changes on the following line: -->

- Changed the `Crypto.webidl` file to allow getRandomValues to recieve an ArrayBufferView as input
- Removed unnecesary checks from `crypto.rs` and did the necessary changes to match the `webidl` changes.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #20350 (github issue number if applicable).

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: e5b606f6a41058bdcc5745ab0da075d0e6ed52fb

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : cdc7f6e7693960b99ee9bc172f4c73216121da77
2018-03-22 17:28:54 -04:00
shindli 16362b2402 Backed out changeset 3ec1117a37e1 (bug 1445316) for c3 & c6 failures in mobile/android/components/extensions/test/mochitest/test_ext_activeTab_permission.html on a CLOSED TREE 2018-03-23 00:33:29 +02:00
Andrew Swan e511455aa0 Bug 1446948 Fix presentation of unsigned langpacks in about:addons r=kmag
MozReview-Commit-ID: CE7tcq7Bp1g

--HG--
extra : rebase_source : 965d130b9d83b241325bb3f0675a24f4498f888f
2018-03-22 13:08:46 -07:00
Nakul Jindal 8c60b50886 servo: Merge #20132 - Profiler for blocked IpcReceiver::recv() (from nakul02:issue_19223); r=jdm
<!-- Please describe your changes on the following line: -->

Implements feature #19223

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #19223 (github issue number if applicable).

<!-- Either: -->
- [x] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

WIP.
@jdm - this is the new profiler : "Blocked at IPC Receive"
Should I dig through all the calls to `ipc::channel` and replace them with this profiled `IpcReceiver`?

![screenshot from 2018-02-27 01-35-37](https://user-images.githubusercontent.com/5394361/36721061-b46edea4-1b5e-11e8-91d6-7faba742f237.png)

Source-Repo: https://github.com/servo/servo
Source-Revision: f467bdce1ba95e950b01f59ba284873137bca5d5

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : d45d857c4bb6b48093a377f0d41a51c4ae89de9f
2018-03-22 16:38:32 -04:00
Vlad Baicu 6e1d2c4d18 Bug 1444549: Remove unused IconTabWidget XML attr. r=mcomella
This code was crashing in the framework; removing it should hopefully fix the
crash.

MozReview-Commit-ID: 2G3q4JrJ9tP

--HG--
extra : rebase_source : e9c1379b9dd3ebcb8ec2169165c629727344179d
2018-03-22 13:46:41 -07:00
Michael Kaply c4e0dd8f57 Bug 1443771 - Add ESR name to the about dialog. It is not translated. r=Felipe,jaws
MozReview-Commit-ID: FYjA7IrTGYt

--HG--
extra : rebase_source : 2b0a6773e5098e1963792a38b5251066f758a3ce
2018-03-14 17:41:26 -05:00
Kirk Steuber d5edf55cc2 Bug 1447345 - Change enterprise policy that sets homepage to set it as the default rather than the user value for the pref r=Felipe
Additionally removes a stray debugging line that I accidentally checked into the tree previously.

MozReview-Commit-ID: 7F2S8WBgKCj

--HG--
extra : rebase_source : e25e343f3e8f57a52678c65ded973bb91d73d90a
2018-03-20 10:43:19 -07:00
Nils Ohlmeier [:drno] 6d558b16f6 Bug 1443032: stop closing usrsctp on callback. r=jesup
MozReview-Commit-ID: BgX9I1shVeN

--HG--
extra : rebase_source : ffee150924da89bd7e7564730c9c08fa59653223
2018-03-20 11:19:14 +00:00
Tarek Ziadé 3073443de2 Bug 1443443 - Extend PContent to retrieve Performance Counters in the parent process - r=baku
Adds the IPDL layer to asynchronously retrieve in the parent process the performance counters.

MozReview-Commit-ID: RbKstNx8pi

--HG--
extra : rebase_source : f81058b9bdd67c2f77bb5cd45d3838bc12f406ea
2018-03-20 17:19:32 +01:00
Paul Adenot 598ec91d70 Bug 1437366 - Disable the test on Android, all the others are, there are now ways this one can pass. r=pehrsons
MozReview-Commit-ID: 4aefhOoJ8sv

--HG--
extra : rebase_source : d0124ae9a3b6004b38036969a1c9ce79f5c2d978
2018-03-15 14:41:54 +01:00
Paul Adenot 18a3b28518 Bug 1437366 - Lower the sample rate so that the test don't underrun on Windows on try. r=pehrsons
MozReview-Commit-ID: JCCh4k6pifE

--HG--
extra : rebase_source : 5d7a87cfa8b074a2100f666decb2e604a1e05587
2018-03-15 14:39:57 +01:00
J.C. Jones 175c45e2dc Bug 1444440 - Ensure the correct error is emitted for policy distrusts r=keeler
Bug 1441223 added MOZILLA_PKIX_ERROR_ADDITIONAL_POLICY_CONSTRAINT_FAILED to be
emitted when we hit certificates affected by the Symantec distrust.

Since some sites have multiple certificate trust paths possible, sometimes
SEC_ERROR_UNKNOWN_ISSUER is emitted instead of the more specific error.

This patch uses a flag to ensure that the specific error is emitted out of the
Cert Verifier.

--HG--
extra : rebase_source : a961d2e713ae342222d85dff6f83ed3bcaa8006b
2018-03-14 14:01:35 -07:00
Margareta Eliza Balazs ef5386563e Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-20 19:01:25 +02:00
Emilio Cobos Álvarez 739b866c71 Bug 1447301: Disable the old style system by default. r=froydnj
This keeps --disable-stylo working and --enable-stylo=build with the same
semantics, but it makes also --enable-stylo / and the default to not build the
old style system at all.

This also removes the stylo-only platforms, since they're now the default.

MozReview-Commit-ID: DL2eZZn9suE
2018-03-20 17:33:47 +01:00
Eugen Sawin 1a0dc6db98 Bug 1446423 - [1.1] Queue bundle events during content module registeration. r=snorp 2018-03-20 17:15:06 +01:00
Eugen Sawin 9401469a2e Bug 1446478 - [1.0] Make onLoadRequest handler async. r=droeh 2018-03-20 17:15:06 +01:00
Timothy Guan-tin Chien 7bb6d96e15 Bug 1444489 - Part VII, nit: Improve naming consistency in videocontrols.xml r=Gijs
Convert all is* methods to getter or rename them if they take arguments.

MozReview-Commit-ID: GOJzz0JYGnq

--HG--
extra : rebase_source : 86539c3e5d85b2d6cbe1455e2b36f8e831773b2e
2018-03-14 13:41:20 +08:00
sreeise 70a0c81b98 Bug 1441857 - Added comment explaining custom properties are directly from CSSOM in order to get predefined style which is why they are not referenced by CSS. r=jaws
--HG--
extra : rebase_source : be31080cf5fbcb92578d02a07e0102df4d712f3a
2018-03-13 22:43:06 -04:00
Gurzau Raul 2e4e18caea Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-03-21 17:09:57 +02:00
Jonathan Watt 3ba6f4c5a2 Bug 1446763 - Convert InspectorUtils::CssPropertyIsShorthand to use Stylo. r=emilio
Summary: MozReview-Commit-ID: 5moH64qiKue

Reviewers: emilio

Bug #: 1446763

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

MozReview-Commit-ID: Gh2QFRsAYsq
2018-03-18 12:56:09 +00:00
Nathan Froyd ab81acd6d6 Bug 1447529 - remove USEWEAKREFS code from nsWindowWatcher; r=smaug
It's been over fifteen years, and we haven't figured out how to use
weakrefs in this code.  We might as well go ahead and delete this.
2018-03-21 07:31:15 -04:00
Brendan Dahl bad447111c Bug 1444973 - Remove browser-test-overlay.xul. r=ahal
On desktop use sub script loader during bootstrap instead of the overlay.
On android use a component that listens for browser windows to be created
and then use a sub script loader.

MozReview-Commit-ID: Knj5OdVNEMA

--HG--
extra : rebase_source : 424fd867edf7a3ab33cede88d2066291516de10c
2018-03-13 17:33:33 -07:00
Narcis Beleuzu a5244ba063 Backed out 3 changesets (bug 1435142) for browser-chrome failures on browser_preloadedBrowser_zoom.js
Backed out changeset 7334da12de35 (bug 1435142)
Backed out changeset cd802f66b7aa (bug 1435142)
Backed out changeset 1505855fc858 (bug 1435142)
2018-03-23 19:45:14 +02:00
James Teh 83a22d7047 Bug 1448091 part 2: AccessibleHandler: Don't repeatedly and unnecessarily refresh the cache after the first change. r=MarcoZ
The singleton AccessibleHandlerControl maintains a global cache generation counter which is incremented whenever any node is changed.
The handler for each node tracks the cache generation at the time its cache was initialized.
To check whether the cache needs to be updated, the handler compares its generation against the global generation from AccessibleHandlerControl.
If they differ, it refreshes the cache.
Previously, the handler didn't update its cache generation after refreshing.
This meant that every single query after the first change would refresh the whole cache, even if there wasn't a second change.
This resulted in a huge number of wasted cache updates for clients such as JAWS which hold onto accessibles, rather than releasing them and fetching them again for each update.

MozReview-Commit-ID: 80d4n1cIjzQ

--HG--
extra : rebase_source : a0903ddb33eba5381a232a661deaa3754b92406f
2018-03-23 11:53:01 -04:00
James Teh 46dc3c27be Bug 1448091 part 1: Accessible HandlerProvider: Return an error if refreshing the cache fails. r=MarcoZ
BuildDynamicIA2Data can't return an HRESULT; failure is communicated by the fact that the unique id in the data is set to 0.
However, IGeckoBackChannel::Refresh returned S_OK even if BuildDynamicIA2Data failed.
We now check the unique id and return an appropriate error code if it's 0.
Among other things, this means that the handler will return an error when querying dead objects instead of returning stale cache data.

MozReview-Commit-ID: IorDRHCItD8

--HG--
extra : rebase_source : 1b3b8393309ccefac27d0228aa528cd6fa55ad35
2018-03-23 11:44:05 -04:00
akriti 76aa7ab1c4 Bug 1441892 : TelemetryController.savePing removed , r=chutten
MozReview-Commit-ID: 2D8SeJ8ShKH

--HG--
extra : rebase_source : 535aafd7ddfd53541319eb6847760eba23b1ce76
2018-03-22 21:05:17 +05:30
Dão Gottwald ed71721eed Bug 1448286 - Remove redundant gBrowser.tabContainer.updateVisibility call. r=florian
MozReview-Commit-ID: 8mdaanwgH7b

--HG--
extra : rebase_source : 6894145402b3d4d6252f0ed1203ffbfd80dc3216
2018-03-23 12:10:56 +01:00
Ted Mielczarek bd3e9df16c bug 1446665 - update sccache to pick up a fix for a PGO build failure. r=froydnj
MozReview-Commit-ID: 5uCjHMZc7JJ

--HG--
extra : rebase_source : f8aa60cca3992707e056460b01ac470cd79fc385
2018-03-23 11:37:47 -04:00
Mike Ratcliffe c1bd6c3abe Bug 1448061 - Improve accuracy of devtools entry points telemetry r=jdescottes
MozReview-Commit-ID: GmXQktPew5B

--HG--
extra : rebase_source : 5209ee98a1192154dea95f139481941e01d2ae67
2018-03-22 16:53:23 +00:00
Emilio Cobos Álvarez a6190a3d86 Bug 1448201: Fix SpiderMonkey Rust breakage. r=jdm
Was broken by bug 888600, which converted JSID_VOID into a constexpr and thus
made it not appear at build time.

This should make this faster as well...

MozReview-Commit-ID: 34eQhr5H5Ks

--HG--
extra : rebase_source : e0cff40042f4a74aaeaada38927b0636208f12dc
2018-03-23 02:15:55 +01:00
Julian Descottes 08928eeb74 Bug 1443550 - package dom_workers.xpt on Fennec to enable worker debugging;r=jryans
dom_workers.xpt was originally added to Firefox's package-manifest.in
in Bug 757133 (https://hg.mozilla.org/mozilla-central/rev/d5fcb5f05f03).

Adding it to Fennec will allow us to list and debug workers on this platform.

MozReview-Commit-ID: 391mCv4dCid

--HG--
extra : rebase_source : 4598a849cbf84c56e6bdbe6c71cfa20f0467a395
2018-03-22 20:52:08 +01:00
Anthony Ramine 4a6c64ca20 servo: Merge #20397 - Implement OES_element_index_uint (fixes #20384) (from servo:webgl); r=emilio
Source-Repo: https://github.com/servo/servo
Source-Revision: 4a6453ac9ad956502ec6d39093b83820d94a409e

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 4a9cc25b7e4a711d31a658e59ed4b37dc1b4f912
2018-03-23 10:14:04 -04:00
Cosmin Sabou 19fa52aa34 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-03-23 16:59:39 +02:00
Julian Descottes 423bb2c32f Bug 1414286 - add DAMP test for inspector expandAll/collapseAll;r=ochameau
MozReview-Commit-ID: 43TwKB4THV2

--HG--
extra : rebase_source : 6bfcb71ef0818acec3f698905a52fdfe8eab9cc8
extra : source : cb8753744cf89d96da086220824a40e226b08e3d
2018-03-15 22:48:49 +01:00
Julian Descottes 0fe17e59dc Bug 1414286 - return promise in markup view collapse/expandAll;r=pbro
MozReview-Commit-ID: H4OuB2ggbWG

--HG--
extra : rebase_source : 14f14ed47cc9cd925cbab7cf99c7ea7773e8eb1e
2018-03-22 14:42:59 +01:00
Johan Lorenzo fe8f5fc199 Bug 1448239 - Force apt database update so snapcraft can fetch packages r=rail
MozReview-Commit-ID: KAp4dCyHMRA

--HG--
extra : rebase_source : 15210a4ad3e402859f11771bb4a212132b002ac6
2018-03-23 12:06:51 +01:00
Oriol Brufau 325651cb81 Bug 1445316 - Optimize tabs.query with 'active', 'currentWindow', 'index' or 'windowId' r=mixedpuppy
MozReview-Commit-ID: L5i129iC44W

--HG--
extra : rebase_source : 0cdb4bd85bfba026b1c5238709e6a19d34daa417
2018-03-13 20:52:58 +01:00
Anthony Ramine a565ce6df3 servo: Merge #20375 - Fall down the WebGL rabbit hole and fix some bugs there (from servo:webgl); r=emilio
Source-Repo: https://github.com/servo/servo
Source-Revision: c20d0c00d711cda61ad1b35f15f2fb563c042c5e

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 6e41661fca27ace97b3e6eaea9de5aeb7586bc09
2018-03-22 15:32:45 -04:00
Brian Grinstead bd50b6df06 Bug 1347127 - Enable new console frontend in Browser Toolbox;r=nchevobbe
MozReview-Commit-ID: D8U8XEgLUZy

--HG--
extra : rebase_source : 5d10833a9d31817410afbc5632ab4cc3bb2db77e
2018-03-22 08:30:50 -07:00