Bug 145565 - [UIWebView] local storage event listeners are not triggered
Summary: [UIWebView] local storage event listeners are not triggered
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: iPhone / iPad All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-06-02 13:21 PDT by Eugene But
Modified: 2015-06-02 22:18 PDT (History)
3 users (show)

See Also:


Attachments
Test App (24.47 KB, application/zip)
2015-06-02 13:21 PDT, Eugene But
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene But 2015-06-02 13:21:33 PDT
Created attachment 254088 [details]
Test App

Event listeners added via window.addEventListener('storage', listener, false); are not triggered when local storage is changed in UIWebView.

Steps to Reproduce:
1.) Unarchive UIWebView.zip
2.) Build and launch attached project
3.) Observe changes of rendered text

Expected Results:
Rendered text should change from "Listener Page" to "modified key: test_key", because 'storage' even listener updates a document when local storage is changed.

Actual Results:
Page remains unchanged and always shows "Listener Page" text.


Can not reproduce with WKWebView (change USE_UI_WEB_VIEW macro to 0 in ViewController.m).
Comment 1 Eugene But 2015-06-02 13:22:43 PDT
rdar://21207340