814100 Commits

Author SHA1 Message Date
Peter Van der Beken
9e85242679 Bug 1792444 - Switch some WebIDL APIs from 'any' to a union with 'undefined'. r=edgar,media-playback-reviewers,padenot
Differential Revision: https://phabricator.services.mozilla.com/D158195
2022-09-28 19:10:51 +00:00
Mozilla Releng Treescript
c579de648c no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
he -> ed06e6c77daabe27220c65df46d26fcd41126a09
lo -> 54ba15bb3baf29f27be2c789a03ffc651adb705b
pt-BR -> 4f1313aa7cd0389c27b155121f6b3c8589fa192f
pt-PT -> 9e509ccecc81cf109df3efb905aa6a85cd59fae1
tg -> b1825a2c04b3cd7aa5ad7fb71d5cb0ca133e46c6
2022-09-28 19:03:33 +00:00
hanna alemu
913ee97b48 Bug 1791647 - Check home page checkbox by default for colorway upgrade screen r=dmose
Differential Revision: https://phabricator.services.mozilla.com/D157989
2022-09-28 17:55:13 +00:00
Mark Banner
860b0acba4 Bug 1792694 - Set up ESLint on the dom/ directory for enabling no-unused-vars and no-undef in more places across the dom tests. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D158254
2022-09-28 17:23:12 +00:00
Mark Banner
d4aadf5320 Bug 1792694 - Fix ESLint no-undef and no-unused-vars issues in various parts of dom/ tests. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D158253
2022-09-28 17:23:11 +00:00
Paul Zuehlcke
e32c61b34a Bug 1790100 - Add CookieBannerChild.jsm to browser_startup_content test exception list. r=timhuang,perftest-reviewers,AlexandruIonescu
Depends on D158078

Differential Revision: https://phabricator.services.mozilla.com/D158079
2022-09-28 17:06:40 +00:00
Paul Zuehlcke
177b8481f7 Bug 1790100 - Only initialize CookieBanner window actors for http/s scheme. r=timhuang
Depends on D157676

Differential Revision: https://phabricator.services.mozilla.com/D158078
2022-09-28 17:06:40 +00:00
Paul Zuehlcke
06a19eb62b Bug 1790100 - Enable cookie banner handling by default in Nightly in private browsing mode. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D157676
2022-09-28 17:06:39 +00:00
Alexandre Poirot
75672c3505 Bug 1791969 - [devtools] Migrate lazyRequireGetter for JSM to ChromeUtils.defineModuleGetter. r=jdescottes
There was some imports of sys.mjs which I migrated to `ChromeUtils.defineESModuleGetters`.

Differential Revision: https://phabricator.services.mozilla.com/D158129
2022-09-28 16:20:08 +00:00
Henrik Skupin
d5c7f69016 Bug 1789659 - [remote] Make TabManager.removeTab asynchronous. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158252
2022-09-28 15:39:23 +00:00
Andrew McCreight
91ed81b760 Bug 1792574, part 4 - deCOM nsIMemory. r=xpcom-reviewers,nika
I left the implementation in nsMemoryImpl.cpp so that the
diff looks reasonable.

I also got rid of the weird singleton runnable and replaced
it with NS_NewRunnableFunction.

Differential Revision: https://phabricator.services.mozilla.com/D158214
2022-09-28 15:17:47 +00:00
Andrew McCreight
2da84b8ac4 Bug 1792574, part 3 - Don't include nsMemory where it isn't needed. r=xpcom-reviewers,necko-reviewers,valentin,nika
There are only 3 places where nsMemory.h is still needed (image/RasterImage.cpp,
gfx/thebes/gfxFT2FontList.cpp, and nsMemory.cpp). Remove the rest.

Differential Revision: https://phabricator.services.mozilla.com/D158213
2022-09-28 15:17:46 +00:00
Andrew McCreight
31ae4faab6 Bug 1792574, part 2 - Remove some unused macros from nsMemory.h. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D158212
2022-09-28 15:17:46 +00:00
Andrew McCreight
8b86b655f6 Bug 1792574, part 1 - Move nsAssignmentType to nsStringStream.h. r=xpcom-reviewers,nika
That's the only place it is used.

Differential Revision: https://phabricator.services.mozilla.com/D158211
2022-09-28 15:17:45 +00:00
Ben Hearsum
724b167fce Bug 1787121: write runtime shortcuts log in UTF-16LE encoding r=bytesized
It turns out that the INI parser used by NSIS only supports UTF-16LE encoding. Our INI parser doesn't support UTF-16 at all, so we need to a bit of work ourselves to write this file correctly.

Differential Revision: https://phabricator.services.mozilla.com/D157378
2022-09-28 13:17:41 +00:00
Ben Hearsum
cd5a17e8ad Bug 1787121: add support for formatting INI files to nsINIParser r=xpcom-reviewers,kmag
This allows callers to re-encode the data (eg: to UTF-16) and write or otherwise do with the formatted data as they wish.

I ended up adding/exposing additional init methods in part because I thought it made sense to support initialization from a string since we can now write to one, but also to make testing easier.

Differential Revision: https://phabricator.services.mozilla.com/D157377
2022-09-28 13:17:41 +00:00
Ben Hearsum
386adfe322 Bug 1792546: add exe metadata to private_browsing.exe r=nalexander
This is, I think, an improvement to the hover text when a user directly pins `private_browsing.exe` to the Taskbar through Explorer. When pinned like this, we have no control over the text of the shortcut. Windows uses the EXE Description -- so we end up with `private_browsing.lnk`, which causes `private_browsing` as the hover text.

With this patch, it ends up being MOZ_APP_DISPLAYNAME, which in the real world will typically come out as something like "Firefox Nightly" or "Firefox Nightly (2)" (the latter will happen if a "Firefox Nightly" shortcut already exists). I _think_ this is an improvement over the current situation, as it least it's a more human readable string, and different per branding - but I'm open to opinions here.

In an ideal world this would be a localized string, but due to it ultimately coming from `configure.sh`, we do not have an existing method to localize it.

Even if we want to use a different string here we ought to take some form of this patch so that we get exe metadata for `private_browsing.exe`.

Differential Revision: https://phabricator.services.mozilla.com/D158216
2022-09-28 13:15:04 +00:00
Masayuki Nakano
58fa8fca99 Bug 1774317 - part 2: Make TSFTextStore support GUID_PROP_URL r=m_kato
`GUID_PROP_URL` is defined here:
https://learn.microsoft.com/en-us/windows/win32/tsf/predefined-properties

> Contains a BSTR value representing the URL of the text control source, where
> applicable.

The URL may contain sensitive information, e.g., user name, password, query
string.  However, they are already leaked via MSAA/UIA.
https://searchfox.org/mozilla-central/rev/b1e5f2c7c96be36974262551978d54f457db2cae/accessible/generic/DocAccessible.cpp#350

Therefore, this patch just has prefs to completely prevent to expose the URL
for users who don't like this feature.

Differential Revision: https://phabricator.services.mozilla.com/D157894
2022-09-28 11:46:59 +00:00
Masayuki Nakano
b3600e6d25 Bug 1774317 - part 1: Make IMEStateManager notify nsIWidget of the document URL r=smaug
`TSFTextStore` needs to expose the document URL for supporting new feature
of Windows 11 22H2 update.  Therefore, the `InputContext` should have the
document URL.

Differential Revision: https://phabricator.services.mozilla.com/D157893
2022-09-28 11:46:59 +00:00
André Bargull
e8fad02b7e Bug 1610335: Inline ReallyNow(). r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D158118
2022-09-28 10:04:58 +00:00
Mark Banner
fb720c5314 Bug 1792673 - Correctly set the separate private default urlbar result preference from experiments. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D158249
2022-09-28 09:54:46 +00:00
Mark Banner
c0b3131dd9 Bug 1634555 - Send event telemetry for search default engine changes. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D157471
2022-09-28 09:40:36 +00:00
Mark Banner
da9b37cfd4 Bug 1634555 - Use the testEngine_setup helper in more urlbar xpcshell-tests. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D157793
2022-09-28 09:40:36 +00:00
Edgar Chen
5151189f4d Bug 1784266 - Part 8: Hide union TrySetTo* methods; r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D156197
2022-09-28 08:56:09 +00:00
Edgar Chen
eed7834b37 Bug 1784266 - Part 7: Use generated union init method in FileSystemWritableFileStream; r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D156196
2022-09-28 08:56:08 +00:00
Edgar Chen
4f6c61b0f6 Bug 1784266 - Part 6: Use generated union init method in TextDecoderStream; r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D156195
2022-09-28 08:56:08 +00:00
Edgar Chen
7f1cb0cd0d Bug 1784266 - Part 5: Use generated union init method in sandbox fetch; r=peterv,kmag
Differential Revision: https://phabricator.services.mozilla.com/D156189
2022-09-28 08:56:08 +00:00
Edgar Chen
3410f7bc19 Bug 1784266 - Part 4: Generate init methods for union; r=peterv
And switch to use `Init` method in binding code.

Differential Revision: https://phabricator.services.mozilla.com/D156176
2022-09-28 08:56:07 +00:00
Edgar Chen
1aa03613fa Bug 1784266 - Part 3: Get rid of union conversion structure; r=peterv
TrySetTo* conversion methods are generated in the regular union structure now.

Differential Revision: https://phabricator.services.mozilla.com/D157327
2022-09-28 08:56:07 +00:00
Edgar Chen
82be3e6295 Bug 1784266 - Part 2: Stop using the union conversion structure to root Record/Sequence type; r=peterv
Remove the conditional *Rooter member in the union conversion structure and switch
the regular union structure to use Rooted* for Record and Sequence that contains
js object (like what we do for Dictionary type). Codegen introudces a new type on
isMember in getJSToNativeConversionInfo() as we need to generate different conversion
code for Sequence and Record if they are union member which now use Rooted* instead
of *Rooter to root js object.

Differential Revision: https://phabricator.services.mozilla.com/D157326
2022-09-28 08:56:06 +00:00
Edgar Chen
587c7f6dd0 Bug 1784266 - Part 1: Move union conversion code generator to getUnionConversionTemplate; r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D156175
2022-09-28 08:56:06 +00:00
Csoregi Natalia
e741456967 Backed out changeset a75c8ba68f39 (bug 1708354) for causing test_notification_tag.html failures. CLOSED TREE 2022-09-28 11:56:02 +03:00
Alexandre Poirot
87e10c8aa3 Bug 1640689 - [devtools] Extend coverage of HTML previews in the netmonitor. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D155993
2022-09-28 08:04:51 +00:00
Alexandre Poirot
c0a6d32606 Bug 1640689 - [devtools] Use content and remote iframe for loading HTML preview in netmonitor. r=bomsy
We were using <html:iframe sandbox> and it still allows running arbitrary code in the parent process.
Using <xul:iframe type=content remote=true> ensure that we run this code in a content process,
and restrict its privileges to a regular content page.

Differential Revision: https://phabricator.services.mozilla.com/D76759
2022-09-28 08:04:50 +00:00
Alexandre Poirot
bdff769dcc Bug 1640689 - [devtools] Refactor HtmlPreview to create the iframe dynamically r=bomsy
This is a first changeset in order to create the iframe element in JS.
This still generate the same DOM elements, an html:iframe,
but this will help the following changeset to create XUL elements.
There is no way to create XUL Element via React in render methods.

Differential Revision: https://phabricator.services.mozilla.com/D76936
2022-09-28 08:04:50 +00:00
Alexandre Poirot
9052307536 Bug 1640689 - Add netmonitor to the whitelist of nested content browsers. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D77018
2022-09-28 08:04:49 +00:00
Edgar Chen
bc8ce83d5c Bug 1708354 - Disallow showing notification from cross-origin iframes; r=smaug
We disallow notification permission requests from cross-origin iframes (see bug 1560741).
It makes sense that we also disallow showing notification from cross-origin iframes,
even if user has granted the notification permission on that origin.

Differential Revision: https://phabricator.services.mozilla.com/D158147
2022-09-28 08:02:46 +00:00
Tooru Fujisawa
7952fe5aeb Bug 1786494 - Part 16: Remove MainThreadErrorContext. r=bthrall
Differential Revision: https://phabricator.services.mozilla.com/D157455
2022-09-28 07:40:20 +00:00
Tooru Fujisawa
c196ce85c9 Bug 1786494 - Part 15: Add AutoReportFrontendContext::{clearAutoReport,convertToRuntimeErrorAndClear} and use it in complex cases. r=bthrall
Differential Revision: https://phabricator.services.mozilla.com/D157454
2022-09-28 07:40:19 +00:00
Tooru Fujisawa
781c1007f3 Bug 1786494 - Part 14: Add AutoPrintSelfHostingFrontendContext. r=bthrall
Differential Revision: https://phabricator.services.mozilla.com/D157914
2022-09-28 07:40:19 +00:00
Tooru Fujisawa
895e140718 Bug 1786494 - Part 13: Use AutoReportFrontendContext with block for functions that returns GC things. r=bthrall
Differential Revision: https://phabricator.services.mozilla.com/D157453
2022-09-28 07:40:18 +00:00
Tooru Fujisawa
789213dce6 Bug 1786494 - Part 12: Use AutoReportFrontendContext in simple cases. r=bthrall
Differential Revision: https://phabricator.services.mozilla.com/D157452
2022-09-28 07:40:18 +00:00
Tooru Fujisawa
81c8e5b514 Bug 1786494 - Part 11: Add AutoReportFrontendContext and use it in CompilationAndEvaluation.cpp. r=bthrall
The frontend error is converted into the runtime error in
AutoReportFrontendContext destructor, and it can GC.

If the function's return value is GC thing, AutoReportFrontendContext
destructor must be called before the return statement, and thus
AutoReportFrontendContext must be put into a block, and the return value
must be stored into `JS::Rooted` outside of the block.

Differential Revision: https://phabricator.services.mozilla.com/D157451
2022-09-28 07:40:18 +00:00
Tooru Fujisawa
d7e5d3da7e Bug 1786494 - Part 10: Use ErrorContext::recoverFromOutOfMemory in EmitterScope. r=bthrall
Differential Revision: https://phabricator.services.mozilla.com/D157450
2022-09-28 07:40:17 +00:00
Tooru Fujisawa
5a476becfa Bug 1786494 - Part 9: Use ErrorContext for checking errors in BytecodeCompiler. r=bthrall
Differential Revision: https://phabricator.services.mozilla.com/D157449
2022-09-28 07:40:17 +00:00
Tooru Fujisawa
5d8f0bf20b Bug 1786494 - Part 8: Use ErrorContext for checking errors in asm.js. r=bthrall
Differential Revision: https://phabricator.services.mozilla.com/D157448
2022-09-28 07:40:16 +00:00
Tooru Fujisawa
2e19266ffb Bug 1786494 - Part 7: Use ErrorContext in XDR error check. r=bthrall
Differential Revision: https://phabricator.services.mozilla.com/D157447
2022-09-28 07:40:16 +00:00
Tooru Fujisawa
50822aeff2 Bug 1786494 - Part 6: Always use ErrorContext::hadErrors in AutoAssertReportedException. r=bthrall
Differential Revision: https://phabricator.services.mozilla.com/D157446
2022-09-28 07:40:16 +00:00
Tooru Fujisawa
63449ed00e Bug 1786494 - Part 5: Add OffThreadFrontendErrors::warnings and Warning parameter to convertToRuntimeError. r=bthrall
Differential Revision: https://phabricator.services.mozilla.com/D157445
2022-09-28 07:40:15 +00:00
Tooru Fujisawa
7f1929676a Bug 1786494 - Part 4: Add OffThreadErrorContext::maybeCx_. r=bthrall
Differential Revision: https://phabricator.services.mozilla.com/D157444
2022-09-28 07:40:15 +00:00