Currently, every single usage of the @media (pointer) CSS query causes a
substantial amount of processing to figure out whether the device has a
pointer installed, and whether or not it's fine or coarse.
This value should probably just be cached after the first time it's called.
Furthermore, it probably shouldn't be called in content at all because it's a
win32k call.
This changes the variable to be both read in the parent process and cached
in the child.
Differential Revision: https://phabricator.services.mozilla.com/D105838
Currently, PresShell is not informed when a system setting involving
Windows 10 Tablet Mode, System Dock Mode, or "Convertible Slate Mode" occur.
As this can change the result of @media (pointer) queries, layout should know
about this so it can react accordingly.
Differential Revision: https://phabricator.services.mozilla.com/D107917
- Added a permission setter argument to pass custom expiry time.
- Refactored TemporaryPermissions to use timeouts instead of timestamps.
This is needed, so we directly get a callback once a permission expires
and can notify the UI.
Previously we only knew if a permission expired if we called the getter.
Differential Revision: https://phabricator.services.mozilla.com/D105983
This enables setting temporary permissions with state SitePermissions.ALLOW.
In order to safely support this it updates the temporary permission map
to key non-BLOCK permissions by URI prePath. BLOCK permissions are still
keyed by baseDomain to prevent DoS.
Differential Revision: https://phabricator.services.mozilla.com/D105982
This patch separetes the original AntiTrackingRedirectHeuristic into two
phases. The first phase will be called when we know the redirect is
about to happen. It will check necessary informance to see if we need to
process the heuristic after the classifier flag is ready for the new
channel. The second phase will be called when the classifier flag is
ready for the new channel to really save the storage access permission
for the redirect.
Differential Revision: https://phabricator.services.mozilla.com/D107048
This patch adds a flag 'needForCheckingAntiTrackingHeuristic' in
loadInfo. This flag will be used for deciding if we need to check the
AntiTracking heuristic after the channel has been classified.
Differential Revision: https://phabricator.services.mozilla.com/D107047
We use these searchfields in the bookmarks sidebar, and in the toolbar in the
bookmarks library window.
The old code was a workaround for missing focus rings.
It turns out that NSTextFieldCell only draws focus rings if the object passed
to inView: is an NSControl. So if we make CellDrawView inherit from NSControl,
we get the focus ring.
Depends on D107907
Differential Revision: https://phabricator.services.mozilla.com/D107961
I removed the functor and used a lambda instead.
To the tests, I added a "_mixed" case version of each role, to make sure they are all thoroughly tested.
Differential Revision: https://phabricator.services.mozilla.com/D108139
This will be used from the `backgroundupdate` task to fish the default
profile's Telemetry client ID in order to correlate the task's Glean
ping with regular main pings.
Differential Revision: https://phabricator.services.mozilla.com/D107712
This provides a simple API for parsing prefs from given bytes. It's
important to not encode bytes as strings, since `libpref` is the
source of truth handling character encodings. In particular, prefs
files are not necessarily UTF-8.
This API allows to read `prefs.js` from another profile directory, for
example.
Differential Revision: https://phabricator.services.mozilla.com/D107710
Similar to what we do for CompilationStencil we should reserve a modest
amount of inline capacity to cover the bulk of delazifications.
Differential Revision: https://phabricator.services.mozilla.com/D108140
Creating an event with type NSEventTypeSmartMagnify does not work with either NSEvent mouseEventWithType or NSEvent otherEventWithType (they both hit an assert in the appkit code). So the best we can do is call the same function.
Differential Revision: https://phabricator.services.mozilla.com/D107792
We already have a pref for double tap to zoom with is already enabled by default so it's kind of awkward to add another pref.
Differential Revision: https://phabricator.services.mozilla.com/D107389
GetQuarantinePropKey() used to contain a version check for pre-10.10, which
was removed in bug 1673051.
Depends on D108134
Differential Revision: https://phabricator.services.mozilla.com/D108135