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

80 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
Moonchild 1f038cd026 No Issue - stop spewing useless xfo < CSP warning in non-debug builds
This warning throws off a lot of users reporting issues. It's not even
a proper warning as it's informative at best.
Leave it in for debug builds, but stop spewing these common notices in
release builds.
2024-11-21 20:56:53 +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
Moonchild d388e478a0 Issue #1656 - Remove more vim control lines.
Vim control lines were re-introduced or not entirely cleaned up.
This nukes them again.
Removing from the rest of js, caps, chrome, config, devtools, docshell,
image, intl. More to come.
2023-05-04 10:46:38 +08:00
Martok 531906eb87 No issue - add API to tell Profile Timeline Recording state to JS engine
Based-on: m-c 1342070/5
2023-01-26 11:38:40 +08:00
Moonchild 44388b01a3 Issue #21 - Remove Telemetry accumulation/structures from toolkit js.
This fixes toolkit modules and prevents toolkit component breakage.
Also removes about:telemetry
2022-04-28 10:26:19 +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 d5919942ff Issue #1656 - Part 8: Devtools and misc. 2020-09-25 22:06:55 +08:00
Moonchild 0cd673d720 Issue #1656 - Part 6: Clean up the build files 2020-09-25 22:04:23 +08:00
Moonchild 538b420319 Issue #1656 - Part 4: Manual cleanup 2020-09-25 22:04:20 +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
Matt A. Tobin fa17b5a8e7 Issue #1053 - Remove android support from docshell 2020-02-27 07:31:35 +08:00
Gaming4JC 8d600c51ed Issue #1366 - Completely remove showModalDialog 2020-01-24 09:28:42 +08:00
wolfbeast b753aec164 Issue #1118 - Part 6: Fix various tests that are no longer correct.
The behavior change of document.open() requires these tests to be
changed to account for the new spec behavior.
2019-12-28 21:20:04 +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
Gaming4JC d6206801dd backport m-c 1435319: CVE-2018-12381 - Dropping an Outlook email message into the browser window will trigger a page navigation when the message's mail columns are incorrectly interpreted as a URL. 2019-02-16 00:15:34 +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
NTD aa023ce63b Make the Error Console accessible from about:console and make it presentable in that context 2019-02-16 00:05:13 +08:00
NTD c29a6e983b Revert "Make the Error Console accessible from about:console"
This reverts commit bbbb74e5f077b47c6adb8ede13bfb001bb966cdb.
2019-02-16 00:05:11 +08:00
NTD 5f7da92734 Make the Error Console accessible from about:console 2019-02-16 00:05:05 +08:00
wolfbeast d80f0c2e1b Remove docshell contract for about:webrtc
Follow-up to 9755c93cff958fd8f1a9ef1a105ef0aafd6f9669
Tag #536
2019-02-16 00:04:47 +08:00
wolfbeast 105c537181 Make about:webrtc conditional.
This resolves #536
2019-02-16 00:04:45 +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 e29bf72ab4 Bug 1379762 part 2. Use a more reliable test to figure out when we can skip firing onload in nsDocumentViewer::LoadComplete
Issue #357
2019-02-15 23:58:12 +08:00
janekptacijarabaci eb80674e82 Bug 1379762 part 1. Don't call MediaFeaturesChanged if our override device pixel ratio is set to its current value
Issue #357
2019-02-15 23:58:10 +08:00
janekptacijarabaci 745e1809b0 moebius#231: Consider blocking top level window data: URIs (tests)
https://github.com/MoonchildProductions/moebius/pull/231
2019-02-15 23:56:35 +08:00
janekptacijarabaci 5f39398ab7 Bug 1359204 - Test view-source can open link is not blocked by security policies 2019-02-15 23:54:53 +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 ec9f22177d Bug 1341754: Test SetURI in Location passes triggeringPrincipal 2019-02-15 23:54:42 +08:00
janekptacijarabaci e45bad2c54 Bug 1341754: Provide a valid triggeringPrincipal when calling SetURI in Location 2019-02-15 23:54:40 +08:00
janekptacijarabaci db41bf152a Bug 1341589 - Test TriggeringPrincipal on history entry for view-source loads 2019-02-15 23:54:39 +08:00