Commit Graph

25628 Commits

Author SHA1 Message Date
Timothy Nikkel
26ba83c620 Bug 1601936. Ensure ScrollWheelInput::mAPZAction is transferred over ipc. r=botond
https://hg.mozilla.org/mozilla-central/rev/cb713d188609 (bug 1458063) added mAPZAction to ScrollWheelInput but didn't add the code to transfer it over ipc.

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

--HG--
extra : moz-landing-system : lando
2019-12-06 16:56:36 +00:00
Gabriele Svelto
5dc21d568c Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.

find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
    interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
    if [ -n "$interfaces" ]; then
        if [[ "$interfaces" == *$'\n'* ]]; then
          regexp="\("
          for i in $interfaces; do regexp="$regexp$i\|"; done
          regexp="${regexp%%\\\|}\)"
        else
          regexp="$interfaces"
        fi
        interface=$(basename "$path")
        rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
            hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
            if [ $hits -eq 0 ]; then
                echo "Removing ${interface} from ${path2}"
                grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
                mv -f "$path2".tmp "$path2"
            fi
        done
    fi
done

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

--HG--
extra : moz-landing-system : lando
2019-12-06 09:17:57 +00:00
Gabriele Svelto
69790bc62e Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.

find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
    interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
    if [ -n "$interfaces" ]; then
        if [[ "$interfaces" == *$'\n'* ]]; then
          regexp="\("
          for i in $interfaces; do regexp="$regexp$i\|"; done
          regexp="${regexp%%\\\|}\)"
        else
          regexp="$interfaces"
        fi
        interface=$(basename "$path")
        rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
            hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
            if [ $hits -eq 0 ]; then
                echo "Removing ${interface} from ${path2}"
                grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
                mv -f "$path2".tmp "$path2"
            fi
        done
    fi
done

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

--HG--
extra : moz-landing-system : lando
2019-12-06 09:16:44 +00:00
shindli
83be0128f4 Backed out 13 changesets (bug 1522830) for causing xpc shell failures in test_ThirdPartyModulesPing.js CLOSED TREE
Backed out changeset a3e44bbc9ce3 (bug 1522830)
Backed out changeset 11078767a246 (bug 1522830)
Backed out changeset c7ee156830cf (bug 1522830)
Backed out changeset 810f0cb2308d (bug 1522830)
Backed out changeset f8ab75219387 (bug 1522830)
Backed out changeset ec293f9a5e32 (bug 1522830)
Backed out changeset 4bfc013c3d79 (bug 1522830)
Backed out changeset f4ae67f2f231 (bug 1522830)
Backed out changeset 2737350b7d40 (bug 1522830)
Backed out changeset 52931597c652 (bug 1522830)
Backed out changeset bc8985a34539 (bug 1522830)
Backed out changeset 09cbbbc5c802 (bug 1522830)
Backed out changeset d5e366ea4657 (bug 1522830)
2019-12-06 02:07:16 +02:00
Jonathan Watt
95d3472017 Bug 1601694 pt2. Remove redundant Windows range/ifame selection code. r=bobowen
This code should have been removed in the original part, landed as:
https://hg.mozilla.org/mozilla-central/rev/3a6a9814936d

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

--HG--
extra : moz-landing-system : lando
2019-12-05 23:27:13 +00:00
Aaron Klotz
b0c0ca9ca2 Bug 1522830: Part 11 - Adjust shutdown phase in widget/windows/WinUtils for telemetry whitelisting; r=mhowell
The current shutdown phase is too early and thus may crash when called
by `UntrustedModulesProcessor`. We move it to a later phase such that the
processor has already shut down.

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

--HG--
extra : moz-landing-system : lando
2019-12-05 22:00:07 +00:00
Aaron Klotz
e27c1bca50 Bug 1522830: Part 5 - Provide a launcher result type that unconditionally includes file and line info; r=mhowell
`LauncherResult` only includes file and line info when built into the launcher
process. Now that there will be `xul.dll`-based code calling into launcher
process startup, this would create an ABI mismatch.

This patch creates a new type, `LauncherResultWithLineInfo`, that
unconditionally includes the file and line so that APIs called by both `xul`
and non-`xul` code can have the same ABI for both.

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

--HG--
extra : moz-landing-system : lando
2019-12-05 21:53:41 +00:00
Aaron Klotz
c15ae2a867 Bug 1522830: Part 4 - Add constexpr constructor and assignment operator from uint64_t to ModuleVersion; r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D53676

--HG--
extra : moz-landing-system : lando
2019-12-05 21:52:51 +00:00
Jonathan Watt
d3067dbcb3 Bug 1601694. Remove the redundant Windows range/ifame selection code. r=bobowen
There is no need for this code to set the kEnableSelectionRB bit. nsPrintJob
already sets it before it calls nsIPrintingPromptService::ShowPrintDialog.

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

--HG--
extra : moz-landing-system : lando
2019-12-05 18:24:27 +00:00
Mark Striemer
d97254d223 Bug 1535437 - Part 1: Allow windows to resize outside of aspect ratio locking on Windows r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D51940

--HG--
extra : moz-landing-system : lando
2019-12-05 16:58:46 +00:00
Julian Descottes
81e34d9437 Bug 1600333 - Remove all tags = clipboard from the codebase r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D55305

--HG--
extra : moz-landing-system : lando
2019-12-05 11:07:10 +00:00
Razvan Maries
fbea30c915 Backed out 3 changesets (bug 1535437, bug 1591253) for perma fails on browser_resizeVideo.js. CLOSED TREE
Backed out changeset 8222591127e9 (bug 1591253)
Backed out changeset d95a64f744b0 (bug 1535437)
Backed out changeset d5a82a15e3a5 (bug 1535437)
2019-12-04 23:14:45 +02:00
Mark Striemer
58fcfcbca5 Bug 1535437 - Part 1: Allow windows to resize outside of aspect ratio locking on Windows r=jmathies
Differential Revision: https://phabricator.services.mozilla.com/D51940

--HG--
extra : moz-landing-system : lando
2019-12-03 22:32:32 +00:00
Geoff Brown
9e59579c39 Bug 1601076 - Fix some broken BUG_COMPONENTS in moz.build files; r=jmaher
Some of these were obvious typos. Others probably reflect once-correct components
that have been combined, split, or otherwise obsoleted; for these I've tried to
use the component associated with the bugs for recent changes to the affected files.

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

--HG--
extra : moz-landing-system : lando
2019-12-04 13:55:45 +00:00
Marc Streckfuss
2625fe32a5 Bug 1353652 - Fix unified builds r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D55281

--HG--
extra : moz-landing-system : lando
2019-12-03 14:03:01 +00:00
Michael Hoffmann
7011479978 Bug 1595677 - Support dark mode profiler popup in default theme for Win and Mac r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D55116

--HG--
extra : moz-landing-system : lando
2019-12-03 13:32:12 +00:00
Andreas Farre
2add364824 Bug 1595399 - Prevent EndDragSession from being called recursively. r=smaug
nsGlobalWindowOuter::EnterModalState will try to end the current drag
session, so we need to keep track if we're entering modal state from
an event firing from ending the drag session.

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

--HG--
extra : moz-landing-system : lando
2019-11-26 23:28:37 +00:00
Henri Sivonen
8f73b57bca Bug 1600561 - Handle eCompositionCommitAsIs in ContentCacheInParent::OnCompositionEvent. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D55417

--HG--
extra : moz-landing-system : lando
2019-12-02 15:27:29 +00:00
sotaro
c9b4baab9c Bug 1597861 - Pause compositor during hiding Wayland window r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D53906

--HG--
extra : moz-landing-system : lando
2019-12-02 06:56:27 +00:00
Alexis Beingessner
e0a840160a Bug 1599862 - hide macos gpu migration on WR behind a pref. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D55395

--HG--
extra : moz-landing-system : lando
2019-12-02 22:06:05 +00:00
Magnus Melin
85ff146682 Bug 1598337 - add null check to prevent crash at nsApplicationChooser::Done. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D55352

--HG--
extra : moz-landing-system : lando
2019-12-02 19:48:17 +00:00
Emilio Cobos Álvarez
0f8d2aad39 Bug 1600454 - Add some missing includes in nsWaylandDisplay.cpp r=stransky
Otherwise open flags are not defined in some build configurations (or in
non-unified builds, for that matter).

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

--HG--
extra : moz-landing-system : lando
2019-12-02 06:54:08 +00:00
Henri Sivonen
df188f8285 Bug 1600031 - Replace U+0000 with U+FFFD in Gtk IME context to avoid passing U+0000 to IBus. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D55243

--HG--
extra : moz-landing-system : lando
2019-11-29 12:00:18 +00:00
Henri Sivonen
cf81804281 Bug 1600029 - Avoid assigned string length as character in IMContextWrapper::Selection::Assign. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D55095

--HG--
extra : moz-landing-system : lando
2019-11-28 15:46:17 +00:00
Hiroyuki Ikezoe
1958404d26 Bug 1560660 - Update mSystemUsesDarkTheme in the child process via caching machinery. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D54199

--HG--
extra : moz-landing-system : lando
2019-11-28 22:25:48 +00:00
Kris Taeleman
5526ac12fc Bug 1598477 - Enable Webrender for Pixel 3 and Pixel 3 XL. r=jnicol
* Enable Pixel 3 and Pixel 3 XL on nightly only.

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

--HG--
extra : moz-landing-system : lando
2019-11-27 11:20:28 +00:00
James Willcox
13542a780b Bug 1594905 - Propagate Gecko channel errors to GeckoInputStream r=geckoview-reviewers,esawin
Differential Revision: https://phabricator.services.mozilla.com/D54615

--HG--
extra : moz-landing-system : lando
2019-11-27 18:23:05 +00:00
Ciure Andrei
812536c535 Backed out changeset c4258604bf44 (bug 1594905) for causing linting failure in GeckoWebExecutor.java CLOSED TREE 2019-11-27 19:48:49 +02:00
James Willcox
b285b21fc4 Bug 1594905 - Propagate Gecko channel errors to GeckoInputStream r=geckoview-reviewers,esawin
Differential Revision: https://phabricator.services.mozilla.com/D54615

--HG--
extra : moz-landing-system : lando
2019-11-27 16:36:47 +00:00
Kenny Levinsen
1c5650fe48 Bug 1542808 - Implement widget-local VsyncSource for Wayland windows. r=stransky,lsalzman
Lets Wayland sessions run vsync off wayland surface frame callbacks by creating
an interface for widgets to return a local VsyncSource, if applicable.

This interface is currently used for the compositor, and for refresh drivers
in the parent process. It is not yet used for vsync in content processes.

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

--HG--
extra : moz-landing-system : lando
2019-11-27 00:21:33 +00:00
Kris Taeleman
38b7d1873f Bug 1594145 - Add gfx telemetry scalars to geckoview_streaming. r=Dexter,jnicol
* Fix mochitest browser_Troubleshoot.js schema failure
* Fix mochitest browser_Troubleshoot.js schema failure on windows with
multiple adapters

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

--HG--
extra : moz-landing-system : lando
2019-11-26 19:42:06 +00:00
Sylvestre Ledru
8d2f0d1b1f Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-11-26 14:35:02 +00:00
Martin Stransky
a731b16af1 Bug 1599016 [Wayland] Don't use GL_TEXTURE_EXTERNAL_OES textures with DMA BUF backend, r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D54690

--HG--
extra : moz-landing-system : lando
2019-11-26 11:15:48 +00:00
Masayuki Nakano
ab0ac8c7e6 Bug 1581192 - WidgetEvent::mFlags::mDispatchedAtLeastOnce needs to be reset before dispatching in content process again r=smaug
The crash occurs when dispatching a user input event which is a default action
of a raw user input event like `click` event caused by `mouseup` event if
the raw event's `isTrusted` is set to `false` accidentally during dispatch.

User input events are fired in the main process first.  Then,
`EventStateManager` sends it to remote process from `PostHandleEvent()` if
necessary.  However, at this time, `WidgetEvent::mFlags::mDispatchedAtLeastOnce`
is never rest, but its only referrer, `EventDispatcher::DispatchDOMEvent()`
assumes that when it's `true`, `WidgetEvent::mFlags:mIsBeingDispatched` is
`false`.  Therefore, only in content process, `mouseup` event's `isTrusted` is
set to `false` by `EventTarget.dispatchEvent()` even while it's being dispatch.
And also the trusted state will be used for creating next event which is part
of the default action.
https://searchfox.org/mozilla-central/rev/6566d92dd46417a2f57e75c515135ebe84c9cef5/dom/events/EventDispatcher.cpp#1121,1126,1130-1131,1135,1138,1143

Therefore, this patch makes `WidgetEvent::mFlags` reset `mDispatchedAtLeastOnce`
when it's copied across process boundary and make
`EventDispatcher::DispatchDOMEvent()` won't modify being dispatched events for
avoiding any odd issues.

Unfortunately, this patch adds "expected: FAIL" to the new WPT test only on
Windows.  The failure reason is still unclear.  I cannot reproduce the failure
on my Windows environment, but on Try Server, it fails permanently since
the driver succeeds to send the mouse click, but the button never receives
`mouseup` nor `click` event.

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

--HG--
extra : moz-landing-system : lando
2019-11-26 09:08:38 +00:00
Coroiu Cristina
074f577ac7 Backed out changeset 91f3048cc58e (bug 1594145) for browser-chrome failures at toolkit/modules/tests/browser/browser_Troubleshoot.js on a CLOSED TREE 2019-11-26 04:49:17 +02:00
Kris Taeleman
92eb33ee8b Bug 1594145 - Add gfx telemetry scalars to geckoview_streaming. r=Dexter,jnicol
* Fix mochitest browser_Troubleshoot.js schema failure

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

--HG--
extra : moz-landing-system : lando
2019-11-25 20:50:33 +00:00
jeffin143
7868d04683 Bug 1597893 : convert NS_STYLE_WINDOW_SHADOW_* to an enum class in nsStyleConsts.h r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D53920

--HG--
extra : moz-landing-system : lando
2019-11-25 16:00:23 +00:00
Mihai Alexandru Michis
a033171524 Backed out changeset 270e007adcd2 (bug 1594145) for causing browser-chrome failures in browser_Troubleshoot.js 2019-11-25 14:51:07 +02:00
Kris Taeleman
25c223ac03 Bug 1594145 - Add gfx telemetry scalars to geckoview_streaming. r=Dexter,jnicol
Differential Revision: https://phabricator.services.mozilla.com/D52941

--HG--
extra : moz-landing-system : lando
2019-11-23 00:18:27 +00:00
Matt Woodrow
99f1ccd668 Bug 1588484 - Disable Advanced Layers for now when using fission for the window. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D53759

--HG--
extra : moz-landing-system : lando
2019-11-24 20:59:07 +00:00
Andreea Pavel
b30d1c40a4 Backed out 2 changesets (bug 1586411, bug 1588484) for build bustages at nsBaseWidget.cpp on a CLOSED TREE
Backed out changeset 8f8105dabc47 (bug 1586411)
Backed out changeset 6339a731c30d (bug 1588484)
2019-11-24 21:40:59 +02:00
Matt Woodrow
220b57cf81 Bug 1588484 - Disable Advanced Layers for now when using fission for the window. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D53759

--HG--
extra : moz-landing-system : lando
2019-11-24 19:02:00 +00:00
Tim Nguyen
9b84d66049 Bug 1597120 - Support dynamic changes to CSS pointer-events on nsMenuPopupFrame. r=karlt,jmathies,mstange,emilio
Differential Revision: https://phabricator.services.mozilla.com/D53379

--HG--
extra : moz-landing-system : lando
2019-11-22 13:14:37 +00:00
Razvan Maries
b908c8b469 Backed out changeset 0ae41aa8997b (bug 1594145) for build bustages on GfxInfo.cpp. CLOSED TREE 2019-11-22 14:52:04 +02:00
Razvan Maries
8520cc6954 Backed out changeset dce49f743139 (bug 1597893) for build bustages on nsCocoaWindow.mm. CLOSED TREE 2019-11-22 14:50:12 +02:00
Kris Taeleman
90c12ab5c4 Bug 1594145 - Add gfx telemetry scalars to geckoview_streaming. r=Dexter,jnicol
Differential Revision: https://phabricator.services.mozilla.com/D52941

--HG--
extra : moz-landing-system : lando
2019-11-21 21:09:33 +00:00
jeffin143
6967337237 Bug 1597893 : convert NS_STYLE_WINDOW_SHADOW_* to an enum class in nsStyleConsts.h r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D53920

--HG--
extra : moz-landing-system : lando
2019-11-21 16:52:06 +00:00
Markus Stange
32299e9f70 Bug 1597585 - Remove GLManager, which is now unused. r=mattwoodrow
Depends on D53772

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

--HG--
extra : moz-landing-system : lando
2019-11-20 23:22:20 +00:00
Markus Stange
df49f517a5 Bug 1597585 - Make LayerManagerComposite use mGL to pass the GL context to PreRender, just like WebRender. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D53772

--HG--
extra : moz-landing-system : lando
2019-11-20 23:22:58 +00:00
Markus Stange
d582a45148 Bug 1597585 - Remove WidgetRenderingContext's unused field mCompositor. r=mattwoodrow
The only use of this was inside Android's nsWindow::PreRender.
That method was removed in changeset 81de9d1439b0e352729142f6aa2914674073da03 (bug 1335895).

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

--HG--
extra : moz-landing-system : lando
2019-11-20 23:22:18 +00:00