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

656322 Коммитов

Автор SHA1 Сообщение Дата
yulia 650d7f9c31 Bug 1494796 - Convert ThreadClient into a Front; r=jdescottes
This is the first part of the threadClient refactor. It only moves the methods to the new
front. and does some basic fixes.

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

--HG--
extra : moz-landing-system : lando
2019-06-14 00:14:58 +00:00
yulia 57a1e6ce79 Bug 1494796 - fork threadclient for backwards compatibility r=jdescottes
make sure we have a copy of thread client for old servers

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

--HG--
rename : devtools/shared/client/thread-client.js => devtools/shared/client/deprecated-thread-client.js
extra : moz-landing-system : lando
2019-06-14 00:14:36 +00:00
Brendan Dahl 04a85879bb Bug 1558674 - Allow chrome privileged documents to enable/disable copy/paste. r=Ehsan
For content HTML/XHTML copy/paste should always be enabled, but for chrome
docs we can support enabling/disabling copy/paste.

Also, restores tests to how they were before copy/paste was always enabled.

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

--HG--
extra : moz-landing-system : lando
2019-06-14 00:32:21 +00:00
Chris Pearce 8f2dd4a937 Bug 1558364 - Convert TrackBuffersManager::mPendingInput into a MediaSpan. r=jya
This allows us to avoid a (probably small) copy when we stash the pending input.

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

--HG--
extra : moz-landing-system : lando
2019-06-14 00:31:06 +00:00
Chris Pearce d5f83d4740 Bug 1558364 - Add MediaSpan and use it for TrackBuffersManager::mInputBuffer. r=jya
As seen in this profile of a Twitch replay: https://perfht.ml/2K9Ydb3 we can
often end up spending time in TrackBuffersManager::CodedFrameProcessing()
shaving off bytes from the front off TrackBuffersManager::mInputBuffer. This
requires all the remaining bytes to be memmove'd down to the start of this
array. Sometimes we have close to 1MB in that buffer, and when we're just
trying to consume a few hundred bytes, that becomes high overhead.

So intead of using this "slice off, shuffle down" approach change
TrackBuffersManager::mInputBuffer to be a new type MediaSpan, which maintains a
RefPtr to a MediaByteBuffer and a span defining the subregion of the buffer we
care about. This means the RemoveElementsAt(0,N) operation becomes basically
free, and we can eliminate a few other copies we were doing as well.

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

--HG--
extra : moz-landing-system : lando
2019-06-14 00:31:02 +00:00
Rob Wu f404754f4b Bug 1557792 - Show missing private browsing rows in about:addons r=mixedpuppy
For parity with the XUL about:addons page, this commit adds missing rows
to the details view:

- Bug 1557792 - incognito not_allowed should show "Not Allowed in Private Windows"

- Bug 1551947 - extensions with locked private browsing flag should not
  show inputs to control the flag, but "Requires Access to Private Windows"

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

--HG--
extra : moz-landing-system : lando
2019-06-13 22:27:30 +00:00
alwu ea1a345650 Bug 1555849 - part2 : enable wpt 'track-webvtt-non-snap-to-lines.html'. r=heycam
We made following changes for 'track-webvtt-non-snap-to-lines.html'.

1. As the video is 300*150, testing file would put the cue on the place which is 20% of video's height (30px) below.
2. The font size is defined as 5% of video's height (7.5px).
3. As the cue is left alignment, so we also have to set `left=0`.
4. In addition, there is no need to add padding.

In addition, this test would fail on Windows because there is a weird green background showing on the top of the text [1].

[1] https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://queue.taskcluster.net/v1/task/NdZrHNWqTAiskV8QOcBFNA/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

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

--HG--
extra : moz-landing-system : lando
2019-06-13 23:10:23 +00:00
alwu 493294ac94 Bug 1555849 - part1 : use 'computeLine' to adjust cue's position when 'snap-to-lines' is false. r=heycam
According to the spec 7.2.6 [1], we should use `computed line`, not `computed position`.

[1] https://www.w3.org/TR/webvtt1/#ref-for-cue-computed-line-2

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

--HG--
extra : moz-landing-system : lando
2019-06-13 23:08:54 +00:00
Brindusan Cristian ed0ab976c9 Backed out changeset 326fdac090f3 (bug 1536644) for ESlint failure at browser_actions_BranchedAddonStudyAction.js. CLOSED TREE
--HG--
rename : toolkit/components/normandy/test/browser/addons/normandydriver-b-1.0/manifest.json => toolkit/components/normandy/test/browser/addons/normandydriver-1.0/manifest.json
rename : toolkit/components/normandy/test/browser/addons/normandydriver-a-2.0/manifest.json => toolkit/components/normandy/test/browser/addons/normandydriver-2.0/manifest.json
2019-06-14 03:01:10 +03:00
Brindusan Cristian 5e01225e79 Backed out changeset 2a58697ddd0c (bug 1541923) for ESlint failure at test_NormandyApi.js and build bustages. CLOSED TREE 2019-06-14 02:59:37 +03:00
Nicholas Nethercote 94ec493862 Bug 1557907 - Fix `jemalloc_replace_dynamic()`. r=glandium
`jemalloc_replace_dynamic()` is badly broken. If you install a malloc table
other than the default at startup (e.g. DMD's or PHC's), when you call
`jemalloc_replace_dynamic()` it installs a new allocator that wraps the
*default* allocator, and then when you call `jemalloc_replace_dynamic(nullptr)`
it switches back to the *default* allocator.

This commits makes numerous improvements.

- It removes the "flip-flopping" between malloc tables, which didn't really
  work and isn't necessary.

- `jemalloc_replace_dynamic()` now switches between the *original* malloc table
  and the new one, rather than the *default* malloc table and the new one.

- It renames various things, to make the names shorter and clearer.

- It clearly documents the dangers and limitations of
  `jemalloc_replace_dynamic()`.

- It removes and inlines `profiler::Init()`, because there was only one call
  site.

- It rearranges `install_memory_counter()` so the control flow is simpler.

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

--HG--
extra : moz-landing-system : lando
2019-06-13 20:42:19 +00:00
Michael Cooper 0112821447 Bug 1536644 - Add Branched Add-on Study action r=rdalal,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D28158

--HG--
rename : toolkit/components/normandy/actions/AddonStudyAction.jsm => toolkit/components/normandy/actions/BranchedAddonStudyAction.jsm
rename : toolkit/components/normandy/test/browser/addons/normandydriver-1.0/manifest.json => toolkit/components/normandy/test/browser/addons/normandydriver-a-1.0/manifest.json
rename : toolkit/components/normandy/test/browser/addons/normandydriver-2.0/manifest.json => toolkit/components/normandy/test/browser/addons/normandydriver-a-2.0/manifest.json
rename : toolkit/components/normandy/test/browser/addons/normandydriver-1.0/manifest.json => toolkit/components/normandy/test/browser/addons/normandydriver-b-1.0/manifest.json
rename : toolkit/components/normandy/test/browser/browser_actions_AddonStudyAction.js => toolkit/components/normandy/test/browser/browser_actions_BranchedAddonStudyAction.js
extra : moz-landing-system : lando
2019-06-13 22:38:26 +00:00
Martin Stransky 000c9ddd57 Bug 1558743 - Use -moz-gtk-buttonactivetext for active menulist buttons, r=dao
Depends on D34690

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

--HG--
extra : moz-landing-system : lando
2019-06-13 12:42:58 +00:00
Martin Stransky 6a52b36748 Bug 1558743 - Don't change button text color for default buttons, r=dao
Differential Revision: https://phabricator.services.mozilla.com/D34690

--HG--
extra : moz-landing-system : lando
2019-06-13 13:27:15 +00:00
Michael Cooper fc685273c5 Bug 1541923 - Avoid leaking cookies via Normandy fetches r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D31810

--HG--
extra : moz-landing-system : lando
2019-06-13 23:10:00 +00:00
violet 8578cbdade Bug 1032124 - Use the referenced element to check whether to ignore a mutation event r=emilio,longsonr
Using `nsContentUtils::IsInSameAnonymousTree(this, aElement)` to check will ignore all mutation notification for anonymous <use> which will happen when <use> is nested. This is the cause that second-level <use> isn't properly synced with element mutation.

We should use the referenced element instead of `this` in the check condition.

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

--HG--
extra : moz-landing-system : lando
2019-06-13 20:02:42 +00:00
Emilio Cobos Álvarez 95cb23d936 Bug 1548155 - Add a WPT test to ensure that getComputedStyle() round-trips when scrollbars are present. r=bzbarsky
See the note in the test about the .tentative.html bit. I really think Gecko
behavior is sane here.

I filed https://bugs.chromium.org/p/chromium/issues/detail?id=973171 about this,
and told the Blink folks to file a csswg-drafts issue if they disagreed.

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

--HG--
extra : moz-landing-system : lando
2019-06-13 22:01:21 +00:00
Narcis Beleuzu 4d0ca3dce9 Backed out changeset a7c18cfb94b3 (bug 1556079) for assertion failures at parserWrapper. CLOSED TREE
--HG--
extra : rebase_source : b3e0b049a6d18081242eb40ff7fce8e80d04c700
2019-06-14 00:59:22 +03:00
shindli 95037e5b4e Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-06-14 00:51:32 +03:00
shindli 0534ae5951 Merge inbound to mozilla-central. a=merge 2019-06-14 00:46:21 +03:00
Eric Rahm 67b4023a9b Bug 1555067 - Backed out changeset 0801165e3175. r=jcj
NSS_ALLOW_SSLKEYLOGFILE no longer has issues upstream, we can allow it again.

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

--HG--
extra : moz-landing-system : lando
2019-06-13 20:59:55 +00:00
Mike Conley 45db9df532 Bug 1559240 - Make sure oop-browser-context passes the BrowsingContext of the crashing subframe. r=rhunt
Differential Revision: https://phabricator.services.mozilla.com/D34930

--HG--
extra : moz-landing-system : lando
2019-06-13 21:06:23 +00:00
Barret Rennie 43bd779652 Bug 1510569 - Port Content:LoadURIResult message to IPDL r=mconley
The `WebProgress#sendLoadCallResult` method only existed to send a empty async
message and was only called from the `WebNavigationChild`. Since
`WebNavigationChild` is in the process of being removed, it makes sense to
inline the replaced method into its call site.

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

--HG--
extra : moz-landing-system : lando
2019-06-13 21:00:34 +00:00
Barret Rennie fa0bdf0264 Bug 1510569 - Move Content:BrowserChildReady from WebProgressChild.jsm into the browser child frame script r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D34565

--HG--
extra : moz-landing-system : lando
2019-06-13 21:00:14 +00:00
Barret Rennie eb167a0197 Bug 1510569 - Order the RefreshBlocker's messages to the parent after the BrowserChild's r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D34564

--HG--
extra : moz-landing-system : lando
2019-06-13 21:00:02 +00:00
Barret Rennie 2de25cc4ca Bug 1510569 - Port onLocationChange notifications inside WebProgressChild.jsm to C++ r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D34563

--HG--
extra : moz-landing-system : lando
2019-06-13 21:08:40 +00:00
Barret Rennie 5ac437d877 Bug 1510569 - Correctly reconstruct nsIRequest in tab parent r=Ehsan
When `TabParent::ReconstructWebProgressRequest` was introduced in
31b206e2046f63af31424489e3d61d7761805878, it mistakenly was unconditionally
constructing an `nsIRequest` from the received `RequestData`, even when the URI
was null.

Additionally `ReconstructWebProgressRequest` has been updated to use the Gecko
style for out parameters (accepting an `nsIFoo**` and passing
`getter_AddRefs(...)` instead of `nsCOMPtr<nsIFoo>&`).

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

--HG--
extra : moz-landing-system : lando
2019-06-13 20:59:35 +00:00
Brindusan Cristian 3f9e2ec379 Backed out changeset 64b2f8306217 (bug 1536871) for dt failures at browser_fontinspector.js. CLOSED TREE 2019-06-14 00:14:16 +03:00
alwu 986c5f9738 Bug 1556079 - part1 : hide cue if we can't find a good place to put it fully inside the rendering area. r=heycam
According to the spec 7.2.10.17 [1], if we have tried both direction and there is no place to put the cue inside the rendering area without overlapping with other cues or the boundary of rendering area, then we have to discard all CSS boxes, which means that we should not display this cue.

[1] https://www.w3.org/TR/webvtt1/#processing-cue-settings

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

--HG--
extra : moz-landing-system : lando
2019-06-13 20:10:53 +00:00
Thomas Nguyen 1d636c1d2d Bug 1557636 Use Referrer info in worker and fix sharedworker's wrong referrer r=baku
SharedWorker should use worker's referrer info instead of default value

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

--HG--
extra : moz-landing-system : lando
2019-06-13 20:37:34 +00:00
Ehsan Akhgari 09c4030aa0 Bug 1559184 - Fix the damage caused by clang-format to DOMMatrix.h; r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D34929

--HG--
extra : moz-landing-system : lando
2019-06-13 20:29:24 +00:00
Karan Sapolia 3cb0a39af4 Bug 1553237 - Simplify nsISearchService.addEngineWithDetails to one signature. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D34709

--HG--
extra : moz-landing-system : lando
2019-06-13 20:35:23 +00:00
Alastor Wu 81efe13915 Bug 1557882 - part2 : add wpt 'start_alignment.html'. r=heycam
Add a new wpt 'start_alignment.html' to ensure that two cues would have different text alignment.

In addition, add `line:0` in vtt file to put cue on the top in order to reduce the complexity of using CSS to markup the test, because if we don't specifiy the postion for cue, those two cues won't be put the bottom of the video, instead they would be move upward one line above the bottom according to the spec.

The reason is that the base moving unit for adjusting cue box's position is the Bsize of the first line box, it would require extra moving if one cue contains two different cues which line boxes are not the same height.

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

--HG--
extra : moz-landing-system : lando
2019-06-13 19:05:09 +00:00
Alastor Wu 0b9fc3bd0f Bug 1557882 - part1 : delay setting 'unicode-bidi' until finishing the position calculation. r=heycam
Because of bug1558431, now the text alignment for `bidi` won't take effect on the initial reflow of the document, so we have to delay setting 'unicode-bidi' in order to trigger reflow again as a workaround.

It would make the `bidi` text showing correctly after reflow.

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

--HG--
extra : moz-landing-system : lando
2019-06-13 18:59:35 +00:00
Yury Delendik 827de35634 Bug 1555518 - Fixes original stack display for wasm files, and ref to original source. r=jlast
- Fixes expandFrames() to ensure the thread property is set
- Refactors getSourceLocationFromMouseEvent to use fromEditorLine
- Replaces dwarf_to_json (for proper DWARF conversion)

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

--HG--
extra : moz-landing-system : lando
2019-06-13 18:02:14 +00:00
Narcis Beleuzu 8e2da98d46 Backed out 2 changesets (bug 1558923) for mochitest crashes on AssertIsOnMainThread(). CLOSED TREE
Backed out changeset 643de99320a8 (bug 1558923)
Backed out changeset f758b5ccd0c0 (bug 1558923)
2019-06-13 20:59:33 +03:00
Brindusan Cristian 9b7249b587 Backed out changeset ced634e12fc3 (bug 1533958) for xpcshell failures at test_ext_telemetry.js. CLOSED TREE 2019-06-13 20:29:19 +03:00
Marco Bonardo c91a3fe44a * Bug 1557302 - Enter on a fully typed @alias should move the caret at the end. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D34908

--HG--
extra : moz-landing-system : lando
2019-06-13 16:54:23 +00:00
Brendan Dahl fad31878d9 Bug 1552049 - Enable XUL persistence for all system privilege docs. r=smaug
Remove the mozpersist attribute and XULDocument requirement to use XUL
persistence and allow any system privilege document to use it by default.

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

--HG--
extra : moz-landing-system : lando
2019-06-13 18:15:54 +00:00
Andrea Marchesini 7b8d04654c Bug 1559109 - Improve comments about StructuredCloneTags, r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D34881

--HG--
extra : moz-landing-system : lando
2019-06-13 17:37:15 +00:00
Myk Melez 9c002b4396 Bug 1557161 - enable rkv consumers to migrate LMDB environments across architecture changes r=lina,keeler,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D33863

--HG--
extra : moz-landing-system : lando
2019-06-13 19:14:59 +00:00
Olli Pettay ca30f8e0b0 Bug 1559207 - Make XULPersist::AttributeChanged a bit faster in the common case, r=bdahl
GetAttr returns false if the attribute isn't there at all.

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

--HG--
extra : moz-landing-system : lando
2019-06-13 19:06:12 +00:00
Nika Layzell d2fa23f7c9 Bug 1557730 - Enable HTTPResponseProcessSelection for windowProxy_transplant test, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D34907

--HG--
extra : moz-landing-system : lando
2019-06-13 18:09:22 +00:00
Andrea Marchesini 9023382549 Bug 1558923 - Remove nsContentUtils::GetThreadSafe{ASCII,UTF8}Origin, r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D34767

--HG--
extra : moz-landing-system : lando
2019-06-13 19:45:52 +00:00
Andrea Marchesini 7009293bd7 Bug 1558923 - Simplify URL API, r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D34766

--HG--
extra : moz-landing-system : lando
2019-06-13 19:45:19 +00:00
Brindusan Cristian e6cda35f79 Backed out 2 changesets (bug 1550137) for bc failures at browser_masterPassword.js. CLOSED TREE
Backed out changeset d7b5c95addb1 (bug 1550137)
Backed out changeset db2092bd295b (bug 1550137)
2019-06-13 22:54:17 +03:00
Brindusan Cristian a2461d871d Backed out changeset 3876241cc1ec (bug 1558506) for mochitest failrues at test_contextmenu_list.xul. CLOSED TREE 2019-06-13 22:52:41 +03:00
Narcis Beleuzu 01662f5eb8 Backed out changeset 62ac95a65617 (bug 1495621) for marionette mozprocess timed out failures. 2019-06-13 22:20:03 +03:00
Narcis Beleuzu ed60adfc3c Backed out 5 changesets (bug 1510569) for bustages on BrowserChild.cpp . CLOSED TREE
Backed out changeset 4f0f5351be8b (bug 1510569)
Backed out changeset 14bbe0916bdd (bug 1510569)
Backed out changeset 19e734aeffa9 (bug 1510569)
Backed out changeset abb51690fd32 (bug 1510569)
Backed out changeset 1bf1907ee0c9 (bug 1510569)
2019-06-13 22:08:23 +03:00
alwu 2e33188362 Bug 1557548 - part2 : enable wpt 'navigate_cue_position.html'. r=heycam
Disable on Windows is because sometime iframe can't load successfully, which makes our test file showing wrong image.

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

--HG--
extra : moz-landing-system : lando
2019-06-13 17:52:40 +00:00