Update mp4parse_capi API to receive pixi data from parser
There are some necessary changes in nsAVIFDecoder.cpp to accommodate the mp4parse_capi changes. Aside from the addition of `BitsPerChannelToBitDepth`, to facilitate a bit of logging, there should be no functional changes. This is a prerequisite to [[ https://bugzilla.mozilla.org/show_bug.cgi?id=1696045 | bug 1696045 ]], which will add telemetry around the `pixi` box.
Differential Revision: https://phabricator.services.mozilla.com/D123273
rlbox_wasm2c_sandbox was adjusted to avoid using LoadLibraryA (rejected by
build/clang-plugin/LoadLibraryUsageChecker.cpp), so we adjust
GetSandboxedRLBoxPath (which is used to feed it) to return an UTF-16
string on Windows.
Differential Revision: https://phabricator.services.mozilla.com/D123025
The "state" is not limited by editing host nor editable nodes. Therefore, it
should keep scanning ancestor block element without checking editable state.
Differential Revision: https://phabricator.services.mozilla.com/D122948
We've added a bunch of new fission-based variants (e.g 'fission-webgl-ipc',
'webrender-sw-fission', etc). Update the mozinfo guess logic to better detect
this.
This also changes the default for 'webrender' to True as it's not possible to
disable webrender anymore. We should clean up manifests and remove this value
there entirely, but another bug for another time.
Differential Revision: https://phabricator.services.mozilla.com/D123257
Perform additional encoding of URLs before converting to an NSURL as required per the `NSURL URLWithString:` method documentation.
Differential Revision: https://phabricator.services.mozilla.com/D122653
Add a new encoding mode to be used to encode an already-encoded URL to be compatible with Apple's NSURL.
Add a function for creating an nsIURI with NSURL compatible encoding from a URL string.
Differential Revision: https://phabricator.services.mozilla.com/D122651
Rearrange and reformat the encoding table to make space for two digit entries needed for an additional encoding enum.
Convert entries to hex.
Differential Revision: https://phabricator.services.mozilla.com/D122650
Intel BayTrail devices claim to support GL_EXT_texture_format_BGRA8888
as well as GL_EXT_texture_storage, which means we should be able to
use glTexStorage along with a BGRA internal format. However, doing so
does not work, resulting in black squares being rendered rather than
images.
Instead, use RGBA as the internal format and rely on texture swizzling
during sampling.
Differential Revision: https://phabricator.services.mozilla.com/D123246
Except for the following two files, no other header file is still including
"jsapi.h". Add a rule to "check_spidermonkey_style.py" to make sure we don't
regress this progress.
Exceptions:
- "vm/Compartment-inl.h" still needs to include "jsapi.h" for `JS::InformalValueTypeName()`.
- "jsapi-tests/tests.h" still needs to include "jsapi.h" for `JS_ValueToSource()`.
Differential Revision: https://phabricator.services.mozilla.com/D123209
Moves `JS_DefineDebuggerObject` into "js/Debug.h", which allows to remove the
"jsapi.h" include in "debugger/Debugger.h". And then add the missing "jsapi.h"
include in "debugger/DebuggerMemory.cpp".
Differential Revision: https://phabricator.services.mozilla.com/D123207
Uses "TelemetryTimers.h" as the file name instead of just "Timers.h", so it's
more easy to see that this functionality isn't related to `WindowTimers` or other
date-time related things.
Differential Revision: https://phabricator.services.mozilla.com/D123203
Remove jsapi.h include from vm/JSContext.h and then fix any missing includes in
other files.
The include was only just added in part 9, but with part 10, we can remove it
again.
Differential Revision: https://phabricator.services.mozilla.com/D123202
Similar to the two previous patches in this stack, add a separate header file
for these callback functions. The header file name matches the file name of the
other two files (i.e. ends with "Callbacks" and not "Callback"), even though
the function name is `SetWaitCallback`.
Differential Revision: https://phabricator.services.mozilla.com/D123199
Adds a separate header for wrapper callbacks in case we also want to move
the "jsfriendapi.h" wrapper callbacks (`SetPreserveWrapperCallbacks`) to this
header file.
Differential Revision: https://phabricator.services.mozilla.com/D123198
Neither "js/public/MemoryFunctions.h" nor "js/public/AllocPolicy.h" seemed like
the perfect place where these two functions should be placed, therefore we just
create a new header file for them.
Differential Revision: https://phabricator.services.mozilla.com/D123197
This keeps `JSErrorInterceptor` as a public JSAPI function, even though it is
only of limited use, because it only has an effect when `NIGHTLY_BUILD` is
defined.
Differential Revision: https://phabricator.services.mozilla.com/D123195
`JSSourceElementCallback` is only used by `SetSourceElementCallback`, which in
turn is defined in "CompilationAndEvaluation.h", therefore move the callback
definition into the same file, too.
Differential Revision: https://phabricator.services.mozilla.com/D123193
Adds a new public header for any stack related functionality. This includes
JS stack as well as native stack related functions.
Differential Revision: https://phabricator.services.mozilla.com/D123192
Reorder includes to match Google C++ style. The follow decisions were made to
resolve ambiguities.
- The pssh parser and clearkey are considered part of mozilla-central/Gecko and
so have their includes grouped into the 'your project' includes at the end of
includes. I.e. they're grouped with other mozilla-central headers.
- NSS and the CDM headers are considered as coming from other libs, so are
placed in a block preceding the mozilla-central's.
I think everything else is decided by using the style guide and by Mozilla using
case sensitive sorting.
This also changes a few instances of using "systemheader.h" to <systemheader.h>,
which is more in line with the style guide.
Differential Revision: https://phabricator.services.mozilla.com/D123230