Commit Graph

746891 Commits

Author SHA1 Message Date
Shane Caraveo
f4ebf61baf Bug 1695820 remove AddonTestUtils.awaitPromise event loop spinner r=robwu
Differential Revision: https://phabricator.services.mozilla.com/D106865
2021-03-02 15:00:05 +00:00
Stephen A Pohl
8a63815f27 Bug 1694527: Add cross-platform test for bug 1212823 that can be used with the non-native theme. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D106714
2021-03-02 14:54:52 +00:00
Jan de Mooij
e12980a2f7 Bug 1695662 part 5 - Clean up object flags, use EnumFlags. r=tcampbell
Changes object flags to an enum class + js::EnumFlags. This improves type safety
and removes references to "base shape flags", so that we can more easily move this
from BaseShape to Shape later on.

Depends on D106900

Differential Revision: https://phabricator.services.mozilla.com/D106901
2021-03-02 14:47:01 +00:00
Jan de Mooij
497e7c4aec Bug 1695662 part 4 - Remove NativeObject::hasAllFlags. r=tcampbell
This is equivalent to JSObject::hasAllFlags now that all objects have a shape again.

Move JSObject::hasAllFlags from JSObject-inl.h to JSObject.h to avoid dependency
issues.

Depends on D106899

Differential Revision: https://phabricator.services.mozilla.com/D106900
2021-03-02 14:47:01 +00:00
Jan de Mooij
2ebc51caec Bug 1695662 part 3 - Remove BaseShape's OWNED_SHAPE flag. r=tcampbell
The flag is equivalent to checking `unowned_ != nullptr` so do that instead.

Unowned vs Owned BaseShapes will be removed soon but this simplifies the next patch
because now all flags stored in BaseShape are object flags (see OBJECT_FLAG_MASK).

Differential Revision: https://phabricator.services.mozilla.com/D106899
2021-03-02 14:47:00 +00:00
Gregory Mierzwinski
4a59b55771 Bug 1695685 - Use the ffmpeg recorder in browsertime pageload tests. r=perftest-reviewers,AlexandruIonescu
This patch switches us from using the Firefox window reorder to the ffmpeg recorder because of some issues that give bad visual metrics values.

Differential Revision: https://phabricator.services.mozilla.com/D106785
2021-03-02 14:34:45 +00:00
stransky
5284037892 Bug 1622107 [Wayland] Reset Drag and Drop operation when compositor fails to cancel it, r=jhorak
This is a workaround for https://gitlab.gnome.org/GNOME/mutter/-/issues/1658

Wayland compositor sometimes fails to send wl_data_source::cancelled() so we don't get info that the D&D is finished
and it's still marked as active internally which preverts Firefox to do any further D&D operation.

In the patch we detect such scenario and reset internal D&D state.

Differential Revision: https://phabricator.services.mozilla.com/D106266
2021-03-02 14:27:00 +00:00
Robert Mader
f1206ef5d7 Bug 1695453 - Rename IsWaylandDisabled to IsWaylandEnabled, r=stransky
Inversed logic has been proven to be more difficult to read,
so use the simple positive variant.

Also add a simple sanity check for `WAYLAND_DISPLAY` so if people
set `MOZ_ENABLE_WAYLAND` in a X11 session don't get undesired behavior.

While on it, change a check for `XDG_SESSION_TYPE` to also use
`WAYLAND_DISPLAY`, improving behavior when launching FF from a TTY
or a TTY-launched session (e.g. via `weston-launch`).

`WAYLAND_DISPLAY` and `DISPLAY` are not expected to be set if
no Wayland or X11 server is available, so using them makes us behave
more predictable.

Differential Revision: https://phabricator.services.mozilla.com/D106726
2021-03-02 14:25:20 +00:00
Sylvestre Ledru
a9eae8dc84 no bug - doc: remove some old references - tinderbox/mxr r=decoder DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D106903
2021-03-02 14:21:47 +00:00
Emilio Cobos Álvarez
869b50bdad Bug 1695807 - Extra test expectation adjustment.
DONTBUILD

MANUAL PUSH: Orange fix on a CLOSED TREE
2021-03-02 15:26:56 +01:00
Harry Twyford
1633d63446 Bug 1694734 - Reapply background-color rule to :root on Windows 7/8. r=desktop-theme-reviewers,ntim,mixedpuppy
While using -moz-os-version selectors in a shared CSS file isn't ideal, I think it's the best approach here. These selectors will hopefully be temporary, and will be removed when bug 1695280 is fixed. I considered a creating a ruleset like
```
@media (-moz-os-version: windows-win7),
       (-moz-os-version: windows-win8) {
  #navigator-toolbox:-moz-lwtheme {
    background-color: unset;
  }
  :root:-moz-lwtheme {
    background-color: var(--lwt-accent-color);
  }
}
```
in browser/themes/windows/browser.css, but I think unsetting the background-color could become a headache if we need to make any other changes to the #navigator-toolbox background. We could also move these background rules to platform-specific stylesheets, but that way they're defined much later in the CSS despite being fairly foundational rules. It would also create more code to remove in bug 1695280.

Differential Revision: https://phabricator.services.mozilla.com/D106670
2021-03-02 14:12:49 +00:00
Gijs Kruitbosch
45b754f38f Bug 1692111 - unify submenu arrow image use for proton, r=mconley,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D106629
2021-03-02 14:10:05 +00:00
Jason Orendorff
25d18b6e01 Bug 1669616 - Test unreachable code warning when token lookahead sees a BigInt literal. r=jwalden DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D96124
2021-03-02 14:06:22 +00:00
Mitchell Hentges
21cfb57123 Bug 1695770: Glean should install for python <= 3.7 r=firefox-build-system-reviewers,glandium
Re-compile glean_requirements.in with Python 3.6.

Differential Revision: https://phabricator.services.mozilla.com/D106838
2021-03-02 14:05:11 +00:00
Andi-Bogdan Postelnicu
eddbdb0080 Bug 1695793 - correct platform idetifier for MacOS cross non-unified check. r=marco
Differential Revision: https://phabricator.services.mozilla.com/D106897
2021-03-02 14:05:08 +00:00
Jeff Muizelaar
4e463afb9f Bug 1689433. Remove ineffective D3D11 ANGLE blocklist entry. r=jgilbert
D3D11 was made the default in Firefox 60 through:
https://hg.mozilla.org/mozilla-central/rev/8ee92682ad1f#l490.39
and so we've been using D3D11 on this hardware since then.

This has the added advantage of allowing hardware WebRender to run
on these devices and fixing h264 video with SW-WR.

Differential Revision: https://phabricator.services.mozilla.com/D106856
2021-03-02 13:49:56 +00:00
Henrik Skupin
89df6880ed Bug 1632821 - [dom] Base navigator.webdriver on nsIMarionette::running instead of marionette.enabled perference. r=smaug
The "marionette.enabled" preference will be removed because it
should no longer be used to determine if Marionette enabled or not.

As such the enabled / running state can be retrieved via the
nsIMarionette XPCOM service.

Differential Revision: https://phabricator.services.mozilla.com/D106779
2021-03-02 13:45:33 +00:00
Henrik Skupin
c7e4b71b96 Bug 1632821 - [dom] Remove dom.webdriver.enabled preference. r=smaug
The preference was meant to exist only temporarily when
the "navigator.webdriver" property was added by bug 1169290
in Firefox 60.

Differential Revision: https://phabricator.services.mozilla.com/D106778
2021-03-02 13:45:33 +00:00
Geoff Lankow
04d475db99 Bug 1559448 - Move Thunderbird primary password prompt earlier in start-up. r=kaie,xpcom-reviewers,mccr8 DONTBUILD
Triggering the password prompt after the Add-Ons Manager start-up is causing the latter to fail.

I'm not sure if something needs to be unlocked by the password, or if the existence of the prompt is causing some bad interaction, but prompting slightly earlier appears to fix it.

Differential Revision: https://phabricator.services.mozilla.com/D106382
2021-03-02 13:30:09 +00:00
Sylvestre Ledru
896135cdcc hg diff Bug 1695756 - Import the 'Adding a new word to the en-US dictionary' doc r=firefox-source-docs-reviewers,flod,championshuttler DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D106830
2021-03-02 13:25:44 +00:00
Dão Gottwald
f33af33f30 Bug 1695747 - Remove sponsored top sites from address bar results. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D106866
2021-03-02 13:09:34 +00:00
smolnar
2e8a91f39a Merge mozilla-central to autoland. a=merge CLOSED TREE 2021-03-02 15:53:31 +02:00
Simon Giesecke
63fcc3f1a2 Bug 1693541 - Revert changes to FindAndAddFamilies and adapt to nsBaseHashtable changes. a=fix
Differential Revision: https://phabricator.services.mozilla.com/D106905
2021-03-02 13:32:01 +00:00
Emilio Cobos Álvarez
d16bd56f10 Bug 1694548 - Move devtools breakpoints out of mutation events. r=smaug,jdescottes
Use internal events which get fired for CSSOM changes, and in Shadow
DOM. This will also allow us to remove mutation events in the future.

Depends on D106273

Differential Revision: https://phabricator.services.mozilla.com/D106274
2021-03-02 12:54:21 +00:00
Emilio Cobos Álvarez
9530285f69 Bug 1694548 - Rename Document.dontWarnAboutMutationEventsAndAllowSlowDOMMutations and other misc cleanup in Document. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D106273
2021-03-02 12:54:21 +00:00
Ankit
1d05ca9df1 Bug 1690880 - Made label for element Edit option change dynamically depending on the element's namespace. r=sebo
Differential Revision: https://phabricator.services.mozilla.com/D106574
2021-03-02 12:51:57 +00:00
Mihai Alexandru Michis
a01819af6e Backed out changeset 73339fe01d1b (bug 1695747) for causing bc failures in browser_urlbar_telemetry_sponsored_topsites.js
CLOSED TREE
2021-03-02 14:49:53 +02:00
smolnar
d6093ae474 Merge mozilla-central to autoland. CLOSED TREE 2021-03-02 14:42:53 +02:00
smolnar
464bef8dad Backed out changeset 473b37f1e3e2 (bug 1693541) for causing gfx crashes. a=backout 2021-03-02 14:38:21 +02:00
Lee Salzman
6488599ba1 Bug 1695807 - Mix blend image brush data should be RasterizationSpace::Screen. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D106880
2021-03-02 12:18:22 +00:00
Olli Pettay
3790a609ef Bug 1689601, sync fields when loading a page from bfcache, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D106737
2021-03-02 12:13:22 +00:00
Olli Pettay
9a5e1b83eb Bug 1689601, hide fission.bfcacheInParent pref access behind a function which checks that also SHIP is enabled, r=peterv,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D106562
2021-03-02 12:13:21 +00:00
Olli Pettay
0d29b12841 Bug 1689601, Rename RemotenessChangeState to RemotenessChangeOptions, r=peterv
This addresses part of the review comment from https://phabricator.services.mozilla.com/D105229

Differential Revision: https://phabricator.services.mozilla.com/D106561
2021-03-02 12:13:21 +00:00
Olli Pettay
bba6b348ae Bug 1689601, nested freeze/thaw, r=peterv
Non-SHIP bfcache seems to be rather complicated here, since it needs to explicitly store inner windows and what not.
SHIP should be able to handle this in a simpler way.
It is possible that some ordering needs still tweaking.

Differential Revision: https://phabricator.services.mozilla.com/D105360
2021-03-02 12:13:20 +00:00
Olli Pettay
0d8dbfb17e Bug 1689601, evict frameloaders from bfcache (missing still the time based eviction), r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D105239
2021-03-02 12:13:20 +00:00
Olli Pettay
911d46a8b6 Bug 1689601, try to use bfcache for top level pages, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D105238
2021-03-02 12:13:20 +00:00
Olli Pettay
d9ede66ac9 Bug 1689601, add a log module for SHIP BFCache, r=peterv
There are quite a few different logging modules for session history, but while developing
SHIP BFCache, I'd prefer to add some specific one for it. Later we can perhaps
merge various modules to some generic session history related.

SHIPBFCache log module will be used more in the followup patches.

Differential Revision: https://phabricator.services.mozilla.com/D105237
2021-03-02 12:13:19 +00:00
Olli Pettay
2835639129 Bug 1689601, make it possible to call Document::CanSavePresentation non-recursively, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D105236
2021-03-02 12:13:19 +00:00
Olli Pettay
aa8606dfbc Bug 1689601, store nsFrameLoader in SessionHistoryEntry/SHEntrySharedParentState, r=peterv
EvictOutOfRangeContentViewers call in SetFrameLoader doesn't do anything in this patch, but will
work with some followups.

Differential Revision: https://phabricator.services.mozilla.com/D105235
2021-03-02 12:13:18 +00:00
Olli Pettay
b93e317cab Bug 1689601, add assertions to ensure SessionHistoryEntry objects are created only when session history in parent is enabled, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D105234
2021-03-02 12:13:18 +00:00
Olli Pettay
8871d57cd7 Bug 1689601, remove an assertion in SessionStorageManager.cpp since it isn't valid anymore with bfcache, r=peterv,ttung
Differential Revision: https://phabricator.services.mozilla.com/D105233
2021-03-02 12:13:18 +00:00
Olli Pettay
12a97288a1 Bug 1689601, add a pref to enable bfcache in parent process, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D105232
2021-03-02 12:13:17 +00:00
Olli Pettay
bb438452a1 Bug 1689601, Add DocumentChannel ID to DocumentLoadListener, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D105231
2021-03-02 12:13:17 +00:00
Olli Pettay
d3df040ae1 Bug 1689601, add a comment about missing LOAD_FLAGS_DISALLOW_INHERIT_PRINCIPAL, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D105230
2021-03-02 12:13:16 +00:00
Olli Pettay
3df3621351 Bug 1689601, pass various states of remoteness change / browsing context swap using a helper struct, r=peterv
The name RemotenessChangeState uses same the convention as the related methods, even though there might
not be a remoteness change happening, only a browsing context switch. But the naming
inconsistency exists there even without any bfcache work.

RemotenessChangeState will be renamed to RemotenessChangeOptions in a followup.

Differential Revision: https://phabricator.services.mozilla.com/D105229
2021-03-02 12:13:16 +00:00
Olli Pettay
aead729570 Bug 1689601, set active entry only when session history runs in the parent process, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D105228
2021-03-02 12:13:15 +00:00
Emilio Cobos Álvarez
c17b1c2e53 Bug 1695390 - Move extremum lengths to the individual Size / MaxSize types. r=boris
This will prevent growing them when introducing fit-content(<length>).

This can _almost_ be derived, if it wasn't because of the quirky stuff.
I think the macro is probably good enough for now but let me know if you
disagree.

Differential Revision: https://phabricator.services.mozilla.com/D106713
2021-03-02 12:11:35 +00:00
R. Martinho Fernandes
2b35c2ae19 Bug 1694464 - The osclientcert thread should have a name r=keeler
Differential Revision: https://phabricator.services.mozilla.com/D106289
2021-03-02 11:42:38 +00:00
Shane Caraveo
47a8c82a46 Bug 1692267 fix intermittent extension panel test failure r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D106825
2021-03-02 11:20:48 +00:00
Lars T Hansen
b1f33588d7 Bug 1692462 - Disassemble wasm modules and instances. r=yury
Extend the wasmDis() testing function so that it can disassemble
entire wasm modules and instances in addition to exported functions
from wasm instances.

Change the API of wasmDis() to take an options bag instead of ad-hoc
extra arguments; this allows us to ask for interesting functions to be
disassembled, such as stubs.  (More could be done with the options
bag; this is just a start.)

Change some existing test cases that use wasmDis() to use the new API.

Add a test case that tests the operation of the new API.

Differential Revision: https://phabricator.services.mozilla.com/D106592
2021-03-02 11:20:01 +00:00