Commit Graph

5576 Commits

Author SHA1 Message Date
Gijs Kruitbosch
7de2c5899e Bug 1515863, r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D15957

--HG--
extra : rebase_source : 748d4849050c3f2042f45f083cc7c99137963721
2019-01-08 16:59:21 +01:00
Ehsan Akhgari
a0455cf9bc Bug 1517136 - Devirtualize and inline the calls in nsSecureBrowserUIImpl::CheckForBlockedContent(); r=baku
Differential Revision: https://phabricator.services.mozilla.com/D15574
2019-01-07 17:56:07 -05:00
Gurzau Raul
e1794ca4b6 Backed out changeset d801dfa24d7d (bug 1517136) for build bustages at /security/manager/ssl/nsSecureBrowserUIImpl.cpp on a CLOSED TREE 2019-01-07 23:42:15 +02:00
Ehsan Akhgari
0a6d4ada69 Bug 1517136 - Devirtualize and inline the calls in nsSecureBrowserUIImpl::CheckForBlockedContent(); r=baku
Differential Revision: https://phabricator.services.mozilla.com/D15574
2019-01-07 16:03:40 -05:00
Gurzau Raul
f5cb8896a3 Backed out changeset f6f97217b46c (bug 1517136) for build bustage at /security/manager/ssl/nsSecureBrowserUIImpl.cpp on a CLOSED TREE 2019-01-07 21:31:52 +02:00
Ehsan Akhgari
6aa1593b81 Bug 1517136 - Devirtualize and inline the calls in nsSecureBrowserUIImpl::CheckForBlockedContent(); r=baku
Differential Revision: https://phabricator.services.mozilla.com/D15574
2019-01-07 13:53:46 -05:00
Jonathan Kingston
7444827257 Bug 1517768 - Fix typos of DocShell spelling. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D15733

--HG--
extra : moz-landing-system : lando
2019-01-04 23:17:00 +00:00
shindli
a0841a254f Merge inbound to mozilla-central. a=merge 2019-01-05 06:00:21 +02:00
Timothy Guan-tin Chien
bd38b39f8a Bug 1512048 - Convert tabmodalprompt binding to JSM module r=Gijs
This converts the tabmodalprompt binding to a class, to be constructed along side with the element
by TabModalPromptBox.

TabModalPromptBox will keep the instances in a map and pass it to the callers, instead of the element.
The tests and callers can access the class instance by passing the element reference to the map.

Differential Revision: https://phabricator.services.mozilla.com/D15505

--HG--
rename : toolkit/components/prompts/content/tabprompts.xml => toolkit/components/prompts/content/tabprompts.jsm
extra : moz-landing-system : lando
2019-01-04 19:29:34 +00:00
Jorg K
64e5de9372 Bug 1353867 - Follow-up, take 2: revert rev c9a17c8a3c3f and add include of WindowProxyHolder.h where it was missing. r=bz 2019-01-03 09:11:00 +02:00
Andrea Marchesini
aa8cddddd7 Bug 1517368 - Allow just the first external protocol URL in <iframe>, r=smaug 2019-01-04 16:16:58 +01:00
Emilio Cobos Álvarez
d2ed260822 Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug
Summary: Really sorry for the size of the patch. It's mostly automatic
s/nsIDocument/Document/ but I had to fix up in a bunch of places manually to
add the right namespacing and such.

Overall it's not a very interesting patch I think.

nsDocument.cpp turns into Document.cpp, nsIDocument.h into Document.h and
nsIDocumentInlines.h into DocumentInlines.h.

I also changed a bunch of nsCOMPtr usage to RefPtr, but not all of it.

While fixing up some of the bits I also removed some unneeded OwnerDoc() null
checks and such, but I didn't do anything riskier than that.
2019-01-03 17:48:33 +01:00
Peter Van der Beken
066d891adb Bug 1353867 - Add cross-process proxies for WindowProxy. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D12656

--HG--
extra : moz-landing-system : lando
2019-01-02 13:29:18 +00:00
Peter Van der Beken
58c7fc4d20 Bug 1353867 - Change WindowProxyHolder's native type to BrowsingContext. r=bzbarsky
Make the WindowProxyHolder hold a strong reference to a BrowsingContext, as in the future
we might not have a nsPIDOMWindowOuter (if the document is loaded in a different process).

Differential Revision: https://phabricator.services.mozilla.com/D12651

--HG--
extra : moz-landing-system : lando
2019-01-02 13:27:05 +00:00
Emilio Cobos Álvarez
63814207cb Bug 1516853 - Merge nsIDocument and nsDocument. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D15498

--HG--
extra : moz-landing-system : lando
2018-12-31 14:10:19 +00:00
Bogdan Tara
3eb2f351ae Backed out 6 changesets (bug 1353867) for nsDocShell.cpp failures CLOSED TREE
Backed out changeset aa9b106b15d9 (bug 1353867)
Backed out changeset 8c05f4d3f7ad (bug 1353867)
Backed out changeset 00869bed4121 (bug 1353867)
Backed out changeset 700aeb906fd2 (bug 1353867)
Backed out changeset 8b60851b93da (bug 1353867)
Backed out changeset ebdf4531b3bd (bug 1353867)
2018-12-31 17:47:12 +02:00
Peter Van der Beken
e25810f1d4 Bug 1353867 - Add cross-process proxies for WindowProxy. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D12656

--HG--
extra : moz-landing-system : lando
2018-12-31 12:44:07 +00:00
Peter Van der Beken
831826fe41 Bug 1353867 - Change WindowProxyHolder's native type to BrowsingContext. r=bzbarsky
Make the WindowProxyHolder hold a strong reference to a BrowsingContext, as in the future
we might not have a nsPIDOMWindowOuter (if the document is loaded in a different process).

Differential Revision: https://phabricator.services.mozilla.com/D12651

--HG--
extra : moz-landing-system : lando
2018-12-31 10:51:32 +00:00
Emilio Cobos Álvarez
f131713362 Bug 1516366 - Move base classes from nsDocument to nsIDocument. r=smaug
This is a big step in order to merge both.

Also allows to remove some very silly casts, though it causes us to add some
ToSupports around to deal with ambiguity of casts from nsIDocument to
nsISupports, and add a dummy nsISupports implementation that will go away later
in the series.

Differential Revision: https://phabricator.services.mozilla.com/D15352
2018-12-29 20:41:28 +01:00
Sylvestre Ledru
cccdda3c2a Bug 1516555 - Reformat everything to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D15426

--HG--
extra : moz-landing-system : lando
2018-12-28 15:48:06 +00:00
Kyle Machulis
ef297735b5 Bug 1478742 - IPDLize nsDocShellLoadState; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D13958

--HG--
extra : moz-landing-system : lando
2018-12-19 22:22:09 +00:00
Kyle Machulis
ff7225fa9b Bug 1511912 - Convert nsDocShell::DoURILoad to using nsDocShellLoadState; r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D14115

--HG--
extra : moz-landing-system : lando
2018-12-21 22:15:57 +00:00
Kyle Machulis
d70f721627 Bug 1497995 - Remove URI null checks in nsDocShell::InternalLoad; r=bzbarsky
We can't have null URIs now, so remove checks.

Depends on D13490

Differential Revision: https://phabricator.services.mozilla.com/D13491

--HG--
extra : moz-landing-system : lando
2018-12-19 21:02:20 +00:00
Kyle Machulis
7ce2d5568b Bug 1497995 - Make URI a constructor argument of nsDocShellLoadState; r=bzbarsky
We'll always need a URI for DocShellLoadState, and it should only
change is special circumstances. Construct the object with it, and
then follow up in Bug 1515433 for more cleanup.

Differential Revision: https://phabricator.services.mozilla.com/D13490

--HG--
extra : moz-landing-system : lando
2018-12-21 20:17:43 +00:00
Jonathan Kingston
0d4c03a307 Bug 1508642 - Add in session history triggering principal to nsSHistory. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D14976

--HG--
extra : moz-landing-system : lando
2018-12-20 12:17:45 +00:00
Razvan Maries
98becee43c Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-12-20 00:01:42 +02:00
Kyle Machulis
0e8e78f4bb Bug 1496251 - Convert nsDocShell::InternalLoad to using nsDocShellLoadState r=bzbarsky,nika
Move InternalLoad from 24 arguments to 3, using nsDocShellLoadState
objects. Move all internal argument references to using calls to
accessors/mutators on nsDocShellLoadState. Comments from old interface
function definition have been spread to relevant places in code.

Internal load flags in nsDocShellLoadState are also consolidated to
the LoadFlags member, as they were usually passed as that member
before nsDocShellLoadState existed. This begins the work to simplify
load flags further in a later patch (See Bug 1475331).

Depends on D13487

Differential Revision: https://phabricator.services.mozilla.com/D13488

--HG--
extra : moz-landing-system : lando
2018-12-19 21:01:13 +00:00
Kyle Machulis
2d414e6f15 Bug 1496251 - Remove InternalLoad from nsIDocShell r=bzbarsky
We only call through the nsIDocShell interface in one place, which can
be replaced with a cast to nsDocShell.

Differential Revision: https://phabricator.services.mozilla.com/D13487

--HG--
extra : moz-landing-system : lando
2018-12-19 21:01:05 +00:00
Margareta Eliza Balazs
f462d0cc0c Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-12-19 18:04:43 +02:00
Andreas Farre
67ea30c7d4 Bug 1505838 - Add BrowsingContextGroup. r=peterv
Add top-level and auxiliary browsing contexts to a group of
BrowsingContexts on creation and store a pointer to that group in all
children of the BrowsingContexts in the group. With this it is
possible to compute the transitive closure of related browsing
contexts.

Since we'll not be using linked lists of BrowsingContexts for neither
groups nor children we can move children to be an array of
BrowsingContexts and adjust to use a the more convenient HashMap for
roots.

Differential Revision: https://phabricator.services.mozilla.com/D13227

--HG--
extra : moz-landing-system : lando
2018-12-17 10:45:37 +00:00
Henri Sivonen
3c6115331f Bug 1513473 - Re-enable the Text Encoding menu telemetry probes on the release channel. datareview=chutten. r=janerik
* Make the probes available on the release channel.
* Migrate the probes to newer probe types.
* Rename the probes.
* Set email.
* Set expiry.

Differential Revision: https://phabricator.services.mozilla.com/D14237

--HG--
extra : moz-landing-system : lando
2018-12-18 09:06:55 +00:00
Jonathan Kingston
9c1d3b46db Bug 1508654 - adding in assert for referrer implied codebase principal. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D12436

--HG--
extra : moz-landing-system : lando
2018-12-17 15:35:45 +00:00
Dão Gottwald
103fe90088 Bug 1394188 - Make tab labels not change during reload. r=bzbarsky,florian
Differential Revision: https://phabricator.services.mozilla.com/D14602

--HG--
extra : moz-landing-system : lando
2018-12-17 12:33:29 +00:00
Andrea Marchesini
9cc643f6d3 Bug 1513895 - Unify PopupBlocker algorithm in 1 single file, r=smaug 2018-12-16 10:21:16 +01:00
Nathan Froyd
6e924db228 Bug 1515194 - part 2 - remove nsPILoadGroupInternal; r=valentin
We apparently had this for internal extension hooks that couldn't be
depended on externally...but now that interfaces aren't exposed to
addons, we can remove this no-op interface entirely.
2018-12-19 10:08:28 -05:00
Andrea Marchesini
2aef2d72d5 Bug 1512311 - Disable implicit rel=noopener in anchor and area elements if the triggering principal is system, r=nika 2018-12-12 17:55:13 +01:00
Andrea Marchesini
45041939bf Bug 167475 - iframes should load just URLs able to return data, r=smaug
This is done in order to block external protocol URLs in iframes, which cannot
be used to create documents, and they could exec external apps or show prompt
dialogs.
2018-12-12 00:59:47 +01:00
Nika Layzell
fae9f6ec44 Bug 1511237 - Store a TabChild reference in cached docshells, r=bzbarsky, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D13489
2018-12-05 10:18:44 -05:00
Nika Layzell
614b663032 Bug 1510460 - Record the current WindowGlobal on ChromeBrowsingContext, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D13156
2018-12-05 10:18:43 -05:00
Nika Layzell
91dd6c616f Bug 1500944 - Part 2: Expose WindowGlobal actors to Chrome JS, r=farre
This serves 2 purposes:
1. Provides an object corresponding to an inner window which Chrome JS can hold onto.
2. Provides the object to JS which Chrome JS per-window actors will be attached to.
3. Provides useful information to Chrome JS in the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D9394
2018-12-05 10:18:34 -05:00
Nika Layzell
b4954ede43 Bug 1500944 - Part 1: Store the set of active WindowGlobalParent objects in ChromeBrowsingContext, r=farre
This allows getting the set of all window globals for a given browsing context.
This is less useful at the moment as the active window global is not exposed as
such. That will be added as a follow-up.

Differential Revision: https://phabricator.services.mozilla.com/D9393
2018-12-05 10:18:33 -05:00
Ehsan Akhgari
0dcf936804 Bug 1510911 - Part 2: Backout changeset f8849239da42 (bug 1493563 - Part 5) for regressing performance 2018-12-03 14:27:53 -05:00
Sylvestre Ledru
265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
James Willcox
c010fd41c0 Bug 1507702 - Don't make about:crash* accessible to web content r=Ehsan,bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D12133
2018-11-29 12:07:27 -06:00
Daniel Varga
c89eda391e Backed out changeset 50171af401fc (bug 1507702) for build bustages at /builds/worker/workspace/build/src/docshell/base/nsAboutRedirector.cpp:34:3 on a CLOSED TREE
--HG--
extra : amend_source : 3ee43847a33693e3a47ecc586561a21f41074f13
2018-11-29 16:50:35 +02:00
James Willcox
fb1756d92c Bug 1507702 - Don't make about:crash* accessible to web content r=Ehsan,bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D12133
2018-11-29 08:37:14 -06:00
Andrea Marchesini
cf3f5b09a7 Bug 1510580 - Remove browser.fixup.hide_user_pass pref, r=valentin 2018-11-28 18:05:55 +01:00
Narcis Beleuzu
fbd301ecde Merge mozilla-central to inbound. CLOSED TREE 2018-11-28 12:02:34 +02:00
Andrea Marchesini
a1c0511754 Bug 1503681 - rel=noopener implicit for target=_blank in anchor and area elements when no rel attribute is set, r=nika
In case anchor and area elements have target=_blank and no rel=opener/noopener,
this patch makes so that rel=noopener is implied. This feature is behind pref
'dom_targetBlankNoOpener_enabled'.

See: https://github.com/whatwg/html/issues/4078
2018-11-28 08:22:05 +01:00
Brindusan Cristian
025923e8bc Backed out 3 changesets (bug 1503681) for geckoview failures on org.mozilla.geckoview.test.GeckoSessionTestRuleTest.waitForChromeJS. CLOSED TREE
Backed out changeset 211c7dfdc408 (bug 1503681)
Backed out changeset 076cc5bece1d (bug 1503681)
Backed out changeset 7a19fe6be68c (bug 1503681)
2018-11-28 11:10:48 +02:00