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

547 Коммитов

Автор SHA1 Сообщение Дата
Rashelle Hopkins df28c0a87d Bug 1742585 - Add PiP toggle visibility threshold preference r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D134577
2022-01-03 21:54:57 +00:00
Jonathan Watt ac90ddff59 Bug 1745452 - Remove the print progress dialog code. r=mstriemer,bobowen,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D133500
2021-12-16 15:12:33 +00:00
Butkovits Atila 7d46682c0e Backed out changeset 51d7c5d96ceb (bug 1745452) for causing failures at browser_all_files_referenced.js. CLOSED TREE 2021-12-16 15:13:34 +02:00
Jonathan Watt f2d22001b0 Bug 1745452 - Remove the print progress dialog code. r=mstriemer,bobowen,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D133500
2021-12-16 11:45:59 +00:00
Jonathan Watt 97553a2013 Bug 1745333 - Stop ask for print progress in PrintingChild.jsm for the old UI. r=bobowen
Differential Revision: https://phabricator.services.mozilla.com/D133452
2021-12-10 16:14:38 +00:00
Emilio Cobos Álvarez d015fe2e6a Bug 1663366 - Make content select work on the parent process (and opt-in the print settings dialog into it). r=mconley
This should do nothing until bug 1744009 lands. It would also need
bug 1596852 to be usable, but no reason to not land it now.

Differential Revision: https://phabricator.services.mozilla.com/D132732
2021-12-08 11:34:02 +00:00
Emilio Cobos Álvarez 28e0d34df0 Bug 1744300 - More efficiently style content select entries. r=mconley
We're already batching similar styles, so by using classes instead of
style attributes and :nth-child selectors we allow the elements to share
styles, and make their styling more efficient over-all.

Differential Revision: https://phabricator.services.mozilla.com/D132829
2021-12-06 22:04:02 +00:00
Evgenia Kotovich 917e91428e Bug 1674666 - Ctrl/Cmd+w should close PiP window. r=mtigley,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D129106
2021-11-22 21:39:09 +00:00
Geoff Lankow 7f1cae8d68 Bug 1740630 - Fix and enable printing the selection from a parent process browser. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D130938
2021-11-18 21:56:02 +00:00
Sebastian Hengst 465d2a9aa3 Bug 1741848 - update in-tree Bugzilla component for Picture-in-Picture files. r=mconley DONTBUILD
The component got added in bug 1741657.

Differential Revision: https://phabricator.services.mozilla.com/D131488
2021-11-18 14:28:51 +00:00
raquelvargas 0aadb60b82 Bug 1738229 - Stop using the second argument to ChromeUtils.import in various files in browser. r=Standard8,webcompat-reviewers,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D129842
2021-11-02 17:21:07 +00:00
Sandor Molnar 5121cd5415 Backed out changeset ca2ff4f605bb (bug 1738012) for causing bc failures in browser_startup_content. CLOSED TREE 2021-10-29 01:21:57 +03:00
Gabriel Luong 18e9725997 Bug 1738012 - Fetch content meta data only after the page is loaded. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D129733
2021-10-28 20:55:28 +00:00
Gabriel Luong c7a4bab1b6 Bug 1732219 - Add API for fetching the preview image. r=geckoview-reviewers,agi,mconley
Differential Revision: https://phabricator.services.mozilla.com/D128815
2021-10-22 06:04:04 +00:00
Narcis Beleuzu d9da4a1ac6 Backed out changeset bd57366e61d8 (bug 1732219) for bc failures on browser_bad_meta_tags.js. CLOSED TREE 2021-10-22 00:46:39 +03:00
Gabriel Luong 4f70f62317 Bug 1732219 - Add API for fetching the preview image. r=geckoview-reviewers,agi,mconley
Differential Revision: https://phabricator.services.mozilla.com/D128815
2021-10-21 18:48:49 +00:00
Timothy Nikkel 302fe551ae Bug 1733025. Convert coords correctly when sending cmd_lookUpDictionary (macOS lookup) to child process. r=hiro
this.browser in toolkit/actors/ControllersParent.jsm is the top level browser, ie the browser holding the root content document. So the conversion that happens in that file converts the coordinates to be relative to the root content document, but they need to be relative to the root of whichever child process we are sending the event to.

The best way I found out how to do this was to pass the coords down to the child process still relative to the parent process widget and then in the child process use the child to parent transform matrix to make them relative to the root widget in the child process.

I needed a new nsIDOMWindowUtils functions because I don't think there is anything existing to do this.

Differential Revision: https://phabricator.services.mozilla.com/D126861
2021-10-06 10:43:20 +00:00
Emilio Cobos Álvarez 4f697d6d7d Bug 1734040 - Select input event should be composed. r=edgar,annevk
This matches other browsers and input elements.

Differential Revision: https://phabricator.services.mozilla.com/D127554
2021-10-05 16:53:48 +00:00
owlishDeveloper 800e6ffa5d Bug 1697866 - Add HTTPS-only specific error code and pass it to GeckoView, to handle HTTPS-only specific errors correctly r=agi,JulianWels,nika,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D120914
2021-09-23 01:41:47 +00:00
Noemi Erli 50d4e6c878 Backed out changeset 890d147bad1d (bug 1697866) for causing bustages in WindowGlobalParent.cpp CLOSED TREE 2021-09-23 01:20:43 +03:00
owlishDeveloper 7acebc65af Bug 1697866 - Add HTTPS-only specific error code and pass it to GeckoView, to handle HTTPS-only specific errors correctly r=agi,JulianWels,nika,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D120914
2021-09-22 18:30:39 +00:00
Gijs Kruitbosch 1aaa98c995 Bug 1711756 - fix 'go back' button in network error page to work more reliably and not rely on session restore, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D122918
2021-08-18 15:08:36 +00:00
Makoto Kato 49cc605308 Bug 1719110 - Don't use sync IPC to show suggestion by spellchecker. r=Gijs
CheckCurrentWord on content process causes sync IPC, so I would like to remove
this call on content process. New nsIEditorSpellChecker.suggest method can
avoid it.

Differential Revision: https://phabricator.services.mozilla.com/D119937
2021-08-10 03:55:25 +00:00
Daniel Holbert 15a0bb9687 Bug 1724091: Remove unused function shouldSavePrintSettings() from PrintingChild.jsm. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D121788
2021-08-05 06:01:38 +00:00
Emilio Cobos Álvarez 982c820712 Bug 1720050 - Ensure to listen to transition events on <select>, not bubbled events from options. r=Gijs
Options can change styles for a variety of reasons and we don't want
transitions on them to re-update the whole menulist.

Differential Revision: https://phabricator.services.mozilla.com/D121353
2021-07-30 15:59:15 +00:00
Gijs Kruitbosch 550d651713 Bug 1716883 - fix autoscroll behaviour over various SVG elements, r=masayuki
This avoids starting autoscroll on SVG links, and on HTML links that
contain SVG, by sharing the code that browser's ClickHandlerChild uses
to detect links into BrowserUtils, and using that from AutoScrollChild
to determine if the click happened on top of a link. It also adds a
test so we avoid regressing this in future.

When running the test, I noticed an error from ClickHandlerParent
when the browser for which we receive a click has gone away, and
fixed it by adding a nullcheck and early return.

Differential Revision: https://phabricator.services.mozilla.com/D120024
2021-07-19 11:36:55 +00:00
Iulian Moraru c328fc4c11 Backed out changeset 57d00cc40a56 (bug 1716883) for causing linting failures on browser_autoscroll_disabled_on_links.js 2021-07-16 15:58:06 +03:00
Gijs Kruitbosch b49bc42fda Bug 1716883 - fix autoscroll behaviour over various SVG elements, r=masayuki
This avoids starting autoscroll on SVG links, and on HTML links that
contain SVG, by sharing the code that browser's ClickHandlerChild uses
to detect links into BrowserUtils, and using that from AutoScrollChild
to determine if the click happened on top of a link. It also adds a
test so we avoid regressing this in future.

When running the test, I noticed an error from ClickHandlerParent
when the browser for which we receive a click has gone away, and
fixed it by adding a nullcheck and early return.

Differential Revision: https://phabricator.services.mozilla.com/D120024
2021-07-16 11:35:36 +00:00
Masayuki Nakano f334ac54b8 Bug 1715603 - part 2: Make `AutoScrollChild` not start autoscroll if a modifier key is pressed r=Gijs
Now, `nsIFrame::HandleEvent` moves selection at middle mouse button down.  This
occurs before dispatching the event into the system event group.  Therefore,
`AutoScrollChild` cannot prevent it.

On the other hand, Chrome does not start autoscroll when a modifier is pressed.
This means that our users may not be able to use middle click with modifiers
if web apps do not call `preventDefault()` as expected.  So, this difference
is a potential risk of web-compat.

Therefore, this patch makes `AutoScrollChild` stop starting autoscroll if
`Shift` key is pressed.

Differential Revision: https://phabricator.services.mozilla.com/D119253
2021-07-13 08:15:55 +00:00
Nika Layzell 8337d7a4df Bug 1706302 - Part 1: Use DOMDocElementCreated for RemotePage actors, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D118618
2021-07-09 16:30:28 +00:00
Mark Striemer 222e434cd2 Bug 1666247 - Part 1: Add a simplify page checkbox r=emalysz,flod
Differential Revision: https://phabricator.services.mozilla.com/D102356
2021-07-08 03:54:19 +00:00
Henri Sivonen 7df7939f77 Bug 1713627 - Remove code obsoleted by the replacing the Text Encoding menu with one item. r=jaws,emk
Differential Revision: https://phabricator.services.mozilla.com/D116391
2021-06-21 12:09:01 +00:00
Dorel Luca 2118316ba4 Backed out changeset 4891a17c55e2 (bug 1713627) for Browser-chrome failures in docshell/test/browser/browser_bug673087-1.js. CLOSED TREE 2021-06-21 12:10:54 +03:00
Henri Sivonen abbbf94915 Bug 1713627 - Remove code obsoleted by the replacing the Text Encoding menu with one item. r=jaws,emk
Differential Revision: https://phabricator.services.mozilla.com/D116391
2021-06-21 08:09:43 +00:00
Masayuki Nakano bccd582eaf Bug 1716068 - Don't start autoscroll on editable content or document whose designMode is on r=smaug
When middle mouse paste is enabled and middle click occurs in an editable
content or it's in a document whose `designMode` is `on`, we shouldn't start
the autoscrolling because the click must be intended for pasting clipboard
content or primary selection to the position.

Differential Revision: https://phabricator.services.mozilla.com/D117987
2021-06-16 12:20:17 +00:00
Kartikaya Gupta 0cd36f6974 Bug 1694847 - Remove the expired SCROLL_INPUT_METHODS telemetry probe. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D116320
2021-05-31 21:36:35 +00:00
Emilio Cobos Alvarez f80600c6d2 Bug 1708735 - Make the arrowpanel code more generic. r=dao,zombie
Share the concept of a panel content with all other menupopups / panels.

This avoids importing global.css in the shadow tree, and renames the
arrowcontent part to just "content", since we want to introduce a
"content" part for other panels.

This shouldn't change behavior but makes bug 1708136 a matter of
tweaking a couple CSS rules and fixing up test failures.

Differential Revision: https://phabricator.services.mozilla.com/D113990
2021-05-30 12:31:49 +00:00
Butkovits Atila 510d54c4f7 Backed out changeset 229e905d571e (bug 1708735) for multiple regressions. CLOSED TREE 2021-05-30 14:27:20 +03:00
Emilio Cobos Alvarez 24058f2dca Bug 1708735 - Make the arrowpanel code more generic. r=dao,zombie
Share the concept of a panel content with all other menupopups / panels.

This avoids importing global.css in the shadow tree, and renames the
arrowcontent part to just "content", since we want to introduce a
"content" part for other panels.

This shouldn't change behavior but makes bug 1708136 a matter of
tweaking a couple CSS rules and fixing up test failures.

Differential Revision: https://phabricator.services.mozilla.com/D113990
2021-05-28 11:56:07 +00:00
Nika Layzell f7e496bbeb Bug 1708734 - Part 4: Don't create the actor for some JSActor events, r=mconley,marionette-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D114794
2021-05-11 17:29:25 +00:00
Gijs Kruitbosch 6e2d5f3601 Bug 1708985 - enforce the default background colour on the ContentSelect menulist's menupopup when custom option foreground colours are used, r=emilio,jaws
Broadly, this patch does 2 things:

- it mirrors the logic bug 1702258 introduced for <select> styling for <option> styling
- it enforces that if the website specifies custom foreground colours for options,
  we use the website-specified colour for the option background, too (even if it
  matches the UA/select style).

I also added automated testing for 3 cases:
1. the default dark mode situation (where we expect dark mode styles),
2. the case from the bug where the website specifies `#fff` for the background
of the select and the background of the options, but specifies a custom
foreground colour for the option (but not the select).
3. a very similar case where the website only specifies the background on the
select, and only the foreground on the option.

Differential Revision: https://phabricator.services.mozilla.com/D114382
2021-05-06 21:16:12 +00:00
Neil Deakin 004a92f893 Bug 1667235, fix various issues with the browser_selectpopup.js test, mostly on Windows, r=Gijs
Change the height of a window opened during the test now that menus on windows 10 are larger. Make sure that the zoom level is reset after the test so that running the test again doesn't use the old zoom level. The default value of 'ignorekeys' is 'shortcuts' on Windows so reset this properly otherwise the test fails if run again.

Differential Revision: https://phabricator.services.mozilla.com/D112407
2021-04-19 17:22:08 +00:00
Sean Feng e12d86f320 Bug 1697585 - Prevent starting scrolling again in the child process if preventClickEvent has been called r=masayuki,smaug
Currently, for auto scroller, when a `mousedown` happens, a possible run order is that
`mousedown(parent process)` -> `scroll stopped (parent process)` ->
`mousedown(child process)`, so that the last mousedown(child process)
would start the scrolling again.

This patch adds a new check to the last `mousedown(child process)`
handler, to not starting the scrolling again if preventClickEvent has
been called on this event.

Differential Revision: https://phabricator.services.mozilla.com/D111885
2021-04-14 19:56:44 +00:00
Emilio Cobos Álvarez a548a38c07 Bug 1702466 - Avoid a lot of IPC traffic and extra content state changes when mousing over menulist items. r=Gijs
We're sending two messages (one out, one in) when we switch between
menuitems for example. The patch by Matt caused us to sometimes paint in
between that period of time and made this noticeable, but it seems
pretty bad regardless.

Send messages only when the mouse enters / leaves the popup, which is
what the code was intended to do.

Differential Revision: https://phabricator.services.mozilla.com/D112035
2021-04-14 14:42:41 +00:00
Emilio Cobos Alvarez dfb42e5808 Bug 1702847 - Ensure we set the select background from content if either background or color is set. r=Gijs
This is also an issue with proton in dark mode, and I think that this solution
is sensible.

Differential Revision: https://phabricator.services.mozilla.com/D110733
2021-04-05 09:28:21 +00:00
Emilio Cobos Alvarez c0d7459c98 Bug 1702258 - Fix interaction of proton with custom styles. r=Gijs
If the site specifies the background-color, we also specify the color to the
HTML UA style. This fixes the msn issue in a better way.

Unstyled selects would still get dark mode.

Differential Revision: https://phabricator.services.mozilla.com/D110586
2021-04-01 19:29:44 +00:00
Masayuki Nakano 6346a55944 Bug 1700888 - Make `AutoScrollParent` always consider starting autoscroll when it's requested in non-remote browser element r=Gijs
When active tab loads `about:*` which is in the chrome process, focused element
is null.  Therefore, the check whether the browser element of `AutoScrollParent`
is active tab or not does not work as expected.  And the new check was added
for web apps which don't call `preventDefault()` properly after opening new
tab of a middle mouse button click.  So, our chrome document must not require
this hack.  So, we keep the old behavior when the browser is not a remote one.

Differential Revision: https://phabricator.services.mozilla.com/D110069
2021-03-30 18:56:36 +00:00
Emilio Cobos Álvarez 35b619041a Bug 1701792 - Also use standins for graytext with the non-native theme, as it's used for disabled controls. r=mstange
Also remove a fixed FIXME comment, while I was going through the select code to
fix browser_selectpopup_colors.

Differential Revision: https://phabricator.services.mozilla.com/D110154
2021-03-30 04:24:40 +00:00
Emilio Cobos Álvarez 06b663afd4 Bug 1697836 - Avoid throwing when asking for a selection. r=emalysz
Selection may be null if the page got hidden in e.g., the afterprint
event listener or somewhere else.

Add a try catch for good measure, assuming there's no selection is
always safe.

I'll try to get an automated test-case for this working, though it might
be tricky.

Depends on D109714

Differential Revision: https://phabricator.services.mozilla.com/D109715
2021-03-27 10:22:55 +00:00
Gijs Kruitbosch 00404b1954 Bug 1699399 - fix content select dropdown interaction with the Windows 10 proton context menu styling, r=mconley
This fix is in three parts:
 - ensure SelectParent's concept of the 'UA style' of the dropdown matches with the dark theme.
   This ensures that we don't ignore black-text-on-white-bg page styles in dark mode because
   they match the default styles, and end up with unreadable text because only one of the
   foreground/background colours exactly matches the UA style. This isn't a complete fix for
   the problem of contrast in this menu, but that isn't really in-scope here...
 - ensure the foreground colour that the win10 menu sets is on the menupopup, rather than the
   scrollbox. On the scrollbox it would cause the individual menuitems to inherit that, rather
   than the colour set by SelectParent on the menupopup.
 - fix a broken variable reference for the foreground colour for hovered (_menuactive) items in
   menu.css, without which the foreground colour on the hover/active item was still wrong.

Differential Revision: https://phabricator.services.mozilla.com/D109751
2021-03-26 15:20:35 +00:00