Commit Graph

1297 Commits

Author SHA1 Message Date
Cameron McCormack
170191a2b6 Bug 1495984 - Make css::URLValue::IsLocalRef call into CssUrlData::is_fragment. r=emilio
This fixes the issue that we should no longer be looking for control characters.



MozReview-Commit-ID: 8k89Aheq3NY

Differential Revision: https://phabricator.services.mozilla.com/D8876
2018-10-17 09:43:45 +00:00
Diego Pino Garcia
395c3d8ad4 Bug 734063 - Remove the multicol element from nsContentUtils::IsHTMLBlock r=hsivonen 2018-10-12 12:59:00 +03:00
Tom Schuster
8e820b5c01 Bug 1497831 - Use nsTArray instead of nsIArray for nsITransferable. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D8194
2018-10-10 20:25:54 +00:00
Neil Deakin
117d5b55bb Bug 1310193 - Remove wrapping of nsISupports as nsISupportsInterfacePointer in transferables. r=smaug 2018-10-07 16:33:07 +02:00
Nicholas Nethercote
325d491a33 Bug 1451169 - Use nsStaticAtom* instead of nsStaticAtom** in Element.h. r=baku 2018-04-03 13:21:06 +10:00
Emilio Cobos Álvarez
a1abfb45c7 Bug 1493222 - Expose InspectorUtils to fuzzers. r=bzbarsky
I can be more granular if we want, by adding more ChromeOnly annotations for the
functions that we don't want to expose.

Differential Revision: https://phabricator.services.mozilla.com/D6530
2018-09-27 19:00:33 +00:00
Emilio Cobos Álvarez
850464117c Bug 1484285 - Avoid loading XBL bindings for stuff that is very likely to be a custom-element. r=smaug
This should be more generic than hardcoding the tags, and be enough for our
chrome to avoid regressions as they migrate more stuff to CE, avoiding calling
into the GetComputedStyle machinery..

Differential Revision: https://phabricator.services.mozilla.com/D6537
2018-09-21 21:29:25 +00:00
Thomas Nguyen
f8590582d9 Bug 1330487 - Part 1: Parse referrer policy from header and propagate to stylesheet r=heycam
This also fixes loading child stylesheet case, using correct referrer policy stored
in parent sheet.

MozReview-Commit-ID: ARXQyleD9Wq

Differential Revision: https://phabricator.services.mozilla.com/D1921
2018-09-17 05:35:26 +00:00
Ehsan Akhgari
d805dceab3 Bug 1491595 - Remove the XPCOM registration for the bidi keyboard; r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D5962
2018-09-17 00:02:58 -04:00
Narcis Beleuzu
d460c661c9 Backed out changeset 87d667d7ad73 (bug 1491595) for geckoview-junit failures on nsContentUtils. CLOSED TREE 2018-09-16 22:12:43 +03:00
Ehsan Akhgari
eff30b7778 Bug 1491595 - Remove the XPCOM registration for the bidi keyboard; r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D5962
2018-09-16 13:52:38 -04:00
Xidorn Quan
1fa7a7e5c8 Bug 1375319 part 1 - Make DispatchTrustedEvent able to dispatch composed event and have fullscreen events composed. r=smaug
Depends on D5394

Differential Revision: https://phabricator.services.mozilla.com/D5414
2018-09-14 00:05:39 +00:00
Xidorn Quan
5fa29d57e1 Bug 1490539 part 1 - Change FullScreen to Fullscreen in various names. r=smaug
Some methods on Window are not changed because they are part of public
interface. Method names from widget are also unchanged.

Many "full-screen" in comments are also updated to "fullscreen" instead.

Differential Revision: https://phabricator.services.mozilla.com/D5639
2018-09-12 15:51:30 +00:00
Andrea Marchesini
9574aec169 Bug 1489844 - Port DOMPrefs to StaticPrefs - part 18 - privacy.resistFingerprinting, r=ehsan 2018-09-10 20:36:17 +02:00
Henri Sivonen
5fadb2a0b5 Bug 1488697 - Make StringBuilder::ToString avoid repeated capacity and aliasing checks as well as terminator writes. r=smaug
* Avoid the string implementation's capacity checks, since we know they
   succeed.
 * Avoid the string implementation's aliasing checks, since we know there's no
   aliasing.
 * Avoid writing the zero terminator more than once or out of sequence.
 * Use u"" literals when appending literals to a UTF-16 string.
 * Write runs of non-escaped code units instead of writing code unit by code
   unit in order to benefit from SIMD (either via memcpy or
   ConvertLatin1toUTF16).

This results in a 13% execution time reduction on desktop Haswell i7 when
getting the innerHTML of the body of the Selectors spec. (The WebKit
optimization target from https://bugs.webkit.org/show_bug.cgi?id=81214 .)

MozReview-Commit-ID: LAg3gkGJnpQ

Differential Revision: https://phabricator.services.mozilla.com/D5239
2018-09-08 07:47:28 +00:00
Olli Pettay
e1c7d5dd97 bug 1483963, cache the index of a child node when ordering animations for event dispatch, r=hiro,ehsan 2018-09-05 00:31:57 +03:00
Edgar Chen
b2108445fc Bug 1487343 - Correct set the prefix for an autonomous custom element; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D4871
2018-09-03 22:13:35 +00:00
Andrea Marchesini
f22c625493 Bug 1487331 - STATE_BLOCKED_TRACKING_COOKIES must tell why cookies are blocked, r=ehsan
Introduce these new blocking state values:

const unsigned long STATE_COOKIES_BLOCKED_BY_PERMISSION = 0x10000000;
const unsigned long STATE_COOKIES_BLOCKED_TRACKER       = 0x20000000;
const unsigned long STATE_COOKIES_BLOCKED_ALL           = 0x40000000;
const unsigned long STATE_COOKIES_BLOCKED_FOREIGN       = 0x80000000;
2018-08-31 11:02:33 +02:00
Andrea Marchesini
bcc9ba8ba6 Bug 1487093 - Implement AntiTrackingCommon::NotifyRejection, r=ehsan 2018-08-30 17:44:38 +02:00
Ehsan Akhgari
0b660d0b51 Bug 1485839 - Remove the obsolete privacy.restrict3rdpartystorage.ui.enabled pref; r=nika 2018-08-28 08:29:33 -04:00
Jeff Walden
4e1ffd0b71 Bug 1484421 - Move JSON-related functionality into js/public/JSON.h that isn't #include'd in jsapi.h. r=jandem 2018-08-20 07:54:45 -07:00
Kris Maglione
a452597bfd Bug 1483664: Part 0 - Dispatch pagehide/pageshow to all system group listeners on frameloader swap. r=smaug,mconley
Having to add pagehide/pageshow listeners to the chrome event target is a
serious inconvience for the use cases of this bug. Dispatching to system group
listeners has approximately the same effect as the old code, but is much
easier for window-bound code to handle.
2018-08-15 20:06:49 -07:00
Margareta Eliza Balazs
49329f5c3b Merge inbound to mozilla-central. a=merge 2018-08-16 12:24:26 +03:00
Ehsan Akhgari
61da94be2a Bug 1483604 - Part 3: Pass in a channel object when calling InternalStorageAllowedForPrincipal() from StorageAllowedForWindow() and StorageAllowedForDocument(); r=smaug 2018-08-15 19:00:52 -04:00
Ehsan Akhgari
a4a5bea4b5 Bug 1483604 - Part 1: Only call NotifyContentBlockingState() when the channel argument is non-null; r=smaug 2018-08-15 19:00:51 -04:00
Dave Townsend
e416deef2e Bug 1480465: Infer the namespace for custom elements at definition time by following the class hierarchy. r=smaug
When a custom element is defined we can check whether its class is an instance
of XULElement or HTMLElement and tag the defintion with a namespace accordingly.
This allows us to know the correct namespace for the custom element when
created.

Differential Revision: https://phabricator.services.mozilla.com/D2680
2018-08-15 10:31:16 +00:00
Kris Maglione
f1bd780396 Bug 1480244: Part 1b - Rename nsInProcessTabChildGlobal to InProcessTabChildMessageManager. r=bz
MozReview-Commit-ID: GgleVt1tXTG
2018-08-10 14:08:07 -07:00
Timothy Guan-tin Chien
22ee68cafb Bug 1431255 - Part I, Add dom.ua_widget.enabled pref and enable for Desktop Nightly only r=smaug
This would allow us to control this feature independently of the Shadow DOM pref.
The feature is only turned on when Shadow DOM is turned on.

MozReview-Commit-ID: 4g6BJigFUZs
2018-07-06 08:46:43 +08:00
Brian Grinstead
c0ae370f2b Bug 1483274 - Remove nsIRemoteBrowser and always use nsIBrowser;r=smaug
Browsers can switch at runtime from remote to non-remote and vice versa,
which on the C++ side is detected from a XBL binding change which causes
nsIRemoteBrowser to either be implemented or not. Custom Elements can't
change at runtime in the same way, so unifying on a single [implements]
will allow browser (both remote and non-remote) to be migrated to a single
Custom Element.

To keep current functionality, this updates Qi calls into nsIRemoteBrowser
to instead Qi into nsIBrowser and check isRemoteBrowser.

Differential Revision: https://phabricator.services.mozilla.com/D3346
2018-08-15 19:21:22 +00:00
Ehsan Akhgari
9d61028d68 Bug 1482988 - Handle null arguments in nsContentUtils::StorageDisabledByAntiTracking correctly; r=smaug 2018-08-13 16:27:44 -04:00
Andrea Marchesini
30d7732d9c Bug 1480780 - Merge the privacy.3rdpartystorage.enabled pref with the network.cookie.cookieBehavior pref; r=ehsan
This patch introduces a new cookie behavior policy called
BEHAVIOR_REJECT_TRACKER.  It also makes it possible to override that
behavior with cookie permissions similar to other cookie behaviors.
2018-08-13 16:01:16 -04:00
Jan de Mooij
89f0496a28 Bug 1472976 part 3 - Use JS::GetRealmPrincipals instead of JS_GetCompartmentPrincipals in nsContentUtils::ObjectPrincipal. r=smaug
This also removes an outdated comment, nsScriptSecurityManager::doGetObjectPrincipal was removed in bug 1464374.
2018-08-10 11:57:39 +02:00
Brindusan Cristian
7ca8388e09 Merge inbound to mozilla-central. a=merge 2018-08-08 00:51:43 +03:00
Zibi Braniecki
ce15659d7d Bug 1480673 - Add nsContentUtils::StringifyJSON. r=qdot
Add nsContentUtils::StringifyJSON.

Differential Revision: https://phabricator.services.mozilla.com/D2700
2018-08-07 15:49:13 +00:00
Jean-Yves Avenard
64ce1679fb Bug 1481176 - P2. Move nsContentTypeParser to its own file. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D2800
2018-08-07 19:21:58 +02:00
Boris Zbarsky
37dd73127b Bug 1479569 part 1. Add a ContentFrameMessageManager getter on nsIDocShell. r=kmag 2018-08-02 23:49:09 -04:00
Csoregi Natalia
5bd0ca7b64 Backed out 3 changesets (bug 1479569) for devtools/client/responsive.html failures. CLOSED TREE
Backed out changeset e123d0aa911c (bug 1479569)
Backed out changeset b828a58404e5 (bug 1479569)
Backed out changeset 97041ef8f311 (bug 1479569)
2018-08-03 10:39:12 +03:00
Boris Zbarsky
7ea9a4a7ef Bug 1479569 part 1. Add a ContentFrameMessageManager getter on nsIDocShell. r=kmag 2018-08-02 23:49:09 -04:00
Kris Maglione
e769b4cbb0 Bug 1479245: Don't eagerly load any PDF.js scripts in the content process. r=bdahl
MozReview-Commit-ID: GDSmAH9gpnX
2018-07-28 19:05:22 -07:00
Cosmin Sabou
2dfa4a8fed Backed out changeset f0ccbdcaa8a1 (bug 1479245) for causing a spike on timeouts on browser_pdfjs_views.js 2018-08-02 11:16:01 +03:00
Jan de Mooij
48d34e468e Bug 1479363 part 1 - Use JSAutoRealm instead of JSAutoRealmAllowCCW in dom/base. r=bz 2018-08-02 08:48:40 +02:00
Kris Maglione
98f4109cb8 Bug 1479245: Don't eagerly load any PDF.js scripts in the content process. r=bdahl
MozReview-Commit-ID: GDSmAH9gpnX
2018-07-28 19:05:22 -07:00
Jorg K
a0b2fd1a1f Bug 1478441 - Introduce nsIURIWithSpecialOrigin needed for Thunderbird. r=baku 2018-07-31 11:27:00 +03:00
Jan de Mooij
fddc23c346 Bug 1478955 part 1 - Rename JSAutoRealm to JSAutoRealmAllowCCW. r=luke 2018-07-28 12:12:26 +02:00
Andreas Farre
b2b698695f Bug 1445659 - Create basic Browsing Context in Content Parent and Child. r=peterv
Add BrowsingContext to allow the tree structure of docshells to exist
in several processes simultaneously. This is a first step towards
allowing a tree structure preserving separation of docshells across
processes.
2018-07-26 10:31:00 +03:00
Ehsan Akhgari
3003369e01 Bug 1478428 - Move the network.cookie.cookieBehavior pref to StaticPrefList.h; r=baku 2018-07-25 15:02:31 -04:00
Boris Zbarsky
df3b83f98c Bug 1450167. Stop using atom-or-string for event names in the listener manager. r=smaug
Now that we support atoms off the the main thread, we can just use atoms.
2018-07-24 18:15:19 -04:00
Gurzau Raul
c4e302db82 Merge inbound to mozilla-central. a=merge 2018-07-24 12:49:23 +03:00
Kris Maglione
03b182d3da Bug 1477579: Part 3 - Avoid duplicating static strings in category manager entries. r=froydnj
Much like the component manager, many of the strings that we use for category
manager entries are statically allocated. There's no need to duplicate these
strings.

This patch changes the category manager APIs to take nsACStrings rather than
raw pointers, and to pass literal nsCStrings when we know we have a literal
string to begin with. When adding the category entry, it then skips making
copies of any strings with the LITERAL flag.

MozReview-Commit-ID: EJEcYSdNMWs
***
amend-catman
2018-07-23 17:41:06 -07:00
Brindusan Cristian
52e593c35b Backed out 3 changesets (bug 1477579) for build bustages on xpcshell\selftest.py and crashtest failures on /components/nsComponentManager.cpp. CLOSED TREE
Backed out changeset aa9a8f18e98f (bug 1477579)
Backed out changeset 5fb0b7746a5d (bug 1477579)
Backed out changeset 8359f8fe4184 (bug 1477579)
2018-07-24 04:55:03 +03:00