Commit graph

2,222 commits

Author SHA1 Message Date
wolfbeast
dce38e8d76 Revert "Reduce number of allocations in AutoStopwatch"
This reverts commit 3476c1d60ec29c5497123194acd7a9310b1023d2.
2019-02-16 00:27:29 +08:00
David Teller
059aeea416 Reduce number of allocations in AutoStopwatch
This patch fixes two related issues.
1. The AutoStopwatch uses a stack-allocated `mozilla::Vector` to
communicate with its callback during each compartment switch.
This vector was designed to allow its contents to be stack-allocated
but they turned out to be accidentally heap-allocated.

2. During each tick, the stopwatch fills a vector `recentGroups_`.
This vector always started with minimal capacity and had to grow
repeatedly as groups were added, causing repeated reallocations.
This patch preallocates `recentGroups_` to have the same capacity as the
previous tick. We expect that this should eventually reach a stable size
that closely matches the actual needs of the process.
2019-02-16 00:27:28 +08:00
wolfbeast
1e2c555484 [PALEMOON] Remove some dead code from browser glue
(plugin update service)
2019-02-16 00:27:26 +08:00
wolfbeast
8dab928cc3 [BASILISK] Align browser glue with TychoAM for enableable add-ons. 2019-02-16 00:27:25 +08:00
wolfbeast
b60487cfc9 Remove remote add-on debugging control. 2019-02-16 00:27:23 +08:00
wolfbeast
084eb46afa Add nullcheck for addons (pre-installed webextensions return null)
Tag #937.
2019-02-16 00:27:22 +08:00
FranklinDM
b8070842f1 Only use white audio indicator when using a lightweight theme [pinned tabs] 2019-02-16 00:27:21 +08:00
FranklinDM
e2b186d571 Only use white audio indicator when using a lightweight theme 2019-02-16 00:27:19 +08:00
wolfbeast
c2496a58d0 Fix incorrect file reference in onDownloadDragStart
Follow-up to Janek's port in 462332eee018e24d88255c708fa8acb67a717673
where this variable was changed creating a mismatch with surrounding
code.

This fixes #943.
2019-02-16 00:27:18 +08:00
wolfbeast
83dcf0f290 Fix bookmarks backup logic.
This is a follow-up to an incomplete patch submitted to Tycho:
https://github.com/MoonchildProductions/Pale-Moon/pull/1082

Also reduces the idle time before attempting to backup in the background
to 10 minutes (was 15).
2019-02-16 00:27:17 +08:00
wolfbeast
a1c22f3a76 Check for contiguous buffer state.
When we are reading large image data (i.e.: people using webp to stream
video instead of the native webm format; I'm looking at you, Giphy!)
we can run into the situation where the available data is not in a
contiguous buffer, and we need to either buffer additional data or
re-buffer from the start. If we don't do this, we can run into issues
because of buffer over-reading (causing corrupted data if allocated or
more likely crashes if not allocated).
Re-buffering is expensive, but this should be rare and limited to
dealing with unintended use for animated image formats.

This resolves #940.
2019-02-16 00:24:38 +08:00
wolfbeast
3640321580 Make Sourcebuffer::AppendFromInputStream handle canceled image loads. 2019-02-16 00:24:36 +08:00
wolfbeast
f84fdea422 Make resuming of decoding work for anonymous decoders. 2019-02-16 00:24:35 +08:00
wolfbeast
072fbe1a93 Update libwebp to version 1.0.2
This resolves #939.
2019-02-16 00:24:34 +08:00
wolfbeast
3cc2485e42 Properly camelCase dom.intersectionObserver.enabled pref. 2019-02-16 00:24:32 +08:00
wolfbeast
125d551bd6 Revert "Disable IntersectionObserver API because of crashes."
This reverts commit ac1beef5c10a114afe18897d5d3ced24ac378b92.
2019-02-16 00:24:31 +08:00
wolfbeast
7798af3c14 Actually unlink targets from registered intersection observers.
When a node is released/removed, and it has an intersection observer
attached to it, that observer should be unlinked at the time of release.

This resolves #935.
2019-02-16 00:24:29 +08:00
wolfbeast
bc84969432 Disable IntersectionObserver API because of crashes.
See #934 and #935.
2019-02-16 00:24:27 +08:00
Ascrod
b85fb498d9 Fix check for HSTS when service is disabled. 2019-02-16 00:24:25 +08:00
Ascrod
ecab329490 [PALEMOON] Fix the option to disable HSTS. 2019-02-16 00:24:24 +08:00
Ascrod
57ca286478 Add preference for fully disabling HSTS. 2019-02-16 00:24:23 +08:00
wolfbeast
dc2cf8544d Rewrite IntersectionObserver list handling to be more robust.
Tag #935.
2019-02-16 00:24:21 +08:00
wolfbeast
9222116f26 Add isIntersecting property to IntersectionObserverEntry.
Per updated spec.

This resolves the issue raised in #249.
2019-02-16 00:24:20 +08:00
wolfbeast
54b77893e2 New cycle version bump 2019-02-16 00:24:18 +08:00
wolfbeast
2c450f5ad9 Improve toolbar icons for all DPIs
Tag #576.

- Redraw toolbar SVG images, pixel-aligning them as best as possible
  with manual node placement on the pixel grid.
- Reintroduce PNG versions for < 1.33 dppx (with added glow arrow)
- Make the css adaptive around the 1.33 dppx border, using PNG below
  that threshold and SVG above it.
2019-02-16 00:24:17 +08:00
wolfbeast
7f9b5f6329 [PALEMOON] Add captive portal preference to the UI.
Tag #860
2019-02-16 00:24:16 +08:00
wolfbeast
199b74eb9d Add matching browser.newtab.choice pref to prevent error. 2019-02-16 00:24:14 +08:00
wolfbeast
226e8d98bb [PALEMOON] Move Advanced prefs l10n strings to their proper place 2019-02-16 00:24:13 +08:00
wolfbeast
7bd9777765 [PALEMOON] Clean up advanced prefs XUL
Remove commented out old Firefox prefs that haven't been used in a
loon while and aren't going to be reinstated.
2019-02-16 00:24:11 +08:00
wolfbeast
19f9451de0 [WebExAM] Use proper application name in WebExtension API error message. 2019-02-16 00:24:10 +08:00
adeshkp
a8a28d4537 Make AllowExperiments return false as it is not useful without telemetry 2019-02-16 00:24:08 +08:00
adeshkp
813140d8c7 Remove a pointless switch after telemetry cleanup 2019-02-16 00:24:07 +08:00
adeshkp
4c3713155e Remove unused telemetry timer from HTMLMediaElement.h 2019-02-16 00:24:06 +08:00
adeshkp
aea50f182f Telemetry: Remove stubs and related code 2019-02-16 00:24:04 +08:00
wolfbeast
10053448d6 Update basilisk blocklist header. 2019-02-16 00:24:01 +08:00
wolfbeast
14ea8bb121 Align Element.ScrollIntoView() with the spec.
This also removes the (unused) shadow alias from nsIDOMHTMLElement
which used the different calling convention.

This resolves #927
2019-02-16 00:24:00 +08:00
wolfbeast
83b95f2c5b Fix library window reference to SVG toolbar image.
Tag #576.
This needs uplift to the relbranch.
2019-02-16 00:23:58 +08:00
JustOff
756f56126c [WebExAM] Properly handle the add-on name in case it's localized 2019-02-16 00:23:57 +08:00
wolfbeast
f61fb76066 Expose hidden preference to disable Page Thumbnail generation.
This resolves #906.
2019-02-16 00:23:56 +08:00
wolfbeast
a0d362b6e3 Remove proprietary constructor on AudioContext.
This is a B2G leftover, was proprietary, and is causing issues
because `AudioContext` can now have a parameter that is a property bag,
per spec (we do not do anything with the property bag now; the audio
back-end will use automatic values for everything).

This resolves #924.
2019-02-16 00:23:54 +08:00
wolfbeast
f09b84deb0 Make MAX_CSS_VAR_LENGTH unsigned to avoid warnings.
Follow-up for #891. Tag #457.
2019-02-16 00:23:53 +08:00
trav90
651f0bfce6 Update HSTS preload list
Tag #447
2019-02-16 00:23:51 +08:00
wolfbeast
86a99f1fe3 Use getElementBoundingRect and element.ownerGlobal in FormSubmitObserver 2019-02-16 00:23:50 +08:00
wolfbeast
0e379c7aef Update UXP Coding Style guideline document (WIP) 2019-02-16 00:23:49 +08:00
wolfbeast
dc33331aa8 Update UXP Coding Style guideline document (WIP) 2019-02-16 00:23:47 +08:00
wolfbeast
b726165f6b Update UXP Coding Style guideline document (WIP) 2019-02-16 00:23:46 +08:00
wolfbeast
440a9570a0 Add Comodo IS < 6.3 64-bit to the dll blocklist 2019-02-16 00:23:44 +08:00
wolfbeast
45cb285411 Dont rely on 'this' staying alive long enough for getting favicons.
This fixes #809.
2019-02-16 00:23:43 +08:00
janekptacijarabaci
c80a76aaf0 [PALEMOON] Bug 1135348 - Fix about:downloads by adding missing XPCOMUtils imports 2019-02-16 00:23:42 +08:00
janekptacijarabaci
83ba13fdac [PALEMOON] Bug 1129896 - Part 2 of 2 - Convert the shared front-end code to a JavaScript code module 2019-02-16 00:23:40 +08:00