Commit Graph

26631 Commits

Author SHA1 Message Date
Martin Stransky
f2821c99e1 Bug 1645776 [Linux/Gtk] Check XWindow id for XGetWindowProperty(), r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D80827
2020-06-24 09:09:07 +00:00
Kartikaya Gupta
6c2337754f Bug 1647225 - Remove unused headers. r=geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D80452
2020-06-23 15:14:32 +00:00
Kartikaya Gupta
ed3e0d6f72 Bug 1647225 - Change the string exposed via gfxInfo. r=jrmuizel
This includes things like about:support, gfxCriticalNote, probably telemetry
environment stuff.

Differential Revision: https://phabricator.services.mozilla.com/D80451
2020-06-23 15:14:24 +00:00
Kartikaya Gupta
d61fdfeed8 Bug 1647225 - Change some failure IDs and strings. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D80450
2020-06-23 15:23:11 +00:00
Kartikaya Gupta
f3ff31626e Bug 1647225 - Fix some comments. r=jrmuizel,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D80449
2020-06-23 15:21:36 +00:00
Kartikaya Gupta
11ab3b57b8 Bug 1647225 - Rename some local functions and variables. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D80448
2020-06-23 15:20:33 +00:00
Kartikaya Gupta
f7b1476df6 Bug 1647225 - Rename a define and removed another unused define. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D80447
2020-06-23 15:14:04 +00:00
Kartikaya Gupta
837a027ab6 Bug 1647225 - Consistently use blocklist terminology for gfxFeature. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D80425
2020-06-23 15:13:57 +00:00
Martin Stransky
6b041101d1 Bug 1567505 [Wayland] Implement uri-list drop target on Wayland, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D80491
2020-06-23 12:03:53 +00:00
Makoto Kato
3af99207da Bug 1490661 - Part 4. Split next action hint with next and maybenext. r=masayuki
Current implementation of Blink and WebKit is that enter key is dispatched
even if `enterkeyhint` is `next`. If no enterkeyhint, Gecko and Blink infer
this type from `<form>` and `<input>` element.

If this key is set as "next" by inference, Blink doesn't dispatch key event
then sets focus to next element, and Gecko dispatches `Tab` key to set focus
to next element.

So if action hint is "next" by inference, we would like to change to another
type "maybenext".

Differential Revision: https://phabricator.services.mozilla.com/D79645
2020-06-23 06:37:58 +00:00
Makoto Kato
6f7d15e2e1 Bug 1490661 - Part 3. InputContext should reference enterkeyhint attribute for action hint. r=masayuki
Set enterkeyhint to `InputContext.mActionHint`. Although it is used by
`moz_action` attribute, enterkeyhint is standardized version of this.

New logic is the following.

1. Read `enterkeyhint` that is from editing host
2. Read `moz_action` on `<input>` element  if no `enterkeyhint`
3. If both is nothing, we infer this value from the `<form>`.

Differential Revision: https://phabricator.services.mozilla.com/D79644
2020-06-23 06:37:50 +00:00
Martin Stransky
8fc11cb1ca Bug 1645734 [Wayland] Move gbm library interface from nsWaylandDisplay, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D79695
2020-06-23 06:27:09 +00:00
Jean-Yves Avenard
87438519f0 Bug 1637500 - P2. Rename methods as they are not always dealing with "threads". r=froydnj
Before P1, GetCurrentThreadSerialEventTarget would have always returned the same data as NS_GetCurrentThread, making the comment incorrect Now it will properly return the running TaskQueue if any.

This change of name more clearly exposes what they are doing, as we aren't always dealing with threads directly; but a nsISerialEventTarget

Differential Revision: https://phabricator.services.mozilla.com/D80354
2020-06-23 05:05:36 +00:00
Chun-Min Chang
62f01052fa Bug 1647492: Expose MediaSession's album data to MPRIS r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D80557
2020-06-22 22:25:41 +00:00
Kagami Sascha Rosylight
c2e026792f Bug 1643464 - Part 3: Rename LEFT/RIGHT_BUTTON as PRIMARY/SECONDARY_BUTTON r=masayuki,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D80333
2020-06-19 17:50:43 +00:00
Kagami Sascha Rosylight
994a3b64f9 Bug 1643464 - Part 2: Rename eLeft/eRightFlag to ePrimary/eSecondaryFlag r=masayuki,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D80332
2020-06-22 22:54:07 +00:00
Kagami Sascha Rosylight
166f2891a2 Bug 1643464 - Part 1: Rename eLeft/eRight to ePrimary/eSecondary r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D80331
2020-06-19 18:02:41 +00:00
Narcis Beleuzu
1f50773a6e Backed out 8 changesets (bug 1647225) for xpcshell failures on test_gfxBlacklist_Version.js CLOSED TREE
Backed out changeset b6f88195da61 (bug 1647225)
Backed out changeset a5b3f54cb5f2 (bug 1647225)
Backed out changeset 6a1025189b0e (bug 1647225)
Backed out changeset b95de94b444e (bug 1647225)
Backed out changeset ed2c7dfd8373 (bug 1647225)
Backed out changeset 1adc99494bcb (bug 1647225)
Backed out changeset 5d0cf22c335a (bug 1647225)
Backed out changeset 956b43a8636f (bug 1647225)
2020-06-23 04:34:12 +03:00
Kartikaya Gupta
2681e76a29 Bug 1647225 - Remove unused headers. r=geckoview-reviewers,agi
Depends on D80451

Differential Revision: https://phabricator.services.mozilla.com/D80452
2020-06-22 22:50:56 +00:00
Kartikaya Gupta
3be958c0fa Bug 1647225 - Change the string exposed via gfxInfo. r=jrmuizel
This includes things like about:support, gfxCriticalNote, probably telemetry
environment stuff.

Depends on D80450

Differential Revision: https://phabricator.services.mozilla.com/D80451
2020-06-22 14:04:56 +00:00
Kartikaya Gupta
347a55ff38 Bug 1647225 - Change some failure IDs and strings. r=jrmuizel
Depends on D80449

Differential Revision: https://phabricator.services.mozilla.com/D80450
2020-06-22 14:06:18 +00:00
Kartikaya Gupta
015478ec51 Bug 1647225 - Fix some comments. r=jrmuizel,geckoview-reviewers,agi
Depends on D80448

Differential Revision: https://phabricator.services.mozilla.com/D80449
2020-06-22 22:54:00 +00:00
Kartikaya Gupta
9f9b7f960e Bug 1647225 - Rename some local functions and variables. r=jrmuizel
Depends on D80447

Differential Revision: https://phabricator.services.mozilla.com/D80448
2020-06-22 14:07:05 +00:00
Kartikaya Gupta
f288c05f05 Bug 1647225 - Rename a define and removed another unused define. r=jrmuizel
Depends on D80425

Differential Revision: https://phabricator.services.mozilla.com/D80447
2020-06-22 14:07:33 +00:00
Kartikaya Gupta
793dc7ec5d Bug 1647225 - Consistently use blocklist terminology for gfxFeature. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D80425
2020-06-22 14:04:38 +00:00
Emilio Cobos Álvarez
b9b9e38dd9 Bug 1646224 - Use mozilla::Length rather than nscoord to store font sizes. r=heycam,jfkthame
This avoids arbitrary precision loss when computing REM units and so on,
which is particularly important if we ever change the base of our app
units (but useful regardless).

Differential Revision: https://phabricator.services.mozilla.com/D79928
2020-06-22 09:45:40 +00:00
Martin Stransky
74141f6a50 Bug 1645704 [Wayland] Rename WaylandDMABufSurface to DMABufSurface at widget/gtk, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D79636
2020-06-21 13:59:24 +00:00
Tom Schuster
2f692e62a0 Bug 1547595 - Work around brokeness in GTK with CRLF copying. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D79881
2020-06-19 16:55:12 +00:00
Markus Stange
4c8b889f5e Bug 1646066 - Make partial valid rects work properly in NativeLayerCA. r=jrmuizel
This moves the clipping responsibility into the layer. It also brings back
assertions that make sure that no invalid content reaches the screen.
On the layer side I'm renaming validRect to displayRect, because at the time
NextSurface* is called, that rect is not yet valid.
This implementation also allows having valid content outside of the display
rect. So, for example, if you grow and shrink the display rect multiple times
but most of the outer parts are transparent, in theory this allows you to paint
the transparent pixels only once rather than every time the display rect
expands.

Differential Revision: https://phabricator.services.mozilla.com/D79842
2020-06-18 22:15:22 +00:00
Jeff Muizelaar
dc6aa1980a Bug 1646842. Rollout to Intel Mac.
Differential Revision: https://phabricator.services.mozilla.com/D80266
2020-06-18 20:28:16 +00:00
Chun-Min Chang
202831ba5c Bug 1623971 - P18: Fetch next available image if fetching fails r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D79222
2020-06-19 00:21:23 +00:00
Chun-Min Chang
ab055d290e Bug 1623971 - P17: Set media-session's MediaImage to the SMTC interface r=alwu,thomasmo
This patch does the following things:
1. Use `FetchImageHelper` to fetch the MediaImage defined in
   media-session
2. Upon the above image is fetched, set it to the SMTC's thumbnail

Differential Revision: https://phabricator.services.mozilla.com/D77893
2020-06-19 00:21:21 +00:00
Chun-Min Chang
b0686b64ff Bug 1623971 - P16: Add a method to set image to SMTC thumbnail r=alwu,thomasmo
Add a method to set an image to SMTC's thumbmail asynchronously

Differential Revision: https://phabricator.services.mozilla.com/D77892
2020-06-19 00:21:13 +00:00
Chun-Min Chang
da1eff4bed Bug 1623971 - P15: Move Maybe.h from .h to .cpp r=alwu
`Maybe` is used in the .cpp file only.

Differential Revision: https://phabricator.services.mozilla.com/D77891
2020-06-19 00:21:09 +00:00
Chun-Min Chang
b4e0d2cd60 Bug 1623971 - P14: Replace \ by / in #include r=alwu
`\` is a window style in file path but Mozilla uses `/` instead.

Differential Revision: https://phabricator.services.mozilla.com/D77890
2020-06-19 00:21:02 +00:00
Chun-Min Chang
f1d759caf7 Bug 1623971 - P13: Apply the same format for comments r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D77889
2020-06-19 00:21:00 +00:00
Chun-Min Chang
54e9d9d1b7 Bug 1623971 - P12: Reorganize member functions r=alwu
- Group related functions together
- Sync the function order in .cpp and .h (except destructor)
- Rename `Update` to `RefreshDisplay`

Differential Revision: https://phabricator.services.mozilla.com/D77888
2020-06-19 00:20:52 +00:00
Chun-Min Chang
b064fbbf37 Bug 1623971 - P11: Make methods used privately private r=alwu
Some functions are listed as public methods but they are only used
privately. It's better to make them private.

Differential Revision: https://phabricator.services.mozilla.com/D77887
2020-06-19 00:20:42 +00:00
Chun-Min Chang
edf7537b1a Bug 1623971 - P10: Assert mDisplay instead of mInitialized r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D77886
2020-06-19 00:20:40 +00:00
Chun-Min Chang
3c509006f9 Bug 1623971 - P9: Assert mControls instead of mInitialized r=alwu
By assert mConrols instread of mInitialized in SetControlAttributes, we
no longer need to call SetControlAttributes after setting mInitialized
to true. Also, this patch change the timing to set mInitialized to true
so we can call SetControlAttributes before RegisterEvent. By doing so,
we no longer need to call UnregisterEvents when SetControlAttributes
fails.

Differential Revision: https://phabricator.services.mozilla.com/D77885
2020-06-19 00:20:33 +00:00
Chun-Min Chang
fefd30bc04 Bug 1623971 - P8: Rework SMTP opening r=alwu
- Add error messages so it's easier to debug when the error occurs
- It's better to unregister the event listener if failed to open SMTP.
  (In release, the key-event listener may be alive when the SMTP isn't
  initialized successfully)

Differential Revision: https://phabricator.services.mozilla.com/D77884
2020-06-19 00:20:30 +00:00
Chun-Min Chang
3fbdf076f7 Bug 1623971 - P7: Rename IMSTCDisplayUpdater to ISMTCDisplayUpdater r=alwu
Fix typo: `MSTC` should be `SMTC`.

Differential Revision: https://phabricator.services.mozilla.com/D77883
2020-06-19 00:20:23 +00:00
Chun-Min Chang
8ee3080239 Bug 1623971 - P6: No need to update metadata upon opening SMTC r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D77882
2020-06-19 00:20:15 +00:00
Chun-Min Chang
e9c4297e44 Bug 1623971 - P5: The arguments to SetMusicMetadata must be non-null r=alwu
`HStringRefernece` must be constructed with a non-null `wchar_t*`. The
raw pointer returned from `nsString::get()` is a non-null address so
it's ok to add an assertion in `SetMusicMetadata`.

Differential Revision: https://phabricator.services.mozilla.com/D77881
2020-06-19 00:20:13 +00:00
Chun-Min Chang
f05c806c37 Bug 1623971 - P4: No need to set default metadata when initializing r=alwu
Metadata would be reset every time when `SetMetadata` is called.

Differential Revision: https://phabricator.services.mozilla.com/D77880
2020-06-19 00:20:05 +00:00
Chun-Min Chang
be44e3f059 Bug 1623971 - P3: Return false when SetMusicMetadata fails r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D77879
2020-06-19 00:20:03 +00:00
Chun-Min Chang
9edb1ef9be Bug 1623971 - P2: Delete comments r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D77878
2020-06-19 00:19:55 +00:00
Chun-Min Chang
991593b0d7 Bug 1623971 - P1: Replace Maybe<const wchar_t*> by const wchar_t* r=alwu
- The maybe value could be `nullptr` even it's `Some`
- `Nothing` can be replaced by `nullptr`.

Differential Revision: https://phabricator.services.mozilla.com/D77877
2020-06-19 00:19:48 +00:00
Edgar Chen
4d53288bec Bug 1635784 - Part 1: IsRemoteTarget should take fission OOP iframe into account; r=smaug
And add IsTopLevelRemoteTarget for the original usage.

Differential Revision: https://phabricator.services.mozilla.com/D79441
2020-06-18 20:38:34 +00:00
Emilio Cobos Álvarez
8ca5b42689 Bug 1646558 - Remove the old android "native" theme. r=geckoview-reviewers,agi
We've had nsNativeBasicTheme enabled since 75, and all reported issues
were fixed real soon (and I haven't heard of any of them recently).

Given the non-native theme is likely changing in the future, I'd rather
not maintain three themes for Android :)

Differential Revision: https://phabricator.services.mozilla.com/D80105
2020-06-18 20:34:16 +00:00