Marco Bonardo
bee013f896
Bug 1496578 - convert nsDefaultURIFixup to URIFixup.jsm. r=Gijs,farre
...
Differential Revision: https://phabricator.services.mozilla.com/D66579
2020-04-08 11:30:14 +00:00
Razvan Maries
2229957d40
Backed out changeset b86e8f2cc5db (bug 1496578) for build bustages on nsDocShell.cpp. CLOSED TREE
2020-04-08 01:16:33 +03:00
Marco Bonardo
47b3ead8af
Bug 1496578 - convert nsDefaultURIFixup to URIFixup.jsm. r=Gijs,farre
...
Differential Revision: https://phabricator.services.mozilla.com/D66579
2020-04-07 21:55:24 +00:00
Narcis Beleuzu
0668c5ab4c
Backed out 6 changesets (bug 1626404) for assertion failures on BrowsingContext.cpp . CLOSED TREE
...
Backed out changeset aed006ab4c20 (bug 1626404)
Backed out changeset ad87dcb98637 (bug 1626404)
Backed out changeset c065bd4594b4 (bug 1626404)
Backed out changeset a248fc78ab0c (bug 1626404)
Backed out changeset 52892d053ff1 (bug 1626404)
Backed out changeset 440b9193338a (bug 1626404)
2020-04-04 05:29:30 +03:00
Kris Maglione
1b63d41a43
Bug 1626404: Part 2b - Serialize source BC with LoadState. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D69419
2020-04-04 00:12:59 +00:00
Kris Maglione
31f94f56a7
Bug 1626404: Part 2a - Store source BrowsingContext rather than DocShell in LoadState. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D69418
2020-04-04 00:13:01 +00:00
Narcis Beleuzu
518dd9a134
Backed out 6 changesets (bug 1626404) for bustages on LocationBase.cpp . CLOSED TREE
...
Backed out changeset a399dfff2725 (bug 1626404)
Backed out changeset ad3272abd830 (bug 1626404)
Backed out changeset 322c170e8301 (bug 1626404)
Backed out changeset df37f57cfa1d (bug 1626404)
Backed out changeset e255e4c9e665 (bug 1626404)
Backed out changeset 51120d617459 (bug 1626404)
2020-04-04 02:42:18 +03:00
Kris Maglione
01b1bf8f08
Bug 1626404: Part 2b - Serialize source BC with LoadState. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D69419
2020-04-03 22:41:27 +00:00
Kris Maglione
f370ac6fdf
Bug 1626404: Part 2a - Store source BrowsingContext rather than DocShell in LoadState. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D69418
2020-04-03 22:41:29 +00:00
Agi Sferro
38dbe89b06
Bug 1619796 - Don't fire onLoadRequest for embedder-initiated loads. r=smaug,droeh
...
Differential Revision: https://phabricator.services.mozilla.com/D66695
2020-03-13 18:22:16 +00:00
Matt Woodrow
8b1b33cac0
Bug 1598520 - Don't require nsIChildChannel for process switching, as we don't need this for DocumentChannel either. r=mayhemer,kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D57586
2020-01-06 21:58:48 +00:00
Razvan Maries
29d98a3d41
Backed out 5 changesets (bug 1598520) for perma fails on test_enumerateDevices_navigation.html. CLOSED TREE
...
Backed out changeset 583dac2feebc (bug 1598520)
Backed out changeset c769e733f588 (bug 1598520)
Backed out changeset 45287a2ec476 (bug 1598520)
Backed out changeset 59cff6014447 (bug 1598520)
Backed out changeset ddf722557c33 (bug 1598520)
2019-12-20 01:56:55 +02:00
Matt Woodrow
531027b22b
Bug 1598520 - Don't require nsIChildChannel for process switching, as we don't need this for DocumentChannel either. r=mayhemer,kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D57586
2019-12-19 21:47:10 +00:00
Razvan Maries
601e71c3cb
Backed out 5 changesets (bug 1598520) for Linting failure. CLOSED TREE
...
Backed out changeset b4f71abf75fe (bug 1598520)
Backed out changeset 8e3b650d9313 (bug 1598520)
Backed out changeset 73c37ad27d18 (bug 1598520)
Backed out changeset 10ad2e4d27c3 (bug 1598520)
Backed out changeset 4a5d10759bf3 (bug 1598520)
2019-12-20 00:38:32 +02:00
Matt Woodrow
a773e1515d
Bug 1598520 - Don't require nsIChildChannel for process switching, as we don't need this for DocumentChannel either. r=mayhemer,kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D57586
2019-12-19 21:47:10 +00:00
Tetsuharu OHZEKI
d7c1afee1f
Bug 1596820 - part 2: Remove use of nsIDocShellTreeItem in nsDocShellLoadState::SetupInheritingPrincipal. r=kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D57323
2019-12-18 18:49:05 +00:00
Gabriele Svelto
eeb9bfc398
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
2019-12-06 09:16:44 +00:00
Boris Zbarsky
2df1df0176
Bug 1517588. Use nsIPrincipal::IsSystemPrincipal instead of nsContentUtils::IsSystemPrincipal r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D53067
2019-12-05 04:44:32 +00:00
Anny G
19f7496993
Bug 1596776 - Serialize SHEntry when sending DocShellLoadStateInit over IPC, r=peterv
...
Differential Revision: https://phabricator.services.mozilla.com/D54300
2019-12-02 16:29:22 +00:00
Anny Gakhokidze
0bac5fce79
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
2019-03-29 15:48:59 -04:00
Marco Bonardo
455981924c
Bug 1588298 - Ensure CreateFromLoadURIOptions passes the appropriate PRIVATE flag to URIFixup. r=kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D49154
2019-10-15 08:11:45 +00:00
Matt Woodrow
19bae1ea39
Bug 1578624 - P3: Move conversion from LoadURIOptions processing into a static constructor for nsDocShellLoadState. r=kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D44759
2019-10-11 02:27:03 +00:00
Matt Woodrow
940b3e70ee
Bug 1578624 - P2: Extend nsDocShellLoadState for the extra options needed to describe front end loads. r=kmag,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D44758
2019-10-11 02:27:01 +00:00
Brindusan Cristian
170d6fb93f
Backed out 11 changesets (bug 1578624) for build bustages. CLOSED TREE
...
Backed out changeset b22733eb880f (bug 1578624)
Backed out changeset cb5e15489635 (bug 1578624)
Backed out changeset f1746b2f9dec (bug 1578624)
Backed out changeset d08a099a22ff (bug 1578624)
Backed out changeset 8ebd563c72a8 (bug 1578624)
Backed out changeset d8bfec2dc9b6 (bug 1578624)
Backed out changeset 591664928bce (bug 1578624)
Backed out changeset 63f5a619b9ef (bug 1578624)
Backed out changeset ff67cc13cdf3 (bug 1578624)
Backed out changeset 43556c937a09 (bug 1578624)
Backed out changeset 49065a55694d (bug 1578624)
2019-10-09 11:50:37 +03:00
Matt Woodrow
b1f978110c
Bug 1578624 - P3: Move conversion from LoadURIOptions processing into a static constructor for nsDocShellLoadState. r=kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D44759
2019-10-09 06:37:50 +00:00
Matt Woodrow
3add36d2d0
Bug 1578624 - P2: Extend nsDocShellLoadState for the extra options needed to describe front end loads. r=kmag,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D44758
2019-10-09 06:37:50 +00:00
Narcis Beleuzu
eab5ec4098
Backed out 11 changesets (bug 1578624) for bustages on WindowGlobalChild.h . CLOSED TREE
...
Backed out changeset 478897956ee0 (bug 1578624)
Backed out changeset ab9c09164df0 (bug 1578624)
Backed out changeset f461f10efa46 (bug 1578624)
Backed out changeset 9b958693a003 (bug 1578624)
Backed out changeset 3b8220a15051 (bug 1578624)
Backed out changeset 180407dc57a8 (bug 1578624)
Backed out changeset bb11892e2171 (bug 1578624)
Backed out changeset 4f5c28244290 (bug 1578624)
Backed out changeset 6c02bbe5c1c5 (bug 1578624)
Backed out changeset 1d762fdce921 (bug 1578624)
Backed out changeset 818bc6e20c7d (bug 1578624)
2019-10-09 08:52:25 +03:00
Matt Woodrow
c168ffe7c0
Bug 1578624 - P3: Move conversion from LoadURIOptions processing into a static constructor for nsDocShellLoadState. r=kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D44759
2019-10-09 04:53:39 +00:00
Matt Woodrow
7a1fd26761
Bug 1578624 - P2: Extend nsDocShellLoadState for the extra options needed to describe front end loads. r=kmag,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D44758
2019-10-09 04:53:06 +00:00
Matt Woodrow
712f00c2b1
Bug 1579765 - Copy mResultPrincipalURI across when serializing nsDocShellLoadState. r=kmag
...
Differential Revision: https://phabricator.services.mozilla.com/D45148
2019-09-16 07:24:32 +00:00
Matt Woodrow
5299358392
Bug 1556489 - P10. Pass PostData and Headers at DocShell creation time. r=nika,farre
...
Differential Revision: https://phabricator.services.mozilla.com/D40967
2019-09-03 10:19:27 +10:00
Matt Woodrow
0d73ff97f0
Bug 1556489 - P5. Fix constness. r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D40962
2019-09-03 10:19:09 +10:00
Kris Maglione
984813c612
Bug 1532994: Part 2 - Support SetHref() and Replace() in RemoteLocationProxy. r=farre
...
MANUAL PUSH: Can't update phabricator patch.
Differential Revision: https://phabricator.services.mozilla.com/D43328
2019-08-23 16:20:37 -07:00
Benjamin
6c2d74de08
Fix Bug 1569889 by setting mIsFormSubmission in nsDocShellLoadState r=ckerschb
...
Ensure that IsFormSubmission is set in all constructors and can be serialized
Differential Revision: https://phabricator.services.mozilla.com/D39935
2019-07-30 19:45:36 +00:00
Benjamin
d4d9c94534
Bug 1566453: Added flag to detect if a load was initiated by a form submission r=ckerschb
...
The flag in loadinfo can be used to detect if a load was initiated by a form submission. This is crucial for implmenting the CSP directive navigate-to. https://www.w3.org/TR/CSP3/#navigate-to-pre-navigate
Differential Revision: https://phabricator.services.mozilla.com/D38403
2019-07-22 13:41:47 +00:00
Jonathan Kingston
32524b62e2
Bug 1560455 - rename CodebasePrincipal to ContentPrincipal. r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D35504
2019-07-08 16:37:45 +00:00
Thomas Nguyen
e6f4ac6e81
Bug 1528695 - Part 1 : Use referrerInfo in openWindow, cpp file r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D21910
2019-03-15 05:11:43 +00:00
Christoph Kerschbaumer
bd82a2ed63
Bug 1518454: Part 1, backend changes, add CSP to loadURIOptions dictionary and pass CSP explicitly from frontend to docshell. r=bz
2019-02-21 16:00:32 +01:00
Christoph Kerschbaumer
1a72eb2a6b
Bug 1528677: Remove nullchecks for loadinfo since we have loadinfo on all channels. r=baku
2019-02-20 13:27:25 +01:00
Thomas Nguyen
d13c22ef47
Bug 1517703 - Part 1 - Implement ReferrerInfo class r=smaug
...
The class contains original full referrer and referrer policy will be
applied to the referrer.
Differential Revision: https://phabricator.services.mozilla.com/D17923
2019-02-12 19:35:32 +00:00
Nika Layzell
046e0a18c7
Bug 1467223 - Part 4: Add support for piping redirected channels through nsDocShell's loading functions, r=qdot
...
This code largely skips the logic in load methods, and tries to simply get the
channel opened & connected to the correct listener ASAP, without breaking any
loading state.
Depends on D15610
Differential Revision: https://phabricator.services.mozilla.com/D15611
2019-01-23 21:07:08 +00:00
Sylvestre Ledru
3ece000f7a
Bug 1516555 - Reformat everything to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D15426
2018-12-28 15:48:06 +00:00
Kyle Machulis
2e98bae337
Bug 1478742 - IPDLize nsDocShellLoadState; r=nika
...
Differential Revision: https://phabricator.services.mozilla.com/D13958
2018-12-19 22:22:09 +00:00
Kyle Machulis
8e9467964d
Bug 1497995 - Make URI a constructor argument of nsDocShellLoadState; r=bzbarsky
...
We'll always need a URI for DocShellLoadState, and it should only
change is special circumstances. Construct the object with it, and
then follow up in Bug 1515433 for more cleanup.
Differential Revision: https://phabricator.services.mozilla.com/D13490
2018-12-21 20:17:43 +00:00
Kyle Machulis
21d662294a
Bug 1496251 - Convert nsDocShell::InternalLoad to using nsDocShellLoadState r=bzbarsky,nika
...
Move InternalLoad from 24 arguments to 3, using nsDocShellLoadState
objects. Move all internal argument references to using calls to
accessors/mutators on nsDocShellLoadState. Comments from old interface
function definition have been spread to relevant places in code.
Internal load flags in nsDocShellLoadState are also consolidated to
the LoadFlags member, as they were usually passed as that member
before nsDocShellLoadState existed. This begins the work to simplify
load flags further in a later patch (See Bug 1475331).
Depends on D13487
Differential Revision: https://phabricator.services.mozilla.com/D13488
2018-12-19 21:01:13 +00:00
Jonathan Kingston
df91fb541b
Bug 1508654 - adding in assert for referrer implied codebase principal. r=ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D12436
2018-12-17 15:35:45 +00:00
Sylvestre Ledru
e5a134f73a
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
2018-11-30 11:46:48 +01:00
Kyle Machulis
41c3435c93
Bug 1505601 - Move nsIDocShell INTERNAL_LOAD consts to nsDocShell; r=bzbarsky
...
Consts aren't used in JS anyways, so there's no reason for them to be
in the IDL.
Differential Revision: https://phabricator.services.mozilla.com/D11715
2018-11-28 03:30:54 +00:00
Valentin Gosu
50bbf8a0fd
Bug 1487964 - Do not report resource-timing subdocument loads triggered by that subdocument r=bzbarsky
...
Differential Revision: https://phabricator.services.mozilla.com/D9503
2018-11-21 16:28:20 +00:00
Cosmin Sabou
b241cff35e
Backed out changeset 395b95afd795 (bug 1487964) for mochitest failures on test_resource_timing_nocors.
2018-11-21 17:14:29 +02:00