Skip to content

Instantly share code, notes, and snippets.

View allstarschh's full-sized avatar

Yoshi Cheng-Hao Huang allstarschh

View GitHub Profile
From 898fe6bd7bccdd7355975ec93112e159812233b5 Mon Sep 17 00:00:00 2001
From: "allstars.chh" <allstars.chh@gmail.com>
Date: Thu, 3 Apr 2014 17:30:04 +0800
Subject: [PATCH] yoshi test
---
src/NfcService.cpp | 3 ++-
src/nfcd.cpp | 6 +++---
2 files changed, 5 insertions(+), 4 deletions(-)
From befbe4372a3265ed06f83587f730b436720a4e1e Mon Sep 17 00:00:00 2001
From: Yoshi Huang <allstars.chh@mozilla.com>
Date: Thu, 19 May 2016 17:47:38 +0800
Subject: add setOriginAttributes in nsIXMLHttpRequest
---
dom/base/nsIXMLHttpRequest.idl | 6 ++++++
dom/base/nsXMLHttpRequest.cpp | 17 +++++++++++++++++
.../components/search/SearchSuggestionController.jsm | 9 +++++++++
3 files changed, 32 insertions(+)
diff --git a/dom/security/test/moz.build b/dom/security/test/moz.build
index dc7ca09..c207a7a 100644
--- a/dom/security/test/moz.build
+++ b/dom/security/test/moz.build
@@ -3,19 +3,19 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
XPCSHELL_TESTS_MANIFESTS += [
@allstarschh
allstarschh / mike's comment for userContextId
Last active June 2, 2016 04:05
mike's comment for userContextId
diff --git a/browser/components/sessionstore/SessionStore.jsm b/browser/components/sessionstore/SessionStore.jsm
index b42440d..5ae8cce 100644
--- a/browser/components/sessionstore/SessionStore.jsm
+++ b/browser/components/sessionstore/SessionStore.jsm
@@ -2919,21 +2919,19 @@ var SessionStoreInternal = {
let numVisibleTabs = 0;
for (var t = 0; t < newTabCount; t++) {
// When trying to restore into existing tab, we check if the userContextId
commit 5be40f00c46e42550146363466f2a5e93c3d23ad
Author: Yoshi Huang <allstars.chh@mozilla.com>
Date: Fri Aug 12 18:38:34 2016 +0800
Bug 1260931 - Part 3: propagate the firstPartyDomain attribute.
diff --git a/browser/components/firstpartyisolation/moz.build b/browser/components/firstpartyisolation/moz.build
new file mode 100644
index 0000000..180b081
--- /dev/null
diff --git a/browser/components/firstpartyisolation/test/browser_firstPartyIsolation.js b/browser/components/firstpartyisolation/test/browser_firstPartyIsolation.js
index 9dcfae1..b08a1ad 100644
--- a/browser/components/firstpartyisolation/test/browser_firstPartyIsolation.js
+++ b/browser/components/firstpartyisolation/test/browser_firstPartyIsolation.js
@@ -1,11 +1,18 @@
add_task(function* test() {
let tab = gBrowser.addTab(BASE_URL + "test_firstParty.html");
- yield BrowserTestUtils.browserLoaded(tab.linkedBrowser, true);
+ let count = 0;
+ yield BrowserTestUtils.browserLoaded(tab.linkedBrowser, true, function (url) {
commit 5286a88e433ef7d29abb50f45013e008128a7d47
Author: Yoshi Huang <allstars.chh@mozilla.com>
Date: Wed Aug 24 15:25:59 2016 +0800
smaug's comment
diff --git a/caps/nsScriptSecurityManager.cpp b/caps/nsScriptSecurityManager.cpp
index 9726583..fb223e0 100644
--- a/caps/nsScriptSecurityManager.cpp
+++ b/caps/nsScriptSecurityManager.cpp
commit 60c5fc0aaf43feabc850aa507ad98bc53822c622
Author: Yoshi Huang <allstars.chh@mozilla.com>
Date: Wed Aug 24 15:26:34 2016 +0800
postMessage test
diff --git a/browser/components/originattributes/test/browser.ini b/browser/components/originattributes/test/browser.ini
index c2784a2..f723b8bb 100644
--- a/browser/components/originattributes/test/browser.ini
+++ b/browser/components/originattributes/test/browser.ini
diff --git a/dom/base/nsFrameLoader.cpp b/dom/base/nsFrameLoader.cpp
index 5f253ca..848be86 100644
--- a/dom/base/nsFrameLoader.cpp
+++ b/dom/base/nsFrameLoader.cpp
@@ -2093,27 +2093,41 @@ nsFrameLoader::MaybeCreateDocShell()
webNav->SetSessionHistory(sessionHistory);
}
DocShellOriginAttributes attrs;
if (docShell->ItemType() == mDocShell->ItemType()) {