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

631 Коммитов

Автор SHA1 Сообщение Дата
Anny Gakhokidze 5986a2de44 Bug 1546759 - Change nsSHistory::WalkHistoryEntries to walk browsing context tree instead of doc shell tree, r=peterv,nika
WalkHistoryEntries function gets called by nsSHistory::CloneAndReplaceChild
and nsSHistory::SetChildHistoryEntry recursively, so those have to be moved
into the parent process. This eliminates many sync IPC calls.

To facilitate transition to a new session history design,
we are mirroring mOSHE and mLSHE SH entries from docshell to browsing context.
Whenever we update those entries in docshell, we will also update those in BC,
and vice versa.

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

--HG--
extra : moz-landing-system : lando
2020-03-10 14:28:22 +00:00
Olli Pettay 4ecbebad86 Bug 1609475, history.go(>1) should possibly load several iframes, r=annyG
Differential Revision: https://phabricator.services.mozilla.com/D63726

--HG--
extra : moz-landing-system : lando
2020-02-22 16:44:18 +00:00
Andreea Pavel 3f1905ccdc Backed out changeset 2bd2a22267d6 (bug 1609475) for failing test_sessionhistory.html on a CLOSED TREE 2020-02-22 01:46:26 +02:00
Olli Pettay 72ae1c9ce2 Bug 1609475, history.go(>1) should possibly load several iframes, r=annyG
Differential Revision: https://phabricator.services.mozilla.com/D63726

--HG--
extra : moz-landing-system : lando
2020-02-21 21:55:07 +00:00
Nika Layzell 199effbc30 Bug 1615403 - Part 9: Remove old BrowsingContext & WindowContext serializers, r=farre
These serializers have been superceded by the new
MaybeDiscarded<BrowsingContext> and MaybeDiscarded<WindowContext> serializers
added in earlier parts.

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

--HG--
extra : moz-landing-system : lando
2020-02-20 23:30:56 +00:00
Nika Layzell 86a0f60017 Bug 1615403 - Part 4: Use MaybeDiscarded for PSHistory, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D62835

--HG--
extra : moz-landing-system : lando
2020-02-20 23:30:45 +00:00
Simon Giesecke b50347f917 Bug 1611415 - Prefer using std::move over forget. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980

--HG--
extra : moz-landing-system : lando
2020-02-13 14:38:48 +00:00
shindli 91aa0518dd Backed out changeset 0c982bc69cb3 (bug 1611415) for causing build bustages in /builds/worker/workspace/build/src/obj-firefox/dist/include/nsCOMPtr CLOSED TREE 2020-02-12 20:13:29 +02:00
Simon Giesecke f604a47fa5 Bug 1611415 - Applied FixItHints from mozilla-non-std-move. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980

--HG--
extra : moz-landing-system : lando
2020-02-12 17:24:41 +00:00
Simon Giesecke 5f35e84559 Bug 1613985 - Use default for equivalent-to-default constructors/destructors in docshell. r=smaug
Depends on D62570

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

--HG--
extra : moz-landing-system : lando
2020-02-12 13:38:55 +00:00
Kershaw Chang 4bc096f818 Bug 1600254 - P8: Make nsIInputChannelThrottleQueue work with socket process r=dragana
The only information that devtools needs is the amount of how many bytes readed, so this patch introduces PInputChannelThrottleQueue ipdl for carrying on this information.

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

--HG--
extra : moz-landing-system : lando
2020-01-30 13:32:55 +00:00
Eric Rahm ac2d94a930 Bug 1610386 - Remove nsAutoPtr usage from docshell/. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D60454

--HG--
extra : moz-landing-system : lando
2020-01-21 22:29:00 +00:00
Sylvestre Ledru c521758c5e Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2020-01-09 21:50:11 +00:00
Peter Van der Beken b1af3a7da0 Bug 1601773 - Make ReloadCurrentEntry forward to the child process if called from session history in the parent. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D56080

--HG--
extra : moz-landing-system : lando
2019-12-08 21:53:19 +00:00
Gabriele Svelto 69790bc62e Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.

find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
    interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
    if [ -n "$interfaces" ]; then
        if [[ "$interfaces" == *$'\n'* ]]; then
          regexp="\("
          for i in $interfaces; do regexp="$regexp$i\|"; done
          regexp="${regexp%%\\\|}\)"
        else
          regexp="$interfaces"
        fi
        interface=$(basename "$path")
        rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
            hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
            if [ $hits -eq 0 ]; then
                echo "Removing ${interface} from ${path2}"
                grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
                mv -f "$path2".tmp "$path2"
            fi
        done
    fi
done

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

--HG--
extra : moz-landing-system : lando
2019-12-06 09:16:44 +00:00
Olli Pettay ead4eb0615 Bug 1596958 - Synchronize layouthistorystate to parent process, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D53288

--HG--
extra : moz-landing-system : lando
2019-12-05 20:30:45 +00:00
Brindusan Cristian 98218b165b Backed out changeset 69ac0bf82505 (bug 1596958) for assertion failures at nsSHEntry.cpp. CLOSED TREE 2019-12-05 21:01:02 +02:00
Olli Pettay 61bcb1d19a Bug 1596958 - Synchronize layouthistorystate to parent process, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D53288

--HG--
extra : moz-landing-system : lando
2019-12-05 17:33:48 +00:00
Anny G b023b02754 Bug 1596776 - Serialize SHEntry when sending DocShellLoadStateInit over IPC, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D54300

--HG--
extra : moz-landing-system : lando
2019-12-02 16:29:22 +00:00
Emilio Cobos Álvarez b84e83a317 Bug 1600454 - Fix build with --disable-accessibility. r=MarcoZ
The change to moz.build unveiled a couple unified build issues that I also had
to fix.

Depends on D55365

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

--HG--
extra : moz-landing-system : lando
2019-12-02 06:25:40 +00:00
Olli Pettay c6003cd98a Bug 1596763 - Remove unused ParentSHistory, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D53190

--HG--
extra : moz-landing-system : lando
2019-11-27 10:36:32 +00:00
Peter Van der Beken cffb5fec95 Bug 1594938 - Crash in [@ nsSHistory::Reload]. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D53010

--HG--
extra : moz-landing-system : lando
2019-11-15 11:12:54 +00:00
Anny Gakhokidze aaa9648d30 Bug 1594850 - Part 1 - Fix crash in nsSHistory::EnsureCorrectEntryAtCurrIndex when mIndex=-1, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D52370

--HG--
extra : moz-landing-system : lando
2019-11-14 20:09:58 +00:00
Alphan Chen 6ffccff039 Bug 1596077 - Use browsingContext to do LoadURI() in nsSHistory r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D52841

--HG--
extra : moz-landing-system : lando
2019-11-14 08:08:21 +00:00
Peter Van der Beken f807f9d0a0 Bug 1593183 - Restore the AbandonBFCacheEntry call that bug 1536471 removed. r=annyG
Differential Revision: https://phabricator.services.mozilla.com/D51359

--HG--
extra : rebase_source : bfa37a8296131acb2d55537820b95545cd545b05
extra : source : 199ada1714a27bf5635bf479a0f1b8f73b4cb78a
extra : histedit_source : bdb3cb1326ed5cf864d2b37b77d9098bbe289fac
2019-10-31 20:24:19 +01:00
Peter Van der Beken 8ed0cb2ea7 Bug 1588491 - Associate session history entries with a session history object from creation. Continue to allow docshells to create session history entries even if the root docshell doesn't have a session history object. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50574

--HG--
extra : rebase_source : 0381ae4297820f92caa5a77f588c9372093c8315
extra : source : ebb01f79e94a182e4886c4af5b0f27f5b7a41c4e
extra : histedit_source : 4010d5a26f2fad681984e76718112d657d2e5fa1
2019-10-24 09:17:19 +02:00
Peter Van der Beken b6d4b5e93c Bug 1588491 - Associate session history entries with a session history object from creation. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D49170

--HG--
extra : rebase_source : bc4c6e8cea0de7e85ae78ffb3ce09a7465e61b4a
extra : amend_source : 956bf8fa227e613b7f816dd5af9029ed24ba2c46
extra : source : 2d4b06fe1f429eec844cdeba8a7faaa63bfc25ab
extra : histedit_source : a2345826c7f94311ee57d805bf3ac9bed2e12ea7
2019-10-17 20:03:49 +02:00
Peter Van der Beken 3974b1bd53 Bug 1588489 - Fix for getting the BFCache ID from an entry in the parent process. r=annyG
Differential Revision: https://phabricator.services.mozilla.com/D49169

--HG--
extra : rebase_source : 5a095b1237a210e2ffcc6888f8271b8b5be6dd6b
extra : source : 7d400025faba588fe9a77103f151d6954a14ac13
extra : histedit_source : 55299b48422de0af4af8ae1712e08315fe2046a4
2019-10-10 11:28:20 +02:00
Peter Van der Beken 3d62c6c2fb Bug 1583321 - Allow sending same entry multiple times during one IPC call. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D46935

--HG--
extra : rebase_source : 48fcbe1dc8c83af1d85575c32e33a904636d31de
extra : source : 184c14258def58dd1796cf2259a6fecf1cbc055c
extra : histedit_source : 3423197858c817b2c10140543105550a7b2ca913
2019-09-30 15:25:53 +02:00
Peter Van der Beken bc0cfa0be9 Bug 1583568 - Add getter for BFCache id in parent. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D47047

--HG--
extra : rebase_source : c4f104be390dd4af4e6e59f97898702dd18857ca
extra : source : 4de2f692d066d2e0b3a652eb0f24ab9bc56285c3
extra : histedit_source : c131a6b780740664ddc72f40eff5ca0d8f688399
2019-09-23 17:42:35 +02:00
Anny Gakhokidze dabe852c9a No bug - Formatting previously unformatted code, rs=me
--HG--
extra : rebase_source : 1e1b09be48970bfc6774c0425f1d53c2b5af8e9e
extra : source : 2155ec716d342f75b93d3f44f1945a0746e39495
extra : histedit_source : 58f5f716007067684f57a7155f67fab7d029180e
2019-09-11 16:18:19 +02:00
Peter Van der Beken 51c0772fe6 Bug 1570253 - Convert session history sync IPC messages that don't return anything to async. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D44442

--HG--
extra : rebase_source : c1700389bff0e86f120298f838e37244309dab3e
extra : amend_source : b05519f5b6ab4ce5207318e55bc28a1582e2b905
extra : source : 3da2f0f2d95bf2452caf7afc06a5c4887e477068
extra : histedit_source : 483074226bac0ae0387677e24958c5225207e01b
2019-08-27 17:05:11 +02:00
Anny Gakhokidze 7c10781235 Bug 1545474 - Part 3: Test eviction of content viewer entries, r=peterv
Add a new callback to session history listener to listen for content
viewers being evicted.

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

--HG--
extra : rebase_source : 29c8e9299af718e75029dfae4e937a3d4f18900d
extra : amend_source : 19e679c6d2721dd7e8d7da1ec7af3033439210b4
extra : source : 5e4d0ab9e52ce1e1d1684fdb59534a66e9f9d9b9
extra : histedit_source : 44e9cb7ba0589c79c03b2dc58ec4d0d4c0c98422
2019-05-22 16:19:19 -04:00
Anny Gakhokidze bfdcd82cdb Bug 1545474 - Part 2: Modify eviction of content viewers to accomodate session history changes, r=peterv
When we need to evict content viewers, we group SHEntrySharedParentState,
corresponding to session history entries that need to be evicted, by their
content parent and send their id's to their corresponding parents for eviction.

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

--HG--
extra : rebase_source : 17398d3ed2fdf5debba8224559c48f41b4cfbf2d
extra : source : 0feb286c5b85e6e2a0ac56058c596324ca28d817
extra : histedit_source : ba6c9eb5c6ce7013b80c407372eeab7146b07f51
2019-05-07 14:18:00 -04:00
Anny Gakhokidze c43df3d447 Bug 1545474 - Part 1: Consolidate sync IPC calls inside of nsDocShell::UpdateURLAndHistory, r=peterv, r=nika for adding sync IPC messages
Inside of nsDocShell::UpdateURLAndHistory, there are 4 sync IPC calls to
nsSHistory plus 1 static call, which contains at least one nsSHEntry::GetParent
sync IPC call. All of these calls can be moved inside of a new method
EvictContentViewersOrReplaceEntry on nsSHEntry, resulting in just 1 sync IPC
call.

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

--HG--
extra : rebase_source : ad09a9061cd6fe8eb6796b2809ea191aceb3ac73
extra : source : 2cd5cd24763ff320719aedb2142a79822efd6de4
extra : histedit_source : fdc4f80cfd8807e46c2dc02e6ab82f2bd3acc391
2019-04-18 15:18:00 -04:00
Peter Van der Beken 1fa7fd2c48 Bug 1560940 - Change tests that use session history listeners to listen in the parent process. r=nika
Expose SHistory object from CanonicalBrowsingContext.

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

--HG--
extra : rebase_source : 83b465a1ea387d79889f9cec73f3129adca66016
extra : source : 6d2db7f001668a7a18e7c8dc0693236d6f6964ba
extra : histedit_source : cced2d0317eef396dacd626b72cebf9625238897
2019-06-19 21:09:28 +02:00
Peter Van der Beken 1fb1e00105 Bug 1560941 - Stop trying to call session history listeners for reload in the child process. r=annyG
Differential Revision: https://phabricator.services.mozilla.com/D35656

--HG--
extra : rebase_source : a381c70c1a2cb5eab2eeeba451d2689bacd8d1e5
extra : source : 82757783c54b317652aed95f75cce88d5c77f561
extra : histedit_source : 09453eff92443afdfc7ba062c44111e60e2ffede
2019-06-21 17:21:10 +02:00
Peter Van der Beken 1f1f27cbac Bug 1556657 - SHistoryParent::RecvFindEntryForBFCache should fill in all its outparams. r=annyG
Differential Revision: https://phabricator.services.mozilla.com/D33607

--HG--
extra : rebase_source : a869e6e0d2e1dfc19431f01eab257ef4ce88fabd
extra : source : b82e5b8c6964ab446abafc8be6017f4e15725d26
extra : histedit_source : b9c0a9c7462f0d984ae8d297aa8d51d80dcc02a6
2019-06-04 10:58:42 +02:00
Anny Gakhokidze 686417088e Bug 1541515 - Consolidate IPC calls to nsISHEntry inside of nsDocShell::GetChildSHEntry, r=peterv, r=nika for adding sync IPC messages
Currently, nsDocShell::GetChildSHEntry calls 3 sync IPC calls on nsISHEntry,
and the method GetChildSHEntry only has one caller. By moving GetChildSHEntry
method to parent process for nsISHEntry, resulting in a new method
nsISHEntry::GetChildSHEntry, 3 sync IPC calls can be reduced to 1.

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

--HG--
extra : rebase_source : 1e76a1b07d827b35bae7ed6acca25aa8732c9ed0
extra : source : 34d91f82faa36dd8d8ed721de365122d831f7b25
extra : histedit_source : 86592bc747d506c546ec660e57087e78b9719cf7
2019-04-15 14:27:44 -04:00
Anny Gakhokidze 4472abffc2 Bug 1546761 - Consolidate IPC calls to nsISHistory inside of nsDocShell::OnNewURI, r=peterv, r=nika for adding sync IPC messages
Inside of nsDocShell::OnNewURI there are 4 sync IPC calls
to nsSHistory that can be replaced with 1 sync IPC call
by adding a new method EnsureCorrectEntryAtCurrIndex to nsSHistory.

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

--HG--
extra : rebase_source : 09d7738b2f2dc2334c8f6186e5918b9d0ea3e618
extra : source : 82a41bffcbbca24ad3e84b045d75e4cb01ae1445
extra : histedit_source : 96eb7d2dbed2ad8fe4cc2d37358ec2358f696442
2019-05-07 15:23:08 -04:00
Anny Gakhokidze ac22fc9f39 Bug 1539482 - Reduce the number of IPC calls on nsISHEntry in nsDocShell::LoadHistoryEntry, r=peterv, r=nika for adding sync IPC messages
In nsDocShell::LoadHistoryEntry method, when it gets called
from parent process, there are 13 sync IPC calls on nsISHEntry
that retrieve  information from the session history entry and
create a  doc shell load state object using the retrieved
information.  By adding a new method 'CreateLoadInfo'on nsISHEntry,
inside of which the doc shell load state object will be
created (with appropriate data filled out) and returned,
we eliminate 12 sync IPC call, resulting in just 1 IPC call
to nsISHEntry::CreateLoadInfo.

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

--HG--
extra : rebase_source : a4e1fa52932fd5caabb59bd133e9fbee7f4d0e4a
extra : amend_source : f4d9f01afac0337808ba347eb997ce83e6ae1488
extra : source : 6ad53b35c7b4be933a3db1e1d45fa3da8a57abad
extra : histedit_source : c08d0cebcc11a3a4f64d01566cb62d9a334a12ec
2019-03-29 15:48:59 -04:00
Anny Gakhokidze e5cb284fde Bug 1539238 - Modify nsSHEntry::Create to consolidate setter calls on nsSHEntry in nsDocShell::AddToSessionHistory, r=peterv
nsDocShell is the only consumer of nsISHEntry::Create, and
in AddToSessionHistory method, after calling nsISHEntry::Create,
it calls 8 setter methods on nsISHEntry, which results in a
total of 9 sync IPC calls.

With the proposed solution of setting everything via
nsISHEntry::Create, we get a total of 1 sync IPC call.

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

--HG--
extra : rebase_source : af9c75043260a6333d789d3ca882173703f7bc29
extra : amend_source : 334281153e24f9e9f0abac3983d32fb99dae6995
extra : source : a8eed7c5d12c49366ad8acd706fa0e8464ed8549
extra : histedit_source : 653daabf83d43571803a1e33c95a4804e4275e7d
2019-03-26 15:46:36 -04:00
Anny Gakhokidze b0a8f8d708 Bug 1536471 - Consolidate calls to nsISHEntry::GetChildAt in nsDocShell::AddToSessionHistory by adding nsSHEntry::ClearEntry method, r=peterv, r=nika for adding sync IPC messages
Currently, nsDocShell repeatedly calls nsISHEntry::GetChildAt and
nsISHEntry::RemoveChild  in nsDocShell::AddToSessionHistory,
which results in twice as many IPC calls as the number of children
a session history entry has. Additionally, there is one extra
IPC sync call to nsISHEntry::AbandonBFCacheEntry after the loop.

With the proposed solution, there will only be 1 sync IPC call.

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

--HG--
extra : rebase_source : ab98af417bcb28fdfcb1a115473b505fa8a70aa1
extra : source : 0270d6b952ffa1704690c777c55fcaed30125b38
extra : histedit_source : 9a031cb921ad8efa1bd96f7342e08337f3c0ca8a
2019-03-26 14:24:33 -04:00
Anny Gakhokidze bee5c226d0 Bug 1536471 - Consolidate calls to nsISHEntry::GetChildAt in nsDocShell::ClearFrameHistory by adding a new sync IPC call nsISHistory::RemoveFrameEntries, r=peterv, r=nika for adding sync IPC messages
Currently, nsDocShell repeatedly calls nsISHEntry::GetChildAt, which
results in as many IPC sync calls as the number of children
a session history entry has. Calling nsISHEntry::GetChildCount and
ChildSHistory::Index and incurs additional extra 2 sync IPC calls.

With the proposed solution, there will only be 1 sync IPC call.

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

--HG--
extra : rebase_source : ffaaff5c9521fb4d3a53a85f4570bcb99f7317d1
extra : source : 3f4a092d8f6544a212ee8a80d9275ae68c6446d1
extra : histedit_source : b4166d997119092ba5657f9ca4216da62dc82d97
2019-03-22 15:45:38 -04:00
Anny Gakhokidze 8123ec0460 Bug 1536468 - Make retrieval of WebBrowserPersistDocumentAttrs.cacheKey async in SessionHistory, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D24472

--HG--
extra : rebase_source : bf5ac32a5e89ec16c07d55d631e40014f729e75f
extra : source : b1bb781543ed7c2ad8dcc3e3146d7e3f4973195d
2019-03-21 16:33:51 -04:00
Peter Van der Beken 1d35a2c86b Bug 1438272 - Part 3: move session history to parent process. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D26904

--HG--
extra : source : 29cc55878945008fdc4f356969fe528c85f34d41
extra : amend_source : fb5a3bb318346ec6fc02bcdac51f1588b6e87634
2019-03-05 15:46:10 +01:00
Peter Van der Beken b5ab26397e Bug 1438272 - Part 2: replace docshell with browsing context in session history. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D25767

--HG--
extra : source : 324de0fe8f33382b919144a14fa8e2348c83dbce
2019-03-05 23:59:28 +01:00
Nicholas Nethercote a518709339 Bug 1587162 - Fix UBSAN complaints about pref callbacks. r=erahm
Lots of these callbacks have a non-`void*` final parameter, which UBSAN
complains about. This commit changes them to have a `void*` parameter.

This requires undoing the machinery added in the first two commits of bug
1473631: `TypePrefChangeFunc` and `PREF_CHANGE_METHOD`. The resulting code is
simpler (which is good) and more boilerplate-y (which is bad) but avoids the
undefined behaviour (which is good).

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

--HG--
extra : moz-landing-system : lando
2019-11-01 02:57:20 +00:00
Kris Maglione b45bfec73f Bug 1586911: Silence SHEntry assertion after local->remote->local iframe navigation. r=peterv
When we have a parser-created iframe which starts out in-process, transitions
to remote, and then transitions back to in-process, we create separate
DocShells for the first and last in-process loads. Since both are
network-created, and have the same child index, they both try to add
themselves as children to their parent's SHistory at the same index. And since
the entry for the first DocShell already exists at that index when we try to
add the second, that triggers an assertion.

This isn't really ideal, but it is expected given the current state of session
history under Fission. It should hopefully be solved more gracefully when the
Fission-aware session history rewrite is done, but in the mean time, I think
we should just ignore the conflict, since it's expected.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 19:32:02 +00:00
Matt Woodrow 70bb7111fa Bug 1578624 - P4: Add an option to set mIsNavigating on the docshell when loading using BrowsingContext. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D44760

--HG--
extra : moz-landing-system : lando
2019-10-11 02:27:05 +00:00