Commit Graph

54 Commits

Author SHA1 Message Date
janekptacijarabaci 1aff4b51b1 XMLHttpRequest: Loaded-as-data XML documents should not generate <parsererror> 2018-07-25 07:02:41 +08:00
janekptacijarabaci 94f71d6b19 [Minor fix] XMLHttpRequest - GetAllResponseHeaders() should return an empty string (instead null) 2018-07-25 07:00:05 +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
janekptacijarabaci 219a491628 FormData - Implement manipulation methods, support in workers 2018-07-25 06:59:43 +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
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
janekptacijarabaci 89aa843706 [suggestion] Minor fix: When a WebSocket connection is active and users refreshes the page an error is logged 2018-07-25 06:51:42 +08:00
Pale Moon c273ac45d6 Optimize cached use of innerText. 2018-07-25 06:47:59 +08:00
Pale Moon 38fe669f6e Add support for element.innerText (getter, setter) 2018-07-25 06:47:45 +08:00
trav90 ceba0db26e Use nsRefPtr in Element::InsertAdjacentTest 2018-07-25 06:44:40 +08:00
janekptacijarabaci d4cf0e4361 Add support for Element.insertAdjacentText() and Element.insertAdjacentElement() 2018-07-25 06:44:38 +08:00
JustOff 416edea56c Proper PR style. 2018-07-25 06:44:23 +08:00
JustOff fbe230cb36 Fix SSUAO & Navigator::GetUserAgent() regression 2018-07-25 06:44:16 +08:00
Pale Moon b1d73af3ea Make sure we're working in the compartment of the objects we're working with. 2018-07-25 06:44:15 +08:00
Pale Moon 2ef64efbd9 nsAttrAndChildArray::GrowBy() must check the return value of mozilla::CeilingLog2 2018-07-25 06:44:07 +08:00
Pale Moon 2bedeb89c5 WebSocketImpl::mSecure should be initialized in the CTOR. 2018-07-25 06:43:55 +08:00
Pale Moon fd6b74ff2f Ensure onload blocker is added once mScriptGlobalObject is set. 2018-07-25 06:43:42 +08:00
janekptacijarabaci 7cf33c4329 CORS: A "data:" URL = the same-origin 2018-07-25 06:43:07 +08:00
Pale Moon 2969f099a1 Make DOM storage from 3rd parties honor 3rd party cookie setting.
- restricts usage of DOM storage by 3rd parties if the use has set 3rd party cookies to be blocked.
- extends "cookie-like" handling for DOM storage to enhance privacy and combat cross-origin tracking.

This resolves #860
2018-07-25 06:42:59 +08:00
janekptacijarabaci 17f727d3e6 [windows] The XBL scope/principal vs. document.domain - throws an error 2018-07-25 06:35:41 +08:00
Pale Moon beaf9608a5 Add a user control mechanism to deny clipboard cut/copy. 2018-07-25 06:35:03 +08:00
Pale Moon 08e58e7fbb Remove Windows Metro/WinRT code. 2018-07-25 06:25:01 +08:00
Pale Moon f3a4e27ff8 Update clipboard command controllers to match cut/copy action spec. 2018-07-25 06:23:16 +08:00
Pale Moon 075def3e81 Enable clipboard menu commands correctly in (X)HTML documents.
Ref: bugs 1159490 and 1170531
2018-07-25 06:23:13 +08:00
Pale Moon 1a559619eb Bug 1162952 - Return true from document.queryCommandEnabled('cut'/'copy') when in privileged or user-initiated code. 2018-07-25 06:23:08 +08:00
Pale Moon 3347d3a4a5 Check CSP for marquee event handlers. 2018-07-25 06:22:19 +08:00
Pale Moon dab1cd9e5c Handle failing node adoption properly. 2018-07-25 06:22:13 +08:00
Pale Moon bcbd575341 Improve cross-compartment wrapper handling when managing tabs.
Re-implementation of [3eecec5].
This resolves #753.
2018-07-25 06:21:34 +08:00
Pale Moon 2d8cf8cabb Add necessary braces. Follow-up to [afaa122] 2018-07-25 01:29:33 +08:00
Olli Pettay 5e9bcb348a Ensure expected DOM tree operations when calling insertBefore. 2018-07-25 01:29:29 +08:00
janekptacijarabaci 203a033d72 Img/Picture tag with "srcset" attribute bypass permissions 2018-07-25 01:22:21 +08:00
Pale Moon b86288c9f7 Clamp the resolution of performance.now() calls to 10 microseconds, because otherwise we allow various timing attacks that depend on high accuracy timers. 2018-07-25 01:21:07 +08:00
NTD 05edb5f8cf Oust PDF.js - Part 5: Remove special cases in docshell and dom as well as mozbuild backend tests 2018-07-25 01:15:26 +08:00
Pale Moon 8fe1bcfe93 Revert "Add media queries for Linux/BSD/OSX"
Backed out for Linux build bustage.

This reverts commit a8b3619405467c3f9e0c17f1a748b91c4c02244b.
2018-07-25 01:05:40 +08:00
Lootyhoof 60b8abe487 Add media queries for Linux/BSD/OSX 2018-07-25 01:05:35 +08:00
Pale Moon 2e44e0589f Add size check for large images. 2018-07-25 01:04:51 +08:00
Pale Moon aa083c1983 Fix typo in nsNodeUtils::CloneAndAdopt(). 2018-07-25 01:04:40 +08:00
Pale Moon 9a81e690e7 Crash fix: Ensure we don't remove valid Directionality maps from a textnode. 2018-07-25 01:04:13 +08:00
adisib 3a303e67f6 replace calls to String.prototype.contains with String.prototype.includes 2018-07-24 23:36:07 +08:00
wolfbeast 02112270b5 Remove EME (Encrypted Media Extensions) DRM support.
This resolves #102.
2018-07-24 23:32:00 +08:00
wolfbeast dfab0d5603 Tighten sandboxed scripts Part 1
Add a chrome and XBL accessor for the sandboxed scripts flag to Document WEBIDL.
This also includes changes to use the new function instead of getting and checking the sandbox flags in most places.
2018-07-24 23:31:10 +08:00
wolfbeast 1659ac189a Add a pref and control mechanism for GGC and disable it.
Tests show nothing but regressions using GGC, even in Mozilla's own microbench for GC.
Real-time flippable, if needed.
2018-07-24 23:28:54 +08:00
wolfbeast 7509b0c2b2 Check result of getting name and message in DOMError to prevent crashes. 2018-07-24 23:17:42 +08:00
wolfbeast 3a5a1af616 Bug 1265577 2018-07-24 23:17:06 +08:00
wolfbeast af20f1d169 Improve the "self" getter performance on global windows and workers. 2018-07-24 23:13:31 +08:00
Christoph Kerschbaumer 0e5fa1f29c CSP: Check baseChannel for CSP when loading multipart channel 2018-07-24 23:12:29 +08:00
wolfbeast c63c871dfb Don't assume that the textnode has changed when checking whether any textnode descendants determine the directionality of a dir=auto ancestor 2018-07-24 23:12:28 +08:00