Граф коммитов

5942 Коммитов

Автор SHA1 Сообщение Дата
Barret Rennie 5474c1f3df Bug 1510569 - Keep track of whether we are navigating to a new URI in nsDocShell r=mconley,kmag,qdot
Previously the `WebNavigationChild` would keep track of when triggering its
`nsIWebNavigation`, `goForward`, `goBack`, `gotoIndex`, and `loadURI` methods.
It's `nsIWebNavigation` instance is always an `nsIDocShell` and as part of
porting `OnStateChange` and `OnLocationChange` events from
`WebProgressChild`/`RemoteWebProgress` to `BrowserChild`/`BrowserParent`, this
informations needs to be available from the `BrowserChild`. As it stands, it is
currently an expando property on the `WebProgressChild`.

Instead of introducing yet another XPCOM interface for the WebProgressChild, we
now store this information directly on the `nsDocShell`. Furthermore, instead
of having the `WebNavigationChild` manage this part of the `nsDocShell`'s
state, we can have the `nsDocShell` manage this state itself so it is always
consistent.

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

--HG--
extra : moz-landing-system : lando
2019-05-02 17:00:51 +00:00
Nika Layzell b5feffc5b9 Bug 1539959 - Ensure origin process is subscribed when attaching remote BC, r=farre
We were incorrectly not performing an EnsureSubscribed for the origin
process which a BrowsingContext came from. Normally this would mean that
the BrowsingContext could die in the parent process before the
WindowGlobalParent listener arrived, but that didn't generally happen
due to the low likelihood of a CC occuring between the two messages.

It's likely that this crash was caused by people on lower-end hardware
triggering a print. This would be a longer-running operation in the
content process between the first and second message than usual. On
systems with memory pressure, there would be a higher chance of a CC
occuring between the messages, which would then cause this crash.

This patch correctly connects the origin ContentParent to the
BrowsingContextGroup, which will prevent the CC from destroying our
objects.

In the future, it may be desirable to ensure that this doesn't happen
more reliably by using a ContentParent-local table for looking up
BrowsingContext IDs sent over IPC. This would prevent our current
dependency on the weak pointer behaviour of the current global ID cache.

Unfortunately, this patch adds no tests, and I'm not aware of a good way
to test this edge case to confirm it has been fixed. I believe that this
patch should fix the issue I mention, however.

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

--HG--
extra : moz-landing-system : lando
2019-05-02 08:50:12 +00:00
Brindusan Cristian 8f1402e37c Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-05-02 12:56:28 +03:00
Noemi Erli d4e8ffb875 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-05-02 07:40:07 +03:00
Cosmin Sabou a884fb99d8 Backed out 4 changesets (bug 1320404) for xperf failures on permissions.sqlite-journal.
Backed out changeset fbacf18b6532 (bug 1320404)
Backed out changeset fed7c475d75c (bug 1320404)
Backed out changeset 557b586f774a (bug 1320404)
Backed out changeset 5a20b5f43280 (bug 1320404)
2019-05-02 04:51:18 +03:00
Mike Conley bff8e0ac63 Bug 1533955 - Show some UI to indicate that a subframe has crashed. r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D29238

--HG--
extra : moz-landing-system : lando
2019-05-01 20:05:24 +00:00
Andrea Marchesini 7e61125d8f Bug 1320404 - Remove appId from origin attributes - part 1 - OriginAttributes and nsIPrincipal, r=Ehsan,flod
Differential Revision: https://phabricator.services.mozilla.com/D29353

--HG--
extra : moz-landing-system : lando
2019-05-01 23:21:45 +00:00
Andrea Marchesini 02a6bdd26c Bug 1548253 - Port pref cache variables of nsContentUtils to StaticPrefs - ui.use_activity_cursor, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D29515

--HG--
extra : moz-landing-system : lando
2019-05-01 21:09:49 +00:00
Jim Porter a480304779 Bug 1493225, part 3 - Cancel content JS when navigating through history to prevent hangs r=smaug
This patch adds an ID to ensure that we avoid canceling content JS if the next
page already started loading by the time we're ready to try canceling the JS.

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

--HG--
extra : moz-landing-system : lando
2019-04-30 23:31:46 +00:00
Andreas Farre 2a0512fd81 Bug 1547911 - Only restore non-empty browsing context children. r=peterv
Also, make sure to evict the right browsing contexts from the cache.

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

--HG--
extra : moz-landing-system : lando
2019-04-30 16:11:03 +00:00
Andreas Farre c082640182 Bug 1547219 - Add helper for iterating ContentParents in BCG. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D29152

--HG--
extra : moz-landing-system : lando
2019-04-30 08:45:41 +00:00
Andrew McCreight badd0c05ce Bug 1547800 - Remove superfluous static cast of loadInfo in nsDocShell::DoURILoad(). r=qdot
Bug 1487964 changed loadInfo to have a concrete type, so this cast is
no longer needed.

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

--HG--
extra : moz-landing-system : lando
2019-04-29 19:53:33 +00:00
Andreas Farre e3410c54b8 Bug 1471869 - Re-attach cached contexts in bulk. r=nika
This makes restoring from bfcache send less messages. It also
separates detach/attach from the caching logic, making it more clear
that caching is going on.

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

--HG--
extra : moz-landing-system : lando
2019-04-29 11:38:45 +00:00
Andreas Farre 5c480515bf Bug 1533447 - Part 2: Move bc caching to BrowsingContextGroup. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D28669

--HG--
extra : moz-landing-system : lando
2019-04-29 07:01:50 +00:00
Emilio Cobos Álvarez bf82ff6c77 Bug 1440537 - Fix docshell swap test to not rely on cross-docgroup flushing. r=bzbarsky
This flush used to happen from snapshotWindow's innerWidth / innerHeight /
scroll* getters.

Differential Revision: https://phabricator.services.mozilla.com/D28303
2019-04-27 12:40:30 +02:00
Geoff Brown 0fa89e18d5 Bug 1455996 - Skip test_marquee_event_handlers.html on geckoview for intermittent failures; r=bobowen
This test fails intermitently on many test platforms, but mostly on android-em-7-0-x86_64
(geckoview); I'd like to skip it there as I'm trying to get those jobs passing more
reliably.

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

--HG--
extra : moz-landing-system : lando
2019-04-26 09:24:48 +00:00
Emilio Cobos Álvarez 11ea945833 Bug 1546697 - Use a consistent style for enum classes in layout. r=dholbert
Per the discussion in:

  https://groups.google.com/d/msg/mozilla.dev.platform/P79pwa9z5m8/iPYPAWPHCAAJ

They should be CamelCase, and that's what most of them already do. This converts
the rest, which are a few.

For the ones that already used `e` or `k` prefixes, I've mostly done:

 for file in $(rg Type::e layout | cut -d : -f 1 | sort | uniq); do sed -i 's#Type::e#Type::#g' $file; done

For the ones that used uppercase, I've removed the prefix if it was already in
the type name, and turn them into CamelCase.

Depends on D28680

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

--HG--
extra : moz-landing-system : lando
2019-04-25 23:03:04 +00:00
Masayuki Nakano 3622509485 Bug 1545342 - part 2: Make some public enum of nsIPresShell move to mozilla namespace and defined as enum class in PresShellForwards.h r=smaug
This patch moves some `enum` in `nsIPresShell` which are in public scope into
`mozilla` namespace and change them as `enum class`es.

Unfortunately, only "where to scroll" enum is just defines constants of
percentages of scroll destination.  Therefore, this patch makes only them
as `static const`.

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

--HG--
extra : moz-landing-system : lando
2019-04-25 05:04:15 +00:00
Brindusan Cristian b3b1ca15aa Merge mozilla-central to autoland. a=merge CLOSED TREE
--HG--
rename : dom/ipc/TabChild.cpp => dom/ipc/BrowserChild.cpp
rename : dom/ipc/TabParent.cpp => dom/ipc/BrowserParent.cpp
rename : dom/ipc/TabParent.h => dom/ipc/BrowserParent.h
2019-04-25 01:43:17 +03:00
Brindusan Cristian f92b05e5f0 Merge inbound to mozilla-central. a=merge
--HG--
rename : dom/ipc/TabParent.cpp => dom/ipc/BrowserParent.cpp
2019-04-25 00:54:01 +03:00
Brian Grinstead 08992fb8e8 Bug 1546501 - Remove unnecessary type attributes (i.e. [type="application/javascript"]) on non-test script tags r=mossop
This is an autogenerated commit, generated with https://bug1546501.bmoattachments.org/attachment.cgi?id=9060222

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

--HG--
extra : moz-landing-system : lando
2019-04-24 19:43:57 +00:00
Christoph Kerschbaumer cb811b1773 Bug 1546378: Write cross process CSP inheritance tests. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D28599

--HG--
extra : moz-landing-system : lando
2019-04-24 15:21:37 +00:00
Mike de Boer 775fbffcb9 Bug 1518551 - Remove the 'MOZ_TOOLKIT_SEARCH' build config constant, because it's unused; we always enable the search service. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D27702

--HG--
extra : moz-landing-system : lando
2019-04-24 08:52:32 +00:00
Cosmin Sabou 921056d7a8 Backed out changeset 57df9b1a7033 (bug 1546378) as requested by the developer. CLOSED TREE 2019-04-24 14:58:32 +03:00
Christoph Kerschbaumer e7f65d65e7 Bug 1546378: Write cross process CSP inheritance tests. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D28599

--HG--
extra : moz-landing-system : lando
2019-04-24 11:45:26 +00:00
Masayuki Nakano 65aa369673 Bug 1543315 - part 10: Mark nsIPresShell::GoToAnchor() and nsIPresShell::ScrollToAnchor() as MOZ_CAN_RUN_SCRIPT r=smaug
Next, we should mark `PresShell::ScrollContentIntoView()` as
`MOZ_CAN_RUN_SCRIPT` because it's used widely.

This patch marks its `PresShell` users, `GoToAnchor()` and `ScrollToAnchor()`,
as `MOZ_CAN_RUN_SCRIPT`.  Additionally, this patch moves them from
`nsIPresShell` to `PresShell` because all callers refers `PresShell` directly.

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

--HG--
extra : moz-landing-system : lando
2019-04-23 01:27:47 +00:00
Ryan Hunt d6509bb237 Bug 1534395 - Rename TabChild to BrowserChild. r=nika
This commit renames TabChild to BrowserChild.

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

--HG--
rename : dom/base/InProcessTabChildMessageManager.cpp => dom/base/InProcessBrowserChildMessageManager.cpp
rename : dom/base/InProcessTabChildMessageManager.h => dom/base/InProcessBrowserChildMessageManager.h
rename : dom/ipc/TabChild.cpp => dom/ipc/BrowserChild.cpp
rename : dom/ipc/TabChild.h => dom/ipc/BrowserChild.h
extra : rebase_source : e7fcfb845a971a2760e73d517e24da18ce2551b5
extra : histedit_source : d1991334ccb107fe56e478865f22fd97b041a317
2019-04-09 17:39:01 -05:00
Ryan Hunt e9e7d608be Bug 1534395 - Rename nsITabChild to nsIBrowserChild. r=nika,mconley
Similarly to nsITabParent, TabChild is exposed to frontend code via nsITabChild. It's not clear what the future of this interface will be, but for now we can just rename it to nsIBrowserChild.

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

--HG--
rename : dom/interfaces/base/nsITabChild.idl => dom/interfaces/base/nsIBrowserChild.idl
extra : rebase_source : a6c42a661e35b19e46c60f6f6a6f3dab64c0a1bc
extra : histedit_source : 1eb475bd840bf37a3f86294685c9b3c250684e79
2019-04-09 18:15:02 -05:00
Ryan Hunt 0eeced87be Bug 1534395 - Rename TabParent to BrowserParent. r=nika
This commit renames TabParent to BrowserParent.

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

--HG--
rename : dom/ipc/TabParent.cpp => dom/ipc/BrowserParent.cpp
rename : dom/ipc/TabParent.h => dom/ipc/BrowserParent.h
extra : rebase_source : d2706b9f42177d8de16068b7b1d088a44b8720a4
extra : histedit_source : a617ddac45c58050ef799116a67d2d983f2a8f6d%2C1d1dabd8761a32d548a6fbf1027be960698f6a5e
2019-04-09 16:38:15 -05:00
Ryan Hunt 3675f2449b Bug 1534395 - Rename nsITabParent to nsIRemoteTab. r=nika,mconley
nsITabParent is exposed to frontend code and is generally used as a representation of a remote tab. We could just rename the interface to nsIBrowserParent and worry about it later, but I think it's better to rename the interface to nsIRemoteTab so that we can later work on splitting the interface away from the PBrowser protocol.

Note: Some frontend code refers to a TabParentId. This commit renames this to RemoteTabId. We need to figure out the purpose of TabId with fission.

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

--HG--
rename : dom/interfaces/base/nsITabParent.idl => dom/interfaces/base/nsIRemoteTab.idl
extra : rebase_source : 9d8a1790a7bb10195ad063644d1a93d63b2afb72
2019-04-09 15:59:37 -05:00
Coroiu Cristina 33d59a9c32 Backed out 4 changesets (bug 1493225) for browser-chrome failures with application terminated with exit code 2147483651 on a CLOSED TREE
Backed out changeset 62ee0aed9e59 (bug 1493225)
Backed out changeset 3537b8f8d38a (bug 1493225)
Backed out changeset 1de539e8f568 (bug 1493225)
Backed out changeset e9c116dba541 (bug 1493225)
2019-04-19 23:55:50 +03:00
Jim Porter 7f3f2e49dc Bug 1493225, part 3 - Cancel content JS when navigating through history to prevent hangs r=smaug
This patch adds an ID to ensure that we avoid canceling content JS if the next
page already started loading by the time we're ready to try canceling the JS.

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

--HG--
extra : moz-landing-system : lando
2019-04-18 18:39:45 +00:00
Brian Grinstead 381332c51e Bug 1544051 - Part 3 - Scripted change to remove references to AddTask.js r=ahal
This was generated with the script at https://bug1544051.bmoattachments.org/attachment.cgi?id=9058672

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

--HG--
extra : moz-landing-system : lando
2019-04-18 16:51:01 +00:00
Ehsan Akhgari 0ad9b25d34 Bug 1543786 - Ensure that we revoke a top frame's storage access when it is navigated away; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D27155

--HG--
extra : moz-landing-system : lando
2019-04-17 15:01:53 +00:00
Nika Layzell 40f96bcf80 Bug 1542791 - Part 1: Support enabling out-of-process iframes with per-frame granularity, r=mconley
This code builds on top of the E10S "remote tabs" configuration system to add a
system for specifying that remote subframes should be used. Fission can be
enabled for a window by including the "fission" flag in options when opening
the window.

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

--HG--
extra : moz-landing-system : lando
2019-04-17 00:53:22 +00:00
Nika Layzell cd6b56221a Bug 1544419 - Work around devtools mutating BrowsingContext parent, r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D27517

--HG--
extra : moz-landing-system : lando
2019-04-17 00:53:24 +00:00
Nika Layzell bb55fe0501 Bug 1542790 - Part 5: Relax toplevel BC requirements, r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D27516

--HG--
extra : moz-landing-system : lando
2019-04-17 00:53:20 +00:00
Nika Layzell 4ebea6d3b6 Bug 1542790 - Part 2: Use BC::GetParent and BC::GetTop for local windows, r=peterv
This is required to support getting the `parent` and `top` properties from
within remote subframes.

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

--HG--
extra : moz-landing-system : lando
2019-04-17 00:53:09 +00:00
Nika Layzell 7d3df12687 Bug 1542790 - Part 1: BC::GetParent on toplevel windows should be self, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D26558

--HG--
extra : moz-landing-system : lando
2019-04-17 00:53:05 +00:00
Nika Layzell 9778d014f1 Bug 1525427 - Part 3: Tests for new WindowGlobal properties, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D25183

--HG--
extra : moz-landing-system : lando
2019-04-17 00:52:51 +00:00
Nika Layzell 0bc40288dc Bug 1525427 - Part 1: Expose WindowGlobalParent & Element on BrowsingContext, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D25181

--HG--
extra : moz-landing-system : lando
2019-04-17 00:51:36 +00:00
Dale Harvey c3bdb93609 Bug 1543973 - Switch to AppConstants to avoid appinfo conflict. r=mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D27804

--HG--
extra : moz-landing-system : lando
2019-04-16 20:56:56 +00:00
Brindusan Cristian 1f36a419a9 Backed out changeset 19d9a16423fd (bug 1543786) for ESlint failure at browser_storageAccessRemovalNavigateTopframe.js. CLOSED TREE 2019-04-17 08:29:16 +03:00
Ehsan Akhgari ad1be13e59 Bug 1543786 - Ensure that we revoke a top frame's storage access when it is navigated away; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D27155

--HG--
extra : moz-landing-system : lando
2019-04-16 22:49:25 +00:00
Christoph Kerschbaumer aee4945e49 Bug 1544534: Add carveout for NullPrincipal when asserting if explicit CSP and CSP on Principal are equal. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D27700

--HG--
extra : moz-landing-system : lando
2019-04-16 14:19:44 +00:00
Brian Grinstead 911776d674 Bug 1544322 - Part 3 - Remove the [type] attribute for multiline <script> tags loading files in chrome://mochikit/content/ r=bzbarsky
This is an autogenerated commit to handle scripts loading mochitest harness files, in
the case where the script src is on the line below the script tag.

This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170
using the `--part 3` argument.

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

--HG--
extra : moz-landing-system : lando
2019-04-16 03:59:25 +00:00
Brian Grinstead ede8c44ef2 Bug 1544322 - Part 2.1 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in everything except for dom/ r=bzbarsky
This excludes dom/, otherwise the file size is too large for phabricator to handle.

This is an autogenerated commit to handle scripts loading mochitest harness files, in
the simple case where the script src is on the same line as the tag.

This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170
using the `--part 2` argument.

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

--HG--
extra : moz-landing-system : lando
2019-04-16 03:50:44 +00:00
Brian Grinstead 6515f97bcb Bug 1544322 - Part 1 - Remove the [type] attribute for one-liner <script> tags loading files in chrome://mochikit/content/ r=bzbarsky
This is an autogenerated commit to handle scripts loading mochitest harness files, in
the simple case where the script src is on the same line as the tag.

This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170
using the `--part 1` argument.

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

--HG--
extra : moz-landing-system : lando
2019-04-15 20:56:58 +00:00
Masayuki Nakano 60e014c55e Bug 1544215 - Make nsIContentVewer::GetPresShell() return mozilla::PresShell instead of nsIPresShell r=bzbarsky
Additionally, this patch makes `nsDocumentViewer` which is the only
implementation of `nsIContentViewer` use `mozilla::PresShell` directly
rather than via `nsIPresShell`.

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

--HG--
extra : moz-landing-system : lando
2019-04-16 02:47:26 +00:00
Andreas Farre 29d439a983 Bug 1523636 - Create BrowsingContext in nsFrameLoader. r=nika,qdot
Differential Revision: https://phabricator.services.mozilla.com/D25039

--HG--
extra : moz-landing-system : lando
2019-04-15 15:14:54 +00:00
Nika Layzell 772d2d3a49 Bug 1544421 - Actually check for a valid bc in read, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D27511

--HG--
extra : moz-landing-system : lando
2019-04-15 14:52:11 +00:00
Nika Layzell 43ded41fb0 Bug 1542785 - Expose a `top` method on BrowsingContext to Chrome JS, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D26554

--HG--
extra : moz-landing-system : lando
2019-04-09 06:19:24 +00:00
Masayuki Nakano 414509fe00 Bug 1543315 - part 9: Mark nsIPresShell::FlushPendingNotifications() as MOZ_CAN_RUN_SCRIPT r=smaug
So, this patch makes all caller of it safe including its arguments unless
they come from other methods.

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

--HG--
extra : moz-landing-system : lando
2019-04-13 12:43:57 +00:00
Masayuki Nakano e8514bbdc6 Bug 1543315 - part 4: Mark ResizeReflow() as MOZ_CAN_RUN_SCRIPT r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D27220

--HG--
extra : moz-landing-system : lando
2019-04-13 12:39:47 +00:00
Masayuki Nakano 0986fb819b Bug 1542506 - Make nsDocShell use mozilla::PresShell* directly rather than nsIPresShell* r=bzbarsky
This patch makes `nsDocShell::GetPresShell()` and
`nsDocShell::GetEldestPresShell()` return `mozilla::PresShell*` and
some non-public methods use `mozilla::PresShell*` directly.

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

--HG--
extra : moz-landing-system : lando
2019-04-13 01:03:13 +00:00
Sylvestre Ledru 7f60810d86 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-12 13:14:25 +00:00
Boris Zbarsky d0bcf72821 Bug 1543564 part 2. Get rid of pointless nsPIDOMWindowInner::AsInner methods. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D27027

--HG--
extra : moz-landing-system : lando
2019-04-11 14:12:43 +00:00
Boris Zbarsky 6d78fdff25 Bug 1543564 part 1. Get rid of pointless nsPIDOMWindowOuter::AsOuter() methods. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D27026

--HG--
extra : moz-landing-system : lando
2019-04-11 12:12:04 +00:00
Dale Harvey 9bdc33dd43 Bug 1496075 - Part 3: Use webextensions in SearchServices. r=mikedeboer,mixedpuppy
Differential Revision: https://phabricator.services.mozilla.com/D25246

--HG--
rename : browser/components/search/searchplugins/list.json => browser/components/search/extensions/list.json
rename : browser/components/search/searchplugins/images/wikipedia.ico => toolkit/components/search/tests/xpcshell/data/test-extensions/multilocale/favicon.ico
rename : browser/components/search/searchplugins/images/google.ico => toolkit/components/search/tests/xpcshell/data/test-extensions/special-engine/favicon.ico
extra : moz-landing-system : lando
2019-04-11 20:49:31 +00:00
Khyati Agarwal ca2437eedf bug 1524359 - 49,600 instances of "NS_ENSURE_SUCCESS(rv, false) failed with result 0x80004005" emitted from docshell/shistory/nsSHistory.cpp during linux64 debug testing r=peterv
Replaced "NS_ENSURE_SUCCESS" with 'if' condition

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

--HG--
extra : moz-landing-system : lando
2019-04-11 12:11:05 +00:00
Peter Van der Beken 7552bea442 Bug 1534638 - Part 3: rename SetRootDocShell to ClearDocShell. r=qdot
Depends on D25763

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

--HG--
extra : moz-landing-system : lando
2019-04-04 16:20:19 +00:00
Peter Van der Beken e646d6366e Bug 1534638 - Part 2: remove nsISHEntry::getAnyContentViewer. r=qdot
Bug 304860 and bug 1364364 have disabled the bfcache for subframes, so we only
store the contentviewer in the root entry.

Depends on D25761

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

--HG--
extra : moz-landing-system : lando
2019-04-04 16:19:37 +00:00
Peter Van der Beken 023a72eb9b Bug 1534638 - Part 1: remove unused arguments from session history listeners. r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D25761

--HG--
extra : moz-landing-system : lando
2019-04-04 16:18:48 +00:00
Olli Pettay a368094f3c Bug 1542673, increase history.state size limit, r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D26881

--HG--
extra : moz-landing-system : lando
2019-04-10 20:21:55 +00:00
Daniel Varga f2b514eaaa Merge autoland to mozilla-central. a=merge 2019-04-11 00:51:52 +03:00
Csoregi Natalia b794b31607 Backed out changeset d76b42f0d6ca (bug 1523636) for causing bug 1543015. a=backout 2019-04-10 18:46:01 +03:00
Valentin Gosu 06334e695a Bug 1530303 - Put CrossOriginOpenerPolicy in BrowsingContext r=nika
Differential Revision: https://phabricator.services.mozilla.com/D23935

--HG--
extra : moz-landing-system : lando
2019-04-09 20:10:13 +00:00
Andrea Marchesini 0ca645f0d6 Bug 1534351 - HTMLInputElement should always allow popups for system principal, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D26671

--HG--
extra : moz-landing-system : lando
2019-04-09 19:27:15 +00:00
Christoph Kerschbaumer e6f0e30f1e Bug 1542858: Duplicate browser_data_load_inherit_csp.js and use upgrade-insecure-requests. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D26735

--HG--
extra : moz-landing-system : lando
2019-04-10 12:35:03 +00:00
Brindusan Cristian aac73a89d3 Backed out changeset 2647a23c02bf (bug 1534351) for mochitest failures at test_multipleFilePicker.html. CLOSED TREE
--HG--
extra : histedit_source : aa91bdf0dd2666052949d80d9910e03a0d787598
2019-04-09 20:45:05 +03:00
Andrea Marchesini f9fecdc909 Bug 1534351 - HTMLInputElement should always allow popups for system principal, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D26671

--HG--
extra : moz-landing-system : lando
2019-04-09 14:25:58 +00:00
Nika Layzell 2457961a95 Bug 1542778 - Part 2: Fix clang-format fallout for DocShell and LoadContext, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D26546

--HG--
extra : moz-landing-system : lando
2019-04-08 20:30:37 +00:00
Nika Layzell c5ed431446 Bug 1542782 - Expose currentRemoteType on CanonicalBrowsingContext, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D26550

--HG--
extra : moz-landing-system : lando
2019-04-08 16:29:08 +00:00
Andreas Farre 888908c3cb Bug 1523636 - Create BrowsingContext in nsFrameLoader. r=nika,qdot
Differential Revision: https://phabricator.services.mozilla.com/D25039

--HG--
extra : moz-landing-system : lando
2019-04-08 08:21:40 +00:00
Andreas Farre bf407c48d9 Bug 1537910 - Attach BrowsingContexts in content when created by parent. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D25038

--HG--
extra : moz-landing-system : lando
2019-04-04 16:17:47 +00:00
Gijs Kruitbosch d395728ea0 Bug 1537622 - fix various minor eslint issues in XUL files, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D24297

--HG--
extra : moz-landing-system : lando
2019-04-05 12:18:24 +00:00
Masayuki Nakano 98518a7159 Bug 1540969 - Get rid of nsPICommandUpdater r=bzbarsky
`nsPICommandUpdater` is a scriptable interface, but nobody refers it from JS,
and it's implemented only by `nsCommandManager`.  Therefore, we can get rid
of this interface.

Additionally, `nsCommandManager::Init()` is called only by `nsDocShell`, which
is the only instantiater of the class, and returns error only when given window
is nullptr.  Therefore, we can make the constructor take the window instead.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 12:53:54 +00:00
Masayuki Nakano 8329e8382e Bug 1540962 - Make nsICommandManager builtinclass and make users use nsCommandManager directly r=bzbarsky
`nsICommandManager` isn't implemented by JS even in comm-central nor
BlueGriffon.  Therefore, we can make it a builtinclass.

Additionally, this patch makes all users in C++ use `nsCommandManager` which is
the only implementation of `nsICommandManager`.  This avoids QI from
`nsICommandManager` to `nsPICommandUpdater`.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 12:51:38 +00:00
Masayuki Nakano 9165a150a1 Bug 1540930 - Make nsPresContext use mozilla::PresShell directly rather than via nsIPresShell r=emilio
`nsPresContext` should use `mozilla::PresShell` directly instead of
`nsIPresShell`.  This patch makes it.

Unfortunately, `nsPresContext` and `nsIFrame` have `PresShell()`.  Therefore,
we cannot use `PresShell*` in its methods so that this patch uses `mozilla::`
namespace prefix.

It might be better to rename them as `PresShellPtr()` in another bug.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 12:40:26 +00:00
Makoto Kato 0b3ee4783f Bug 1540107 - Use nsEditingSession directly in nsDocShellEditorData. r=masayuki
`nsIEditingSession.SetupEditorOnWindow` is used in `nsDocShellEditorData`.
To get rid of it, I would like to use `nsEditSession` directly instead of
`nsIEditingSession`.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 01:56:31 +00:00
Masayuki Nakano 3e64f2c30d Bug 1539356 - Mark EditorBase::InsertNodeTransaction() as MOZ_CAN_RUN_SCRIPT r=m_kato
This patch marks `EditorBase::InsertNodeTransaction()` **and** its callers as `MOZ_CAN_RUN_SCRIPT`.

Unfortunately, this patch tells us that some `GetSomething()` methods may destroy the editor since `HTMLEditRules::GetNodesForOperation()`, `HTMLEditRules::GetNodesFromPoint()` and `HTMLEditRules::GetNodesFromSelection()` may change the DOM tree.  Additionally, initialization methods may destroy the editor since it may insert a bogus `<br>` node.

Note that this patch also removes some unused methods. I.e., they are not result of some cleaning up the code. This patch just avoids marking unused methods as `MOZ_CAN_RUN_SCRIPT`.

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

--HG--
extra : moz-landing-system : lando
2019-03-30 11:55:29 +00:00
Oana Pop Rus 43fadb6745 Backed out changeset 447c87c2d139 (bug 1539356) on request of Jorg K. a=backout 2019-03-30 00:42:32 +02:00
Masayuki Nakano de2d589e58 Bug 1540015 - part 3: Rename Document::GetShell() to Document::GetPresShell() and make it return PresShell* rather than nsIPresShell* r=smaug,emilio
This makes `Document::GetShell()` return `PresShell*` instead of `nsIPresShell`.

Additonally, "shell" is unclear ("docshell" vs. "presshell").  Therefore, this
also renames `Document::GetShell()` to `Document::GetPresShell()`.

Similarly, some other method names of `Document` are also renamed from
`*Shell*` to `*PresShell*`.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 15:12:47 +00:00
Dorel Luca 5a0fa68b78 Backed out 3 changesets (bug 1540015) for build bustage. CLOSED TREE
Backed out changeset 7b71c9da0214 (bug 1540015)
Backed out changeset 5723ddbc5c44 (bug 1540015)
Backed out changeset 9561d2c36fa5 (bug 1540015)
2019-03-29 16:14:26 +02:00
Masayuki Nakano 9273f25ce2 Bug 1540015 - part 3: Rename Document::GetShell() to Document::GetPresShell() and make it return PresShell* rather than nsIPresShell* r=smaug,emilio
This makes `Document::GetShell()` return `PresShell*` instead of `nsIPresShell`.

Additonally, "shell" is unclear ("docshell" vs. "presshell").  Therefore, this
also renames `Document::GetShell()` to `Document::GetPresShell()`.

Similarly, some other method names of `Document` are also renamed from
`*Shell*` to `*PresShell*`.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 13:09:26 +00:00
Masayuki Nakano 81b30d7143 Bug 1539356 - Mark EditorBase::InsertNodeTransaction() as MOZ_CAN_RUN_SCRIPT r=m_kato
This patch marks `EditorBase::InsertNodeTransaction()` **and** its callers as `MOZ_CAN_RUN_SCRIPT`.

Unfortunately, this patch tells us that some `GetSomething()` methods may destroy the editor since `HTMLEditRules::GetNodesForOperation()`, `HTMLEditRules::GetNodesFromPoint()` and `HTMLEditRules::GetNodesFromSelection()` may change the DOM tree.  Additionally, initialization methods may destroy the editor since it may insert a bogus `<br>` node.

Note that this patch also removes some unused methods. I.e., they are not result of some cleaning up the code. This patch just avoids marking unused methods as `MOZ_CAN_RUN_SCRIPT`.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 10:55:31 +00:00
Gurzau Raul ed07da8648 Backed out 4 changesets (bug 1525427) for failing at /browser_browsingContext-embedder.js on a CLOSED TREE.
Backed out changeset 0227a59eba8e (bug 1525427)
Backed out changeset 18fba79d8671 (bug 1525427)
Backed out changeset f7c82615ea05 (bug 1525427)
Backed out changeset 4a210c9266ed (bug 1525427)
2019-03-28 20:54:28 +02:00
Nika Layzell fd91daf96d Bug 1525427 - Part 3: Tests for new WindowGlobal properties, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D25183

--HG--
extra : moz-landing-system : lando
2019-03-28 15:27:27 +00:00
Nika Layzell 10fb5cf828 Bug 1525427 - Part 1: Expose WindowGlobalParent & Element on BrowsingContext, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D25181

--HG--
extra : moz-landing-system : lando
2019-03-28 15:03:54 +00:00
Mark Banner dba6983e75 Bug 1415265 - Remove now unnecessary .eslintrc.js files or entries. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D23850

--HG--
extra : moz-landing-system : lando
2019-03-28 09:38:14 +00:00
Haik Aftandilian 77b79862cf Bug 1452278 - Part 1 - Make macOS nsOSHelperAppService::GetFromTypeAndExtension() not call OS MIME API's in content r=bzbarsky,froydnj
Add a new nsExternalHelperAppService derived class named nsOSHelperAppServiceChild to be used for the MIME service, external helper app service, and external protocol service interfaces in child processes. nsOSHelperAppServiceChild overrides some methods used to get MIME and external protocol handler information from the OS and implements these methods by remoting the calls to the parent process.

This is necessary because, on Mac, querying the OS for helper application info from sandboxed content processes is unreliable and has buggy side effects.

For now, only use the new class on Mac.

Android and unix file changes r+ by gcp.
Windows files changes r+ by bobowen.
Sync messages review r+ by nfroyd.

MozReview-Commit-ID: 63BiS6VCxfn

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

--HG--
extra : moz-landing-system : lando
2019-03-27 22:49:33 +00:00
arthur.iakab 7654bfed1e Backed out 2 changesets (bug 1452278) for mingwclang build bustages on win/nsOSHelperAppService.h CLOSED TREE
Backed out changeset f11d78387bd9 (bug 1452278)
Backed out changeset 656f17a2553b (bug 1452278)
2019-03-27 22:03:07 +02:00
Haik Aftandilian b8118af581 Bug 1452278 - Part 1 - Make macOS nsOSHelperAppService::GetFromTypeAndExtension() not call OS MIME API's in content r=bzbarsky,froydnj
Add a new nsExternalHelperAppService derived class named nsOSHelperAppServiceChild to be used for the MIME service, external helper app service, and external protocol service interfaces in child processes. nsOSHelperAppServiceChild overrides some methods used to get MIME and external protocol handler information from the OS and implements these methods by remoting the calls to the parent process.

This is necessary because, on Mac, querying the OS for helper application info from sandboxed content processes is unreliable and has buggy side effects.

For now, only use the new class on Mac.

Android and unix file changes r+ by gcp.
Windows files changes r+ by bobowen.
Sync messages review r+ by nfroyd.

MozReview-Commit-ID: 63BiS6VCxfn

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

--HG--
extra : moz-landing-system : lando
2019-03-27 19:23:32 +00:00
Botond Ballo 2b2dd7dac6 Bug 1538511 - Get rid of nsIPresShell::ScrollMode (use mozilla::ScrollMode instead). r=kats
Differential Revision: https://phabricator.services.mozilla.com/D24797

--HG--
extra : moz-landing-system : lando
2019-03-26 00:51:57 +00:00
Botond Ballo 573a6eaafa Bug 1538511 - Move nsIScrollableFrame::ScrollMode into a separate file. r=kats
This allows this enumeration to be used from nsIPresShell.h without introducing
a circular dependency.

Its new home in layout/base/ScrollTypes.h, included as mozilla/ScrollTypes.h.
Others similar enums can be added to that file if desired.

This patch also makes ScrollMode an enum class (as it's no longer nested
inside a class) and switches its enumerators to the |eName| naming convention.

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

--HG--
extra : moz-landing-system : lando
2019-03-25 23:17:20 +00:00
Nika Layzell 4c8b577b88 Bug 1539069 - Part 2: Use field epochs to avoid racy field interactions, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D24976

--HG--
extra : moz-landing-system : lando
2019-03-27 09:19:29 +00:00
Nika Layzell 6a18c93ae4 Bug 1539069 - Part 1: Allow BC fields to be racy, and not have ProcessID validated, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D24975

--HG--
extra : moz-landing-system : lando
2019-03-27 13:46:01 +00:00
Randell Jesup 72921c7a42 Bug 1531926: move bfcache logging to MOZ_LOG (PageCache:N) r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D21798

--HG--
extra : rebase_source : d9158d083137b27888be86a51b4f9774decea17a
2019-03-01 16:53:54 -05:00
Nika Layzell a39708b997 Bug 1536405 - Cycle-collect through ChromeEventHandler, r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D24422

--HG--
extra : moz-landing-system : lando
2019-03-22 23:35:15 +00:00
Ian Moody 3e2a03dd32 Bug 1536659 - docshell/ manual ESLint no-throw-literal fixes. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D24368

--HG--
extra : moz-landing-system : lando
2019-03-21 22:40:36 +00:00
Ian Moody b6cbc669dc Bug 1536659 - docshell/ automated ESLint no-throw-literal fixes. r=nika
Result of running:
$ mach eslint -funix docshell/ | sed -Ee 's/:.+//' - | xargs sed -E \
    -e 's/throw ((["`])[^"]+\2);/throw new Error(\1);/g' \
    -e 's/throw ((["`])[^"]+\2 \+ [^ ";]+);/throw new Error(\1);/g' \
    -e 's/throw \(/throw new Error(/g' -i

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

--HG--
extra : moz-landing-system : lando
2019-03-21 16:53:45 +00:00
dlee d7d67be8c9 Bug 1522412 - P3. Adopt nsIChannel.LOAD_BYPASS_URL_CLASSIFIER in the algorithm determining if we should classify a channel's URI. r=Ehsan,mayhemer
This patch uses the flag to exempt channels from classification, but it
doesn't include the use cases of this flag.

See Bug 1442496 for the list of the call sites should use this flag.

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

--HG--
extra : moz-landing-system : lando
2019-03-25 12:48:25 +00:00
dlee 9878ae650d Bug 1522412 - P2. Remove nsIChannel.LOAD_CLASSIFY_URI flag. r=Ehsan
nsIChannel.LOAD_CLASSIFY_URI is no longer required so we can remove it from
the codebase.
In the mean time, we add a new LOAD_BYPASS_URL_CLASSIFIER load flag for
channel creator to be able to force channel to bypass URL classifier check.
The use of the new LOAD_BYPASS_URL_CLASSIFIER flag will be addressed in
the other patches.

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

--HG--
extra : moz-landing-system : lando
2019-03-25 12:47:57 +00:00
sakshaat d781937a67 Bug 1517483 - Get rid of nsIScriptSecurityManager::IsSystemPrincipal r=bzbarsky
Replaced instances of callers in both C++ and JS files to query the state from the principal directly.

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

--HG--
extra : moz-landing-system : lando
2019-03-24 20:36:25 +00:00
Botond Ballo c0526d30f3 Bug 1531535 - Use the visual smooth scrolling API in nsDocShell::SetCurScrollPosEx() if appropriate. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D24554

--HG--
extra : moz-landing-system : lando
2019-03-23 20:23:44 +00:00
Botond Ballo e6c2c99584 Bug 1531535 - Add visual smooth scroll support to nsIPresShell. r=kats
This patch renames nsIPresShell::SetPendingVisualScrollUpdate() to
ScrollToVisual(), and adds an instant vs. smooth option.

SetPendingVisualScrollUpdate() still exists, as a helper for the instant case.

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

--HG--
extra : moz-landing-system : lando
2019-03-23 20:23:35 +00:00
Mellina Yonashiro db352af17e Bug 1508817 - Enable ESLint for docshell (manual changes). r=Standard8,bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D23038

--HG--
extra : moz-landing-system : lando
2019-03-22 07:53:32 +00:00
Mellina Yonashiro 679a8809c5 Bug 1508817 - Enable ESLint for docshell (automatic changes). r=Standard8,bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D23037

--HG--
extra : moz-landing-system : lando
2019-03-22 18:13:25 +00:00
Edwin Gao dc7a7ccbb7 Bug 1533819, 1533814, 1532775 - disable additional tests in mochitest-chrome suite that fails for windows10-aarch64 r=jmaher
- test_bug1163447_selectItems_through_shortcut.xul
- test_bug301397.xul
- test_bug364461.xul

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

--HG--
extra : moz-landing-system : lando
2019-03-21 15:34:04 +00:00
Gurzau Raul 2666e16a53 Backed out 7 changesets (bug 1522412) for xpcshell failures at test_shouldclassify.js on a CLOSED TREE.
Backed out changeset 7c998456e1fd (bug 1522412)
Backed out changeset ebb581ddf1d1 (bug 1522412)
Backed out changeset 850e1c68d978 (bug 1522412)
Backed out changeset fe288a48cecb (bug 1522412)
Backed out changeset 5399bca472b1 (bug 1522412)
Backed out changeset 91e5b339fe11 (bug 1522412)
Backed out changeset b80098d0a5c4 (bug 1522412)
2019-03-21 11:02:09 +02:00
Dimi Lee fe284ca3d4 Bug 1522412 - P3. Adopt nsIChannel.LOAD_BYPASS_URL_CLASSIFIER in the algorithm determining if we should classify a channel's URI. r=Ehsan,mayhemer
This patch uses the flag to exempt channels from classification, but it
doesn't include the use cases of this flag.

See Bug 1442496 for the list of the call sites should use this flag.

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

--HG--
extra : moz-landing-system : lando
2019-03-21 07:32:46 +00:00
Dimi Lee 8f1caf4049 Bug 1522412 - P2. Remove nsIChannel.LOAD_CLASSIFY_URI flag. r=Ehsan
nsIChannel.LOAD_CLASSIFY_URI is no longer required so we can remove it from
the codebase.
In the mean time, we add a new LOAD_BYPASS_URL_CLASSIFIER load flag for
channel creator to be able to force channel to bypass URL classifier check.
The use of the new LOAD_BYPASS_URL_CLASSIFIER flag will be addressed in
the other patches.

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

--HG--
extra : moz-landing-system : lando
2019-03-21 07:30:51 +00:00
Alastor Wu bbb2e64dde Bug 1524065 - part1 : implement the way to resume delayed autoplay media via browsing context. r=farre
After enable Fission, we're not able to resume media in the different process, because the current way we use can only notify one process and would cause the media on other process can't be resumed.

Therefore, we should use the browsing context to notify the web content which might be on different processes.

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

--HG--
extra : moz-landing-system : lando
2019-03-20 03:15:36 +00:00
Andrew McCreight cce04c17b8 Bug 1535453 - BrowsingContext does not need to inherit from LinkedListElement. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D23586

--HG--
extra : moz-landing-system : lando
2019-03-19 21:33:40 +00:00
Sebastian Hengst cbbed3707e Bug 1535353 - update Core :: DOM: * bugzilla product and component meta data in moz.build files after reorganization in bug 1533440: replace 'Core :: Keyboard: Navigation'. r=me DONTBUILD
--HG--
extra : amend_source : d2099ea98dbd1a814c1257e276cec58db9be907a
2019-03-18 00:39:30 +01:00
Sebastian Hengst cee711baf9 Bug 1535353 - update Core :: DOM: * bugzilla product and component meta data in moz.build files after reorganization in bug 1533440 r=hsinyi
Differential Revision: https://phabricator.services.mozilla.com/D23546

--HG--
extra : moz-landing-system : lando
2019-03-17 23:13:22 +00:00
Christoph Kerschbaumer 23b1d42b45 Bug 1534971: Add helper function within CSP to check if two CSPs are equal. r=jkt
Differential Revision: https://phabricator.services.mozilla.com/D23567

--HG--
extra : moz-landing-system : lando
2019-03-15 12:20:52 +00:00
Thomas Nguyen 33d78105b7 Bug 1528695 - Part 1 : Use referrerInfo in openWindow, cpp file r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D21910

--HG--
extra : moz-landing-system : lando
2019-03-15 05:11:43 +00:00
Nika Layzell 75c02c72ea Bug 1532661 - Part 6: Clean up BrowsingContext references more reliably, r=farre
Depends on D23047

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:51:13 +00:00
Nika Layzell f6a5c73c2a Bug 1532661 - Part 5: Make the BrowsingContext opener edge a weak reference, r=farre
Depends on D22193

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:51:11 +00:00
Nika Layzell 1b8834985a Bug 1532661 - Part 4: Support initializing complete BrowsingContextGroups in a single op with an IPCInitializer struct, r=farre
Depends on D22192

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:51:09 +00:00
Nika Layzell e936e7d33b Bug 1532661 - Part 3: Add WillSetX and DidSetX callbacks for BrowsingContext synced fields, r=farre
Depends on D22191

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:51:07 +00:00
Nika Layzell 1ebd4ff025 Bug 1532661 - Part 2: Use a field list macro header for synced fields, r=farre
Depends on D22190

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:51:05 +00:00
Nika Layzell 88e15f606d Bug 1532661 - Part 1: Perform basic validation on CanonicalBrowsingContext, r=farre
Depends on D21134

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:51:03 +00:00
Nika Layzell b388b0df00 Bug 1530550 - Synchronize mOpener and mIsActivatedByUserGesture with SYNCED_BC_FIELD, r=farre
Depends on D22764

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:50:55 +00:00
Nika Layzell a26325ea58 Bug 1529684 - Part 6: Store a mIsInProcess flag to preserve WindowProxy behaviour, r=farre
Currently when we have an in-process WindowProxy object, we will attempt
to either use the cached mWindowProxy value, or fetch the
nsGlobalWindowOuter object from through the nsDocShell. Unfortunately,
when the BrowsingContext is detached, we will fail to get the
nsGlobalWindowOuter object. This happens to be OK for our test cases, as
the cached mWindowProxy value doesn't have the chance to go away, but
isn't acceptable long-term.

These patches exascerbated that issue by causing the nsDocShell pointer
itself to be cleared when it is destroyed, which caused the Remote
WindowProxy logic to be triggered. To deal with that case, this patch
adds a new mIsInProcess flag to continue to act like the old code-path.

In the future, we will need to also handle ensuring that the
nsGlobalWindowOuter lives for long enough, however that is not being
done in this patch in order to land it sooner rather than later.

Depends on D22763

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:50:54 +00:00
Nika Layzell 24638a0faf Bug 1529684 - Part 5: Support using remote window proxy objects in the parent process, r=farre
Depends on D22762

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:50:52 +00:00
Nika Layzell 48d0049694 Bug 1529684 - Part 4: Add a GetContentParent method to CanonicalBrowsingContext, r=farre
Depends on D21097

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:50:50 +00:00
Nika Layzell eaf6c2306e Bug 1529684 - Part 2: Create BrowsingContext for remote browsers in parent, r=farre
Depends on D21095

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:50:45 +00:00
Nika Layzell 6a04609cc9 Bug 1529684 - Part 1: Allow Attaching BrowsingContext from parent to child, r=farre
This is important to allow creating BrowsingContexts outside of the process
where they are going to be used. This is largely a re-arrangement of existing
code.

There is currently no way to do this type of attaching for browsing contexts in
existing BrowsingContextGroups, which creates some limitations, but happens to
be sufficient for us in the current situation.

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

--HG--
extra : moz-landing-system : lando
2019-03-14 18:50:38 +00:00
Sylvestre Ledru 4aa92e3091 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D22514
2019-03-13 10:19:06 +01:00
Botond Ballo 4911e7b692 Bug 1517895 - Scroll the visual viewport in nsDocShell::SetCurScrollPosEx(). r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D20031

--HG--
extra : moz-landing-system : lando
2019-03-13 23:07:17 +00:00
Boris Zbarsky 6d1f77b386 Bug 1534370 part 2. Annotate doCommand as MOZ_CAN_RUN_SCRIPT. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D23041

--HG--
extra : moz-landing-system : lando
2019-03-12 01:57:42 +00:00
Boris Zbarsky ccfb4f16b1 Bug 1534370 part 1. Annotate doCommandWithParams as MOZ_CAN_RUN_SCRIPT. r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D23036

--HG--
extra : moz-landing-system : lando
2019-03-13 00:43:48 +00:00
James Willcox e163a5bcea Bug 1524992 - Don't trigger crash in about:crash* when opened from external apps r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D20891

--HG--
extra : moz-landing-system : lando
2019-03-12 20:16:07 +00:00
Valentin Gosu 21bfdeb265 Bug 1525036 - Add CrossOriginPolicy to the browsing context r=nika
Differential Revision: https://phabricator.services.mozilla.com/D21418

--HG--
extra : moz-landing-system : lando
2019-03-12 08:04:01 +00:00
Boris Zbarsky 68863e1004 Bug 1533617 part 4. Mark virtual methods with CAN_RUN_SCRIPT overrides as CAN_RUN_SCRIPT. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D22838

--HG--
extra : moz-landing-system : lando
2019-03-11 14:20:29 +00:00
Nika Layzell b6acd0f16c Bug 1413735 - Rewrite test_bug580069.html to avoid a potential race condition, r=qdot
Differential Revision: https://phabricator.services.mozilla.com/D22581

--HG--
extra : moz-landing-system : lando
2019-03-09 02:27:35 +00:00
Csoregi Natalia d086070187 Backed out 5 changesets (bug 1525036) for browser_httpCrossOriginHeader.js failures. CLOSED TREE
Backed out changeset 6717beb3ac53 (bug 1525036)
Backed out changeset 0c05686bd62a (bug 1525036)
Backed out changeset 502b0bb796cd (bug 1525036)
Backed out changeset fa0363d33dbd (bug 1525036)
Backed out changeset 6391f42aaa6d (bug 1525036)
2019-03-09 02:39:11 +02:00
Valentin Gosu d12177cb53 Bug 1525036 - Add CrossOriginPolicy to the browsing context r=nika
Differential Revision: https://phabricator.services.mozilla.com/D21418

--HG--
extra : moz-landing-system : lando
2019-03-08 15:34:54 +00:00
Alex Gaynor e5279ff3f7 Bug 1532727 - replace OptionalURIParams with URIParams? in IPDL; r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D22138

--HG--
extra : moz-landing-system : lando
2019-03-06 14:05:50 +00:00
Felipe Gomes 96dfb4e813 Bug 827976 - Teach leaks.py to ignore the hidden window. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D21089

--HG--
extra : moz-landing-system : lando
2019-03-04 20:21:31 +00:00
Brindusan Cristian 8a1c4fbd47 Backed out 4 changesets (bug 1530550, bug 1529684) for bc crashes at [@ mozilla::dom::BrowsingContext::Detach(bool)]. CLOSED TREE
Backed out changeset 289c2b4126c9 (bug 1530550)
Backed out changeset 9f3e65f6b1dd (bug 1529684)
Backed out changeset 257d45117af3 (bug 1529684)
Backed out changeset 7f2bda80e479 (bug 1529684)
2019-03-05 23:11:48 +02:00
Nika Layzell 8b4e459999 Bug 1530550 - Synchronize mOpener and mIsActivatedByUserGesture with SYNCED_BC_FIELD, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D21134

--HG--
extra : moz-landing-system : lando
2019-03-05 17:33:52 +00:00
Nika Layzell 332f3940ad Bug 1529684 - Part 2: Create BrowsingContext for remote browsers in parent, r=farre
Depends on D21095

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

--HG--
extra : moz-landing-system : lando
2019-03-05 17:33:22 +00:00
Nika Layzell 95cc8c68c0 Bug 1529684 - Part 1: Allow Attaching BrowsingContext from parent to child, r=farre
This is important to allow creating BrowsingContexts outside of the process
where they are going to be used. This is largely a re-arrangement of existing
code.

There is currently no way to do this type of attaching for browsing contexts in
existing BrowsingContextGroups, which creates some limitations, but happens to
be sufficient for us in the current situation.

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

--HG--
extra : moz-landing-system : lando
2019-03-05 17:33:19 +00:00
Andreea Pavel be960187e1 Backed out 3 changesets (bug 1524992) for valgrind failures on a CLOSED TREE
Backed out changeset face9d1e8868 (bug 1524992)
Backed out changeset ae1e20a595c4 (bug 1524992)
Backed out changeset b0b9322c7a59 (bug 1524992)
2019-03-05 01:36:59 +02:00
James Willcox f13f6cf657 Bug 1524992 - Don't trigger crash in about:crash* when opened from external apps r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D20891

--HG--
extra : moz-landing-system : lando
2019-03-04 22:06:55 +00:00
Cosmin Sabou a706bb3916 Backed out 16 changesets (bug 827976) for causing bug 1532054. a=backout
Backed out changeset 54c0b12443ed (bug 827976)
Backed out changeset 92b45080d080 (bug 827976)
Backed out changeset 443087a359f9 (bug 827976)
Backed out changeset f976c2d4cebb (bug 827976)
Backed out changeset 66cffb171024 (bug 827976)
Backed out changeset 845e1d0b2402 (bug 827976)
Backed out changeset fd94066a1d76 (bug 827976)
Backed out changeset e253b264e7bd (bug 827976)
Backed out changeset 07ef335770a8 (bug 827976)
Backed out changeset 9d3805d77b99 (bug 827976)
Backed out changeset eed600ceb606 (bug 827976)
Backed out changeset 3b64368cff52 (bug 827976)
Backed out changeset 69d0378e0c09 (bug 827976)
Backed out changeset 9203871a5c6f (bug 827976)
Backed out changeset 96a507c818e2 (bug 827976)
Backed out changeset e254496ff95b (bug 827976)
2019-03-02 20:40:01 +02:00
Felipe Gomes 85cb541ba6 Bug 827976 - Teach leaks.py to ignore the hidden window. r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D21089

--HG--
extra : moz-landing-system : lando
2019-03-01 21:07:41 +00:00