Commit Graph
192 Commits
Author SHA1 Message Date
acreskeyMoz 08fc7fbe75 Bug 2045810 - Send the document Accept header for <link rel=prefetch> requests; r=sunil,necko-reviewers
Per Fetch step 12.2, a request whose initiator is "prefetch" sends the
document Accept header regardless of destination; nsPrefetchService was
sending Accept: */*.

Fixes the "Document prefetch should send the exact Accept header as
navigation" subtest in preload/prefetch-accept.html and
preload/prefetch-document.html.

Differential Revision: https://phabricator.services.mozilla.com/D305367
2026-06-10 11:41:54 +00:00
Daniel Holbert a7933c4ecf Bug 2043105: Use MakeRefPtr to do allocation for various RefPtr variables in uriloader/. r=dom-core,smaug
While we're at it, remove some unnecessary null-checks after infallible
allocation.

Differential Revision: https://phabricator.services.mozilla.com/D302958
2026-05-28 16:43:27 +00:00
smayya aabc2984e3 Bug 1527334 - cache prefetch pages for 5 mins that dont have cache headers. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D294936
2026-04-30 10:59:59 +00:00
agoloman ac7036cbfb Revert "Bug 1527334 - cache prefetch pages for 5 mins that dont have cache headers. r=necko-reviewers,valentin" for causing mochitest failures @test_bug1268962.html.
This reverts commit 4d9ad631db.
2026-04-28 14:40:57 +00:00
smayya 4d9ad631db Bug 1527334 - cache prefetch pages for 5 mins that dont have cache headers. r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D294936
2026-04-28 11:48:43 +00:00
Sylvestre Ledru cebe122a67 Bug 2023419 - Remove Emacs/Vim modelines from uriloader/ r=emilio
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287876
2026-03-16 17:21:21 +00:00
serge-sans-paille 1e9b33083e Bug 1993127 - Remove unused inclusion of Attributes.h r=emilio,extension-reviewers,application-update-reviewers,profiler-reviewers,win-reviewers,gstoll,bytesized,robwu,canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D269718
2025-10-26 16:59:43 +00:00
Emilio Cobos Álvarez ed42ab37a2 Bug 1968390 - Remove nsPrefetchService::mHaveProcessed. r=necko-reviewers,valentin
It's not correct, see comment 0. This in theory can get preload / prefetch
started a bit sooner on the first pageload of a document. But that might
actually be fine? It's the current behavior too if you init the service and an
iframe loads.

Remove test_cancelPrefetch as per the comments in the bug.

Differential Revision: https://phabricator.services.mozilla.com/D251123
2025-05-26 18:12:41 +00:00
Emilio Cobos Álvarez 9d25a7ae4b Bug 1968390 - Minor clean-ups to nsPrefetchService. r=necko-reviewers,valentin
No behavior change. Remove an unused method that does nothing too.

Differential Revision: https://phabricator.services.mozilla.com/D251122
2025-05-26 18:12:37 +00:00
Serban Stanca 00f1cf3865 Revert "Bug 1968390 - Remove nsPrefetchService::mHaveProcessed. r=necko-reviewers,valentin" for causing xpcshell failures in test_cancelPrefetch.js.
This reverts commit a2aeb5a4b4.

This reverts commit b56d177a7b.
2025-05-26 11:34:17 +00:00
Emilio Cobos Álvarez a2aeb5a4b4 Bug 1968390 - Remove nsPrefetchService::mHaveProcessed. r=necko-reviewers,valentin
It's not correct, see comment 0. This in theory can get preload / prefetch
started a bit sooner on the first pageload of a document. But that might
actually be fine? It's the current behavior too if you init the service and an
iframe loads.

Differential Revision: https://phabricator.services.mozilla.com/D251123
2025-05-26 10:08:33 +00:00
Emilio Cobos Álvarez b56d177a7b Bug 1968390 - Minor clean-ups to nsPrefetchService. r=necko-reviewers,valentin
No behavior change. Remove an unused method that does nothing too.

Differential Revision: https://phabricator.services.mozilla.com/D251122
2025-05-26 10:08:29 +00:00
kernp25 4d18975ff5 Bug 1945924 - Replace SchemeIsFoo functions with the inlined SchemeIs() call. r=valentin,emilio,necko-reviewers,geckoview-reviewers,anti-tracking-reviewers,core-sessionstore-reviewers,ohall,farre
No behavior change intended.

Differential Revision: https://phabricator.services.mozilla.com/D236756
2025-03-31 14:25:54 +00:00
CanadaHonk 69cea640dc Bug 1836328 - Replace X-Moz: Prefetch with Sec-Purpose: Prefetch r=necko-reviewers,valentin
Replaces proprietary X-Moz: Prefetch header with Sec-Purpose: Prefetch
which is defined by spec. It is not used internally for prefetch afaik.

2 WPT subtests now newly pass.

WPT tests: https://wpt.fyi/results/preload/prefetch-headers.https.html
Spec: https://fetch.spec.whatwg.org/#http-sec-purpose

Differential Revision: https://phabricator.services.mozilla.com/D179723
2023-06-02 07:52:38 +00:00
nicklas boman 4114a8d7f7 Bug 1724649 - Followup to remove #include plstr.h r=necko-reviewers,xpcom-reviewers,valentin,nika
Differential Revision: https://phabricator.services.mozilla.com/D177690
2023-05-15 14:53:02 +00:00
Valentin Gosu 00029d1245 Bug 1667316 - Pass nsresult status to OnRedirectResult r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D140569
2022-11-16 08:49:45 +00:00
Valentin Gosu 1e176311c4 Bug 1694662 - Remove OfflineCache update logic r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D106443
2021-04-30 07:20:19 +00:00
Frederik Braun 617d3006d9 Bug 1366973: Rename security flags to not contain DATA anymore r=geckoview-reviewers,ckerschb,snorp
Differential Revision: https://phabricator.services.mozilla.com/D83490
2020-07-15 11:20:45 +00:00
Simon Giesecke a69d79b6db Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D80860
2020-07-01 08:29:29 +00:00
Emilio Cobos Álvarez 8688ceb28a Bug 1639392 - Merge nsIStyleSheetLinkingElement and nsStyleLinkElement, and call it LinkStyle. r=jwatt
Which is the spec term. nsIStyleSheetLinkingElement is even more
confusing since it may not be an element at all (see: processing
instructions).

Differential Revision: https://phabricator.services.mozilla.com/D76071
2020-05-21 03:07:16 +00:00
Honza Bambas a075a49397 Bug 1618322 - Merge network.preload.experimental pref to network.preload, r=dragana
Depends on D70235

Differential Revision: https://phabricator.services.mozilla.com/D70526
2020-05-11 14:15:30 +00:00
Eric Rahm a2c461bfa5 Bug 1626451 - Remove nsAutoPtr usage from uriloader/. r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D69122
2020-04-03 21:05:39 +00:00
Tim Huang 37f162c69d Bug 1616570 - Part 1: Rename CookieSettings to CookieJarSettings. r=Ehsan
Given that we are going to add ContentBlockingAllowList in
CookieSettings, so CookieSettings will be responsible for more stuff than the
cookie behavior and cookie permission. We should use a proper name to
reflect the purpose of it. The name 'CookieSettings' is misleading that
this is only for cookie related stuff. So, we decide to rename
'CookieSettins' to 'CookieJarSettings' which serves better meaning here.

Differential Revision: https://phabricator.services.mozilla.com/D63935
2020-03-04 08:59:08 +00:00
Simon Giesecke 9bcfd47601 Bug 1611415 - Prefer using std::move over forget. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980
2020-02-13 14:38:48 +00:00
shindli 6bb3487209 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 d45525793f Bug 1611415 - Applied FixItHints from mozilla-non-std-move. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980
2020-02-12 17:24:41 +00:00
Gabriele Svelto f03cdb2b2d Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ 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/D55444
2019-12-06 09:17:57 +00:00
Sylvestre Ledru 3067b10938 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D41559
2019-08-13 07:15:25 +00:00
Tom Schuster ddb4bef1d6 Bug 1558915 - Use infallible nsIURI::SchemeIs in uriloader/ r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D40546
2019-08-05 20:08:21 +00:00
Thomas Nguyen fc848a1f27 Bug 1566417 - Update to use ReferrerInfo in prefetch and preload URI r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D38323
2019-07-19 11:42:09 +00:00
Brindusan Cristian 3dd2a09c2c Backed out changeset 1cf52744c859 (bug 1566417) for wpt failures at Element.h:2006. 2019-07-19 03:37:49 +03:00
Thomas Nguyen 74b396afd0 Bug 1566417 - Update to use ReferrerInfo in prefetch and preload URI r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D38323
2019-07-18 20:36:46 +00:00
Thomas Nguyen 2b9a6d0f8d Bug 1532318 - Part 2 : update changes of nsIHttpChannel in codebase r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D22786
2019-05-02 12:33:55 +00:00
Sylvestre Ledru ad31adba4c Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan
# ignore-this-changeset

Depends on D28954

Differential Revision: https://phabricator.services.mozilla.com/D28956
2019-05-01 08:47:10 +00:00
Sylvestre Ledru b31009da86 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
Andrea Marchesini 3ce93fb8e0 Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 12 - nsICookieSettings for the channel creation, r=ckerschb,asuth,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D21538
2019-03-08 09:04:11 +00:00
Ciure Andrei 899292bc3f Backed out 16 changesets (bug 1525245) for perma failing test_document_cookie.html CLOSED TREE
Backed out changeset 3fd27215698f (bug 1525245)
Backed out changeset d9a9e8e77873 (bug 1525245)
Backed out changeset 0e6f7be92e3f (bug 1525245)
Backed out changeset 6790802e2fa5 (bug 1525245)
Backed out changeset a5a9e01116ed (bug 1525245)
Backed out changeset 66e19a0c38dd (bug 1525245)
Backed out changeset fb90d51ba853 (bug 1525245)
Backed out changeset 4772db3625b3 (bug 1525245)
Backed out changeset 9affaf0cb998 (bug 1525245)
Backed out changeset a91b7ebe8bdd (bug 1525245)
Backed out changeset c2a13a7480e1 (bug 1525245)
Backed out changeset abe4482fa137 (bug 1525245)
Backed out changeset b3920c0bcf84 (bug 1525245)
Backed out changeset 0821b81f2724 (bug 1525245)
Backed out changeset 70bed2ad7899 (bug 1525245)
Backed out changeset 5f72ba232cc8 (bug 1525245)
2019-03-07 17:54:18 +02:00
Andrea Marchesini 83054c5a7a Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 12 - nsICookieSettings for the channel creation, r=ckerschb,asuth,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D21538
2019-03-07 10:21:15 +00:00
Dorel Luca 9a275b4283 Backed out 16 changesets (bug 1525245) for Android failures. CLOSED TREE
Backed out changeset 9f8a1b410320 (bug 1525245)
Backed out changeset 0ef284a9a1d5 (bug 1525245)
Backed out changeset 835e5f642a03 (bug 1525245)
Backed out changeset 362f5a8d033c (bug 1525245)
Backed out changeset 9da3ab33cf67 (bug 1525245)
Backed out changeset 6aacd2d6e835 (bug 1525245)
Backed out changeset 8ff9e8f45e02 (bug 1525245)
Backed out changeset 2020227181cc (bug 1525245)
Backed out changeset fc3c64c330b9 (bug 1525245)
Backed out changeset 2762bf88e050 (bug 1525245)
Backed out changeset ffc10fdc50a6 (bug 1525245)
Backed out changeset bb6ade1207d7 (bug 1525245)
Backed out changeset 1875eb5085e4 (bug 1525245)
Backed out changeset 7e4f67a6d6f1 (bug 1525245)
Backed out changeset e671fc9581eb (bug 1525245)
Backed out changeset b89f5def8d0d (bug 1525245)
2019-03-06 21:07:49 +02:00
Andrea Marchesini 88186754be Bug 1525245 - Stabilize cookiePolicy/cookiePermission for live documents - part 12 - nsICookieSettings for the channel creation, r=ckerschb,asuth,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D21538
2019-03-06 17:04:06 +00:00
Jonathan Kingston 8397774fdf Bug 1525319 - Removing context from OnDataAvailable r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20881
2019-02-27 23:42:27 +00:00
Jonathan Kingston 3ef1df37e1 Bug 1525319 - Removing context from OnStopRequest r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20770
2019-02-27 23:41:31 +00:00
Jonathan Kingston 649c453cbd Bug 1525319 - Removing context from OnStartRequest r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20769
2019-02-27 23:41:04 +00:00
Dorel Luca 2dfae9a24a Backed out 4 changesets (bug 1525319) for Android failures in dom/base/test/test_progress_events_for_gzip_data.html
Backed out changeset b73f033efb41 (bug 1525319)
Backed out changeset 1d318d5c6b98 (bug 1525319)
Backed out changeset 6d73418988d4 (bug 1525319)
Backed out changeset 84ca79bd2dc3 (bug 1525319)
2019-02-25 04:06:11 +02:00
Jonathan Kingston b6e28d0b8e Bug 1525319 - Removing context from OnDataAvailable r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20881
2019-02-24 20:27:55 +00:00
Jonathan Kingston 4334f239c3 Bug 1525319 - Removing context from OnStopRequest r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20770
2019-02-24 20:26:59 +00:00
Jonathan Kingston d6fffaf979 Bug 1525319 - Removing context from OnStartRequest r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D20769
2019-02-24 20:26:16 +00: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
Jonathan Kingston 58708e007c Bug 1520868 - Replacing AsyncOpen2 with AsyncOpen always r=valentin
Replacing js and text occurences of asyncOpen2
Replacing open2 with open

Differential Revision: https://phabricator.services.mozilla.com/D16885
2019-02-12 16:08:25 +00:00
Kris Maglione 8ccab89886 Bug 1478124: Part 8b - Update DocShell module to use a static component manifest. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D15040
2018-12-16 17:27:58 -08:00