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

694078 Коммитов

Автор SHA1 Сообщение Дата
Makoto Kato 700ac16e44 Bug 1499076 - Dispatch key down event before firing input event. r=geckoview-reviewers,snorp
When deleting text by backspace key of VKB, VKB might use `InputConnection.setComposingText`, not using KeyEvent. So although we dispatch dummy key event, the order of events is incorrect. We should dispatch keydown before input event.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 22:27:44 +00:00
Sylvestre Ledru 82b428a40f Bug 1617369 - Reformat intl/ using rustfmt r=zbraniecki,hsivonen
Depends on D64875

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

--HG--
extra : moz-landing-system : lando
2020-03-03 08:21:47 +00:00
Brad Werth d331c0080c Bug 1585121 Part 9: Fix and activate RDM tests browser_v* through browser_z*. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D64694

--HG--
extra : moz-landing-system : lando
2020-03-02 22:56:19 +00:00
Brad Werth 70879323f1 Bug 1585121 Part 8: Fix and activate RDM tests browser_t* through browser_u*. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D64493

--HG--
extra : moz-landing-system : lando
2020-03-02 22:23:48 +00:00
Brad Werth 93b67ba601 Bug 1585121 Part 7: Fix and activate RDM tests browser_e* through browser_s*. r=mtigley
Changes to these tests are being bundled together to reduce the overall
number of patch parts.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 22:43:17 +00:00
Brad Werth eebbda528f Bug 1585121 Part 6: Fix and activate RDM tests browser_a* through browser_d*. r=mtigley
Changes to these tests are being bundled together to reduce the overall
number of patch parts.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 22:21:36 +00:00
Brad Werth a9a349b5e6 Bug 1585121 Part 5: Disable tests that can't be easily modernized for new browser UI. r=mtigley
This change also changes all "skip-if = fission" into "skip-if = true",
because the new browser UI is built for a fission world and will
sometimes fail these tests even in a non-fission browser.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 23:58:39 +00:00
Brad Werth a7e88c4ae9 Bug 1585121 Part 4: Extend capabilities of addRDMTaskWithPreAndPost. r=mtigley
There are three functional changes:

1) Instead always running the task function once without the new browser UI,
and then optionally running it a second time *with* the new browser UI, this
changes addRDMTaskWithPreAndPost to only run the function once, with the
specified value for the devtools.responsive.browserUI.enabled pref.

2) Chain return values to task functions. This change allows the preTask
return value to affect the behavior of the task, and for the return values
of both of those functions to affect the behavior of the postTask. This can
be used to create promises that are later awaited, for example.

3) Wait before calling the task. Many RDM tests have entry points that wait
for the viewport to be loaded and optionally for the device list to be
populated. These waits have been moved into the addRDMTaskWithPreAndPost
function.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 22:19:35 +00:00
Brad Werth d5c237fc08 Bug 1585121 Part 3: Give new browser UI ability to response to content window resize. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D64247

--HG--
extra : moz-landing-system : lando
2020-03-02 22:18:49 +00:00
Brad Werth 9535ce9e39 Bug 1585121 Part 2: Define getter for responsive/ui.js viewportElement and use it in test functions. r=mtigley
Tests need to check properties of the viewport element (to check size,
typically). This getter provides a way to do that that works with the new
browser UI.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 22:18:11 +00:00
Brad Werth 98d5f98844 Bug 1585121 Part 1: Make responsive/ui.js toolWindow into a read-only accessor, and use it in test functions. r=mtigley
Many RDM tests check ui.toolWindow to get access to the store and document.
Instead of changing all of those tests, this creates an accessor to do the
right thing depending on whether the new browser UI is in use.

This also changes a function in head.js to use toolWindow instead of the
viewport browser.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 22:25:27 +00:00
Henrik Skupin 45d91cc202 Bug 1619500 - [marionette, geckodriver] Update docs for team changes. a=doc-only
DONTBUILD

Depends on D65063

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

--HG--
extra : moz-landing-system : lando
2020-03-03 07:05:41 +00:00
Henrik Skupin 95882ede80 Bug 1619500 - [marionette, geckodriver] Replace references of IRC with Matrix.
DONTBUILD

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

--HG--
extra : moz-landing-system : lando
2020-03-03 07:05:02 +00:00
Hiroyuki Ikezoe 34ba90e714 Bug 1618432 - Move the root horizontal scrollbar in response to the dynamic toolbar transitions. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D64726

--HG--
extra : moz-landing-system : lando
2020-03-03 05:33:54 +00:00
Masayuki Nakano dace885161 Bug 1449831 - part 4: Add automated tests for `InputEvent.getTargetRanges()` r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D64731

--HG--
extra : moz-landing-system : lando
2020-03-03 03:41:16 +00:00
Masayuki Nakano f5af8613ec Bug 1449831 - part 3: Make editor set target ranges of `beforeinput` event if the editor instance is an `HTMLEditor` r=smaug
In most cases, `InputEvent.getTargetRange()` of `beforeinput` event should
return `Selection` ranges at dispatching the event.

This patch also handles special cases.
* composition change - target range should be the previous composition string
  which will be replaced with new composition string.
* replace text - target range should be the replace range.  This is used by
  spellchecker.
* drop - target range should be the drop point.

However, the other exception is not handled by this patch.  That is, deletions.
The target range(s) should be the range(s) which will be removed.  In most
cases, they also matches selection ranges, but may be extended to:
* surrogate pair boundary
* grapheme cluster boundary like complex emoji
* word/line deletion deletion
* `Backspace` or `Delete` from collapsed selection
* to end of unnecessary whitespaces

For supporting these cases, we need to separate
`HTMLEditor::HandleDeleteSelection()` and its helper methods and helper class
to range computation part and modifying the DOM tree part.  Of course, it
requires big changes and `InputEvent.getTargetRanges()` may be important for
feature detection of `beforeinput` event so that we should put off the big
changes to bug 1618457.

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

--HG--
extra : moz-landing-system : lando
2020-03-03 03:39:26 +00:00
Masayuki Nakano 0af4f88f9d Bug 1449831 - part 2: Make `InputEventOptions` be able to take target ranges r=smaug
`InputEventOptions` should be able to take target ranges for `beforeinput`
event.  However, it requires to include `StaticRange.h` from `nsContentUtils.h`
even though most `nsContentUtils.h` users don't need it.  Therefore, this patch
moves it from `nsContentUtils.h` to new header file.

And makes `nsContentUtils::DispatchInputEvent()` moves the target ranges
from `InputEventOptions` to `InternalEditorInputEvent`.

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

--HG--
extra : moz-landing-system : lando
2020-03-03 03:38:43 +00:00
Masayuki Nakano b4cc4486d4 Bug 1449831 - part 1: Add `InputEvent.getTargetRanges()` r=smaug
`InputEvent.getTargetRanges()` can be used only when event type is
`beforeinput`.  So, it may be used for feature detection of `beforeinput`
event because Chrome does not implement `onbeforeinput` event handler attribute.
Therefore, this patch makes it behind the pref for `beforeinput` event.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 07:39:38 +00:00
Masayuki Nakano 3406e1e208 Bug 1618089 - part 8: Make `WSRunObject::PrepareToDeleteRange()` take 2 pointers of `EditorDOMPoint` r=m_kato
Note that the input can be `EditorDOMPointInText`, but modified range may start
and/or end with different container.  Therefore, it needs to take
`EditorDOMPoint` rather than `EditorDOMPointInText`.

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

--HG--
extra : moz-landing-system : lando
2020-03-03 04:35:26 +00:00
Tetsuharu OHZEKI 4aa1d005d7 Bug 1618901 - Add null check for the returend BrowsingContext to follow up bug 1597495. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D64758

--HG--
extra : moz-landing-system : lando
2020-03-02 20:07:10 +00:00
Dan Glastonbury 5c59d7b978 Bug 1606288: Fall back to using shmem for video. r=jya
Fallback to using shmem to pass video frame if allocating GPU-backed memory fails.

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

--HG--
extra : moz-landing-system : lando
2020-03-03 02:41:19 +00:00
Jan Varga d5b34cc887 Bug 1542884 - Close message channel on failure to connect to the pipe; r=jld
Differential Revision: https://phabricator.services.mozilla.com/D63874

--HG--
extra : moz-landing-system : lando
2020-03-02 23:14:15 +00:00
Masayuki Nakano c5eeb32fe1 Bug 1618089 - part 7: Make some related methods use `EditorDOMPointInText` for arguments or result r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D64338

--HG--
extra : moz-landing-system : lando
2020-03-03 01:15:38 +00:00
Emilio Cobos Álvarez 326534f0c8 Bug 1619245 - Associate image to display item at paint time rather than at construction time. r=tnikkel
On some RDL situations we may create the new item, then destroy the old one
afterwards.

When this is the order of operations, the image would end up unregistered, and
thus not invalidating the canvas frame.

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

--HG--
extra : moz-landing-system : lando
2020-03-03 02:19:59 +00:00
Hiroyuki Ikezoe f0bdb9d256 Bug 1619040 - Add a new WebRenderData specific for APZ. r=kats
AnimationInfo has a bunch of member variables that are not necessary for APZ.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 16:15:26 +00:00
Hiroyuki Ikezoe bf1bb4a845 Bug 1618925 - Bail out from AddAnimationsForWebRender if there is no animation on the target frame. r=kats,boris
Calling CreateOrRecyleWebRenderUserData is a bit expensive in the case where
there is no animation. The case is pretty common.

Note that even if there is a WebRenderAnimationData having an AnimationInfo,
on the nsIFrame, it's going to be discarded since the WebRenderAnimationData
is not marked as being used.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 22:42:11 +00:00
Hiroyuki Ikezoe 648749147b Bug 1618925 - Bail out from AddAnimationsForDisplayItem if the corresponding EffectSet is empty. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D64852

--HG--
extra : moz-landing-system : lando
2020-03-02 22:42:05 +00:00
Boris Zbarsky 4a89a400e1 Bug 1600331. When an idle runnable is queued from a background thread, lazily queue it from a non-idle runnable. r=smaug
Idle runnables do weird things involving unlocking the event queue mutex while
looking for runnables, such that queueing one from off the main thread might
cause it to basically never run if it gets queued during one of those
temporary-unlock periods.

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

--HG--
extra : moz-landing-system : lando
2020-03-03 01:47:24 +00:00
Masayuki Nakano fa274b5db3 Bug 1602610 - Make `test_use_split_keypress_event_model_on_old_Office_Online_Servier.html` listen to `CheckKeyPressEventModel` event for avoiding intermittent failure r=smaug
It's a testcase for Office Online Server duplicated from `test_bug1514940.html`.
The original test listens to `CheckKeyPressEventModel` event which is fired
when the `keypress` event model is changed from the default mode.  Therefore,
this test also needs to listen to the event for avoiding intermittent failure
which is caused by running the tests before the mode change.

However, unfortunately, for keeping the performance of web apps which don't
need our mode changes, we can check the event only on debug build.  Therefore,
this patch makes the test run only on debug build.

Finally, this patch renames `test_bug154940.html` too because it tests
special behavior on specific web app and the new test name explains it like
the test for Office Online Server.

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

--HG--
rename : dom/events/test/test_bug1514940.html => dom/events/test/test_use_split_keypress_event_model_on_old_Confluence.html
extra : moz-landing-system : lando
2020-03-02 11:39:00 +00:00
Masayuki Nakano 8ca8aa8311 Bug 1618089 - part 6: Get rid of `WSRunScanner::WSPoint` r=m_kato
With adding new type, `EditorDOMPointInText` whose container is
`RefPtr<dom::Text>`, we can replace `WSRunScanner::WSPoint` and make
`WSRunScanner` and `WSRunObject` can use its various API.  Then, this
patch adds a lot of `NS_ASSERTION`s which can detect existing bugs.

Note that it may look like redundant that `EditorDOMPointInText::IsChar*()`
requires `EditorDOMPointInText::IsEndOfContainer()` check before that.
However, this makes what the callers check clearer.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 10:08:59 +00:00
Brian Birtles 902d1a2faf Bug 1618773 - Turn on dom.animations-api.implicit-keyframes.enabled and dom.animations-api.autoremove.enabled unconditionally; r=boris
Differential Revision: https://phabricator.services.mozilla.com/D64913

--HG--
extra : moz-landing-system : lando
2020-03-02 19:02:51 +00:00
Andreea Pavel a2f044d3ea Bug 1484451 - disable test_playback.html on mac debug r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D64895

--HG--
extra : moz-landing-system : lando
2020-03-02 11:17:19 +00:00
Nick Thomas ddc352a68a Bug 1619469 - Update release watershed to 72.0.2, r=tomprince
Differential Revision: https://phabricator.services.mozilla.com/D65046

--HG--
extra : moz-landing-system : lando
2020-03-03 00:58:32 +00:00
Jeff Walden 6ad06a9362 Bug 1618038 - Add some |if constexpr| to eliminate |to{,Mutable}Handle| functions on |FakeRooted|. r=sfink
Depends on D64236

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

--HG--
extra : moz-landing-system : lando
2020-03-02 12:24:35 +00:00
Jeff Walden b8b7080914 Bug 1618038 - Move |MaybeRooted|, |FakeRooted|, and |FakeMutableHandle| to a fresh header. r=sfink
Differential Revision: https://phabricator.services.mozilla.com/D64236

--HG--
rename : js/src/gc/Rooting.h => js/src/gc/MaybeRooted.h
extra : moz-landing-system : lando
2020-03-02 12:24:35 +00:00
Toshihito Kikuchi cc5d112b9f Bug 1615308 - Validate each entry of IAT for ntdll.dll before copying it into a new process. r=aklotz
We copy IAT for ntdll.dll into a new process so that our hook code can use
ntdll's functions even in the early stage.  However, IAT can be modified and
some entries may point to an address which is not valid in the child process.
In such a case, we should not copy IAT.  One example is Windows compat mode
which redirects some ntdll functions into AcLayers.dll via IAT.

With this patch, we verify each IAT entry and if any of them is outside ntdll,
we give up using the launcher process and start the browser process.

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

--HG--
extra : moz-landing-system : lando
2020-03-03 00:19:41 +00:00
Bert Peers 447713c3c6 Bug 1613260 - Support per-task scale for local space rasterization r=gw,aosmond
Differential Revision: https://phabricator.services.mozilla.com/D63434

--HG--
extra : moz-landing-system : lando
2020-03-03 00:31:09 +00:00
Andrew Osmond 127fcd7b52 Bug 1255105 - Use SurfacePipe in the BMP decoder. r=tnikkel
This patch converts the BMP decoder to use SurfacePipe instead of using
AllocateFrame and Downscaler directly. As a result, it now uses the
accelerated premultiplication path, honours the
SurfaceFlags::NO_PREMULTIPLY_ALPHA flag, and allows for a path forward
to support color management and clipboard better.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 23:24:12 +00:00
Gavin Lazar Suntop db3b2dee85 Bug 1618466 - fixing collection title color for dark mode r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D65018

--HG--
extra : moz-landing-system : lando
2020-03-02 21:54:18 +00:00
Gavin Lazar Suntop dd6c2ba3f7 Bug 1618229 - fixing dismiss icon color on hover for dark mode r=thecount
Differential Revision: https://phabricator.services.mozilla.com/D65025

--HG--
extra : moz-landing-system : lando
2020-03-02 21:54:26 +00:00
Ricky Stewart f99df6b4fe Bug 1619408 - Make remaining tweaks to build system code to allow running `./mach build` with Python 3 r=firefox-build-system-reviewers,mshal
Differential Revision: https://phabricator.services.mozilla.com/D65017

--HG--
extra : moz-landing-system : lando
2020-03-02 21:33:48 +00:00
Emilio Cobos Álvarez c5a5fa9bb9 Bug 1618988 - Move GeckoView accessiblecaret overrides closer to the rules they override. r=TYLin
This way they apply even when the rest of geckoview.css doesn't.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 23:04:07 +00:00
Emilio Cobos Álvarez 2b1bbce9a6 Bug 1618988 - Move text selection colors outside of geckoview.css. r=m_kato
Maybe we should be using some native color, but the background for that is white
in my testing, so probably not, or at least probably it can be a follow-up.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 04:28:14 +00:00
Emilio Cobos Álvarez ec93e86c29 Bug 1618988 - Move GeckoView scrollbar styles to their own CSS file. r=snorp
Just like we do in every other platform.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 21:05:49 +00:00
Mark Striemer 14c57ae97a Bug 1603352 - Open about:addons gear menu on mousedown r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D62663

--HG--
extra : moz-landing-system : lando
2020-03-02 23:01:04 +00:00
Logan Smyth cde4370d90 Bug 1617666 - Use a separate Debugger to improve performance of eval. r=jlast
The SpiderMonkey Debugger API maintains a flag per-debuggee that tracks whether
the SpiderMonkey should notify the debugger when new frames are entered, and
whether the JIT scripts associated with the debuggee realm have been compiled
with debug instrumentation. To avoid constantly needing to clear and regenerate
JIT scripts, the flag is permanently enabled once "onEnterFrame" has been used
with a given Debugger instance, and when the flag is enabled, there is a
runtime performance cost.

This runtime cost is what is causing the performance regression here, so to
ensure that the flag is cleared at the end of a given instant-eval, we only
set "onEnterFrame" on a new temporary Debugger instance, instead of setting
it on th existing persistent Debugger instance.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 22:55:28 +00:00
Punam Dahiya 411af42272 Bug 1618344 - Simplified welcome UI browser tests r=k88hudson
Differential Revision: https://phabricator.services.mozilla.com/D64610

--HG--
extra : moz-landing-system : lando
2020-03-02 22:28:52 +00:00
Marco Bonardo c98c6da8a3 Bug 1619360 - Remove UrlbarTestUtils wrappers. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D64985

--HG--
extra : moz-landing-system : lando
2020-03-02 20:59:02 +00:00
Eitan Isaacson f270ef49e9 Bug 1617301 - Fix accessibilityFocusedUIElement to work across processes. r=morgan
This is similar to the fix in bug 1614079 where we need to account
for a descendant that might match past a process boundary.

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

--HG--
extra : moz-landing-system : lando
2020-03-02 22:10:37 +00:00
Eitan Isaacson ee44ad7d4c Bug 1618040 - Advertise AXScrollToVisible on link. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D64246

--HG--
extra : moz-landing-system : lando
2020-03-02 22:18:11 +00:00