Moonchild
d6575ba929
Issue #2721 - Remove nsILinkHandler.
...
This interface inly has a single implementation behind it, which is also
only used in 2 places after the previous commit. That's a lot of
additional complexity and compiler indirection for no good reason.
This change removes the interface and uses direct nsDocShell::Cast calls
instead of going through the interface in the few places left now that
we no longer build on a presentation context for links.
2025-06-10 01:51:14 +02:00
Moonchild
ace69a4d32
Issue #2736 - Part 1: Provide more consistent principals to CSP.
...
We're currently fairly vague and inconsistent about the values we provide to
content policy implementations for requestOrigin and requestPrincipal. In some
cases they're the triggering principal, sometimes the loading principal,
sometimes the channel principal.
Our existing content policy implementations which require or expect a
loading principal currently retrieve it from the context node.
Since no current callers require the principal to be the loading
principal, and some already expect it to be the triggering principal
(which there's currently no other way to retrieve), a choice was made
to pass the triggering principal whenever possible, but use the loading
principal to determine the origin URL.
2025-04-26 20:07:16 +02:00
Moonchild
25d668395b
Issue #1787 - Remove nsIAppsService, mozIApplication and mozapp data cleanup.
2024-11-20 20:18:19 +01:00
Moonchild
01a1a8557b
Issue #2653 - Part 1: Initial cleanup of AppId and isolated mozbrowser.
...
This removes a lot of the plumbing for having the platform embed itself
through IPC which was required for B2G running the browser as both
shell and browser application.
2024-11-17 20:39:45 +01:00
Martok
9db0c6779a
Issue #2452 - Prevent nsDocShell access when it is already being destroyed
...
https://bugzilla.mozilla.org/show_bug.cgi?id=1432396
2024-01-16 11:02:51 +01:00
Martok
d4070c7554
Issue #2452 - Declare the NS_ERROR_DOCSHELL_DYING error
...
From https://bugzilla.mozilla.org/show_bug.cgi?id=1337537
2024-01-16 11:02:50 +01:00
Moonchild
71a3487554
Issue #2133 - Part 3: Remove TrackingProtection plumbing
2023-03-07 01:37:28 +01:00
Moonchild
4d38cb76c2
Issue #2133 - Part 1: Remove private browsing TP pref.
...
This removes selectively enabling TP mode in PB windows.
2023-03-06 22:37:16 +01:00
Moonchild
e0e12932bc
[Docshell] Implement reload flood guard
2022-04-07 23:54:44 +02:00
Olli Pettay
9a1e152ba3
[Docshell] Close ContentViewer properly if initialization fails.
2022-04-07 23:53:44 +02:00
Moonchild
7c90c0205c
Issue #1822 - Part 4: Remove URL classifier and internal blocklist errors.
...
This removes NS_ERROR_{TRACKING|MALWARE|PHISHING|UNWANTED|BLOCKED}_URI
that are no longer in use.
2022-04-01 16:05:02 +02:00
Moonchild
a95439db61
Issue #1822 - Part 3: Remove LOAD_CLASSIFIER_URI and various
...
helper functions.
2022-04-01 16:03:01 +02:00
Moonchild
021fecdedc
[docshell] Stop loading of the document if network load is stopped.
...
After all, stop means stop.
2021-03-24 11:41:58 +00:00
Moonchild
2103a2283b
Issue #1688 - Add flood guard to state change logic.
2021-02-16 12:13:16 +00:00
Moonchild
a680bdc637
Issue #1656 - Part 1: Nuke most vim config lines in the tree.
...
Since these are just interpreted comments, there's 0 impact on actual code.
This removes all lines that match /* vim: set(.*)tw=80: */ with S&R -- there are
a few others scattered around which will be removed manually in a second part.
2020-09-23 13:55:00 +00:00
wolfbeast
33b22f6157
[Docshell] Ensure nsDocShell::mContentViewer is released properly.
2020-04-07 10:55:20 +02:00
wolfbeast
a205ee7040
Issue #1280 - Un-bust certerror pages and ForgetAboutSite
2020-03-31 09:44:30 +02:00
Gaming4JC
a9290ef91e
Issue #1366 - Completely remove showModalDialog
2020-01-21 21:36:54 -05:00
wolfbeast
c1013e9122
Issue #1118 Part 4: Allow UpdateURLAndHistory to work even if there's no
...
root session history.
This can happen when someone does a document.open() on a document that
has no session history.
2019-08-06 09:58:35 +00:00
wolfbeast
f5c848aa9b
Issue #1118 Part 2: Allow UpdateURLAndHistory to work even if mOSHE is
...
null, if we're doing a replace.
We're going to end up hitting this if someone does a document.open()
before mOSHE has been set. We shouldn't need to worry about mLSHE,
because the document.open() will cancel the corresponding load.
2019-08-06 08:41:51 +00:00
wolfbeast
027fbae80a
Issue #1118 Part 1: Split out part of nsDocShell::AddState into a
...
separate method.
This implements the "URL and history update steps" from the HTML spec.
See https://html.spec.whatwg.org/multipage/history.html
2019-07-31 14:18:54 +00:00
wolfbeast
f89a809df5
Stop building /docshell unified and fix deprot.
...
Tag #80
2019-02-21 20:01:53 +01:00
adeshkp
5335681cd2
Telemetry: Remove stubs and related code
2019-01-12 06:20:31 -05:00
wolfbeast
fea96b4527
Do not report resource-timing subdocument loads triggered by that subdocument.
2018-12-14 12:50:01 +01:00
wolfbeast
ab961aeb54
Remove all C++ Telemetry Accumulation calls.
...
This creates a number of stubs and leaves some surrounding code that may be irrelevant (eg. recorded time stamps, status variables).
Stub resolution/removal should be a follow-up to this.
2018-09-03 10:11:38 +02:00
JustOff
c6498fe688
Explicitly specify parentheses in a mixed boolean expression in ShouldAddToSessionHistory()
2018-08-22 14:08:55 +03:00
JustOff
de50d15d28
Use "browser.newtabpage.add_to_session_history" to decide whether to store "about:newtab" in the session history
2018-08-22 13:40:19 +03:00
JustOff
d39cf6a112
Update ShouldAddToSessionHistory() rules for "about:newtab" and "about:logopage"
2018-08-21 18:32:45 +03:00
Gaming4JC
bd85173562
Remove support and tests for HSTS priming from the tree. Fixes #384
2018-05-26 15:42:45 -04:00
janekptacijarabaci
d735c1c1ad
Bug 1359204 - Use SystemPrincipal as TriggeringPrincipal when loading page as view-source
2018-04-30 23:54:01 +02:00
janekptacijarabaci
73b55c16d6
Bug 1333147 - Do not use owner as triggeringPrincipal when creating session history entry
2018-04-30 23:49:41 +02:00
janekptacijarabaci
b3a9d03344
Bug 1334875 - Temporarily remove assertion that history loads pass a valid triggeringprincipal
2018-04-30 23:48:06 +02:00
janekptacijarabaci
71e6952456
Bug 1341754: Provide a valid triggeringPrincipal when calling SetURI in Location
2018-04-30 23:11:43 +02:00
janekptacijarabaci
4908838110
Bug 1337622 - Temporarily fall back to SystemPrincipal if History entry does not have a valid triggeringPrincipal
2018-04-30 23:06:51 +02:00
janekptacijarabaci
2cb9f3ceb8
Bug 1307736 - Ensure History loads pass valid triggeringPrincipal
2018-04-30 23:02:01 +02:00
janekptacijarabaci
6cb841b26e
Bug 1332310 - Update AddState and CreateContentViewer to provide an accurate triggeringPrincipal for creating a history entry
2018-04-30 23:00:04 +02:00
janekptacijarabaci
74858918fa
Bug 1329032 - Extend loadURIWithOptions by a triggeringPrincipal (without an hard e10s)
2018-04-30 22:57:23 +02:00
janekptacijarabaci
d45c25971c
Bug 1182569 - Skip security check for plugins using newstream attribute
2018-04-30 22:09:55 +02:00
janekptacijarabaci
e66562aa8b
Bug 1182569: Use AsyncOpen2 for docshell loads
2018-04-30 21:00:21 +02:00
janekptacijarabaci
ccbd5ecf57
moebius#187: DOM - nsIContentPolicy - context (document)
...
https://github.com/MoonchildProductions/moebius/pull/187
2018-04-23 00:13:56 +02:00
janekptacijarabaci
30621a6307
Revert "Bug 1182569: Use AsyncOpen2 for docshell loads"
...
This reverts commit 29bd11c3cd .
2018-04-22 22:17:18 +02:00
janekptacijarabaci
13f3978a14
Revert "Bug 1182569 - Skip security check for plugins using newstream attribute"
...
This reverts commit 5b0f4649b3 .
2018-04-22 22:16:58 +02:00
janekptacijarabaci
5b0f4649b3
Bug 1182569 - Skip security check for plugins using newstream attribute
...
native in moebius
2018-04-22 21:59:46 +02:00
janekptacijarabaci
29bd11c3cd
Bug 1182569: Use AsyncOpen2 for docshell loads
...
native in moebius
2018-04-22 21:47:27 +02:00
janekptacijarabaci
95c4608241
Bug 1329288: Allow content policy consumers to identify contentPolicy checks from docshell
2018-04-22 20:38:02 +02:00
janekptacijarabaci
660d01438a
moebius#230: Consider blocking top level window data: URIs (part 3/3 without tests)
...
https://github.com/MoonchildProductions/moebius/pull/230
2018-04-22 20:28:18 +02:00
janekptacijarabaci
f1e5578718
moebius#226: Consider blocking top level window data: URIs (part 2/2 without tests)
...
https://github.com/MoonchildProductions/moebius/pull/226
2018-04-22 19:03:22 +02:00
janekptacijarabaci
1b4c4256ee
moebius#223: Consider blocking top level window data: URIs (part 1/3 without tests)
...
https://github.com/MoonchildProductions/moebius/pull/223
2018-04-22 18:51:38 +02:00
wolfbeast
4e368f8199
Remove base conditional code for crash reporter and injector.
2018-03-30 08:50:58 +02:00
Samael Wang
a089281740
Bug 1416307 - Set triggeringPrincipal to current document's principal, if aPrincipal is not given. r=bz, a=ritu
...
MozReview-Commit-ID: 8lxKFeUlyzq
--HG--
extra : rebase_source : 5f364f5cf84c12717bee021d752aa0f9ba4619dd
extra : intermediate-source : 9df27a7142ffb065fb56c3fc873298988deacb98
extra : source : 9fcf48189000ab8ee16f236be57c9659c7243b42
2018-03-14 10:57:15 +01:00