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

5850 Коммитов

Автор SHA1 Сообщение Дата
Bogdan Tara 386d23bfe7 Backed out 4 changesets (bug 1320404) for test_permmanager_load_invalid_entries.js failures
Backed out changeset 7c2f4e64d38e (bug 1320404)
Backed out changeset a7e7c0251179 (bug 1320404)
Backed out changeset dd741b25a244 (bug 1320404)
Backed out changeset de9073c57d20 (bug 1320404)
2019-05-03 06:12:25 +03:00
Andrea Marchesini 138cee6dea 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-02 17:24:51 +00:00
Bogdan Tara a3eab309d8 Backed out 2 changesets (bug 1510569) for crashtests/1419902.html crashes CLOSED TREE
Backed out changeset fc0ae629221a (bug 1510569)
Backed out changeset 97f6ac273b5d (bug 1510569)
2019-05-03 03:48:15 +03:00
Barret Rennie c28096b98d 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 23:35:02 +00:00
Gurzau Raul 0068b9927d Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-05-03 01:17:27 +03:00
Gurzau Raul 39cabb27e2 Merge inbound to mozilla-central. a=merge 2019-05-03 01:02:21 +03:00
Thomas Nguyen b0bfbd85aa Bug 1532318 - Part 2 : update changes of nsIHttpChannel in codebase r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D22786

--HG--
extra : moz-landing-system : lando
2019-05-02 12:33:55 +00:00
Bogdan Tara 86cbef62d0 Backed out 2 changesets (bug 1510569) for crashtests/1419902.html failures CLOSED TREE
Backed out changeset 13c5249d66a7 (bug 1510569)
Backed out changeset a6ad4039d785 (bug 1510569)
2019-05-02 21:30:20 +03:00
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