Commit Graph

644302 Commits

Author SHA1 Message Date
Masayuki Nakano
de2d589e58 Bug 1540015 - part 3: Rename Document::GetShell() to Document::GetPresShell() and make it return PresShell* rather than nsIPresShell* r=smaug,emilio
This makes `Document::GetShell()` return `PresShell*` instead of `nsIPresShell`.

Additonally, "shell" is unclear ("docshell" vs. "presshell").  Therefore, this
also renames `Document::GetShell()` to `Document::GetPresShell()`.

Similarly, some other method names of `Document` are also renamed from
`*Shell*` to `*PresShell*`.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 15:12:47 +00:00
Masayuki Nakano
b7fbcf781f Bug 1540015 - part 2: Make nsPresContext.h stop including nsIPresShel.h and nsIPresShellInlines.h r=smaug
`*Inlines.h` shouldn't be included by another header file, but `nsPresContext.h`
does it.  This causes include-hell which blocks the following fix.

Additionally, it causes an include hell between `PresShell.h` vs.
`nsIPresShell.h` and `nsPresContext.h if `Document.h` includes `PresShell.h`.
Therefore, this patch also solves this include hell with adding
`nsPresContextInlines.h`.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 15:11:22 +00:00
Masayuki Nakano
e705b3211c Bug 1540015 - part 1: Make Document.h stop including nsIPresShell.h r=smaug
If `Document::GetShell()` returns `PresShell*` rather than `nsIPresShell`, it's
a good step to deCOMTaminate `PresShell`.

This patch makes `Document.h` stop including `nsIPresShell.h` since
`nsIPresShell.h` includes `Document.h` indirectly and that causes bustage
when we make `Document::GetShell()` return `PresShell*`.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 15:11:04 +00:00
Alex Gaynor
e845354e42 Bug 1539892 - replace FeatureChange and GPUDeviceStatus IPDL unions with native Maybe syntax; r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D25259

--HG--
extra : moz-landing-system : lando
2019-03-28 21:13:53 +00:00
Staś Małolepszy
3aa3bb6bc9 Bug 1539192 - Update to Fluent.jsm 0.12.0, FluentSyntax 0.12.0. r=zbraniecki
Update the vendored Fluent libraries to their latest versions, both supporting Fluent Syntax 0.9.

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

--HG--
extra : moz-landing-system : lando
2019-03-27 20:43:33 +00:00
Ian Moody
709594bd91 Bug 1538382 - Teach mozinfo to report the correct values for bits and processor on ARM64. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D24574

--HG--
extra : moz-landing-system : lando
2019-03-27 17:02:41 +00:00
Bob Clary
a38770e259 Bug 1525401 - [mozdevice 3.0.2] work around need to invoke su -c setenforce 0 prior to check for su support when using Magisk later than 17.3, r=gbrown.
Differential Revision: https://phabricator.services.mozilla.com/D25398

--HG--
extra : moz-landing-system : lando
2019-03-29 14:56:42 +00:00
Brian
d8eb046cd9 Bug 1523763 - Move tab context menu strings to FTL file loaded on-demand. r=Gijs,flod
Moved tab context menu out of browser.dtd to browser.xul except for sendPageToDevice, sendLinkToDevice, moveTabOptions, moveSelectedTabOptions, undoCloseTab. Not sure if tabbrowser.js and tabbrowser.xul are working as intended.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 14:55:12 +00:00
Dão Gottwald
346b38ebad Bug 1524510 - Freeze quantum bar results when the user interacts with them. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D25222

--HG--
extra : moz-landing-system : lando
2019-03-29 14:53:52 +00:00
sotaro
2f9999a07a Bug 1539732 - Release unnecessary GeckoSurfaceTexture resource at RenderCompositorEGL r=jnicol
Bug 1416015 and Bug 1470348 added function calls for CompositorOGL. Similar things needs to be done for RenderCompositorEGL.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 14:36:05 +00:00
Brian Grinstead
aa4c004b0f Bug 1539665 - Handle the tabbrowser-arrowscrollbox XBL logic from within tabbrowser-tabs r=dao
Differential Revision: https://phabricator.services.mozilla.com/D25153

--HG--
extra : moz-landing-system : lando
2019-03-29 14:34:59 +00:00
alexandru.ionescu
1902546a62 Bug 1534628 add benchmark measurement to raptor error handeling r=rwood
Differential Revision: https://phabricator.services.mozilla.com/D23304

--HG--
extra : moz-landing-system : lando
2019-03-29 14:36:56 +00:00
Marian Raiciof
e2de20e8a8 Bug 1536095 - Add aframe.io Animation page to tp6-m r=davehunt,rwood
Bug 1536095 - Add aframe.io Animation page to tp6-m

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

--HG--
extra : moz-landing-system : lando
2019-03-29 14:41:31 +00:00
Dorel Luca
a91d673cd5 Backed out changeset b6f5942c42bb (bug 1532582) for Eslint failure. CLOSED TREE 2019-03-29 16:37:21 +02:00
Kartikaya Gupta
557527a0b6 Bug 1539953 - Initialize mScrollId to the root scroll id. r=kvark
A spatial id of 0 refers to the root reference frame on the WR side, but
we shouldn't be using that on the Gecko side at all. Due to the
early-exit codepath in ClipManager we were actually sending some display
items with this spatial id over to WebRender. Although this doesn't
appear to cause any user-visible problems it seems wrong and can confuse
debugging other issues.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 14:13:38 +00:00
Nicolas Chevobbe
d45c05f470 Bug 1524276 - Group content blocking messages. r=bgrins,Honza.
If there's at least 2 content blocking messages displayed
for a given page navigation, we display a warning group
containing the messages, collapsed by default.
This means we need to move or insert those warning messages
at the right position in visibleMessages, either when they're
added, or when we expand a group.
Two mochitest are added to make sure this works as expected,
one for generic warningGroup features (expanding, group per
navigation session, …), and another one specifically for
content blocking warning group, where we check that every
type of content blocking message can be grouped.

The grouping won't occur unless the groupWarnings preferences
is on.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 14:19:50 +00:00
Nicolas Chevobbe
10c0d470ac Bug 1524276 - Add WarningGroup message component. r=bgrins.
This component will be used to render warning groups messages.
We also add a `inWarningGroup` prop to the `Message` component
so warnings that will be displayed in such warningGroup can
be styled differently (no warning icon, a different color for
the indent).
Add some utils functions and constants to check if a message
should be a warning group.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 14:18:18 +00:00
Nicolas Chevobbe
ece7da37a9 Bug 1524276 - Add groupWarnings preference in console redux state. r=bgrins.
This will be used to enable groups of warning messages (Tracking Protection,
CSP, CORS, …).

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

--HG--
extra : moz-landing-system : lando
2019-03-29 14:17:32 +00:00
Nicolas Chevobbe
9539eccd33 Bug 1524276 - Expose category and innerWindowID properties in ConsoleMessage. r=bgrins.
This will be used to group similar messages together.
Stubs are updated.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 14:17:03 +00:00
Rob Wu
420fe7e403 Bug 1540078 - Let pywebsocket listen at localhost in mochitests r=ahal
Not specifying an explicit host causes pywebsocket to listen on the
default address, which may be 0.0.0.0. This triggers the firewall
on macOS, and causes the following prompt to be shown when mochitests
are run:

> Do you want the application "Python.app"
> to accept incoming network connections?

The dialog is a nuisance because it is always on top. Since denying
the access does not change the outcome of tests, it should be safe
to only listen on localhost.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 14:11:13 +00:00
Andrea Marchesini
788d12712b Bug 1539407 - Use the correct global for DOMEventTargetHelper in IndexedDB, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D25041

--HG--
extra : moz-landing-system : lando
2019-03-29 14:12:04 +00:00
Emily Toop
65bf84e5c6 Bug 1532582 - Display autofill popup in correct location. r=geckoview-reviewers,snorp,kats
This autofill popover was being displayed in the incorrect place because the display rect we were providing to the `AutofillManager` was the rect for the `GeckoView` and not the rect for the HTML element that the autofill popover was relating to.

1. Add view dimensions to info passed to autofill in `GeckoViewAutoFill`.
2. Use those view dimensions to calculate the correct location on the screen using `pageToScreenMatrix` in `GeckoSession`.

The resulting locations were incorrect, as the values used by `pageToScreenMatrix` were out of date. The `GeckoSession` was only notified about updated metrics during first composite, which meant that when the metrics changed during zoom and scroll on soft keyboard presentation, `GeckoSession` was unaware of it.

3. Update `GeckoSession` with new screen metrics when they change and not only during first composite.

Despite this change ensuring that `GeckoSession` always had the correct values for the viewport size and location, the request to provide the autofill location was made before the zoom and scroll was complete, meaning that even then out of date values were used during the calculation. The intial solution was to fire an event once zoom was complete, but despite this event being fired after the new screen size had been calculcated in `AsyncCompositionManager`, `GeckoSession` did not receive the values until after the event had been processed (the calls were out by 0.024ms).

5. Call new method `onScreenMetricsUpdated` inside `SessionTextInput` after screen metrics have been updated. Call `AutofillManager#notifyViewEntered` from this function.

This was not my preferred solution to this, but timing issues meant I could not find/think of an alternative way of delaying the calculation of the autofill popover location until after `GeckoSession` had been updated.

This patch currently fixes things on GV apps. Occasionally, on Fennec, the autofill view is out of alignment slightly. This needs further work.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 12:49:26 +00:00
Andrew Halberstadt
6c4d83431a Bug 1539957 - [fuzzy] Fix |mach try --preset foo -xq bar| when running a preset, r=jgraham
While running presets + intersection queries works with 'mach try fuzzy
--preset <foo>', it is still broken with 'mach try --preset <foo>'.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 13:27:34 +00:00
Andrea Marchesini
212f48d9be Bug 1539528 - WebSocket must bind itself to valid nsIGlobalObject in workers, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D25088

--HG--
extra : moz-landing-system : lando
2019-03-29 14:14:53 +00:00
Dorel Luca
5a0fa68b78 Backed out 3 changesets (bug 1540015) for build bustage. CLOSED TREE
Backed out changeset 7b71c9da0214 (bug 1540015)
Backed out changeset 5723ddbc5c44 (bug 1540015)
Backed out changeset 9561d2c36fa5 (bug 1540015)
2019-03-29 16:14:26 +02:00
Dão Gottwald
93b8582627 Bug 1540103 - urlbarView-tags container should be a span, not a div. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D25372

--HG--
extra : moz-landing-system : lando
2019-03-29 14:05:52 +00:00
alexandru.ionescu
548250ddec Bug 1536758 Switch to using event listener instead of overloading window.onload in runner/measure.js r=acreskey
Differential Revision: https://phabricator.services.mozilla.com/D24163

--HG--
extra : moz-landing-system : lando
2019-03-29 13:14:33 +00:00
Masayuki Nakano
9273f25ce2 Bug 1540015 - part 3: Rename Document::GetShell() to Document::GetPresShell() and make it return PresShell* rather than nsIPresShell* r=smaug,emilio
This makes `Document::GetShell()` return `PresShell*` instead of `nsIPresShell`.

Additonally, "shell" is unclear ("docshell" vs. "presshell").  Therefore, this
also renames `Document::GetShell()` to `Document::GetPresShell()`.

Similarly, some other method names of `Document` are also renamed from
`*Shell*` to `*PresShell*`.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 13:09:26 +00:00
Masayuki Nakano
2137fa4b14 Bug 1540015 - part 2: Make nsPresContext.h stop including nsIPresShel.h and nsIPresShellInlines.h r=smaug
`*Inlines.h` shouldn't be included by another header file, but `nsPresContext.h`
does it.  This causes include-hell which blocks the following fix.

Additionally, it causes an include hell between `PresShell.h` vs.
`nsIPresShell.h` and `nsPresContext.h if `Document.h` includes `PresShell.h`.
Therefore, this patch also solves this include hell with adding
`nsPresContextInlines.h`.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 12:13:08 +00:00
Masayuki Nakano
854606257b Bug 1540015 - part 1: Make Document.h stop including nsIPresShell.h r=smaug
If `Document::GetShell()` returns `PresShell*` rather than `nsIPresShell`, it's
a good step to deCOMTaminate `PresShell`.

This patch makes `Document.h` stop including `nsIPresShell.h` since
`nsIPresShell.h` includes `Document.h` indirectly and that causes bustage
when we make `Document::GetShell()` return `PresShell*`.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 12:12:20 +00:00
Rob Wood
2efaefdfc3 Bug 1539438 - Expand tp6m-cold-1; r=davehunt
Differential Revision: https://phabricator.services.mozilla.com/D25060

--HG--
extra : moz-landing-system : lando
2019-03-29 13:28:06 +00:00
Chris AtLee
4fa0b916d6 Bug 1539905: Cache yaml loading r=mtabara
Differential Revision: https://phabricator.services.mozilla.com/D25273

--HG--
extra : moz-landing-system : lando
2019-03-29 07:34:33 +00:00
Dorel Luca
bc7a8d64ee Backed out changeset 9eca658703d9 (bug 1524510) for browser chrome failures in browser/components/urlbar/tests/browser/browser_autoFill_preserve.js. CLOSED TREE
--HG--
extra : amend_source : 0b2de71129bfc99f88285599dabb215cdeebca8c
2019-03-29 15:28:27 +02:00
Belén Albeza
df8a6860a4 Bug 1538678 - Fix react 'unique key prop' error in ConnectSteps. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D25227

--HG--
extra : moz-landing-system : lando
2019-03-28 15:56:32 +00:00
Emilio Cobos Álvarez
859ca6ad05 Bug 1540093 - Unship line-height: -moz-block-height. r=mats
They're only used in forms.css, and only for some anonymous content, which are
not content-accessible in the first place.

The only place where this could be exposed is calling
getComputedStyle(input, "::placeholder"), so I think this should be pretty safe,
but I've added a pref just in case.

While at it, also derive the Parse implementation. Less code is better.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 11:11:27 +00:00
Emilio Cobos Álvarez
3514c8548d Bug 1540093 - Refactor some enabledness checks. r=mats
There are some common checks that could get some easy-to-use aliases.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 11:12:12 +00:00
Dão Gottwald
cb2ec13acb Bug 1524510 - Freeze quantum bar results when the user interacts with them. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D25222

--HG--
extra : moz-landing-system : lando
2019-03-29 10:39:34 +00:00
Daniel Varga
1380d5ef8d Backed out 4 changesets (bug 1524276) for mochitest-devtools failure at devtools/client/webconsole/test/fixtures/stub-generators/browser_webconsole_check_stubs_console_api.js. On a CLOSED TREE
Backed out changeset 47363a80ef6d (bug 1524276)
Backed out changeset 1fee0c357772 (bug 1524276)
Backed out changeset 8bbe3e4f5a54 (bug 1524276)
Backed out changeset d21159afd969 (bug 1524276)
2019-03-29 13:47:46 +02:00
Masayuki Nakano
81b30d7143 Bug 1539356 - Mark EditorBase::InsertNodeTransaction() as MOZ_CAN_RUN_SCRIPT r=m_kato
This patch marks `EditorBase::InsertNodeTransaction()` **and** its callers as `MOZ_CAN_RUN_SCRIPT`.

Unfortunately, this patch tells us that some `GetSomething()` methods may destroy the editor since `HTMLEditRules::GetNodesForOperation()`, `HTMLEditRules::GetNodesFromPoint()` and `HTMLEditRules::GetNodesFromSelection()` may change the DOM tree.  Additionally, initialization methods may destroy the editor since it may insert a bogus `<br>` node.

Note that this patch also removes some unused methods. I.e., they are not result of some cleaning up the code. This patch just avoids marking unused methods as `MOZ_CAN_RUN_SCRIPT`.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 10:55:31 +00:00
Liang-Heng Chen
624de11cb1 Bug 1492587 - spoof date picker to en-US when pref is set; r=zbraniecki,baku
spoof locale on datepicker to English when privacy.spoof_english == 2

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

--HG--
extra : moz-landing-system : lando
2019-03-29 10:49:58 +00:00
Patrick Brosset
bcfd6cd961 Bug 1409085 - Tell RDM when picking to stop simulating touch; r=mtigley,gl
Differential Revision: https://phabricator.services.mozilla.com/D25231

--HG--
extra : moz-landing-system : lando
2019-03-29 09:47:35 +00:00
Dorel Luca
d00c43f033 Backed out changeset b81febb43f21 (bug 1539528) for Mochitest failues in dom/websocket/tests/test_webSocket_sharedWorker.html. CLOSED TREE 2019-03-29 12:27:27 +02:00
Petru Lingurar
ca307a61f1 Bug 1506231 - Top Sites tiles will show only one site for the same base url; r=JanH
Differential Revision: https://phabricator.services.mozilla.com/D24487

--HG--
extra : moz-landing-system : lando
2019-03-29 07:57:51 +00:00
Dão Gottwald
100931f6b9 Bug 1537767 - Adjust --tabs-navbar-shadow-size for 300% DPI. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D25048

--HG--
extra : moz-landing-system : lando
2019-03-28 17:50:44 +00:00
Emilio Cobos Álvarez
530e4429f9 Bug 1539742 - Notify of appends to the right document when parsing into an already-adopted node. r=bzbarsky
nsContentSink used to decide that it was fine to not notify of silent appends to
a document from the parser if the node was not on our document already.

That's not ok, since if styling or layout have happened already on the document
we're getting inserted into nobody notices them, which is wrong.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 09:55:10 +00:00
Florin Strugariu
5ef71add7a Bug 1457274 Upgrade mitmproxy in production r=rwood,tarek
Differential Revision: https://phabricator.services.mozilla.com/D21374

--HG--
rename : testing/raptor/raptor/playback/alternate-server-replay.py => testing/raptor/raptor/playback/alternate-server-replay-2.0.2.py
extra : moz-landing-system : lando
2019-03-29 09:54:53 +00:00
Makoto Kato
66d295beb2 Bug 1540062 - Get rid of nsIPlaintextEditor.setWrapColumn. r=masayuki
No one (m-c, c-c and bluegriffon) uses nsIPlaintextEditor.setWrapColumn from
script. It is used from C++ only.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 09:44:36 +00:00
Tom Tung
ebcbda67b0 Bug 1539208 - P2 - Use RandomNum while failing to get a random number from RandomGenerator; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D25104

--HG--
extra : moz-landing-system : lando
2019-03-29 09:04:10 +00:00
Tom Tung
33a688e689 Bug 1539208 - P1 - Return an error when the Reponse object is null'd; r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D25228

--HG--
extra : moz-landing-system : lando
2019-03-28 15:27:49 +00:00
Jan de Mooij
126dd4fe64 Bug 1534902 - Move more of XPConnect's PreWrap code into the JS engine. r=kmag
This ensures the JS shell and browser behave the same way and it's nice for fuzzing.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 09:06:31 +00:00