Commit graph

134 commits

Author SHA1 Message Date
Mike Conley
e5d996e490 Bug 1777338 - Make sure zoom command updater takes a user-set default zoom level into account. r=NeilDeakin
The patch for bug 698873 assumed that the default zoom level is 1.0, when the user can
actually change that value.

Interestingly, we have to asynchronously query for the default value, so for simplicities
sake, I've had to update the test I wrote to poll for the commands to be in the right
state.

Differential Revision: https://phabricator.services.mozilla.com/D150700
2022-07-01 16:13:59 +00:00
Kagami Sascha Rosylight
764ef75de5 Bug 1773740 - Part 4: Reapply mach -l eslint --fix with use-isInstance changes r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D148939
2022-06-27 20:31:34 +00:00
Mike Conley
af9dec9a76 Bug 1773865 - Dispatch an event on the window document when a pinch zoom gesture ends. r=botond,smaug,NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D149283
2022-06-22 19:40:17 +00:00
Norisz Fay
10b3954a76 Backed out changeset 4230bdcf07ae (bug 1773865) for causing bc failures browser_zoom_commands.js CLOSED TREE 2022-06-22 20:13:23 +03:00
Mike Conley
acc5c41175 Bug 1773865 - Dispatch an event on the window document when a pinch zoom gesture ends. r=botond,smaug,NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D149283
2022-06-22 16:15:57 +00:00
criss
89867d6a26 Backed out changeset da8c34fec36e (bug 1773865) for causing mochitest failures on browser_zoom_commands.js. CLOSED TREE 2022-06-21 22:03:04 +03:00
Mike Conley
8ebd805e62 Bug 1773865 - Dispatch an event on the window document when a pinch zoom gesture ends. r=botond,smaug,NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D149283
2022-06-21 14:02:19 +00:00
Mike Conley
480cd06cd9 Bug 698873 - Update Zoom commands when changing zoom level. r=NeilDeakin,desktop-theme-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D145496
2022-06-10 21:40:21 +00:00
criss
ead66679e2 Backed out changeset 768a911921b0 (bug 698873) for causing failures on browser_preferences_usage.js 2022-06-10 22:54:34 +03:00
Mike Conley
07cd6a432e Bug 698873 - Update Zoom commands when changing zoom level. r=NeilDeakin,desktop-theme-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D145496
2022-06-10 18:22:42 +00:00
Jonathan Watt
2a9a0b264a Bug 1702501 - Remove print.tab_modal.enabled pref and old frontend print preview code. r=mstriemer
Differential Revision: https://phabricator.services.mozilla.com/D134699
2022-01-06 18:55:38 +00:00
Kartikaya Gupta
8ee9f46d79 Bug 1660054 - Hook up the zoom-reset action to also reset APZ/scaling zoom. r=Gijs,nika,botond
The goal here is to hook up the ctrl+0 keyboard shortcut to reset the scaling
zoom applied by pinch gestures (on touchscreen or trackpad), in addition to
resetting the reflow zoom (aka full zoom). This patch also makes other mechanisms
to reset the reflow zoom (e.g. clicking on the "100%" label in the hamburger menu)
also reset scaling zoom, which I think makes sense for consistency.

Most of this patch is just plumbing, but I'm unfamiliar with these codepaths
so requesting review from relevant owners to make sure it's sane.

Differential Revision: https://phabricator.services.mozilla.com/D94624
2020-10-28 22:48:57 +00:00
Mihai Alexandru Michis
48192aab09 Backed out changeset 952da6bff887 (bug 1660054) for causing bc failures in browser_test_reset_scaling_zoom.js
CLOSED TREE
2020-10-28 23:00:15 +02:00
Kartikaya Gupta
c75bed1584 Bug 1660054 - Hook up the zoom-reset action to also reset APZ/scaling zoom. r=Gijs,nika,botond
The goal here is to hook up the ctrl+0 keyboard shortcut to reset the scaling
zoom applied by pinch gestures (on touchscreen or trackpad), in addition to
resetting the reflow zoom (aka full zoom). This patch also makes other mechanisms
to reset the reflow zoom (e.g. clicking on the "100%" label in the hamburger menu)
also reset scaling zoom, which I think makes sense for consistency.

Most of this patch is just plumbing, but I'm unfamiliar with these codepaths
so requesting review from relevant owners to make sure it's sane.

Differential Revision: https://phabricator.services.mozilla.com/D94624
2020-10-28 19:14:18 +00:00
Sebastian Streich
bf58055b03 Bug 1633710 - Move uri.spec calls to nsIPrincipal r=necko-reviewers,geckoview-reviewers,preferences-reviewers,ckerschb,ntim,snorp,valentin
Differential Revision: https://phabricator.services.mozilla.com/D82911
2020-08-04 11:10:41 +00:00
Noemi Erli
5cebe61c77 Backed out changeset 4ed7b13fb7a5 (bug 1633710) for causing failures in browser_amosigned_url.js CLOSED TREE 2020-07-29 22:34:42 +03:00
Sebastian Streich
ea482d8e73 Bug 1633710 - Move uri.spec calls to nsIPrincipal r=necko-reviewers,geckoview-reviewers,preferences-reviewers,ckerschb,ntim,snorp,valentin
Differential Revision: https://phabricator.services.mozilla.com/D82911
2020-07-29 17:33:10 +00:00
Kris Maglione
9d78661f88 Bug 1649221: Update ChromeUtils.generateQI callers to pass strings. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,agi,whimboo,Bebe,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D81594
2020-07-10 23:58:28 +00:00
Neil Deakin
fcb7a6eb5e Bug 1614773, convert pdf viewer to use JSWindowActors so that it will work in out of process frames, r=bdahl
Differential Revision: https://phabricator.services.mozilla.com/D76950
2020-06-06 21:49:33 +00:00
Neil Deakin
b8f7ac9956 Bug 1591469, move reader mode to use JSWindowActor instead of message managers, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D71452
2020-05-13 19:22:20 +00:00
Bogdan Tara
be25a1cf76 Backed out changeset 3a50d857d097 (bug 1591469) for newtab failures complaining about AboutReaderParent CLOSED TREE 2020-05-12 06:13:10 +03:00
Neil Deakin
f9054b8cff Bug 1591469, move reader mode to use JSWindowActor instead of message managers, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D71452
2020-05-12 01:06:51 +00:00
Jonas Jenwald
ed93ca2a18 Bug 1616157 - Ensure that the UI elements of the PDF viewer won't be affected by a non-standard global default zoom level. r=bdahl
This patch ensures that the PDF viewer UI elements won't be zoomed in/out, on either initial loading or when resetting the zoom level, when a non-standard global default zoom level is set. Also hides the zoom indicator, in the Address Bar, in this case to avoid inconsistent state when the PDF viewer is used.

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

--HG--
extra : moz-landing-system : lando
2020-03-06 03:48:07 +00:00
Morgan Reschenberg
9d60e35ec9 Bug 1617544: Add tabHasCustomZoom property to tabbrowser to correctly store state when siteSpecific zoom is disabled. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D65036

--HG--
extra : moz-landing-system : lando
2020-03-04 02:30:07 +00:00
Morgan Reschenberg
c9f1371cfe Bug 1603494: Allow global zoom values to be read from CPS when site specific zoom is disabled. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D62830

--HG--
extra : moz-landing-system : lando
2020-02-19 19:55:44 +00:00
Noemi Erli
82e5e2bd3a Backed out changeset 65dd9e70071a (bug 1603494) for browser chrome failures in browser_bug1369357_site_specific_zoom_level.js CLOSED TREE 2020-02-18 19:24:57 +02:00
Morgan Reschenberg
5deb4cc97b Bug 1603494: Allow global zoom values to be read from CPS when site specific zoom is disabled. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D62830

--HG--
extra : moz-landing-system : lando
2020-02-18 16:16:02 +00:00
Brad Werth
67081368c7 Bug 1516413 Part 2: Make browser FullZoom act on the new zoom change events. r=mstange
This replaces the handling of the ZoomChangeUsingMouseWheel event with
2 new zoom events that trigger the actual zoom changes. As a side effect,
this allows the mousewheel and zoom in/out key events to have an effect
on Reader and PDFJS views as well.

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

--HG--
extra : moz-landing-system : lando
2020-01-30 17:17:26 +00:00
Ciure Andrei
19fa2bbadb Backed out 2 changesets (bug 1516413) for causing browser_viewport_zoom_resolution_invariant.js to perma fail CLOSED TREE
Backed out changeset 0647ffc0cc6f (bug 1516413)
Backed out changeset a8d9460cdbd6 (bug 1516413)
2020-01-23 02:53:08 +02:00
Brad Werth
7aba9ae0bf Bug 1516413 Part 2: Make browser FullZoom act on the new zoom change events. r=mstange
This replaces the handling of the ZoomChangeUsingMouseWheel event with
2 new zoom events that trigger the actual zoom changes. As a side effect,
this allows the mousewheel and zoom in/out key events to have an effect
on Reader and PDFJS views as well.

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

--HG--
extra : moz-landing-system : lando
2020-01-22 23:14:20 +00:00
Bogdan Tara
6b44dbdf87 Backed out 2 changesets (bug 1516413) for valgrind failure CLOSED TREE
Backed out changeset 8eb500f31661 (bug 1516413)
Backed out changeset 333368f257b3 (bug 1516413)
2020-01-23 00:53:42 +02:00
Brad Werth
0549d5f10b Bug 1516413 Part 2: Make browser FullZoom act on the new zoom change events. r=mstange
This replaces the handling of the ZoomChangeUsingMouseWheel event with
2 new zoom events that trigger the actual zoom changes. As a side effect,
this allows the mousewheel and zoom in/out key events to have an effect
on Reader and PDFJS views as well.

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

--HG--
extra : moz-landing-system : lando
2020-01-22 21:43:14 +00:00
Morgan Reschenberg
6274ebbf20 Bug 1590485: Add UI/UX and global zoom functionality. r=fluent-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D50845

--HG--
extra : moz-landing-system : lando
2019-12-24 01:56:32 +00:00
Noemi Erli
cc63a32cca Backed out changeset c8040f57cb4a (bug 1590485) fot failures in browser_default_zoom_multitab.js 2019-12-20 09:51:31 +02:00
Morgan Reschenberg
2895fb8739 Bug 1590485: Add UI/UX and global zoom functionality. r=fluent-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D50845

--HG--
extra : moz-landing-system : lando
2019-12-20 05:09:43 +00:00
Noemi Erli
c220488775 Backed out changeset a8e371771008 (bug 1590485) for failing in browser_default_zoom.js 2019-12-13 00:11:08 +02:00
Morgan Reschenberg
be77302b4e Bug 1590485: Add UI/UX and global zoom functionality. r=fluent-reviewers,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D50845

--HG--
extra : moz-landing-system : lando
2019-12-12 17:24:12 +00:00
Gijs Kruitbosch
46a3520d09 Bug 1557256 - handle scrollwheel zoom in reader mode, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D38069

--HG--
extra : moz-landing-system : lando
2019-07-16 13:18:46 +00:00
Jonas Jenwald
048ab60385 Bug 786674 - Forward browser chrome zoom events to the PDF.js viewer. r=bdahl,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D26338

--HG--
extra : moz-landing-system : lando
2019-07-15 13:06:37 +00:00
Victor Porof
f9f5914039 Bug 1561435 - Format browser/base/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : 96b3895a3b2aa2fcb064c85ec5857b7216884556
2019-07-05 09:48:57 +02:00
berkay.barlas
6ad3d5bf36 Bug 1536620 return default size in reader mode r=Gijs
Call Reader:ResetZoom only in readermode and make resetFontSize async
***
make resetFontSize async
***
call Reader:ResetZoom only in readermode
***

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

--HG--
extra : moz-landing-system : lando
2019-03-27 10:56:03 +00:00
berkay.barlas
7feefb5c15 Bug 1135593 Make The Reader Mode controls sidebar not affected by page zoom actions r=Gijs
Roll up existing commits

Make updateFontSizeButtonControls separate method

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

--HG--
extra : moz-landing-system : lando
2019-03-15 20:22:31 +00:00
Brian Grinstead
f6c12a437b Bug 1441935 - Modifications on top of the generated MozBrowser Custom Element r=mconley
In order to make the history easier to navigate, this changeset includes the
modifications required to make <xul:browser> actually work as a Custom Element,
and switches the app to use it instead of the XBL browser.

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

--HG--
extra : moz-landing-system : lando
2019-01-10 01:45:43 +00:00
Mike Conley
441aadf5f8 Bug 1492950 - Get browser-fullZoom.js and ZoomUI.jsm off of getBrowserForDocument. r=florian
Depends on D6710

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

--HG--
extra : moz-landing-system : lando
2018-10-02 17:51:11 +00:00
Mark Banner
691543ee89 Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop
Automatic changes by ESLint, except for manual corrections for .xml files.

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

--HG--
extra : moz-landing-system : lando
2018-08-31 05:59:17 +00:00
Andreea Pavel
443c91d4b4 Merge inbound to mozilla-central. a=merge 2018-04-28 20:30:18 +03:00
Doug Thayer
df67d38e71 Bug 1448944 - Avoid cps2 roundtrip for null principal about:blank r=Gijs
MozReview-Commit-ID: HeKrcoKo1EH

--HG--
extra : rebase_source : ec9ea0b79d1afd938f0ecf78d8a7e6543f3e4b93
2018-04-27 10:11:54 -07:00
Kris Maglione
a259026c9d Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8
This also removes any redundant Ci.nsISupports elements in the interface
lists.

This was done using the following script:

acecb401b7/processors/chromeutils-generateQI.jsm

MozReview-Commit-ID: AIx10P8GpZY

--HG--
extra : rebase_source : a29c07530586dc18ba040f19215475ac20fcfb3b
2018-04-22 20:55:06 -07:00
Doug Thayer
12dbc1d126 Bug 887889 - Fix intermittent failure in browser_bug419612.js r=mak
MozReview-Commit-ID: 8gp5hdbnzaC

--HG--
extra : rebase_source : 3efe7b029ce776c513354fd482e214f4fd47185a
2018-04-20 09:35:40 -07:00
Boris Zbarsky
b43b5abed4 Bug 1453345 part 5. Remove pointless JS implemenations of QI to nsIDOMEventListener. r=smaug
MozReview-Commit-ID: Db0v6GZ0deo
2018-04-12 00:03:45 -04:00