Commit Graph

708308 Commits

Author SHA1 Message Date
Eden Chuang
16b5f23697 Bug 1532287 - P2 Propagate loading document/worker's COEP to nsHttpChannel through nsILoadInfo r=necko-reviewers,valentin,JuniorHsu
Currently, the worker's COEP is saved in WorkerPrivate and not be respected when loading resources in workers.
This patch adds an attribute loadingEmbedderPolicy in nsILoadInfo, which indicates the COEP header the loading must be respected.

The default value of loadingEmbedderPolicy is nsILoadInfo::EMBEDDER_POLICY_NULL.
loadingEmbedderPolicy is initialized with the COEP of the BrowsingContext used for creating LoadInfo.
And it could be set to other value when fetch in workers.

Differential Revision: https://phabricator.services.mozilla.com/D73690
2020-05-19 12:50:39 +00:00
Eden Chuang
c42e8d4e87 Bug 1532287 - P1 Saving the loading document/worker's COEP in InternalRequest. r=dom-workers-and-storage-reviewers,perry
Currently, the worker's COEP value is saved in WorkerPrivate and it is not respected for fetch/cache API in workers.
This patch saving the COEP value which fetch/cache API should be respected when using in workers.
Notice that for the dedicated workers, it is not only respected to worker's COEP but also its owner's.

For fetch in workers, P2 will propagate the COEP value through nsILoadInfo to HttpChannels, such that COEP can be respected in parent process when calling ProcessCrossOriginResourcePolicyHeader() and ProcessCrossOriginEmbedderPolicyHeader().

For cache in workers. We handle it in bug 1603168. COEP will be propagated through CacheRequest to the parent process and respected in CacheOpParent::OnOpComplete().

Differential Revision: https://phabricator.services.mozilla.com/D73689
2020-05-19 12:50:36 +00:00
Eugen Sawin
b4fb238257 Bug 1638904 - [2.0] Add a private mode context ID test. r=geckoview-reviewers,agi
Depends on D75822

Differential Revision: https://phabricator.services.mozilla.com/D75823
2020-05-18 18:44:33 +00:00
Eugen Sawin
d4eadbda81 Bug 1638904 - [1.0] Add a private mode content blocking exception test. r=agi,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D75822
2020-05-18 18:46:54 +00:00
Honza Bambas
87cfab963e Bug 1618544 - Make XMLHttpRequest use <link preload>, r=baku
Differential Revision: https://phabricator.services.mozilla.com/D75557
2020-05-19 11:34:36 +00:00
Nathan Froyd
9f876bab7a Bug 1638012 - commonize taskcluster-related bootstrappers for Linux; r=nalexander
This change doesn't fix all of the boilerplate involved in declaring
that certain packages should be fetched from taskcluster, but it's a
start, at least.

Differential Revision: https://phabricator.services.mozilla.com/D75330
2020-05-18 16:27:09 +00:00
Farooq AR
b86d20d213 Bug 1636420 - Connect SSE actor to the Message panel. r=Honza,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D75792
2020-05-19 12:04:12 +00:00
Xidorn Quan
7908de0f36 Bug 1638499 - Disable browser_fullscreen_window_focus.js on macOS. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D75923
2020-05-19 12:03:29 +00:00
Jan de Mooij
1a0bfd2ba8 Bug 1638798 part 3 - Optimize Math functions implemented with a C++ call in CacheIR and Warp. r=evilpie
For now this only optimizes the Math functions where Ion _always_ uses a C++ call.

Depends on D75806

Differential Revision: https://phabricator.services.mozilla.com/D75808
2020-05-18 18:58:56 +00:00
Jan de Mooij
329ee79d09 Bug 1638798 part 2 - Factor out code to convert UnaryMathFunction to function pointer or string. r=evilpie
Already removes some duplication between GVN and CodeGenerator.

Differential Revision: https://phabricator.services.mozilla.com/D75806
2020-05-19 11:03:06 +00:00
Jan de Mooij
810973a4c4 Bug 1638798 part 1 - Replace MMathFunction::Function enum with UnaryMathFunction enum class. r=evilpie
CacheIR code will use this enum class too.

Differential Revision: https://phabricator.services.mozilla.com/D75805
2020-05-18 18:47:02 +00:00
André Bargull
222f19424a Bug 1557727 - Part 5: Check in ICU memory usage script and adjust max-memory for Intl.DisplayNames. r=jwalden
This is the script from bug 1585536, updated to support Intl.DisplayNames.

Differential Revision: https://phabricator.services.mozilla.com/D52167
2020-05-19 11:24:28 +00:00
André Bargull
e895b9aad4 Bug 1557727 - Part 4: Add tests for Intl.DisplayNames. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D52166
2020-05-19 11:18:44 +00:00
André Bargull
d9dc862621 Bug 1557727 - Part 3: Implement Intl.DisplayNames proposal. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D52165
2020-05-19 11:18:16 +00:00
André Bargull
ed36cb5b9c Bug 1557727 - Part 2: Add Intl.DisplayNames boilerplate. r=jwalden
Adds the standard boilerplate for a new Intl object.

Differential Revision: https://phabricator.services.mozilla.com/D52164
2020-05-19 11:17:48 +00:00
André Bargull
b029ce9ac8 Bug 1557727 - Part 1: Add resources for Intl.DisplayNames to ICU data file. r=jwalden
Differential Revision: https://phabricator.services.mozilla.com/D52163
2020-05-19 11:17:21 +00:00
Mark Banner
5eca17d463 Bug 1637396 - Harden loading the search configuration against failures. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D74952
2020-05-19 10:11:33 +00:00
Jan de Mooij
c684fe00a6 Bug 1638790 part 3 - Transpile Math.sqrt in Warp. r=evilpie
Depends on D75768

Differential Revision: https://phabricator.services.mozilla.com/D75769
2020-05-18 18:40:27 +00:00
Jan de Mooij
2e07f18029 Bug 1638790 part 2 - Inline Math.sqrt in CacheIR. r=evilpie
Depends on D75767

Differential Revision: https://phabricator.services.mozilla.com/D75768
2020-05-18 18:38:54 +00:00
Jan de Mooij
99041d6d87 Bug 1638790 part 1 - Share more sqrt codegen code in Ion. r=evilpie
This also fixes sqrtDouble/sqrtFloat32 to match the old code to fix an assertion
failure on x86/x64 when input/output registers are different.

Depends on D75766

Differential Revision: https://phabricator.services.mozilla.com/D75767
2020-05-19 06:01:11 +00:00
Andi-Bogdan Postelnicu
86f93ce272 Bug 1635112 - Mark clang-diagnostic-error as publishable in the clang-tidy artifact. r=marco
For `clang-tidy` static-analysis mark all diagnostic-messages that are `clang-diagnostic-error` as publishable.

Differential Revision: https://phabricator.services.mozilla.com/D74229
2020-05-08 07:19:51 +00:00
Andi-Bogdan Postelnicu
0b18f7ab13 Bug 1635112 - Disable the build error reporting at review-phase using Coverity. r=sylvestre,marco
Differential Revision: https://phabricator.services.mozilla.com/D74003
2020-05-08 09:30:02 +00:00
Andi-Bogdan Postelnicu
ac1e721802 Bug 1635112 - Use clang-tidy as warning build error detector for our static-analysis targets. r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D73692
2020-05-08 07:19:23 +00:00
Andi-Bogdan Postelnicu
7a23d681c5 Bug 1635112 - remove MSVC support from WarningsCollector. r=glandium
MSVC is not supported by the build system anymore.

Differential Revision: https://phabricator.services.mozilla.com/D73809
2020-05-08 07:19:02 +00:00
Cosmin Sabou
58c18a33bc Backed out changeset 04bda73f9d19 (bug 1628627) as requested by bebe. 2020-05-19 13:19:39 +03:00
Dimi Lee
27c0acc692 Bug 1637194 - P4. Inherit the first-party domain from the parent document when creating CookieJarSetting in document r=timhuang,baku
This fixes a issue that about:blank page can't get correct first-party
domain when fission is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D75784
2020-05-19 09:47:42 +00:00
Dimi Lee
6a62a08c2a Bug 1637194 - P3. StoragePrincipalHelper uses firstPartyDomain in CookieJarSetting r=timhuang,baku
Differential Revision: https://phabricator.services.mozilla.com/D75278
2020-05-19 09:47:32 +00:00
Dimi Lee
ae8751a56d Bug 1637194 - P2. Set firstPartyDomain to CookieJarSetting in nsHttpChannel::AsyncOpen r=necko-reviewers,timhuang,baku,kershaw
FirstPartyDomain is only set while loading a top-level document.
We added in nsHttpChannel::AsyncOpen to ensure that the value is updated
whenever we open a channel.

Differential Revision: https://phabricator.services.mozilla.com/D75277
2020-05-19 09:47:25 +00:00
Dimi Lee
7cf904bbc5 Bug 1637194 - P1. Add firstPartyDomain to CookieJarSetting r=timhuang,baku
Differential Revision: https://phabricator.services.mozilla.com/D75276
2020-05-19 09:47:12 +00:00
Bogdan Tara
3b974da483 Backed out 2 changesets (bug 1599773, bug 1599413) for browser_frameAttached.js failures CLOSED TREE
Backed out changeset 779bc06348ad (bug 1599773)
Backed out changeset 6f223ae549d8 (bug 1599413)
2020-05-19 12:29:17 +03:00
Simon Giesecke
f5342d154a Bug 1637605 - Add support for polymorphic return values to ToResultInvoke. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D75294
2020-05-19 09:07:08 +00:00
Simon Giesecke
24e5290fb8 Bug 1637605 - Provide adapter from functions with R*/R& output parameter and nsresult return type to Result<R, nsresult> return type. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D75091
2020-05-19 08:25:54 +00:00
Frederik Braun
b27d095e3d Bug 1613609 - prototype patch with whitelist for sysrequest r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D75064
2020-05-19 08:55:06 +00:00
Frederik Braun
de3412e689 Bug 1613609 - Add required loadinfo flag requests initiated with SystemPrincipal r=necko-reviewers,dragana
Adding the flag to existing channel/loadinfo object for:
- PushServices HTTP, WebSocket
- NetworkGeolocationProvider
- NetUtil.jsm's NewChannel
- NetworkConnectivityService
- OCSP
- Portal Detection
- ProductAddonChecker.jsm
- URLClassifier

Differential Revision: https://phabricator.services.mozilla.com/D75063
2020-05-19 08:54:58 +00:00
Andy Wingo
8a9314a6b5 Bug 1639118 - Fix preparation of large stack result area on AArch64 in baseline compiler r=lth
Differential Revision: https://phabricator.services.mozilla.com/D75907
2020-05-19 07:56:54 +00:00
Nicolas Silva
2440fa9497 Bug 1612440 - Move some types to webrender_api. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D74298
2020-05-19 07:54:25 +00:00
Nicolas Silva
1cc29ae322 Bug 1612440 - Simplify the SetDisplayList message. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D74300
2020-05-19 07:53:16 +00:00
Nicolas Silva
7716ebe2a3 Bug 1612440 - Forward glyph dimension and index requests through the scene builder thread. r=gw
This prevents the request from racing ahead of the AddFontInstance message which follows the transaction through the scene builder thread and silently returning zero-sized glyphs.

Differential Revision: https://phabricator.services.mozilla.com/D72906
2020-05-19 07:52:25 +00:00
Henrik Skupin
7457a0c05c Bug 1599773 - [remote] Implement Page.frameDetached. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D71293
2020-05-19 07:34:24 +00:00
Henrik Skupin
7afbbdd314 Bug 1599413 - [remote] Implement Page.frameAttached. r=remote-protocol-reviewers,maja_zf
Differential Revision: https://phabricator.services.mozilla.com/D71292
2020-05-19 07:32:27 +00:00
Martin Stransky
9688d1e14e Bug 1635718 [Wayland] Use portal file picked on Wayland, r=jhorak
- Use xdg-desktop-portal for file dialog picker on Wayland as the native one can't use clipboard.
- Ship widget.use-xdg-desktop-portal env variable to force xdg-desktop-portal for both print dialog and file dialog.

Differential Revision: https://phabricator.services.mozilla.com/D74830
2020-05-19 07:19:52 +00:00
Jean-Yves Avenard
38cfa9db61 Bug 1637890 - P4. Process events dispatched by destructors during shutdown. r=froydnj
We allow the last tasks dispatched during shutdown to be run rather than just leaking them.

Differential Revision: https://phabricator.services.mozilla.com/D75497
2020-05-19 06:06:18 +00:00
Timothy Nikkel
61fceb7c07 Bug 1632789. Teach PresShell::ProcessSynthMouseMoveEvent to understand desktop zooming. r=botond
Basically, we use nsLayoutUtils::TransformPoint (which understands desktop zooming) instead of nsView::ConvertFromParentCoords (which doesn't).

Differential Revision: https://phabricator.services.mozilla.com/D72340
2020-04-30 01:35:40 +00:00
Jan de Mooij
550482c1bb Bug 1638779 - Use AutoScratchFloatRegister more in emitMathAbsNumberResult. r=evilpie
Differential Revision: https://phabricator.services.mozilla.com/D75766
2020-05-19 06:51:34 +00:00
Jan de Mooij
c117862d59 Bug 1638761 - Transpile DoubleNegationResult. r=evilpie
Differential Revision: https://phabricator.services.mozilla.com/D75742
2020-05-19 06:51:34 +00:00
Andy Wingo
30a359cb06 Bug 1628352 - Update wasmparser to version 0.14.0 r=yury
Differential Revision: https://phabricator.services.mozilla.com/D75799
2020-05-18 15:01:58 +00:00
Kriyszig
9607e394bf Bug 1596091 - RFC: Adding drag and drop feature to block URL in netmonitor r=Honza,Harald,bomsy
Drag and drop is a nice little feature to have to add URL to blocked
list. Current implementation allows for blocking the URL from the
context menu but drag and drop is a nifty little feature for
convenience.
Current implementation will only allowed an unblocked URL to be
dragged and dropped. The dragging is blocked is the network
blocking panel isn't opened.
Note: This is just an RFC. @Harald had raised a question of
discoverabilty of the feature given there are no other elements
that can be dragged and dropped within the network monitor. This
is just a proposal to see if it's addition is beneficial.

Differential Revision: https://phabricator.services.mozilla.com/D74535
2020-05-18 13:43:47 +00:00
Tom Tung
707089f9a0 Bug 1606624 - Ship SharedArrayBuffer (and atomics) to Release; r=annevk
Depends on D74597

Differential Revision: https://phabricator.services.mozilla.com/D74598
2020-05-18 02:22:21 +00:00
Tom Tung
b66c778c91 Bug 1606624 - Changes on a xpconnect test; r=lth
Depends on D74596

Differential Revision: https://phabricator.services.mozilla.com/D74597
2020-05-18 02:22:21 +00:00
Tom Tung
e69dac0286 Bug 1606624 - Changes on web-platform tests; r=annevk
Depends on D66777

Differential Revision: https://phabricator.services.mozilla.com/D74596
2020-05-18 02:22:21 +00:00