Commit Graph

653244 Commits

Author SHA1 Message Date
Jan de Mooij
12e6a5f9bd Bug 1554080 part 5 - Replace the masm.loadJitCodeNoArgCheck in GenerateImportJitExit with a TLS load. r=bbouvier
This way we have two loads instead of three.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 14:14:46 +00:00
Jan de Mooij
512fc542c0 Bug 1554080 part 4 - Store JitScript* instead of BaselineScript* in FuncImportTls. r=bbouvier
This has a few benefits:

* Less toggling when we discard/reallocate the BaselineScript without discarding
  the JitScript.

* Wasm's JIT exit optimization will work with the Baseline Interpreter in the
  future.

* The next part will use this to eliminate a load.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 14:08:23 +00:00
Jan de Mooij
170b670145 Bug 1554080 part 3 - Use UniquePtr for BaselineScript::dependentWasmImports_. r=bbouvier
Differential Revision: https://phabricator.services.mozilla.com/D32443

--HG--
extra : moz-landing-system : lando
2019-05-27 14:08:07 +00:00
Jan de Mooij
5c629bbbc5 Bug 1554080 part 2 - Allow Wasm FFI calls to lazy link stub. r=bbouvier
The lazy link stub used to assume a JIT caller but this is no longer the case.
We can then fold clearDependentWasmImports into unlinkDependentWasmImports.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 14:07:51 +00:00
Jan de Mooij
e87b1bd88f Bug 1554080 part 1 - Move jitCodeSkipArgCheck_ from JSScript to JitScript. r=bbouvier,iain
This removes a word from JSScript and corresponding Wasm data structures.

Furthermore, the skip-argument-type-checks optimization depends on JitScript's
lifetime so moving it to JitScript feels right and might help catch bugs.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 14:07:32 +00:00
Andi-Bogdan Postelnicu
16bdec73bc Bug 1554632 - reviewbot tasks should use a mozconfig file. r=bastien,sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D32680

--HG--
extra : moz-landing-system : lando
2019-05-27 14:07:39 +00:00
Ehsan Akhgari
98960a9c41 Bug 1554361 - Move the high-level storage access check APIs to mozilla/StorageAccess.h; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D32556

--HG--
extra : moz-landing-system : lando
2019-05-27 14:06:49 +00:00
Kershaw Chang
993dce095a Bug 1546041 - Throw TypeError if mode is Navigate r=baku
According to spec, we should throw TypeError if the mode is Navigate.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 13:51:16 +00:00
Boris Zbarsky
6b623aa87a Bug 1554223. Add a version of JS::NewFunctionFromSpec that does not require passing an id. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D32527

--HG--
extra : moz-landing-system : lando
2019-05-27 13:26:04 +00:00
Andrea Marchesini
4bbb03b93b Bug 1554527 - Clone the principal for permission checks in CookieSettings only if needed, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D32660

--HG--
extra : moz-landing-system : lando
2019-05-27 13:45:42 +00:00
Andrea Marchesini
67e56bf7fb Bug 1191313 - Get rid of third-party-cookie-accepted and third-party-cookie-rejected notifications, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D32665

--HG--
extra : moz-landing-system : lando
2019-05-27 13:27:47 +00:00
Andrea Marchesini
c355651b11 Bug 1416657 - Avoid calling IsThirdPartyChannel() with a nullptr channel in nsCookieService, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D32672

--HG--
extra : moz-landing-system : lando
2019-05-27 13:25:12 +00:00
Ehsan Akhgari
fa14c5eccf Bug 1554516 - Bring the implementation of XMLHttpRequest.requestType setter on the worker thread up to the spec; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D32656

--HG--
extra : moz-landing-system : lando
2019-05-27 11:12:04 +00:00
Brindusan Cristian
40a5b04ab5 Backed out 3 changesets (bug 1552708, bug 1552878) for build bustages and compiler issues. CLOSED TREE
Backed out changeset 9d4f178bfcbd (bug 1552878)
Backed out changeset 80db9f845237 (bug 1552708)
Backed out changeset 1bdbfbb5b342 (bug 1552708)
2019-05-27 17:00:03 +03:00
Henri Sivonen
b5386fef86 Bug 1549930 - Avoid popping BrowserParent in response to window lowering. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D30873

--HG--
extra : moz-landing-system : lando
2019-05-27 12:22:37 +00:00
Mihai Alexandru Michis
5d91cbb8ef Backed out 2 changesets (bug 1546894) for causing mochitest failures at test_canvas.html CLOSED TREE
Backed out changeset b3176ad6f3a7 (bug 1546894)
Backed out changeset 5bc7f1dbafe5 (bug 1546894)
2019-05-27 15:44:26 +03:00
Miko Mynttinen
81f2affed9 Bug 1496491 - Check for modified ancestors when updating WeakFrameRegion r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D32487

--HG--
extra : moz-landing-system : lando
2019-05-26 22:25:12 +00:00
Emilio Cobos Álvarez
a6bdf94e22 Bug 1552878 - Use cbindgen for filters. r=jwatt
Had to implement some OwnedSlice bits that the canvas code used.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 12:37:37 +00:00
Andreas Pehrson
38bcf48b1c Bug 1546655 - Modernize test_streams_element_capture.html. r=jib
This async/await-ifies the test to put checks in logical order.
It also, as a drive-by, adds `v.token = token` since this is a cue to the test
framework in manifest.js to mozDumpDebugInfo() on the right element after
timeout of a token.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 12:32:00 +00:00
Andreas Pehrson
8ec3fef61a Bug 1546655 - Remove racy assert. r=jya
This assert can be racy if the following sequence happens:
SetPlaying() -- watch manager schedules SendData()
Stop() -- unwatches mPlaying, resets mStartTime
SendData() -- fails the assert

SendData handles the case where mStartTime is unset at runtime already through the mData check, further making this assert unnecessary.

Depends on D32112

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

--HG--
extra : moz-landing-system : lando
2019-05-22 12:43:11 +00:00
Andreas Pehrson
3236dd6fde Bug 1546655 - Call SendData() on SetPlaying(true). r=jya
The following sequence in DecodedStream could lead to a stall for a captured
media element:
- MediaDecoder decodes some data, DecodedStream sends it out
- MediaDecoder pauses for buffering, DecodedStream sees SetPlaying(false)
- MediaDecoder decodes until the end, DecodedStream doesn't send since it's
  not playing
- MediaDecoder starts playing again, DecodedStream sees SetPlaying(true)

At the last step above, SetPlaying(true) doesn't trigger SendData() so no data
is sent out. Since all data has already been decoded, nothing can trigger
SendData() anymore. This patch fixes this by calling SendData() on SetPlaying().

Depends on D32111

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

--HG--
extra : moz-landing-system : lando
2019-05-22 12:47:01 +00:00
Andreas Pehrson
567ff1cd38 Bug 1546655 - Add AudioQueue info to DecodedStream's debug info. r=jya
Depends on D32110

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

--HG--
extra : moz-landing-system : lando
2019-05-22 12:46:25 +00:00
Andreas Pehrson
21e37086ec Bug 1546655 - Switch to NullableTimeUnit where applicable in DecodedStream. r=jya
DecodedStream is already using this for mStartTime.

Depends on D32109

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

--HG--
extra : moz-landing-system : lando
2019-05-22 12:46:17 +00:00
Andreas Pehrson
89a63019db Bug 1546655 - Re-enable tests. r=jya
Depends on D32108

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

--HG--
extra : moz-landing-system : lando
2019-05-22 12:46:09 +00:00
Sebastian Hengst
11a4dfbcd7 Bug 1543355 - Move early return in org.mozilla.geckoview.test.ContentDelegateTest.download on Android pgo to start of test to avoid timeouts. a=move-of-test-disabling 2019-05-27 14:31:04 +02:00
Emilio Cobos Álvarez
5babf3a263 Bug 1554496 - Don't remove the IS_IN_SHADOW_TREE flag from CharacterData unlinking. r=edgar
We used to do that for FragmentOrElement too, but it was removed in D3533. The
explanation is a bit hidden in the revision, but quoting:

> Needed to remove the IN_SHADOW_TREE flag removal from unlinking since it may
> make a ShadowRoot claim not to be a ShadowRoot (nsINode::IsShadowRoot() would
> return false).
>
> In practice it was there because there was code that assumed that
> IsInShadowTree() -> GetContainingShadow() != nullptr
>
> But that stopped holding a while ago, and callers have been adjusted in the
> meantime to not assume that, so it should be fine to not remove the flag now.

We also unbind the Shadow tree on unlink now, which didn't use to happen.

This makes CharacterData consistent with FragmentOrElement.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 12:08:14 +00:00
Masayuki Nakano
4fe540db19 Bug 1547897 - Make WSRunObject stop scanning outside of editing host r=m_kato
`WSRunObject` scans previous and next node of given point/range **without**
checking editing host boundary.  Therefore, its methods may return non-editable
nodes or editable nodes in another editing host.  In such cases, `HTMLEditRules`
is confused.

This patch makes it store editing host at initialization and it check the
boundary.  However, the former cost may appear in score of some benchmark
tests, but we shouldn't allow attackers to use this entrance.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 12:10:23 +00:00
Emilio Cobos Álvarez
c2d1e98f4c Bug 1552708 - Tweak rust tests to account for more compact URL representation. r=bustage
CLOSED TREE
2019-05-27 14:21:17 +02:00
Emilio Cobos Álvarez
f2190857bb Bug 1552708 - Use cbindgen for URIs. r=heycam
This doesn't clean up as much as a whole, but it's a step in the right
direction. In particular, it allows us to start using simple bindings for:

 * Filters
 * Shapes and images, almost. Need to:
   * Get rid of the complex -moz- gradient parsing (let
     layout.css.simple-moz-gradient.enabled get to release).
 * Counters, almost. Need to:
   * Share the Attr representation with Gecko, by not using Option<>.
     * Just another variant should be enough (ContentItem::{Attr,Prefixedattr},
       maybe).

Which in turn allows us to remove a whole lot of bindings in followups to this.

The setup changes a bit. This also removes the double pointer I complained about
while reviewing the shared UA sheet patches. The old setup is:

```
SpecifiedUrl
 * CssUrl
   * Arc<CssUrlData>
     * String
     * UrlExtraData
 * UrlValueSource
   * Arc<CssUrlData>
   * load id
   * resolved uri
   * CORS mode.
   * ...
```

The new one removes the double reference to the url data via URLValue, and looks
like:

```
SpecifiedUrl
 * CssUrl
   * Arc<CssUrlData>
     * String
     * UrlExtraData
     * CorsMode
     * LoadData
       * load id
       * resolved URI
```

The LoadData is the only mutable bit that C++ can change, and is not used from
Rust. Ideally, in the future, we could just use rust-url to resolve the URL
after parsing or something, and make it all immutable. Maybe.

I've verified that this approach still works with the UA sheet patches (via the
LoadDataSource::Lazy).

The reordering of mWillChange is to avoid nsStyleDisplay from going over the
size limit. We want to split it up anyway in bug 1552587, but mBinding gains a
tag member, which means that we were having a bit of extra padding.

One thing I want to explore is to see if we can abuse rustc's non-zero
optimizations to predict the layout from C++, but that's something to explore at
some other point in time and with a lot of care and help from Michael (who sits
next to me and works on rustc ;)).

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

--HG--
extra : moz-landing-system : lando
2019-05-27 11:45:12 +00:00
Andreas Tolfsen
26201b29a2 bug 1553317: remote: improve error message on missing method; r=remote-protocol-reviewers,ochameau
We return with this rather omnious message when we are missing the
implementation of a CDP method:

	Error: Protocol error (Target.createBrowserContext): TypeError: inst[command] is not a function:

This patch improves the error message so that debugging is not
necessary to find out which domain or command is missing.

Ideally Session.jsm and ContentProcessSession.jsm would share the
same execute() function (there's really not reason they don't),
but that involves more work.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 11:39:16 +00:00
Emilio Cobos Álvarez
998419a429 Bug 1554433 - Hide -moz-gtk-buttonactivetext from content. r=stransky
This prevents exposing the value to web content.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 11:25:02 +00:00
Nicolas Silva
2f30052cd5 Bug 1546894 - Fix PathBuilderSkia::CurrentPoint. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D32456

--HG--
extra : moz-landing-system : lando
2019-05-27 10:41:40 +00:00
Nicolas Silva
75c8a4d940 Bug 1546894 - Fix PathBuilderCapture::CurrentPoint when closing a path. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D32459

--HG--
extra : moz-landing-system : lando
2019-05-27 10:41:40 +00:00
Brindusan Cristian
58d68b812b Backed out changeset 3b6338393cc7 (bug 1546041) for mochitest failures at test_request.html. CLOSED TREE 2019-05-27 12:56:32 +03:00
Sebastian Hengst
f101c52cca Bug 1554542 - Fix browser.urlbar.doubleClickSelectsAll handling: remove unused variable assignment 2019-05-27 11:28:23 +02:00
Kestrel
4b5cc7c176 Bug 1539379 - Ensure light/dark theme uses correct tab text color for Windows 7 classic theme r=dao
Differential Revision: https://phabricator.services.mozilla.com/D32673

--HG--
extra : moz-landing-system : lando
2019-05-27 09:17:15 +00:00
Kershaw Chang
5d000eeb62 Bug 1544619 - Ignore response body if method is HEAD or CONNECT r=mayhemer
According to the spec, we should ignore the response body for the HEAD and CONNECT requests.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 09:08:50 +00:00
Dão Gottwald
9db3815943 Bug 1554542 - Fix browser.urlbar.doubleClickSelectsAll handling. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D32669

--HG--
extra : moz-landing-system : lando
2019-05-27 09:00:00 +00:00
Gijs Kruitbosch
bd641f5fa6 Bug 1196094 - use e10s when doing PGO profiling, r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D32329

--HG--
extra : moz-landing-system : lando
2019-05-27 09:05:21 +00:00
Andrei Oprea
f745bd685c Bug 1552896 - Cleanup the different platform specific styles for the search input r=dao
MozReview-Commit-ID: D626LKOYsAu

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

--HG--
extra : moz-landing-system : lando
2019-05-27 09:01:20 +00:00
Mihai Alexandru Michis
1dd6cb6ee5 Backed out 6 changesets (bug 1543077) for causing bc failures at docshell/test/browser/browser_bug1543077.js
Backed out changeset f593045cc48f (bug 1543077)
Backed out changeset 25449ba8aceb (bug 1543077)
Backed out changeset ccc438262e29 (bug 1543077)
Backed out changeset 4573c25b1ce0 (bug 1543077)
Backed out changeset 1cbaafb9373a (bug 1543077)
Backed out changeset 1a0e7ced8e47 (bug 1543077)

--HG--
extra : rebase_source : f04bf405303fe03776f0e70b03db076c0a41ae45
2019-05-27 12:00:21 +03:00
violet
5519af913c Bug 1554457 - Obtain style from frame rather than GetComputedStyleNoFlush r=emilio,longsonr,birtles
These usecases are almost the same as the geometry property stuff. It'd
be better to use `GetPrimaryFrame()->Style()` consistently rather than
using `GetComputedStyleNoFlush()` here.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 05:06:47 +00:00
violet
d246402be3 Bug 1554568 - Should resolve font-size of inner svg from itself r=longsonr
Resolving length for inner <svg> is exactly the same as other ordinary
element. We should not pass the context to `GetAnimValue()`, otherwise
font-size will be obtained from the enclosing viewport of the inner
<svg> rather than the inner <svg> itself.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 06:46:53 +00:00
John Dai
3c7a906413 Bug 1552554 - Move JSWindowActor config dictionaries into JSWindowActor.webidl; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D32325

--HG--
extra : moz-landing-system : lando
2019-05-24 18:44:43 +00:00
Julian Descottes
12d5dff1f5 Bug 1535102 - Extract shared helper to setup remote CDP mochitests r=ato
Depends on D32538.
Not mandatory, but we have some duplicated code shared by several mochitests, maybe we could have a shared helper?

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

--HG--
extra : moz-landing-system : lando
2019-05-27 08:04:11 +00:00
Julian Descottes
2456aa785c Bug 1535102 - Implement Page.bringToFront and introduce parent Page domain r=ato
Differential Revision: https://phabricator.services.mozilla.com/D32538

--HG--
extra : moz-landing-system : lando
2019-05-27 08:52:03 +00:00
Kershaw Chang
b53ba78d32 Bug 1546041 - Throw TypeError if mode is Navigate r=baku
According to spec, we should throw TypeError if the mode is Navigate.

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

--HG--
extra : moz-landing-system : lando
2019-05-15 20:36:09 +00:00
Mirko Brodesser
899bfb263a Bug 1554222: delegate serializing in nsDocumentEncoder depending on encoding scope to separate methods. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D32486

--HG--
extra : moz-landing-system : lando
2019-05-27 07:50:19 +00:00
Mirko Brodesser
f191dd8a13 Bug 1554147: default initialize member in EncodedDocumentWithContext. r=hsivonen
Just for consistency.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 07:24:37 +00:00
Mirko Brodesser
0ad0e91ed8 Bug 1554147: rename mCommonParent and encapsulate mStartDepth and mEndDepth in ContextInfoDepth. r=hsivonen
In order to simplify `nsDocumentEncoder`.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 07:45:15 +00:00