Commit Graph

1618 Commits

Author SHA1 Message Date
Xidorn Quan b8ea09a221 Bug 1117227 part 5 - Render ellipsis in correct orientation. 2018-07-25 07:02:18 +08:00
Xidorn Quan 07f4430218 Bug 1117227 part 4 - Make overflow mark baseline computation aware of writing-mode 2018-07-25 07:02:16 +08:00
Xidorn Quan 3c8d80395e Bug 1117227 part 3 - Make nsTextFrame::MeasureCharClippedText use frame isize instead of width. 2018-07-25 07:02:14 +08:00
Pale Moon d8d32e8ad2 Bug 1117227 part 2 - Convert TextOverflow to logical coordinate. 2018-07-25 07:02:12 +08:00
Xidorn Quan 2492bcbc79 Bug 1117227 part 1 - Add IntersectRect method to LogicalRect. 2018-07-25 07:02:10 +08:00
Pale Moon 18c4a6a425 Allow resetting of non-default profiles.
This needs some verification.

Tag #759
2018-07-25 07:02:09 +08:00
trav90 76b511a3e5 Fix HTMLMediaElement::seekable attribute for Mediasource
Interval is to start from 0 when duration is +infinity
2018-07-25 07:02:07 +08:00
trav90 8b8219a3c1 Make it impossible for the MDSM frame calculation to overflow 2018-07-25 07:02:05 +08:00
trav90 9e3655912a Reduce chance of overflow 2018-07-25 07:00:11 +08:00
trav90 d9cca66809 Prevent microseconds calculation overflow 2018-07-25 07:00:09 +08:00
janekptacijarabaci 9c93564087 [Minor fix] Set forms to valid in their constructor 2018-07-25 07:00:07 +08:00
janekptacijarabaci 94f71d6b19 [Minor fix] XMLHttpRequest - GetAllResponseHeaders() should return an empty string (instead null) 2018-07-25 07:00:05 +08:00
JustOff 5afa3e8e72 Align check of [[avilableLocales]] with ucol_getAvailable() from ICU55+ 2018-07-25 07:00:02 +08:00
Agent Orange 7b499b817b Work around recent GNU gold behavior with segments starting before the first section they contain. 2018-07-25 07:00:00 +08:00
janekptacijarabaci 356552a1ff [Minor fix] Invalid TYPE attribute makes UL look like OL 2018-07-25 06:59:58 +08:00
janekptacijarabaci 6266f6e4ba [Minor fix] The first letter - should behave according to specification 2018-07-25 06:59:57 +08:00
janekptacijarabaci f20d42357a The referrer policy specification where origin-when-crossorigin should actually be origin-when-cross-origin (fix typo) 2018-07-25 06:59:55 +08:00
trav90 d7c605fb56 [mse] Check for sidx box in ContainerParser 2018-07-25 06:59:53 +08:00
trav90 2fe117fe1e [mp4] Remove parsing of creation date
We don't care about it for our use.
Additionally, gmtime and strftime are not thread safe at all and are potential crash points.
2018-07-25 06:59:50 +08:00
trav90 0e42c5d8c5 Crash fix: Check for overflow and that conversion succeeded 2018-07-25 06:59:48 +08:00
trav90 a8910c103e [mp4] Don't reject boxes that contains padding but can be easily skipped 2018-07-25 06:59:46 +08:00
Pale Moon d874d04fd1 Make HTML Media Elements' preload attribute MSE-spec compliant.
MSE sourced elements should ignore the preload attribute.
See http://w3c.github.io/media-source/#mediasource-attach (First note in the draft at time of commit)
We're treating the attribute as if it was not defined (defaults to `auto`).
We're also ignoring the default action pref for MSE (was already special-cased).

This resolves #981
2018-07-25 06:59:45 +08:00
janekptacijarabaci 219a491628 FormData - Implement manipulation methods, support in workers 2018-07-25 06:59:43 +08:00
Pale Moon 041fff53f9 Re-implement Pale Moon spell checker dictionary logic.
We try to derive the dictionary to use based on the following priorities:
1) Content preference: the language the user set for the site before.
2) The value of "spellchecker.dictionary.override" which reflects a
   global choice of language explicitly set by the user.
3) Language set by the website, or any other dictionary that partly matches that.
   Eg. if the website is "en-GB", a user who only has "en-US" will get that.
   If the website is generic "en", the user will get one of the "en-*" installed,
   pretty much at random.
4) The user's locale
5) Leave the current dictionary set.
6) The content of the "LANG" environment variable (if set)
7) The first spell check dictionary installed.

Stop using the (broken) spellchecker.dictionary "holding pref"
2018-07-25 06:59:41 +08:00
Pale Moon 1b66cbcf38 Graphite2: cherry-pick bugfix. 2018-07-25 06:59:39 +08:00
Nicholas Hurley e2eeafaacd Bug 1343505 r=mcmanus a=abillings
MozReview-Commit-ID: 7OPJQfzW4FU
2018-07-25 06:59:37 +08:00
Pale Moon 2a7cc300c0 Reconfigure network security:
- Enable 128-bit RSA+AES+SHA256 suites
- Disable all static DHE suites because:
  * There's no way to negotiate DH key sizes.
  * It's barely in use and when it is, it can fall back to RSA
  * We now have broader RSA/AES support with stronger SHA-HMAC
2018-07-25 06:59:35 +08:00
Pale Moon 3af91e4b80 Implement optional parameters of WebSocket permessage compression.
This works around a spec conflict in RFC7692, avoiding socket closure when allowed but unknown parameters are sent back by the server.

Added parameters:
- server_no_context_takeover
- server_max_window_bits
- client_max_window_bits
2018-07-25 06:59:33 +08:00
janekptacijarabaci ac8b12b2d9 Customizable toolbars - backward compatible (but unidirectional) - style clean up 2018-07-25 06:59:30 +08:00
janekptacijarabaci 3675ef038d Customizable toolbars - backward compatible (but unidirectional) 2018-07-25 06:59:29 +08:00
JustOff 1396542939 Add documents to embed element capabilities 2018-07-25 06:59:27 +08:00
JustOff 8c68a7ce40 Simplify/beautify SYNC_PREFS_PREFIX 2018-07-25 06:59:24 +08:00
JustOff 017332aaae Apply prefs-related prefs before applying other synced prefs 2018-07-25 06:59:23 +08:00
Pale Moon f543949da5 Remove duplicate callback case statements. 2018-07-25 06:59:05 +08:00
Pale Moon c9ad97a8f5 Add support for RSA+AES+SHA256/384 suites for web compatibility.
This adds the following suites for web compatibility despite the
deprecated RSA key exchange that makes little sense with a
very strong HMAC or GCM:

TLS_RSA_WITH_AES_256_GCM_SHA384
TLS_RSA_WITH_AES_256_CBC_SHA256
TLS_RSA_WITH_AES_128_GCM_SHA256
TLS_RSA_WITH_AES_128_CBC_SHA256

Only the 256-bit ones are enabled by default.
2018-07-25 06:58:58 +08:00
Pale Moon c9c81ca7c3 Restore missing RSA+Camellia suites. 2018-07-25 06:58:56 +08:00
JustOff f944b442be Allow anchorObject.hash getters do unescape only if dom.url.getters_decode_hash is true 2018-07-25 06:58:54 +08:00
rhinoduck 361d6b8e76 Simplify libwebp usage in nsWEBPDecoder 2018-07-25 06:58:52 +08:00
rhinoduck cf532575c1 Clean up in nsWEBPDecoder a bit
Remove unneeded headers; make use of the override keyword; rename one
variable to make its meaning clearer; trim a few stray trailing spaces.
2018-07-25 06:58:50 +08:00
rhinoduck 3683f6dc1c Fix invalidation rect in nsWEBPDecoder
The last argument to nsIntRect's constructor should be height, not y2.
2018-07-25 06:58:48 +08:00
rhinoduck eef7695088 Fix memory leak in nsWEBPDecoder
FinishInternal() won't get called if an error has been posted before,
so the libwebp cleanup calls need to be in a different place; like the
destructor.
2018-07-25 06:58:45 +08:00
rhinoduck 0f37da4f2f Fix posting order in nsWEBPDecoder
As per CheckProgressConsistency() in ProgressTracker.cpp, PostSize()
should come before PostHasTransparency().
2018-07-25 06:58:44 +08:00
rhinoduck e665e73cea Fix member visibility in nsWEBPDecoder 2018-07-25 06:58:42 +08:00
Pale Moon 10487202da Correct the pixel size comment. 64Mpix, not 16Mpix. 2018-07-25 06:58:40 +08:00
Pale Moon b142e09884 Stop trying to apply HQ scaling on ridiculously-sized (>16Mpix) images since it'll cause OOM crashes.
Too-large images won't use HQ scaling and also won't display at 1:1 zoom
because we simply don't have the surface cache space available for that kind of out-of-scope image.
It will allow the user to save such images to disk and view in specialized software.
2018-07-25 06:58:34 +08:00
Pale Moon 7bd441e5fa Dev version bump. 2018-07-25 06:58:33 +08:00
janekptacijarabaci 6fc5526b0e XMLHttpRequest: Expose mozAnon constructor js binding to system scopes 2018-07-25 06:58:30 +08:00
Pale Moon 00c0512ccb Make DOM selection addRange spec-compliant, take 2.
Because of the platform structure, we have to provide a way to add ranges to
Selection objects that aren't associated with a shell/nsFrameSelection.
This commit extends the original implementation with workarounds to add
these ranges by reaching into the internal implementation for adding ranges
and calling those functions directly.
2018-07-25 06:58:28 +08:00
Pale Moon 27b63aa0cc Add a way to prevent having to cast selections.
TODO: Needs a follow-up to convert existing static_cast<Selection*>(aSelection) occurrences to AsSelection().
2018-07-25 06:58:25 +08:00
Pale Moon 41720aeaac Add a way to "catch" an ErrorResult, and a way to safely convert an ErrorResult to an nsresult. 2018-07-25 06:58:23 +08:00