Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
... | |||||
* | mq_html_notebook(): Add newline after "<style>" | Patrick McDermott | 2017-10-31 | 1 | -2/+2 |
| | |||||
* | MqWebView: Free cached main resource data on finalize() | Patrick McDermott | 2017-10-31 | 1 | -3/+2 |
| | | | | | | | | Also drop the conditional around URI freeing. g_free() already performs this check. We may be able to avoid the overhead of an unnecessary function call (at the cost of sometimes inaccurate branch prediction), but the resulting code is uglier, especially with lots of g_free() calls. | ||||
* | MqWebView: Invalidate main resource data cache on load change | Patrick McDermott | 2017-10-31 | 1 | -0/+9 |
| | | | | | | | | | | Otherwise, a connected source view will keep getting the data the first such view received, even after a load change. A better solution would be to cache a pointer to the main resource and check in mq_web_view_get_data() if the main resource's address has changed. But apparently WebKit reuses resource objects, so that doesn't work. | ||||
* | view-source: Use Prism | Patrick McDermott | 2017-10-31 | 1 | -2/+10 |
| | |||||
* | view-source: Handle "view-source:resources/*" paths | Patrick McDermott | 2017-10-31 | 1 | -4/+14 |
| | |||||
* | view-source: Gracefully handle closed origin tab | Patrick McDermott | 2017-10-31 | 1 | -11/+18 |
| | | | | Don't just crash. | ||||
* | src/html.c: Add missing newlines in styles | Patrick McDermott | 2017-10-31 | 1 | -2/+2 |
| | |||||
* | atoi64(), parse_query_string(): Prefix function names with "mq_" | Patrick McDermott | 2017-10-31 | 5 | -9/+9 |
| | | | | And update calls. | ||||
* | mq_web_view_view_source_scheme_methods.context_menu(): s/normal/view_source/ | Patrick McDermott | 2017-10-31 | 1 | -4/+4 |
| | | | | Fixes segmentation fault on right-click. | ||||
* | MqWebViewViewSourceScheme: Add (WebKitHitTestResult *) member | Patrick McDermott | 2017-10-31 | 1 | -2/+3 |
| | |||||
* | mq_web_view_normal_scheme_methods.context_menu(): Add "View Page So_urce" item | Patrick McDermott | 2017-10-31 | 1 | -2/+18 |
| | |||||
* | mq_web_view_view_source_scheme_methods.initialize(): Mark (MqWebView *) ↵ | Patrick McDermott | 2017-10-31 | 1 | -1/+2 |
| | | | | parameter as unused | ||||
* | mq_web_view_view_source_scheme_methods.rewrite_uri(): Update TODO comment | Patrick McDermott | 2017-10-31 | 1 | -2/+1 |
| | | | | Missing origin tab IDs are passed along as "origin-tab=0". | ||||
* | view-source: Add TODO comment | Patrick McDermott | 2017-10-31 | 1 | -0/+1 |
| | |||||
* | view-source: Show origin URI in title | Patrick McDermott | 2017-10-31 | 1 | -4/+5 |
| | |||||
* | view-source: Free user data struct in data callback | Patrick McDermott | 2017-10-31 | 1 | -0/+2 |
| | |||||
* | mq_view_source_request(): Use hash table and get origin URI from path/query | Patrick McDermott | 2017-10-31 | 1 | -7/+12 |
| | |||||
* | mq_web_view_view_source_scheme_methods.rewrite_uri(): Add "uri" parameter to URI | Patrick McDermott | 2017-10-31 | 1 | -2/+2 |
| | |||||
* | mq_web_view_view_source_scheme_methods.initialize(): Use hash table and get ↵ | Patrick McDermott | 2017-10-31 | 1 | -14/+9 |
| | | | | | | | origin URI from URI Trading MqApplication's registered tabs hash table for a query parameters hash table. | ||||
* | src/about.c: Delete static parse_query_string() | Patrick McDermott | 2017-10-31 | 1 | -37/+1 |
| | |||||
* | parse_query_string(): New (public) function | Patrick McDermott | 2017-10-31 | 2 | -0/+40 |
| | | | | Copied from src/about.c. | ||||
* | mq_html_p*(), mq_html_h*(): Add newlines after tags | Patrick McDermott | 2017-10-31 | 1 | -2/+3 |
| | |||||
* | about:marquee: Make document variable static | Patrick McDermott | 2017-10-31 | 1 | -1/+1 |
| | |||||
* | view-source: Escape markup | Patrick McDermott | 2017-10-31 | 1 | -10/+7 |
| | |||||
* | MqApplication: Register "view-source" URI scheme | Patrick McDermott | 2017-10-31 | 1 | -0/+9 |
| | |||||
* | src/view-source.[ch]: New files | Patrick McDermott | 2017-10-31 | 3 | -0/+153 |
| | |||||
* | src/resources.c: Fix missing newlines in error document | Patrick McDermott | 2017-10-30 | 1 | -2/+2 |
| | |||||
* | src/resources.c: Fix <title> tag in error document | Patrick McDermott | 2017-10-30 | 1 | -1/+1 |
| | |||||
* | mq_web_view_view_source_scheme_methods.initialize(): Update comment | Patrick McDermott | 2017-10-30 | 1 | -1/+1 |
| | |||||
* | mq_web_view_view_source_scheme_methods: Add TODO comments to methods | Patrick McDermott | 2017-10-30 | 1 | -0/+3 |
| | |||||
* | mq_web_view_scheme_set_methods(): Call new scheme's initialize() method | Patrick McDermott | 2017-10-30 | 1 | -4/+5 |
| | |||||
* | mq_web_view_scheme_set_methods(): Take an (MqWebView *) parameter | Patrick McDermott | 2017-10-30 | 3 | -8/+8 |
| | |||||
* | MqWebViewScheme: Delete ready_cb member | Patrick McDermott | 2017-10-30 | 4 | -17/+2 |
| | | | | | And delete mq_web_view_scheme_connect_ready_callback() and uses of MqWebViewScheme.ready_cb. | ||||
* | MqWebViewSchemeMethods: Drop ready method | Patrick McDermott | 2017-10-30 | 1 | -1/+0 |
| | | | | It was never actually used. | ||||
* | MqWebView: Delete scheme ready callback | Patrick McDermott | 2017-10-30 | 1 | -11/+0 |
| | |||||
* | mq_web_view_load_uri(): Directly call webkit_web_view_load_uri() | Patrick McDermott | 2017-10-30 | 1 | -2/+2 |
| | | | | | Instead of going through the scheme's initialize() method and the ready callback. | ||||
* | mq_web_view_view_source_scheme_methods.initialize(): Delete TODO comment | Patrick McDermott | 2017-10-30 | 1 | -1/+0 |
| | |||||
* | MqWebView: Remove old struct members | Patrick McDermott | 2017-10-30 | 1 | -5/+0 |
| | |||||
* | mq_web_view_get_data(): New function | Patrick McDermott | 2017-10-30 | 2 | -0/+41 |
| | | | | And add a new "data" property to the MqWebView class. | ||||
* | mq_web_view_view_source_scheme_methods.rewrite_uri(): Mark web_view ↵ | Patrick McDermott | 2017-10-30 | 1 | -1/+1 |
| | | | | parameter as unused | ||||
* | MqWebViewViewSourceScheme: Drop data member | Patrick McDermott | 2017-10-30 | 1 | -3/+2 |
| | |||||
* | mq_web_view_view_source_scheme_methods.rewrite_uri(): Use origin tab ID | Patrick McDermott | 2017-10-30 | 1 | -3/+3 |
| | | | | Not the view tab ID. | ||||
* | mq_application_register_tab(): Copy tab ID into hash table | Patrick McDermott | 2017-10-30 | 1 | -4/+7 |
| | | | | | | | Otherwise, every key in the hash table is incremented to the same invalid value on each mq_application_register_tab() call. Also set key destruction function in mq_application_new(). | ||||
* | mq_web_view_load_uri(): Call initialize() scheme method | Patrick McDermott | 2017-10-30 | 1 | -0/+2 |
| | |||||
* | MqWebView: Call mq_web_view_load_uri() in constructed() | Patrick McDermott | 2017-10-30 | 1 | -5/+2 |
| | | | | | Instead of directly setting web_view->uri and calling mq_web_view_scheme_set_methods(). | ||||
* | mq_web_view_load_uri(): Drop duplicate mq_web_view_scheme_set_methods() | Patrick McDermott | 2017-10-30 | 1 | -2/+0 |
| | |||||
* | MqWebView: Mark scheme parameter as unused in ready callback | Patrick McDermott | 2017-10-30 | 1 | -1/+1 |
| | |||||
* | mq_web_view_load_uri(): Call rewrite_uri() method after setting methods | Patrick McDermott | 2017-10-30 | 1 | -2/+2 |
| | |||||
* | mq_web_view_load_uri(): Set scheme methods | Patrick McDermott | 2017-10-30 | 1 | -8/+2 |
| | | | | | Instead of calling rewrite_uri() method and webkit_web_view_load_uri() directly. | ||||
* | MqWebView: Handle NULL URI in constructed() | Patrick McDermott | 2017-10-30 | 1 | -0/+14 |
| |