Commit Graph

11204 Commits

Author SHA1 Message Date
Mike Hommey
83f8a62943 Bug 1851712 - Stop building plain hunspell and woff2 when they are wasm sandboxed. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D187516
2023-09-07 02:15:57 +00:00
Mike Hommey
3a359850b8 Bug 1851709 - Remove unused hunspell fopen hook. r=masayuki
A long time ago, the hook was use to make myopen use a different
fopen, but since then, myopen switched to STL iostreams, but also,
Firefox doesn't use myopen anymore.

Differential Revision: https://phabricator.services.mozilla.com/D187515
2023-09-06 02:07:54 +00:00
serge-sans-paille
5d02b07c1e Bug 1850505 - Avoid extra copy in mozHunspellFileMgrHost::GetLine r=emilio
This was first designed to also positively impact
-ftrivial-auto-var-init by getting rid of the nsAutoCString buffer
initialization in favor of an std::string, but we ended up replacing the
initial std::string buffer by an nsAutoCString which should perform
better on small lines.

Differential Revision: https://phabricator.services.mozilla.com/D187032
2023-08-29 19:34:35 +00:00
Benjamin VanderSloot
a560a190fb Bug 1847769 - Clean up warnings from NotifySecondaryKeyPermissionUpdateInContentProcess - r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D185685
2023-08-11 16:46:39 +00:00
Gregory Pappas
dd0ad61e60 Bug 1697151 - Remove permissions.delegation.enabled pref r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D185342
2023-08-11 15:15:54 +00:00
Peter Van der Beken
3f4ffadbe1 Bug 1846277 - Untangle nsGlobalWindow*.h includes. r=dom-core,media-playback-reviewers,sessionstore-reviewers,padenot,farre
Differential Revision: https://phabricator.services.mozilla.com/D184978
2023-08-02 20:41:49 +00:00
Malte Juergens
05a00d1692 Bug 1720458: Do not isolate https-only-load-insecure by origin attributes r=fluent-reviewers,settings-reviewers,flod,ckerschb,Gijs
Do not isolate `https-only-load-insecure` by origin attributes. This way the HTTPS-Only exceptions will behave similar to the `cookie` permission. This means that exceptions set in the system settings will also apply to private windows, but exceptions set in private windows via the identity pane will be reset after closing the browser.

Depends on D182761

Differential Revision: https://phabricator.services.mozilla.com/D183745
2023-07-24 13:31:19 +00:00
Masatoshi Kimura
181d1d2914 Bug 1844257 - Remove ipc/glue/LibrarySandboxPreload.(cpp|h). r=glandium
They are leftovers from bug 1572618 and bug 1737733.

Differential Revision: https://phabricator.services.mozilla.com/D183973
2023-07-19 23:29:19 +00:00
Benjamin VanderSloot
0129b6667c Bug 1805860 - Notify PermissionObserver when doubly keyed permissions are updated - r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D182243
2023-07-19 14:51:11 +00:00
Tooru Fujisawa
d984b79117 Bug 1843794 - Rewrite editor/AsyncSpellCheckTestHelper.sys.mjs consumers in html/xhtml to use ChromeUtils.importESModule. r=masayuki
Depends on D183689

Differential Revision: https://phabricator.services.mozilla.com/D183690
2023-07-19 00:43:33 +00:00
Tooru Fujisawa
d8c21fafdb Bug 1843789 - Part 3: Rewrite testing/mochitest/BrowserTestUtils/BrowserTestUtils.sys.mjs consumers in html/xhtml to use ChromeUtils.importESModule. r=ahal,fxview-reviewers,sfoster
Differential Revision: https://phabricator.services.mozilla.com/D183659
2023-07-18 23:06:30 +00:00
Stanca Serban
9e82c693d0 Backed out 8 changesets (bug 1805860, bug 1733556) for causing bp-nu bustages in StorageAccessAPIHelper.cpp.
Backed out changeset fa21a55ce837 (bug 1733556)
Backed out changeset 6c09379cdb5a (bug 1733556)
Backed out changeset d8c19265b981 (bug 1733556)
Backed out changeset d48d415fca83 (bug 1805860)
Backed out changeset 3acd0ba1dba6 (bug 1805860)
Backed out changeset d2a6174bbb14 (bug 1805860)
Backed out changeset 48558ba49efe (bug 1805860)
Backed out changeset c8693b9449d3 (bug 1805860)
2023-07-18 23:39:08 +03:00
Benjamin VanderSloot
7b4d1e4af1 Bug 1805860 - Notify PermissionObserver when doubly keyed permissions are updated - r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D182243
2023-07-18 19:14:30 +00:00
Benjamin VanderSloot
61ee4f8919 Bug 1836792, part 1 - Add new site-pair-scoped permission 3rdPartyFrameStorage, r=anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D180215
2023-06-23 12:14:18 +00:00
Harshit Sohaney
55b229ad09 Bug 1579517 - Added a check in removeAllSince to avoid deleting default permissions for new profiles. r=pbz
Differential Revision: https://phabricator.services.mozilla.com/D180881
2023-06-19 19:34:31 +00:00
Mike Hommey
7caa16d048 Bug 1838113 - Don't build the unused myopen function. r=masayuki
Clang-trunk changed libc++ in a way that breaks fstream support in WASI,
which prevents building the myopen function in csutil.cxx, but the
function is actually unused.

Differential Revision: https://phabricator.services.mozilla.com/D180759
2023-06-13 04:08:31 +00:00
Mark Banner
6725448902 Bug 1834176 - Convert consumers of NetUtil.jsm to import the ES module directly. r=arai,webdriver-reviewers,perftest-reviewers,valentin,extension-reviewers,devtools-reviewers,sync-reviewers,cookie-reviewers,robwu,afinder,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D178589
2023-06-07 08:42:36 +00:00
Saira Abdulla
9691ab4a5f Bug 1824612 - Convert consumers of toolkit/components/extensions to ES modules. r=robwu,webcompat-reviewers,geckoview-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,cookie-reviewers,twisniewski,sgalich,valentin,nalexander,mconley,m_kato
Depends on D175553

Differential Revision: https://phabricator.services.mozilla.com/D176005
2023-05-31 15:27:03 +00:00
Iulian Moraru
90b739a400 Backed out 2 changesets (bug 1824612) for causing dt failures on browser_dbg-features-source-tree.js. CLOSED TREE
Backed out changeset c3f38adc818e (bug 1824612)
Backed out changeset 58ba8bb3398a (bug 1824612)
2023-05-31 17:28:16 +03:00
Saira Abdulla
2e8db5969a Bug 1824612 - Convert consumers of toolkit/components/extensions to ES modules. r=robwu,webcompat-reviewers,geckoview-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,cookie-reviewers,twisniewski,sgalich,valentin,nalexander,mconley,m_kato
Depends on D175553

Differential Revision: https://phabricator.services.mozilla.com/D176005
2023-05-31 10:21:37 +00:00
Natalia Csoregi
e87ecf485e Backed out 3 changesets (bug 1834222, bug 1834176) for causing RemoteProcessMonitor failures. CLOSED TREE
Backed out changeset 346d3a1568dd (bug 1834222)
Backed out changeset ea1d8b634bfc (bug 1834176)
Backed out changeset 74d1880272d3 (bug 1834176)
2023-05-24 04:29:45 +03:00
Mark Banner
fbc15bdb60 Bug 1834176 - Convert NetUtil.jsm to be an ES system module. r=arai,webdriver-reviewers,perftest-reviewers,valentin,extension-reviewers,devtools-reviewers,sync-reviewers,cookie-reviewers,robwu,afinder,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D178589
2023-05-23 19:09:29 +00:00
Noemi Erli
aa2f146d78 Backed out 2 changesets (bug 1834176) for causing xpc failures in test_unload.js CLOSED TREE
Backed out changeset 57876d77a652 (bug 1834176)
Backed out changeset ae2f0837b528 (bug 1834176)
2023-05-23 12:14:37 +03:00
Mark Banner
e3e9a991b8 Bug 1834176 - Convert NetUtil.jsm to be an ES system module. r=arai,webdriver-reviewers,perftest-reviewers,valentin,extension-reviewers,devtools-reviewers,sync-reviewers,cookie-reviewers,robwu,afinder,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D178589
2023-05-23 08:13:08 +00:00
Mark Banner
130a655906 Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +00:00
Mark Banner
8219a5c503 Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
Mark Banner
2d03564d1e Bug 1830265 - Tidy up .prettierignore. r=Gijs,sync-reviewers,markh
Enables Prettier for (these don't need to be excluded):
- extensions/pref/autoconfig/test/unit/autoconfig.js
- services/sync/tests/unit/prefs_test_prefs_store.js

Removes duplications where the files are already ignored in the .eslintignore section.

Re-organises the structure of the remaining parts to make it clearer why they are being excluded.

Differential Revision: https://phabricator.services.mozilla.com/D176636
2023-05-04 17:21:03 +00:00
Joel Maher
e6702068c2 Bug 1830451 - Support win10 v2009 in mozinfo and copy needed annotations from win10_2004. r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D176744
2023-05-02 12:55:35 +00:00
Shravan Narayan
ed0bb19d78 Bug 1827704 - Migrate to the upstream wasm2c for RLBox sandboxing r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D175439
2023-04-21 01:31:35 +00:00
Mark Banner
474708c181 Bug 1826702 - Convert PermissionTestUtils to an ES module. r=permissions-reviewers,settings-reviewers,media-playback-reviewers,pbz,padenot
Differential Revision: https://phabricator.services.mozilla.com/D174846
2023-04-06 15:07:56 +00:00
Shravan Narayan
4a3f703dab Bug 1825445: Ensure hunspell spell checker is not invoked with very long strings r=bholley,glandium
Differential Revision: https://phabricator.services.mozilla.com/D174541
2023-04-04 20:59:33 +00:00
Andi-Bogdan Postelnicu
4efa1bd0ba Bug 1276351 - Move away from mozilla::tuple to std::tuple. r=necko-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D173256
2023-03-27 07:20:25 +00:00
Sandor Molnar
9db345d4c1 Backed out 2 changesets (bug 1276351) for causing build bustage in image/ClippedImage.cp CLOSED TREE
Backed out changeset e84598eb82c1 (bug 1276351)
Backed out changeset e940b0554484 (bug 1276351)
2023-03-25 14:16:43 +02:00
Andi-Bogdan Postelnicu
447f1e3358 Bug 1276351 - Move away from mozilla::tuple to std::tuple. r=necko-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D173256
2023-03-25 06:58:52 +00:00
Iulian Moraru
6d40eee997 Backed out 2 changesets (bug 1276351) for causing multiple failures.
Backed out changeset eeaf4f1e06af (bug 1276351)
Backed out changeset d44cb5704342 (bug 1276351)
2023-03-25 00:08:24 +02:00
Mark Banner
4a729cf9d7 Bug 1824173 - Automatically fix some ESLint issues raised by the valid-jsdoc configuration. r=mossop,webcompat-reviewers,denschub
Differential Revision: https://phabricator.services.mozilla.com/D173450
2023-03-24 19:35:24 +00:00
Andi-Bogdan Postelnicu
a1b827b503 Bug 1276351 - Move away from mozilla::tuple to std::tuple. r=necko-reviewers,sergesanspaille
Differential Revision: https://phabricator.services.mozilla.com/D173256
2023-03-24 18:55:39 +00:00
serge-sans-paille
ca06ea9162 Bug 1823341 - Make toolkit/components/antitracking buildable outside of a unified build environment r=andi
Depends on D172968

Differential Revision: https://phabricator.services.mozilla.com/D172969
2023-03-21 10:47:28 +00:00
Nika Layzell
bebd207110 Bug 1823159 - Avoid racily initializing the PermissionManager twice during startup, r=timhuang,baku
It appears that the issue is caused by a change in behaviour from bug
1799470 which made the profile available earlier during startup. If the
permission manager is started between the time when the profile becomes
available and profile-do-change, it would've previously initialized
without storage, and initialized storage after profile-do-change, but
after the changes it may initialize twice instead.

This patch changes the profile-do-change handler to check if we already
have a profile, and avoid initializing the DB twice in that situation.

Differential Revision: https://phabricator.services.mozilla.com/D173062
2023-03-20 22:15:31 +00:00
Jan-Niklas Jaeschke
ebf3cd6240 Bug 1808565, part 1: Adapt Selection to support StaticRanges. r=webidl,saschanaz,masayuki,smaug
This change is necessary to support the [CSS Highlight API](https://drafts.csswg.org/css-highlight-api-1/),
which uses `Selection` internally.

To replace `nsRange` with `AbstractRange`, some sections needed to be
adapted since `nsRange`-specific features were used.
Therefore, some methods (such as `GetRangeAt()`) may only be called if
the `Selection` is *not* of type `SelectionType::eHighlight`,
as it (per spec) returns an `nsRange`.
These methods will now `MOZ_ASSERT` if called for a highlight selection.
Additional methods are implemented which return `AbstractRange`
instead and are safe to be called for every selection type.

This commit also improves support of highlight features:
- Invalidation of highlight ranges: adding/removing Ranges in-place instead of
  removing and re-adding the Selection object associated with the highlight.
- Ranges are only associated with the Selection that shares the same Document
- Fixed minor IDL issue

Differential Revision: https://phabricator.services.mozilla.com/D170582
2023-03-03 14:59:47 +00:00
Jan Horak
bddcbe8678 Bug 1170092 Load preferences from /etc/firefox/defaults/pref on Linux; r=mkaply
Preferences from /etc/firefox/defaults/pref overwrites preferences set in omni.jar
and firefox/defaults/pref. The code was used for flatpak and snap only, but it could
be used also for regular Linux builds.

Differential Revision: https://phabricator.services.mozilla.com/D168799
2023-03-02 14:41:56 +00:00
Jan-Niklas Jaeschke
2243494a74 Bug 1810403: Allow nsRanges to be in multiple Selections. r=masayuki
The Custom Highlight API allows a use case where a `Range` of a `Highlight`
is also used as `Selection`. Due to the decision to use the `Selection` mechanism
to display `Highlight`s, a `Range` can be part of several `Selection`s.
Since the `Range` has a pointer to its associated `Selection`
to notify about changes, this must be adapted to allow several `Selections`.

As a tradeoff of performance and memory usage, the `Selection`s are stored
as `mozilla::LinkedList`. A helper class `mozilla::SelectionListWrapper`
was implemented to allow `Selection`s to be in multiple of these lists
and without having to be derived from `LinkedListElement<T>`.

To simplify usage of the list, the use case  "does this range belong to Selection x?"
is wrapped into the convenience method`IsInSelection(Selection&)`;
The method previously named like this was renamed to `IsInAnySelection()`
to be named more precisely.

Registering and unregistering of the closest common inclusive ancestor
of the `Range` is done when the first `Selection` is registered and
the last `Selection` is unregistered.

Differential Revision: https://phabricator.services.mozilla.com/D169597
2023-02-21 12:25:28 +00:00
Joel Maher
a62ef05cdb Bug 1816191 - Skip tests in order to keep win7 running @ azure. r=gbrown,necko-reviewers,settings-reviewers,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,nalexander,sgalich,alwu
Differential Revision: https://phabricator.services.mozilla.com/D169523
2023-02-14 23:44:12 +00:00
Andi-Bogdan Postelnicu
d7e8a09c21 Bug 1519636 - Reformat recent changes to the Google coding style. r=glandium
Updated with clang-format version 15.0.5 (taskcluster-MKK8dHUpQkGfPLA793lizg)
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D168658
2023-02-13 15:02:07 +00:00
Francesco Lodolo (:flod)
913bd7a195 Bug 1808872 - Add new words to en-US dictionary, r=bolsson
Differential Revision: https://phabricator.services.mozilla.com/D167363
2023-01-25 18:40:14 +00:00
Ben Hearsum
2922349567 Bug 1807926: disable autoconfig tests for tests against MSIX builds r=mkaply
We don't support autoconfig for these builds.

Differential Revision: https://phabricator.services.mozilla.com/D166369
2023-01-09 18:01:10 +00:00
Francesco Lodolo (:flod)
018607524a Bug 1808875 - Documentation: link to bug alias for requesting new words instead of requiring a new bug, r=bolsson
Differential Revision: https://phabricator.services.mozilla.com/D166169
2023-01-06 18:29:25 +00:00
Francesco Lodolo (:flod)
ac0abcf707 Bug 1808224 - Add new words to en-US dictionary, clean up list of Mozilla specific terms, r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D165884
2023-01-05 15:23:59 +00:00
Francesco Lodolo (:flod)
60852a7e54 Bug 1808224 - Improve scripts and documentation to edit the en-US dictionary, r=RyanVM
## edit-dictionary.sh

Instead of editing the .dic file directly, allow user to provide a list of
words. The script expands the existing .dic file, adds the new words and
compress it again using the affix rules.

Numerals at the beginning of the file and "no suggestion" words need to be
special-cased, since compressing the word list creates different results.

## make-new-dict.sh

Extract suggestions exclusions from the existing Mozilla dictionary, then
add them back to the dictionary generated by SCOWL. This removes the need
to maintain an external list of exclusions (mozilla-exclusions.txt).
It also allows to exclude these offensive words from both lists of added
and removed words by Mozilla.

Also:
- Break if the scowl folder is missing.
- Remove backup folders to make sure the install script can't be run twice.

## install-new-dict.sh

Break if the scowl folder is missing.

Differential Revision: https://phabricator.services.mozilla.com/D165883
2023-01-05 15:23:58 +00:00
Mark Banner
9594c03938 Bug 1808115 - Remove the separate EmbedPrompter wrapper, use Prompter instead. r=Gijs,necko-reviewers,geckoview-reviewers,valentin,m_kato
We no longer support the legacy add-ons, so this should not be necessary.

Differential Revision: https://phabricator.services.mozilla.com/D165764
2023-01-03 17:19:48 +00:00