1
0
mirror of https://github.com/roytam1/UXP.git synced 2026-05-26 23:13:55 +00:00
Commit Graph

48 Commits

Author SHA1 Message Date
Moonchild c3f1c0cdba 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-17 09:25:00 +08:00
Moonchild 9ad680cfc4 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-05-14 14:21:46 +08:00
Moonchild ff89fee91d Issue #1787 - Remove nsIAppsService, mozIApplication and mozapp data cleanup. 2024-11-21 21:09:05 +08:00
Moonchild 7b6e3a2d4a 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-21 21:01:27 +08:00
Martok 2a533c943d Issue #2452 - Prevent nsDocShell access when it is already being destroyed
https://bugzilla.mozilla.org/show_bug.cgi?id=1432396
2024-01-18 10:09:22 +08:00
Martok 728b8ad60b Issue #2452 - Declare the NS_ERROR_DOCSHELL_DYING error
From https://bugzilla.mozilla.org/show_bug.cgi?id=1337537
2024-01-18 10:08:05 +08:00
roytam1 26ae6482f6 Issue #unknown, Reload Flooding prevention. 2021-12-14 23:10:15 +08:00
roytam1 bf632ce22a Bug 1730120, close ContentViewer properly if initialization fails, r=nika a=RyanVM 2021-12-14 23:10:14 +08:00
Moonchild 43ebe6d86f [docshell] Stop loading of the document if network load is stopped.
After all, stop means stop.
2021-03-25 09:05:42 +08:00
Moonchild 51c4b1838c Issue #1688 - Add flood guard to state change logic. 2021-02-18 21:57:43 +08:00
Moonchild 8c395520d9 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-25 22:04:12 +08:00
wolfbeast c8b7ac3f86 [Docshell] Ensure nsDocShell::mContentViewer is released properly. 2020-04-11 09:40:34 +08:00
wolfbeast 052b2e70a3 Issue #1280 - Un-bust certerror pages and ForgetAboutSite 2020-04-03 09:30:07 +08:00
Gaming4JC 8d600c51ed Issue #1366 - Completely remove showModalDialog 2020-01-24 09:28:42 +08:00
wolfbeast ab6131d1e6 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-12-28 21:19:48 +08:00
wolfbeast 7d52521f95 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-12-28 21:19:45 +08:00
wolfbeast c6694a0c4c 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-12-28 21:19:44 +08:00
wolfbeast 589999d236 Stop building /docshell unified and fix deprot.
Tag #80
2019-02-22 14:32:39 +08:00
adeshkp aea50f182f Telemetry: Remove stubs and related code 2019-02-16 00:24:04 +08:00
wolfbeast 27d88fc505 Do not report resource-timing subdocument loads triggered by that subdocument. 2019-02-16 00:22:18 +08:00
wolfbeast 8c8145e620 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.
2019-02-16 00:12:32 +08:00
JustOff ecd8ed3f6a Explicitly specify parentheses in a mixed boolean expression in ShouldAddToSessionHistory() 2019-02-16 00:11:56 +08:00
JustOff c402ee2148 Use "browser.newtabpage.add_to_session_history" to decide whether to store "about:newtab" in the session history 2019-02-16 00:11:54 +08:00
JustOff a4755ad177 Update ShouldAddToSessionHistory() rules for "about:newtab" and "about:logopage" 2019-02-16 00:11:52 +08:00
Gaming4JC d4ac94cf3e Remove support and tests for HSTS priming from the tree. Fixes #384 2019-02-15 23:59:39 +08:00
janekptacijarabaci e31712c143 Bug 1359204 - Use SystemPrincipal as TriggeringPrincipal when loading page as view-source 2019-02-15 23:54:52 +08:00
janekptacijarabaci fab9589713 Bug 1333147 - Do not use owner as triggeringPrincipal when creating session history entry 2019-02-15 23:54:47 +08:00
janekptacijarabaci 3f7f553a82 Bug 1334875 - Temporarily remove assertion that history loads pass a valid triggeringprincipal 2019-02-15 23:54:43 +08:00
janekptacijarabaci e45bad2c54 Bug 1341754: Provide a valid triggeringPrincipal when calling SetURI in Location 2019-02-15 23:54:40 +08:00
janekptacijarabaci 55c354f1c0 Bug 1337622 - Temporarily fall back to SystemPrincipal if History entry does not have a valid triggeringPrincipal 2019-02-15 23:54:36 +08:00
janekptacijarabaci 9fca6b7ced Bug 1307736 - Ensure History loads pass valid triggeringPrincipal 2019-02-15 23:54:33 +08:00
janekptacijarabaci ea7e6d41a3 Bug 1332310 - Update AddState and CreateContentViewer to provide an accurate triggeringPrincipal for creating a history entry 2019-02-15 23:54:31 +08:00
janekptacijarabaci dee826b7ee Bug 1329032 - Extend loadURIWithOptions by a triggeringPrincipal (without an hard e10s) 2019-02-15 23:54:30 +08:00
janekptacijarabaci 409656556b Bug 1182569 - Skip security check for plugins using newstream attribute 2019-02-15 23:54:23 +08:00
janekptacijarabaci e162907475 Bug 1182569: Use AsyncOpen2 for docshell loads 2019-02-15 23:54:20 +08:00
janekptacijarabaci 7f09dee539 moebius#187: DOM - nsIContentPolicy - context (document)
https://github.com/MoonchildProductions/moebius/pull/187
2019-02-15 23:49:47 +08:00
janekptacijarabaci 557c89de3c Revert "Bug 1182569: Use AsyncOpen2 for docshell loads"
This reverts commit 29bd11c3cd6ff41f7167530f9bbcd9d195b7c427.
2019-02-15 23:49:46 +08:00
janekptacijarabaci ca1f03fbae Revert "Bug 1182569 - Skip security check for plugins using newstream attribute"
This reverts commit 5b0f4649b3fee771379af60ec04d43b8a525cf80.
2019-02-15 23:49:42 +08:00
janekptacijarabaci 0337202a47 Bug 1182569 - Skip security check for plugins using newstream attribute
native in moebius
2019-02-15 23:49:32 +08:00
janekptacijarabaci 78102ec8c0 Bug 1182569: Use AsyncOpen2 for docshell loads
native in moebius
2019-02-15 23:49:29 +08:00
janekptacijarabaci 9e52126f1a Bug 1329288: Allow content policy consumers to identify contentPolicy checks from docshell 2019-02-15 23:49:24 +08:00
janekptacijarabaci 18d312235d moebius#230: Consider blocking top level window data: URIs (part 3/3 without tests)
https://github.com/MoonchildProductions/moebius/pull/230
2019-02-15 23:49:20 +08:00
janekptacijarabaci 73f89fe562 moebius#226: Consider blocking top level window data: URIs (part 2/2 without tests)
https://github.com/MoonchildProductions/moebius/pull/226
2019-02-15 23:49:19 +08:00
janekptacijarabaci 712d19e1b7 moebius#223: Consider blocking top level window data: URIs (part 1/3 without tests)
https://github.com/MoonchildProductions/moebius/pull/223
2019-02-15 23:49:17 +08:00
wolfbeast 434f3590e3 Remove base conditional code for crash reporter and injector. 2019-02-15 23:39:53 +08:00
Samael Wang 02cf5ea228 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
2019-02-15 23:36:59 +08:00
janekptacijarabaci 54e7645cb6 CSP: Upgrade SO navigational requests per spec. 2019-02-15 23:33:18 +08:00
roytam1 dcd9973243 import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo 2018-01-19 03:59:58 +08:00