のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

ブラウザ

chrome usb debug

Chromeのリモートデバッグ機能がすごい! - Hacking My Way ? itogのhack日記

Refused to evaluate script

Refused to evaluate script because it violates the following Content Security Policy directive: "script-src 'self' https://www.google.com". Eval and related functions are disabled Code like the following does not work: alert(eval("foo.bar.…

Uncaught ReferenceError: google is not defined

load.js google.load("visualization", "1", {packages:["corechart"]}); スクリプトを読む順番がおかしかった。修正前 <head> <link rel="stylesheet" href="style.css" type="text/css"/> <script type="text/javascript" src="js/jquery.min.js"></script> <script type="text/javascript" src="js/common.js"></script> </link></head>

Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' https://www.google.com".

Error Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' https://www.google.com". SSLを使えば外部SCRIPTを呼ぶことができる。pop.html manifest.json "content_security_polic…

jquery refused to execute inline

CSP error in Chrome 18 when loading jQuery 1.7.1

Refused to apply inline style because it violates the following Content Security Policy directive: "default-src 'none'".

Refused to apply inline style because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'style-src' was not explicitly set, so 'default-src' is used as a fallback.popup.html 修正前 <html> <script type="text/javascript" src="popup.js"> </script>…</html>

Uncaught TypeError: Cannot read property 'value' of null

Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' chrome-extension-resource:".

Manifest.json { // Required "name": "Sample Extension", "version": "0.2", "manifest_version": 2, "background": { "page": "background.html"}, "browser_action": { "default_icon": "icon.png", "default_popup": "popup.html" } } Chrome Extension…

'background_page' requires manifest version of 1 or lower.

Google Chrome | kwLog

ChromeでのJavaScriptの整形

1:ツール(L)のデベロッパーコンソール(D) 2:SourcesのTab 3:”{}”Pretty Printこれで、整形されたJavaScriptが読める。

Default BrowserのMenu

BrowserのMenuを押すと 144 @Override 145 public boolean onMenuOpened(int featureId, Menu menu) { 146 if (Window.FEATURE_OPTIONS_PANEL == featureId) { 147 mController.onMenuOpened(featureId, menu); 148 } 149 return true;

Snapshot(Saved pages)を開く動作

124 @Override 125 public void openSnapshot(long id) { 126 Intent i = new Intent(); 127 i.putExtra(EXTRA_OPEN_SNAPSHOT, id); 128 setResult(RESULT_OK, i); 129 finish(); 130 }

default browserのBookmarksの画面

Menu=>Bookmarksを押したときの画面 ComboViewActivity.javaBookmarks => R.string.tab_bookmarks HISTORY => R.string.tab_history SAVED PAGES => R.string.tab_snapshots 71 mTabsAdapter = new TabsAdapter(this, mViewPager); 72 mTabsAdapter.addTab(b…

Androidのデフォルトのブラウザ(com.android.browser)のdebugについて(1)

EclipseでAndroidのプロジェクトをplatform_packages_app_browserから インポートしてソースをコピーしました。プロジェクト名は、com.android.browser.BrowserActivityとしました。 Error Msg:"_ID cannot be resolved or is not a field"がでます。インポ…