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

704206 Коммитов

Автор SHA1 Сообщение Дата
Harry Twyford f43a10037e Bug 1633492 - Decouple retained results from openViewOnFocus pref. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D72714
2020-04-29 09:07:42 +00:00
Harry Twyford 60c4f4d291 Bug 1631281 - Show Top Sites regardless of suggest.openpage and suggest.bookmark pref values. r=adw
Differential Revision: https://phabricator.services.mozilla.com/D72898
2020-04-28 21:31:24 +00:00
Lee Salzman c3a1a86711 Bug 1633971 - comment SWGL's span rasterizer. DONTBUILD r=jimb
Differential Revision: https://phabricator.services.mozilla.com/D73000
2020-04-29 14:58:54 +00:00
Dimi Lee 56bfd52246 Bug 1612376 - P6. Permission update in the parent process should only happen when the heurisitc is triggered by a first-party window r=timhuang,baku
Differential Revision: https://phabricator.services.mozilla.com/D72657
2020-04-29 14:48:47 +00:00
Dimi Lee f0e37815cd Bug 1612376 - P5. Remove HasStoragePermission from WindowContext r=timhuang,baku
We don't access HasStoragePermission across process, so we don't need to
store the permission in WindowContext.

After this patch, HasStoragePermission will only be stored in the
channel's LoadInfo, which is set when a channel is created in the parent
and it won't be updated.

Depends on D71985

Differential Revision: https://phabricator.services.mozilla.com/D72305
2020-04-29 14:48:39 +00:00
Dimi Lee 8d06cbe7df Bug 1612376 - P4. ShouldAllowAccessFor use ContentBlocking::HasStorageAccessGranted r=timhuang,baku
There are two places where we save storage permission:
1. LoadInfo hasStoragePermission attribute
2. mStorageAccessGranted in nsPIDOMWindowInner

For LoadInfo.hasStoragePermission, it is set during channel creation and
its value remains the same even when the storage permission is granted
afterward.

The updated storage permission for a window is saved in
mStorageAccessGranted, which has a different meaning for fission and
non-fission mode.
In non-fission mode, mStorageAccessGranted is saved in the top-level
window and it is an array containing all tracking subframes that
are allowed to access storage.

In fission mode, mStorageAccessGranted is set in individual tracking
windows that we have granted its storage permission. Although it works
like a boolean flag in fission, we still keep using an array to compatible
with the use case in non-fission mode.

Depends on D71984

Differential Revision: https://phabricator.services.mozilla.com/D71985
2020-04-29 14:48:35 +00:00
Dimi Lee ce09daad95 Bug 1612376 - P3. Update storage access granted decision to all subframes with the same tracking origin. r=timhuang,baku
We only update the result to subframes within the same tab.

Depends on D72304

Differential Revision: https://phabricator.services.mozilla.com/D71984
2020-04-29 14:48:28 +00:00
Dimi Lee 111569a3ea Bug 1612376 - P2. Add GetInnerWindow utility function to AntiTrackingUtils r=timhuang,baku
This patch includes:
1. Add AntiTrackingUtils::GetInnerWindow utility function
2. AntiTrackingUtils::GetPrincipalAndTrackingOrigin supports only getting tracking origin.

Depends on D72303

Differential Revision: https://phabricator.services.mozilla.com/D72304
2020-04-29 14:48:20 +00:00
Dimi Lee 2d7734d9bb Bug 1612376 - P1. Add UpdateStorageAccessGranted ipc method to PWindowGlobal r=timhuang,baku
This API will be used when we need to udpate a granted stroage
permission to child processes.

Differential Revision: https://phabricator.services.mozilla.com/D72303
2020-04-29 14:48:13 +00:00
Dão Gottwald 3c4dedd5d4 Bug 1634040 - Add test for discardBrowser removing potentially stale tab attributes. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D73052
2020-04-29 14:39:17 +00:00
Paul Adenot d4a6eabc5d Bug 1610437 - Only hard-pan the audio on older macbook pro. r=kinetik
Differential Revision: https://phabricator.services.mozilla.com/D72821
2020-04-29 10:38:53 +00:00
Simon Giesecke 2e99dc5200 Bug 1633809 - Suppress -Wpointer-bool-conversion in WrapNotNullUnchecked. r=miko
Differential Revision: https://phabricator.services.mozilla.com/D73013
2020-04-29 14:04:09 +00:00
Tim Huang 3855d7cc9a Bug 1633401 - Make Document.HasStorageAccess fission compatible. r=baku
In Document::HasStorageAccess(), we try to get the top-level document.
To check if the document is first-party to the top-level document. But,
this won't work for Fission since the top-level document could be
out-of-process.

In this patch, we use broswing context to get the top-level principal to
test if the document is thrid-party. If we cannot get the top-level
outer window, the top-level document should be cross-origin. So, we know
the answer. If the top-level document is available, we check the
principal to see if the document is first-party.

Differential Revision: https://phabricator.services.mozilla.com/D72664
2020-04-29 14:18:07 +00:00
Miko Mynttinen b29ddae63b Bug 1633842 - Enable WR item cache r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D72924
2020-04-29 13:21:52 +00:00
Miko Mynttinen 2ad9f93410 Bug 1633453 - Clear display item cache when the display list send fails or WR backend changes r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D72692
2020-04-29 02:26:08 +00:00
Daisuke Akatsuka 876007c921 Bug 1628635: Update MDN compatibility data. r=rcaliman
Depends on D72606

Differential Revision: https://phabricator.services.mozilla.com/D72607
2020-04-29 13:58:28 +00:00
Mike Conley 6b7012c4b1 Bug 1630234 - Manually persist layout history state when process flipping. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D72399
2020-04-29 13:38:47 +00:00
Andrew Swan 57ae213677 Bug 1627336 Add Blocklist.jsm to browser_startup.js blacklist r=florian
Differential Revision: https://phabricator.services.mozilla.com/D69604
2020-04-29 13:47:37 +00:00
Jan-Erik Rediger 68b18de96f Bug 1623301 - Implement the custom ping API for FOG. r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D72820
2020-04-29 08:05:50 +00:00
Jan-Erik Rediger 21cb4da42f Bug 1632150 - Implement the labeled boolean metric type for Project FOG. r=chutten,Dexter
This turned out to be a bit more tricky than anticipated:

* We want users to see the type this crate exposes, so we need to wrap
  it all.
* We don't want to deal with validating labels here, so we need to
  delegate.
* We need it to be thread-safe, so that we can generate globals.
  But we also don't want users to deal with locking.
* We want a nice-ish API.

This now achieves all of this with just one little trick: a sealed
trait.
That way we can easily extend it to more types, without adding much more
code.

Note: It might have been nice to use the index operator (`[]`), but
that's defined by a trait in Rust and returns a reference to existing
data.
We thus can't use it and instead provide a simple `get()` method.

Differential Revision: https://phabricator.services.mozilla.com/D72805
2020-04-29 08:14:11 +00:00
Jean-Yves Avenard f94fa62011 Bug 1632098 - P3. Enable the ParentProcessDocumentChannel. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D72297
2020-04-29 13:51:19 +00:00
Edgar Chen e8561819e4 Bug 1634017 - Pass BrowserParent, instead of nsFrameLoader, to EventStateManager::DispatchCrossProcessEvent; r=smaug
We currently pass nsFrameLoader to DispatchCrossProcessEvent and then try to get
BrowserParent from nsFrameLoader, but the call site actually ensures the
passed nsFrameLoader is a remote target that could get BrowserParent on it.
So we could simplify this by passing BrowserParent to DispatchCrossProcessEvent
and also could get rid of unnecessary conversion code in
EventStateManager::HandleCrossProcessEvent.

Differential Revision: https://phabricator.services.mozilla.com/D73037
2020-04-29 11:58:14 +00:00
Kartikaya Gupta cb79050579 Bug 1633451 - Re-disable synthetic mousemoves on Android. r=geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D72691
2020-04-29 13:44:11 +00:00
Ted Campbell 05f24e0daa Bug 1633893 - Use js::TrailingArray type for BaselineScript. r=jandem
Sort the arrays by descending alignment. Use the delta between offsets to
compute the array lengths instead of storing directly. Use CheckedInt to
compute the allocation size.

Differential Revision: https://phabricator.services.mozilla.com/D72962
2020-04-29 12:56:21 +00:00
Ted Campbell a87cd9908b Bug 1633741 - Add TrailingArray::numElements helper. r=jandem
This gives more readability to (end - start) / sizeof(T) computations to
cleanup the IonScript data type.

Differential Revision: https://phabricator.services.mozilla.com/D72944
2020-04-29 12:55:48 +00:00
Ted Campbell 76834dba34 Bug 1633741 - Use CheckedInt for js::{Runtime,Private}ScriptData. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D72943
2020-04-29 12:55:45 +00:00
Ted Campbell 4affc0f31f Bug 1633741 - Use CheckedInt for js::ImmutableScriptData. r=jandem
Cleanup the allocation of trailing arrays to use CheckedInt and follow the
example of JitScript. Remove some static_asserts that made arrays harder to
change and instead rely on the existing MOZ_ASSERT in initElements.

Differential Revision: https://phabricator.services.mozilla.com/D72942
2020-04-29 12:55:38 +00:00
Ted Campbell b1f8b4990a Bug 1633741 - Inline DefaultInitializeElements into TrailingArray. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D72941
2020-04-29 12:55:29 +00:00
Bogdan Tara f734fa692f Backed out changeset 09f0bd3285b9 (bug 1633401) for hasStorageAccess.sub.window.html failures CLOSED TREE 2020-04-29 16:07:13 +03:00
Geoff Brown d014b03ba8 Bug 1633894 - [mozdevice] Use /system instead of /sdcard for ls test; r=bc
Differential Revision: https://phabricator.services.mozilla.com/D72971
2020-04-29 06:41:55 +00:00
Jan de Mooij c5fb60a5a7 Bug 1632757 part 2 - Implement ops for typical for-loops in the transpiler. r=evilpie
Differential Revision: https://phabricator.services.mozilla.com/D72336
2020-04-29 12:18:29 +00:00
Jan de Mooij 273a324dcc Bug 1632757 part 1 - Fold MUnbox(MBox(x)) if types are the same. r=evilpie
Depends on D72334

Differential Revision: https://phabricator.services.mozilla.com/D72335
2020-04-24 23:22:12 +00:00
Joel Maher d4c4f80a0b Bug 1632083 - disable content-security-policy/plugin-types/ tests as we do not support them. r=ckerschb
disable content-security-policy/plugin-types/ tests as we do not support them

Differential Revision: https://phabricator.services.mozilla.com/D72812
2020-04-29 12:17:06 +00:00
Joel Maher ac9aba68ef Bug 1632086 - move wpt tests for script-src-attr-elem and style-src-attr-elem to run as backlog. r=ckerschb tests here are also marked as backlog as they are unconditionally marked as fail/timeout for all their tests (typically 1 test) and...
...they include script-srcelem exception.

These are as backlog assuming Mozilla has plans to implement these features in the future.

Move wpt tests for src-src-attr-elem and style-src-attr-elem to run as backlog tsts (tier2).

Differential Revision: https://phabricator.services.mozilla.com/D72801
2020-04-29 12:16:38 +00:00
Joel Maher 3aeadff8f0 Bug 1631882 - mark worker module tests to run as backlog (tier-2). r=ckerschb
mark worker module tests to run as backlog (tier-2)

Differential Revision: https://phabricator.services.mozilla.com/D72834
2020-04-29 12:10:01 +00:00
Jan de Mooij 2395ddc9d1 Bug 1632820 - Only emit bailAfter instrumentation in debug builds when the testing function is used. r=tcampbell
This mechanism added a lot of machine code to Ion JIT code, making it hard to analyze
codegen. With this change we only emit this when necessary.

Also move the addressOfIonBailAfterCounter method from CompileZone to
CompileRuntime because the field is in JitRuntime.

Differential Revision: https://phabricator.services.mozilla.com/D72376
2020-04-28 14:24:00 +00:00
sagudev 94a5c2f430 Bug 1319881 - Remove UsingNeckoIPCSecurity r=valentin,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D72534
2020-04-29 12:00:01 +00:00
Julian Descottes a9ef06b786 Bug 1594402 - Add comments about the supported activeSwatch markup in SwatchColorPickerTooltip.js r=ladybenko,rcaliman
Depends on D68971

Until have a shared component to build to color swatch, some additional comments.

Differential Revision: https://phabricator.services.mozilla.com/D71315
2020-04-29 10:05:49 +00:00
Julian Descottes a97d7642d9 Bug 1594402 - Support setting the data-color attribute on the swatch directly r=ladybenko,rcaliman
Depends on D68849

Differential Revision: https://phabricator.services.mozilla.com/D68971
2020-04-29 10:05:37 +00:00
Julian Descottes 816f890d48 Bug 1594402 - Test that switching color format in DevTools works with the color picker r=ladybenko,rcaliman
Depends on D61063

I broke this feature while working experimenting for this patch and it was not caught by any test.

Adding a test to avoid regressions.

Differential Revision: https://phabricator.services.mozilla.com/D68849
2020-04-29 10:03:40 +00:00
Julian Descottes d13658bff7 Bug 1594402 - Display a color swatch for CSS variables in CSS autocomplete r=ladybenko,rcaliman
Depends on D68963

Differential Revision: https://phabricator.services.mozilla.com/D61063
2020-04-29 10:03:31 +00:00
Julian Descottes ef20d9d88f Bug 1594402 - Store the swatchcolorpicker color in a data attribute instead of textcontent r=ladybenko,rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D68963
2020-04-29 10:03:24 +00:00
Tim Huang d07646ca8c Bug 1633401 - Make Document.HasStorageAccess fission compatible. r=baku
In Document::HasStorageAccess(), we try to get the top-level document.
To check if the document is first-party to the top-level document. But,
this won't work for Fission since the top-level document could be
out-of-process.

In this patch, we use broswing context to get the top-level principal to
test if the document is thrid-party. If we cannot get the top-level
outer window, the top-level document should be cross-origin. So, we know
the answer. If the top-level document is available, we check the
principal to see if the document is first-party.

Differential Revision: https://phabricator.services.mozilla.com/D72664
2020-04-29 05:26:47 +00:00
Mark Banner 3b565f53c5 Bug 1633520 - Check for duplicate of a distribution engine is no longer needed for modern search configuration. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D72731
2020-04-29 11:17:50 +00:00
Bogdan Tara 5f9254f771 Backed out changeset cee5051ad409 (bug 1239694) for bustages complaining about dbus CLOSED TREE 2020-04-29 14:17:16 +03:00
Jean-Yves Avenard a50346320b Bug 1630211 - P3. Use new domWindowOpenedAndLoaded where we can. r=Gijs
Remove duplicated code; and properly wait for the window to be loaded where needed.

Differential Revision: https://phabricator.services.mozilla.com/D72879
2020-04-29 11:12:53 +00:00
Jean-Yves Avenard 27013ebd1b Bug 1630211 - P2. Don't attempt to load data URI in the parent process. r=Gijs
This will cause an error and the load event won't be fired.

The test only needs to check that a window is opened on top, any content will do, so we use about:blank instead

Depends on D72792

Differential Revision: https://phabricator.services.mozilla.com/D72982
2020-04-29 11:12:53 +00:00
Jean-Yves Avenard 72053c191e Bug 1630211 - P1. Wait for page to load before closing it. r=Gijs
BrowserTestUtils.closeWindow accesses the document before closing it in order to determine its type.

Ideally, we should probably modify BrowserTestUtils.domWindowOpened so that it only resolves the promise once loading has completed.

However, so far all consumer of BrowserTestUtils.domWindowOpened also wait for the load event right after.

Differential Revision: https://phabricator.services.mozilla.com/D72792
2020-04-29 11:12:53 +00:00
Martin Stransky 67042242cd Bug 1239694 Implemenet Gnome search provider, r=jhorak,mak
Implement org.gnome.Shell.SearchProvider2 D-Bus interface and enable it when
widget.gnome-search-provider.enabled pref is set, so this feature is disabled
by default.

Differential Revision: https://phabricator.services.mozilla.com/D69181
2020-04-29 10:50:10 +00:00
Martin Stransky 4022b27cb4 Bug 1621911 [Wayland] provide gdk-screenshot.cpp for Wayland desktops, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D73014
2020-04-29 10:50:32 +00:00